1

I have Ubuntu 18.04 installed on my Lenovo Thinkpad L560. When I close the lid nothing happens. I want the system to suspend. The settings for this are turned on. So when I close my lid and reopen it nothing has happened. I'm not logged out or anything.

Can you help me?

abu_bua
  • 10,783
oliver
  • 11
  • Try to check gsettings -> https://askubuntu.com/a/1059712/790920 – abu_bua Oct 19 '18 at 13:48
  • I found the solution myself. I followed these steps: http://tipsonubuntu.com/2018/04/28/change-lid-close-action-ubuntu-18-04-lts/ but I was stupied i tried to edit the file before but I didn't see the "#" for the line to be a comment. After removing the "'#" it works! – oliver Oct 20 '18 at 19:39

1 Answers1

1

These instructions follows this tips page:

Enable automatic shutdown, hibernate, or do nothing when laptop lid is closed.

  1. Edit the logind.conf file

    sudo gedit /etc/systemd/logind.conf
    
  2. Uncomment the following line (delete the # character):

    #HandleLidSwitch=suspend
    

    to

    HandleLidSwitch=suspend 
    
  3. Save the file and finally restart the systemd service:

    sudo systemctl restart systemd-logind.service
    
abu_bua
  • 10,783
  • 1
    Not working on Lenovo T430, sadly – Chaim Eliyah May 16 '19 at 21:18
  • This works perfect, but unfortunately it does not make distinction between battery/ac-in situation - is there any chance making it suspend when running on battery and doing nothing when ac is plugged in? – pepa.dvorak Jul 01 '20 at 16:29