I would like to specify that when I press the power button in my laptop, a 'shutdown -h now' command is sent, instead of bringing up the graphical shutdown menu. How can I do that on Ubuntu 11.10?
I would like to specify that when I press the power button in my laptop, a 'shutdown -h now' command is sent, instead of bringing up the graphical shutdown menu. How can I do that on Ubuntu 11.10?
That's simple enough. When you press the power button a ACPI event triggers the script at
/etc/acpi/powerbtn.sh
.You can edit that to just run
shutdown -h now
as the first thing so it looks like: