Fix for "Cannot shutdown using power button" on Ubuntu


After my recent upgrade to ubuntu, pressing the power button to shut down stopped working. I had to remap the script mapped to the power button by

  1. Editing  /etc/acpi/events/powerbtn using the command
       sudo gedit  /etc/acpi/events/powerbtn
  2. Commenting line shown below by adding a # to the beginning  of the line
       action=/etc/acpi/powerbtn.sh
  3. adding a new line
       action=/sbin/poweroff
  4. Saved and exited Gedit. Tested to make sure the functionality is restored by pressing the  power button to shut down

Leave a comment