In Ubuntu 16.04, when you press the power button on your computer you’re prompted with a list of options – this is the “interactive” shutdown.
The steps below show how to change this so that the power button automatically runs a shutdown – without having to use the interactive shutdown prompt.
- Press Ctrl + Alt + T on your keyboard to open the terminal
- Run the following command
gsettings set org.gnome.settings-daemon.plugins.power button-power 'shutdown'
- Close the terminal
- The power button will now automatically run the shutdown command.