GNOME does not lock screen on closing lid

Bug #1875591 reported by Saurav Sengupta
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-power-manager (Ubuntu)
New
Undecided
Unassigned

Bug Description

Ubuntu 20.04 (Focal Fossa) (amd64 on x86_64), GNOME 3.36.1 (as reported by Settings -> About), X11, gnome-power-manager 3.32.0-2, gnome-settings-daemon 3.36.0-1ubuntu2.

On my laptop, I want to lock the screen when I close the lid. I have set HandleLidSwitch=lock and HandleLidSwitchExternalPower=lock in /etc/systemd/logind.conf. I have also set both org.gnome.settings-daemon.plugins.power lid-close-ac-action and org.gnome.settings-daemon.plugins.power lid-close-battery-action to 'blank'. However, when I log in after a boot-up and close the lid WITHOUT performing any action such as opening a shell menu or starting an application, the system does not lock the screen and I directly get back to the desktop after re-opening the lid. This continues until I perform any such action as mentioned above; after that the screen is locked on closing the lid every time as expected (until next boot).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.