pop-os / cosmic-epoch

Next generation Cosmic desktop environment
1.7k stars 54 forks source link

Closing lid suspends laptop when external monitor is connected. #307

Open hgaiser opened 1 month ago

hgaiser commented 1 month ago

I'm used to connecting an external monitor and closing my laptop, however with Cosmic this makes the laptop suspend. I don't think there is an option for changing this behavior (yet?), but I think it makes sense for the default to be to not suspend the laptop.

My system: Lenovo Legion 5 Pro Arch Linux Cosmic r131

EDIT: I found a solution that partially works. I edited /etc/systemd/logind.conf with the following config:

HandleLidSwitchExternalPower=ignore
HandleLidSwitchDocked=ignore

However the laptop monitor remains connected (verified with cosmic-randr list).

jokeyrhyme commented 1 month ago

Yeah, I think GNOME and other desktops intercept such systemd/ACPI events