FG
💻 Software

Prevent poweroff on Debian when the physical power button is pressed

Fresh5 days ago
Mar 15, 202613702 views
Confidence Score0%
0%

Problem

I'm on Debian-Lenny. I want to change the action taken by the system when the power button is pressed. How do I modify the system such that it does not power off when it gets an Power Button ACPI event? (My server is in my room, and I don't want my girlfriend to power off my server by pressing the …

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Prevent poweroff on Debian when the physical power button is pressed

Low Risk

To change the actions that the server takes when it receives an ACPI event indicating the power button, edit the: script. This will not prevent holding the button to force power off, however. While we're at it, the line in /etc/inittab: Controls the…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment