1

I've changed the power management settings on my Ubuntu 10.10 server laptop to keep running with the lid closed but I loose any attempts to connect to it by ssh.

Is there a way to change this so that it will always be running?

P.S: It works perfectly with the lid open...

2 Answers2

1

If you have all your power management settings in the OS right, it could be a setting in the BIOS that kills particular devices when the lid is closed. I would check that first.

If you wanted to see that, you could run an infinite ping command in terminal and check wireshark output on the device your pinging for ICMP traffic.

RobotHumans
  • 29,530
1

A simple way to do this is to edit the logind.conf file. From the Terminal, do this:

  1. Open the logind.conf file:
    sudo nano /etc/systemd/logind.conf
    
  2. Find and uncomment the line:
    #HandleLidSwitch=suspend
    
    So that it looks like this:
    HandleLidSwitch=ignore
    
  3. Save the file (Ctrl+X, then Y if you're using nano)
  4. Reboot

Source

matigo
  • 22,138
  • 7
  • 45
  • 75
coldfix
  • 11
  • Same worked for other Linux distributive, just don't forget about the root rights for text editor when editing the logind.conf file. – coldfix Oct 28 '21 at 09:57