# Lockscreen not working after update to 21.10

**URL:** <https://discourse.ubuntubudgie.org/t/lockscreen-not-working-after-update-to-21-10/5394>\
**Category:** Budgie Desktop\
**Created:** [October 15, 2021, 4:45pm UTC](https://discourse.ubuntubudgie.org/t/lockscreen-not-working-after-update-to-21-10/5394 "2021-10-15T16:45:53Z")\
**Posts on this page:** 1\
**Showing post:** 22

<div class="post-metadata">

**Author:** ![RupertEverton](https://avatars.discourse-cdn.com/v4/letter/r/c89c15/32.png) [@RupertEverton](https://discourse.ubuntubudgie.org/u/RupertEverton)\
**Post date:** [October 27, 2021, 3:38pm UTC](https://discourse.ubuntubudgie.org/t/lockscreen-not-working-after-update-to-21-10/5394/22 "2021-10-27T15:38:56Z")

</div>

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.

That should do it

> [@Lockscreen not working after update to 21.10](https://discourse.ubuntubudgie.org/t/lockscreen-not-working-after-update-to-21-10/5394/17):
>
> So this is what I came up with: #!/bin/bash if ps ax | grep -v grep | grep gnome-screensaver \> /dev/null then echo "gnome-screensaver is not running" echo "starting gnome-screensaver ..." pkill -9 -f '/usr/bin/gjs /usr/share/gnome-shell/org.gnome.ScreenSaver' sleep 3 gnome-screensaver else echo "gnome-screensaver already running" exit fi Adding it to startup applications seems to be sufficient to get everything running the way it should. Cheers for the help

---

_[View the full topic](https://discourse.ubuntubudgie.org/t/lockscreen-not-working-after-update-to-21-10/5394)._
