I was unable to find a way to allow me to remove such a "lock"/"inhibit"/"block".
Question: Is there a way to remove the
systemd-inhibit lock, for instance via a
Background: what would I need to remove a inhibitor lock for**
My Laptop has a laptop-lid close switch, which
systemd-logind monitors and in case the lid is closed suspends the laptop - functionality "
close-lid -> suspend".
Once the laptop is placed in its docking station, to make user of a bigger screen, Gnome's gsd-power arbitrarily ( and erroneously and without any available setting in Gnome to change it ) decides to create a inhibitor lock, preventing the functionality "
close-lid -> suspend" to work.
Knowing how to remove an inhibitor lock, would allow me to remedy the erronous setting done by Gnome's gnome-setting-deamon power
gsd-power. Gnome's setting is wrong, because manually invoking suspend
systemctl suspend showed indeed no problem.
The inhibitor lock I would like to remove, as listed in
systemd-inhibit --list is this:
Who: alex (UID 1000/alex, PID 4248/gsd-power) What: handle-lid-switch Why: Multiple displays attached Mode: block