Another question that I unfortunately had to answer myself several times, because I am so forgetful: How can I reliably prevent my Dell Laptop with Ubuntu from going into suspend mode when the lid is closed? I need that feature because my devices use the same Dell screen with …
Switching from one machine to the other is done via a signal. But a computer in suspend mode would – surprise, surprise – not receive the “it’s your turn”-message.
To solve that issue, we traditionally would modify the GNOME settings under Settings/Power
to
Mode = Balanced
Power Saver = off
Screen Blank = Never
Automatic Suspend = off
But — unfortunately — that does not work on DELL laptops with Ubuntu. Instead, we must use ‘the’ Dell-specific method:
Solution
> sudo systemctl restart systemd-logind
.> sudo systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target
> sudo vi /etc/systemd/logind.conf
- Replace
#HandleLidSwitch=suspend
byHandleLidSwitch=ignore to do nothing
- Save the file