20

I'm having trouble with configuring my home server. I have an old lenovo x200 laptop that runs Xubuntu 13.10.

My problem is that after closing the lid the laptop is begin suspended despite changing all lid-related options in power management to "nothing". How to disable all actions (except turning the screen off) on lid close?

24

I had the same problem, affecting the power button as well. This worked for me:

https://wiki.archlinux.org/index.php/xfce#xfce4-power-manager

/etc/systemd/logind.conf

HandlePowerKey=ignore
HandleSuspendKey=ignore
HandleHibernateKey=ignore
HandleLidSwitch=ignore
| improve this answer | |
  • How does the "Ask" setting translate into logind.conf's language? The man page mentions "ignore, poweroff, reboot, halt, kexec, suspend, hibernate, hybrid-sleep, lock" as options only. – AlexE Oct 21 '13 at 12:10
  • Works like a charm. I noticied when you put "ignore" into logind.conf the xfce4-power-manager-settings works properly. – user204783 Oct 22 '13 at 12:39
  • 5
    It's enough to only use HandleLidSwitch=ignore – Eyal Nov 2 '13 at 13:09
  • Thanks a bunch. :) And yes, only HandleLidSwitch=ignore is enough. – Unrealist Mar 28 '15 at 1:31

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