suspend when laptop lid closed and an external monitor is attached

asked 2017-07-05 03:46:22 -0500

Raffaello gravatar image

updated 2017-07-05 11:29:24 -0500

When the laptop is lid the default behaviour is to put in suspend mode and that is not working any-more when an external monitor is attached, I suppose the OS change the status to docked.

Is it possible to keep the same behaviour when a monitor is attached or not? I try already changing /etc/systemd/logind.conf settings #HandleLidSwitch=suspend #HandleLidSwitchDocked=suspend

and then restart the service but nothing changed.

my goal is when my laptop is lid is going into suspended mode also when is docked or external monitors attached. any suggestion?

edit retag flag offensive close merge delete

Comments

Cinnamon has a setting to perform on lid closed action even if external monitor is connected. What desktop environment are you using?

ozeszty gravatar imageozeszty ( 2017-07-05 06:03:03 -0500 )edit

default gnome3

Raffaello gravatar imageRaffaello ( 2017-07-05 11:29:05 -0500 )edit

It seems you're not the first one with this problem. You can check out Gnome Tweak Tool and dconf editor, or maybe some extension will help, but you'll probably end up with a bug report.

Personally I couldn't stand some of gnome3's oversimplifications I considered shortcomings, tested some other DE's and ended up on Cinnamon, happily. I'm not even using the function you need, I've set up power button to put my laptop into sleep, because sleep on lid closing was sometimes getting in my way.

ozeszty gravatar imageozeszty ( 2017-07-11 03:44:44 -0500 )edit