denavin
Posts: 80
Joined: Thu Nov 26, 2020 4:15 am

How do I disable XScreenSaver from Auto-Starting on Boot

Wed Apr 21, 2021 4:23 am

I am using XScreenSaver and would like to temporarily disable the Auto-start on Boot for it. Is there a way I can do this.... Without uninstalling it.

aBUGSworstnightmare
Posts: 2781
Joined: Tue Jun 30, 2015 1:35 pm

Re: How do I disable XScreenSaver from Auto-Starting on Boot

Wed Apr 21, 2021 5:18 am

denavin wrote:
Wed Apr 21, 2021 4:23 am
I am using XScreenSaver and would like to temporarily disable the Auto-start on Boot for it. Is there a way I can do this.... Without uninstalling it.
open it from the menu and simply disable it. Next time you need it reenable it. Sorry, don't remeber wher to find it so simply check your menu entries.

denavin
Posts: 80
Joined: Thu Nov 26, 2020 4:15 am

Re: How do I disable XScreenSaver from Auto-Starting on Boot

Wed Apr 21, 2021 5:44 am

That will kill the Daemon but when I reboot the RPi it will restart, it does not disable the screen saver. I need to temporarily kill the screen saver on Bootup so that it does not start at all. Then later re-enable it back to start on boot. Its not something that I will be able to do every time the RPi starts up. The RPi is being used on a job site and I will not be there to Kill the Daemon every time it boots. That is why I need to disable the Startup some how.

denavin
Posts: 80
Joined: Thu Nov 26, 2020 4:15 am

Re: How do I disable XScreenSaver from Auto-Starting on Boot

Wed Apr 21, 2021 6:00 am

It seems that the version of XScreenSaver for the RPi is 3 years old and does not have the option to disable the screen saver on demand.

The XScreenSaver web site only has the source code and not a compiled program of the most recent version. Does anybody know how and where I can download and install the newest version of XScreenSaver?

User avatar
kerry_s
Posts: 2026
Joined: Thu Jan 30, 2020 7:14 pm

Re: How do I disable XScreenSaver from Auto-Starting on Boot

Wed Apr 21, 2021 6:31 am

in the file manager go /etc/xdg/lxsession/lxde-pi/autostart
then open a terminal & sudo mousepad autostart.
put a # in front of the screen saver command.

you have to follow the path, cause i'm not on raspberry.

denavin
Posts: 80
Joined: Thu Nov 26, 2020 4:15 am

Re: How do I disable XScreenSaver from Auto-Starting on Boot

Wed Apr 21, 2021 7:07 am

kerry_s wrote:
Wed Apr 21, 2021 6:31 am
in the file manager go /etc/xdg/lxsession/lxde-pi/autostart
then open a terminal & sudo mousepad autostart.
put a # in front of the screen saver command.

you have to follow the path, cause i'm not on raspberry.
Thank You

User avatar
kerry_s
Posts: 2026
Joined: Thu Jan 30, 2020 7:14 pm

Re: How do I disable XScreenSaver from Auto-Starting on Boot

Wed Apr 21, 2021 7:46 am

Thank You
your welcome.
i would have just given you the mousepad command, but i'm messing around with a lite budgie build out with minimal apps.
Attachments
2021-04-20-214326_1280x720_scrot.png
2021-04-20-214326_1280x720_scrot.png (167.48 KiB) Viewed 94 times

GlowInTheDark
Posts: 1609
Joined: Sat Nov 09, 2019 12:14 pm

Re: How do I disable XScreenSaver from Auto-Starting on Boot

Wed Apr 21, 2021 8:04 am

I strongly discourage editing that "autostart" file. Every time I do, bad things happen. Among other things, you have to know that every version or two of Raspbian, they change the location of the file that you need to edit.

There are two, rather brute-force-but-effective ways to deal with this:

1) Put something in your startup files that does:

Code: Select all

killall xscreensaver
2) Have something in your startup files that periodically (basically, every 5 minutes) does:

Code: Select all

xscreensaver-command -deactivate
Option #2 is nice if there is just some particular process during which you do not want the screensaver to kick in.
GitD's list of things that are not ready for prime time:
1) IPv6
2) 64 bit OSes
3) USB 3
4) Bluetooth

Loves Linux; loves to dance.

Return to “Beginners”