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
- Editing /etc/acpi/events/powerbtn using the command
sudo gedit /etc/acpi/events/powerbtn - Commenting line shown below by adding a # to the beginning of the line
action=/etc/acpi/powerbtn.sh - adding a new line
action=/sbin/poweroff - Saved and exited Gedit. Tested to make sure the functionality is restored by pressing the power button to shut down