Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I made the upgrade on my Lubuntu machine to 13.10 yesterday. Everything seemed to go smoothly except one niggling thing I can't seem to fix. Previously, I had set the power button to suspend my computer when it was pressed- I was able to set this in the Xfce Power manager.

However after the upgrade, pressing the power button will shutdown the computer rather than suspending. I did a test and checked the logs and found this when I pressed the power button:

auth.log:Oct 21 22:48:35 Inspiron-1564 systemd-logind[748]: Power key pressed.
auth.log:Oct 21 22:48:35 Inspiron-1564 systemd-logind[748]: Powering Off...
auth.log:Oct 21 22:48:35 Inspiron-1564 systemd-logind[748]: System is powering down.

I'm stuck here. Somehow systemd-logind thinks I want to shut the computer down, but I'm not sure where those settings may be. Any help is greatly appreciated.

Additionally, while this post has an answer that has a roundabout method of solving the problem, I will not accept that as an answer because it essentially doesn't work, and is not how the problem should be solved.

share|improve this question

1 Answer 1

up vote 3 down vote accepted

It seems that systemd-logind is in conflict with xfce4-power-manager. This seems to resolve it for me with xubuntu on and Inspiron 9400.

  • Tell systemd-logind to ignore the power button. Open a terminal with Ctrl+Alt+t. And enter the following command to edit the file:

    gksu leafpad /etc/systemd/logind.conf

Un-comment the line for HandlePowerKey and change the value from poweroff to ignore so that it looks like this:

HandlePowerKey=ignore
  • Restart the service

    sudo service systemd-logind restart

  • Use xfce4-power-manager-settings to set the power button action

Good Luck!

share|improve this answer
    
fantastic! The answer was right under my nose. I'll report this to the Lubuntu devs. –  Dennis Hodapp Oct 30 '13 at 16:37

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.