stop suspend on NON-X system

Thomas Kaiser ubuntu at kaiser-linux.li
Mon Oct 27 23:34:12 UTC 2014


  On 10/12/2014 10:03 AM, Karl Auer wrote:
> Hi there.
>
> I have a netbook running as a server. I installed the desktop version of
> Ubuntu 14.04-1 and have disabled lightdm using an override file
> in /etc/init. This machine thus runs WITHOUT X and WITHOUT EVER STARTING
> X. Important points.
>
> What I want to do is prevent this machine from suspending or hibernating
> when I close the lid. At the moment, when I close the lid the system
> suspends to RAM.
>
> Any ideas? I've found lots of stuff, but it is all X-related, outdated,
> or doesn't work. The most promising was some entries
> under /etc/polkit-1, but the suggested incantation did not work.
>
> Has anyone here got an idea how this might be achieved?
>
> Thanks, K.
>
> PS: The netbook has no BIOS setting controlling suspend on lid.
>
> PPS: The X settings - from before I disabled lightdm - did successfully
> stop the system from suspending when the lid was closed. However, X was
> running at those times.
>
  Hello Karl
  
  I had the same issue after I updated a laptop running the server version
  to 14.04.
  
  Try changing |HandleLidSwitch to ignore in /etc/systemd/logind.conf.
  Don't forget to uncomment it.
  This helped me.
  
  Regards, Thomas
  |
  





More information about the ubuntu-users mailing list