Open gedit, copy the following and paste it into gedit, save it as screensaver-autorun.sh in a place where you’re not gonna move it. Then in the menu search for ‘Startup Applications’, click add, give it a name and in ‘Command’ click ‘Browse’ and select screensaver-autorun.sh.
@fossfreedom Amazing hint for that apt purge gnome-shell-common trick, finally my lock shortcut (& lock command in general) is working again. Why does removing that package help with this specific problem?
gnome-shell installs an autostart file that also runs when you login. It is that autostart file that prevents gnome-screensaver working correctly. By uninstalling gnome-shell-common, that autostart file and the accompanying application (called gjs) is removed. Thus gnome-screensaver works correctly.
updated to 22.04 but the problem persists. The solution with bash script seems to work but it always break “show time” applet in raven. I use multiple screen and this applet always disappear after lock - unlock. I though that new LTS version will repair this but it doesnt so any idea how to make lockscreen work and does not break applet?
I’m having this problem since upgrading to 22.04 and these solutions don’t work for me (can’t get my lock screen to appear).
I tried the scripts (killing and restarting gnome-screensaver) but that doesn’t seem to matter. I also checked gnome-screensaver is running.
I ran sudo apt purge gnome-shell-common too, and restarted, which removed some options from the login screen, but the problem persists (not sure how those others got there, I’ve only ever used Ubuntu Budgie).
I confirmed I’m using lightdm, and /etc/lightdm/lightdm.conf says greeter-session=slick-greeter.
journalctl doesn’t seem to show anything at all when I click the lock button or press WIN+L.
I had a look at the disable-lock-screen key in dconf-editor. It states that the default value for that key is “false” - so something else must have manually set that key value to true.
Did you happen to be in the displays section of budgie-control-center ? you have the option there to play with the disable lock screen option. Note - if you are using fractional scaling it will automatically disable the lock screen since fractional scaling & the lock screen doesn’t work.
Interesting… I always just use 100% scaling, I’ve never needed to touch DPI scaling yet ever. However, the “Fractional Scaling” setting is on, despite “Scale” being 100%. I didn’t touch that one.
I do remember logging in after the upgrade and the icons on my desktop were HUGE for some reason, but when I simply clicked the desktop (as if to focus it), they magically shrunk down to the correct size and I went “meh” and ignored it. Sounds like that’s all related.
I’ll remember to check this fractional scaling setting if this ever happens again, cheers =)