Sunday 16 February 2014

Ubuntu power putton behavior shutoff to popup context menu

http://askubuntu.com/questions/362914/how-to-prevent-the-power-button-to-shutdown-directly-the-system

http://askubuntu.com/questions/385706/etc-acpi-powerbtn-sh-for-full-shutdown-menu/385716#385716

$sudo nano /etc/systemd/logind.conf

Uncomment 'HandlePowerKey=ignore', save and exit.

$sudo nano /etc/acpi/powerbtn.sh

Last line reads /sbin/shutdown -h now "Power button pressed"
Comment it out, and add new line

gnome-session-quit --power-off

Save and exit.

sudo restart systemd-logind
 -----------------------------------
No response following the post,

$whereis gnome-session-quit
$sudo nano /etc/acpi/powerbtn.sh

fixed the line to read /usr/bin/gnome-session-quit --power-off




No comments:

Post a Comment