Lubuntu - power button doesn't turn off computer,
5,679
Try this. Edit /etc/acpi/powerbtn.sh
, and the make sure that the lines below are the last lines in it.
# If all else failed, just initiate a plain shutdown.
/sbin/shutdown -h now "Power button pressed"
also look in /etc/acpi/events/powerbtn
, and make sure it matches below, specially the last part.
# /etc/acpi/events/powerbtn
# This is called when the user presses the power button and calls
# /etc/acpi/powerbtn.sh for further processing.
# Optionally you can specify the placeholder %e. It will pass
# through the whole kernel event message to the program you've
# specified.
# We need to react on "button power.*" and "button/power.*" because
# of kernel changes.
event=button[ /]power
action=/etc/acpi/powerbtn.sh
If you make any changes, make sure you run, before you try to see if it works. You may need to reboot.
sudo service acpid restart
Related videos on Youtube
Author by
cloying
Updated on September 18, 2022Comments
-
cloying over 1 year
I am using Lubuntu 13.04 and would like to have the power button cause the computer to shut down. Currently it only brings up the power preferences menu (logout, reboot, hibernate, etc...).
In Lubuntu, there is xfce4-power-manager v1.2 and I've tried to fix it here by setting the general->when power button is pressed->shut down option, but this doesn't change anything.
Any help would be much appreciated.
-
cloying almost 11 yearsI'm afraid there is no acpid service (and the directory /etc/acpi doesn't exist)
-
Glutanimate over 10 years@cloying You can install acpid with
sudo apt-get install acpid
-
cloying about 10 yearsApologies for the delay but just wanted to say this worked for me after installing acpid. Have marked the question as answered.