I've upgraded from 17.04, using Unity, to 17.10, using GNOME. On Unity I was able to assign the shutdown command manually to the shutdown button on my keyboard. With the 17.10 update I moved to GNOME and now I can't change the behaviour of the power button anymore. I tried to simply change the behaviour via dconf, which didn't have any effect. Then I tried to set all button assignments for suspend, hibernation, power off... to "nothing", also via dconf, also without any change. The annoying thing is, if I try to assign a user defined behaviour and press the button the PC goes into suspend immediately. Is there any other config that need to be changed, to get back my old behaviour?

Thanks!

share|improve this question

I played around with it a bit and figured out the following:

  • the power button of the PC behaves correctly
  • the button on my keyboard is always going to suspend, even when I tried to read out the keycode using xev
  • using dconf (like I did on 17.04) doesn't show any effect
  • if I assign e.g. Ctrl+q to the "Shutdown" command, it takes about half a minute before the system reacts

Now I've decided to revert back to 17.04 and all is working fine. What a crappy update, sorry Ubuntu.

share|improve this answer

Try changing the HandlePowerKey= line in /etc/systemd/logind.conf. Yours might say HandlePowerKey=suspend. You can change it to say HandlePowerKey=poweroff.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.