-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not suspend on laptop lid close when external monitors are connected #19
Comments
I thought this is handled by setting |
I think desktops like Gnome generally have their own configuration for these sorts of things rather than relying on logind's configuration file. As mentioned in that man page:
Though what gnome-settings-daemon is doing is a bit different since it seems to set and unset the inhibitor instead of just inhibiting and handling this itself. And I don't see a gsetting related to this, so I guess it's not configurable on Gnome? Though in that case, I wonder why I saw it suspending with external monitors plugged in... |
Ok, in that case is cosmic-comp the "correct" component to hold that inhibitor-lock? Or could this also be done e.g. by cosmic-session? I assume cosmic-comp could play a role here, because it is using logind to obtain privileges to take over devices, but does the inhibitor-lock depend on these privileges or could any process set that? |
Gnome handles this in |
We appear to have resolved this. Testing from current master build ( 849882a ) I seek my system correctly suspend without an external display, while it does not suspend when I have an external display attached. |
It seems the needs to be handled by using the
Inhibit
method onorg.freedesktop.login1.Manager
as is done by gnome-settings-daemon: https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/blob/master/plugins/power/gsd-power-manager.c.The text was updated successfully, but these errors were encountered: