How to Make My Laptop Ignore Lid Actions?

0
0
Asked By CuriousCactus42 On

I'm using Pop!_OS on a ThinkPad T480 and want the laptop to ignore lid actions completely, only sleeping and waking it with the power button. I have TLP installed, and I'm wondering if it's interfering with the power settings. I've edited the settings in /etc/systemd/logind.conf and they currently look like this: HandleLidSwitch=ignore, HandleLidSwitchExternalPower=ignore, HandleLidSwitchDocked=ignore, and LidSwitchIgnoreInhibited=no. I need some advice on whether I'm missing something, especially whether I should run `systemctl daemon-reload` and if the last setting should be yes or no.

2 Answers

Answered By TechSavvyTom On

Have you tried running `systemctl daemon-reload` after making those changes? If you haven't, that might be the key step you're missing. Also, after that, restart `systemd-logind` so it picks up the new configuration. As for `LidSwitchIgnoreInhibited`, it should generally be set to 'no' if you want to ensure lid actions are ignored.

Answered By GamerGal88 On

Just to add to what Tom said, make sure you’re restarting `systemd-logind` after the changes too. And you don't necessarily need to change all four lines unless you have a specific configuration. Setting `LidSwitchIgnoreInhibited` to 'no' is usually correct for your goal.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.