Getting Power Button to hibernate/shutdown computer
Loïc Grenié
loic.grenie at gmail.com
Sun Feb 14 13:54:39 UTC 2010
2010/2/14 Nasa <nasa01 at comcast.net>:
> Hi,
>
> I have Ubuntu 9.10 running on one of my boxes. On it I don't use GNOME or KDE, but I would still
> like to be able to have it shutdown and/or hibernate based on pressing the power button. Yet I
> can't seem to find instructions on how to get this to work (or troubleshoot it, if it already
> should). Could someone point me in the right direction? Thanks
Here's what I've done (on a Debian computer, but things should not be too
different between Debian and Ubuntu). I've modified
/etc/acpi/actions/lm_lid.sh
and /etc/acpi/events/powerbtn-acpi-support as the attached files.
There are probably way better ways to do it, but it just works...
Hope this helps,
Loïc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lm_lid.sh
Type: application/x-sh
Size: 386 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20100214/47bb4870/attachment.sh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: powerbtn-acpi-support
Type: application/octet-stream
Size: 106 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20100214/47bb4870/attachment.obj>
More information about the ubuntu-users
mailing list