You could set it so that the system doesn't ask what to do, but instead suspends immediately
when you press the power button. (system -> preferences -> power management, general tab,
"when the power button is pressed: suspend").
Alternatively, if you have a suspend key on your keyboard, that might be handled by the BIOS
instead of the OS, and might trigger a suspend event.
Posted Mar 13, 2008 20:48 UTC (Thu) by landley (subscriber, #6789)
[Link]
Those instructions seem to be for gnome, and I'm using kde (without
kpowersave installed, which I'm reluctant to install due to the "ubuntu
laptop disks eating themselves after 6 months if you don't "hdparm -B
255 /dev/sda" them. (See
http://www.atomicmpc.com.au/forums.asp?s=2&c=16&t... for details.)
However, all I had to do was edit /etc/acpi/powerbtn.sh and replace the
call to /usr/bin/dcop with a call to /etc/acpi/sleep.sh.
I'm aware this is probably not the _approved_ way of doing this, but as
with most "chainsaw, shotgun, and duct tape" solutions, it works just
fine for me...