Thursday, August 30, 2012

Quick power off button on Ubuntu

Here is how I permanently make the power switch/button simply shut down Ubuntu from 12.04 (no more questions asked) as root:
echo "event=button/power (PWR.||PBTN)" > /etc/acpi/events/power; echo "action=/sbin/poweroff" >> /etc/acpi/events/power; /etc/init.d/acpid restart;

No comments:

Post a Comment