Power button event and logout-restart-shutdown dialog
In Ubuntu 12.04 I changed /etc/acpi/events/powerbtn, commenting out the "action" line as follows:
#action=/etc/acpi/powerbtn.sh
I also used dconf-editor to set apps/indicator-session/suppress-logout-restart-shutdown as checked (on).
Then I did:
sudo service acpid restart
And when I press the power button I still get the "Shutdown this system now?" dialog. In theory this dialog was suppressed, and even if not suppressed, it is supposedly called by the script /etc/acpi/powerbtn.sh via the action line above that is now commented out.
So, from-where/why is this dialog being called?
Edit: Looking at /var/log/syslog I find that commenting out the action of /etc/acpi/events/powerbtn causes the following acpid start error:
acpid: skipping incomplete file /etc/acpi/events/powerbtn
So I changed this to:
action=logger "/etc/acpi/events/powerbtn script: Power button pressed."
And this message is indeed logged when I press the power button.
I also tried doing:
sudo service acpid stop
And leaving it stopped, and still the dialog appears when I press the power button.
Last edited by billstei; July 8th, 2012 at 10:39 PM.
CPU: 80286 @ 10Mhz; FPU: n/a; RAM: 256K, HD: 20 Meg
Graphics: Monochrome; Power Supply: 100 W; Case: Yes/Open
Bookmarks