Disable lid sensor behavior for laptop in Bazzite Gaming Mode

Despite setting the lid switch to do nothing in Plasma, Gaming Mode still goes into sleep mode if my laptop is closed while connected to an external display.
Solution:
To fix this, I edited the /etc/systemd/login.conf.d/deck.conf file to include the following: ``` HandleLidSwitch=ignore HandleLidSwitchExternalPower=ignore...
Jump to solution
1 Reply
Solution
Literally a Pan
Literally a Pan2mo ago
To fix this, I edited the /etc/systemd/login.conf.d/deck.conf file to include the following:
HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
HandleLidSwitchDocked=ignore
HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
HandleLidSwitchDocked=ignore
This ensures the lid sensor is completely ignored, but if you ever need the regular lid behaviour when the display is not docked then the latter two can be set to sleep.

Did you find this page helpful?