Xubuntu 13.10: disabling suspend on lid being closed

21,880

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
Share:
21,880

Related videos on Youtube

kuhar
Author by

kuhar

Updated on September 18, 2022

Comments

  • kuhar
    kuhar over 1 year

    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?

  • AlexE
    AlexE over 10 years
    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.
  • Eyal
    Eyal over 10 years
    It's enough to only use HandleLidSwitch=ignore
  • Unrealist
    Unrealist about 9 years
    Thanks a bunch. :) And yes, only HandleLidSwitch=ignore is enough.