Is it possible to configure the lid switch action? /etc/systemd/logind.conf
does not seem to exist for me and the only other place I can find logind.conf
is in /usr/lib/systemd
, which is not writable, but even when I edit that file and reboot, the new options don’t apply, so I’m thinking that’s the wrong file to edit.
On my laptops i just need to turn it on in the BIOS not in the OS.
My laptop doesn’t support sleep on Linux, so I set it to lock when the lid is closed, and I use hibernate when I want to leave it for longer, but there’s no way to configure it in the BIOS, the only thing that has worked for me is changing the logind config.
Ok, then you know more about it than i do.
Check dmesg, if something is reported there during the lid close/open, it might point to what service is triggering sleep. From there you might be able to configure the service correctly.
Before and after shutting and opening the lid, there’s no change in the dmesg log.
All I had to do was create the /etc/systemd/logind.conf
file, and put my options there.
If you need help with the options you can run man logind.conf
.
This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.