# 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:** 17

<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 17, 2021, 9:26am UTC](https://discourse.ubuntubudgie.org/t/lockscreen-not-working-after-update-to-21-10/5394/17 "2021-10-17T09:26:14Z")

</div>

So this is what I came up with:

```auto
#!/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)._
