I am running GNOME 42(22.04 LTS) on my lenovo ideapad D330 convertable tablet(only one which works out of the box with orientation of touch and screen giving least issues). However one of the main issue is whenever the screen goes to sleep it doesn't turn back on and needs complete restart by holding down power button. So I disabled the suspend and hibertnate option using systemctl and also turned off automatic screen off. However whenever I lock the device the screen goes off unless there is a mouse input atleast. I disabled super+L shortcut for screen lock. Is there any way to disable lock option that we click from top panel?
Asked
Active
Viewed 1,234 times
1 Answers
3
Found couple of ways finally.
First method : is to
run in terminal the command
gsettings set org.gnome.desktop.lockdown disable-lock-screen true
That should remove the lock option from the tray. And it can be re-ebabled using reset instead of set in the same command and removing true attribute
gsettings reset org.gnome.desktop.lockdown disable-lock-screen
Second Method : is to install Dconf Editor from GNOME software (available as deb,rpm or flatpak) and open it and navigate into /org/gnome/desktop/lockdown and toggle disable-lock-screen option accordingly.
Note:
- The following tricks worked on GNOME42 on 22.04 LTS for removing the lock text in tray, but theoretically it should also work on previous versions which has lock icon instead since it is messing with gsettings/dconf.
- Proceed with caution and proper understanding when it comes to trying other things with Dconf Editor since it messes up internal system settings and may break serious functionalities.