bubblegumpi
Posts: 39
Joined: Tue Sep 06, 2016 3:22 am

Editing the autostart file from bash command line with raspbian

Fri Aug 18, 2017 2:55 am

I have a dedicated pi that just has stock prices on a monitor mounted on my wall so I can see what my money is doing everytime I walk in the room. Thank you 35 dollar computers!!

But the screen saver is annoying and not really neccisary on an LED.

I'm a totally new to this and have found the following lines to be added into this file. I made my way into the directory but don't know how to pull up a text editor to change the autostart file. I remember there was an editor to use in bash. Is there an easier way to add just three lines or change them? Is this the correct way to turn off the screen saver? It seems like there isn't an option to turn it off in the gui side of things.


Disable Xsession from blanking
Additional info https://wiki.archlinux.org/index.php/Di ... _Signaling
Add these lines to /etc/xdg/lxsession/LXDE/autostart
@xset s noblank
@xset s off
@xset -dpms
New to Linux, Keep in mind I'm legally blind, so my questions may seem dumb. Yes, I did a search, that's why I'm here. Links to FAQ'a and youtube are a HUGE help.| MY OS: Pi 3B with Oct'16 Noobs Raspberrian, 16Gb SD drive, HDMI video, no extras

bubblegumpi
Posts: 39
Joined: Tue Sep 06, 2016 3:22 am

Re: Editing the autostart file from bash command line with raspbian

Fri Aug 18, 2017 3:07 am

So I found a thing called nano that I opened with the sudo command. I added the three lines but there was still a line that says:

@xscreensaver -no-splash

Can that be left in? What does it mean?
New to Linux, Keep in mind I'm legally blind, so my questions may seem dumb. Yes, I did a search, that's why I'm here. Links to FAQ'a and youtube are a HUGE help.| MY OS: Pi 3B with Oct'16 Noobs Raspberrian, 16Gb SD drive, HDMI video, no extras

klricks
Posts: 7154
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: Editing the autostart file from bash command line with raspbian

Fri Aug 18, 2017 3:21 am

bubblegumpi wrote:
Fri Aug 18, 2017 2:55 am
....Add these lines to /etc/xdg/lxsession/LXDE/autostart
@xset s noblank
@xset s off
@xset -dpms
Wrong path and file...
Try:

Code: Select all

sudo nano /home/pi/.config/lxsession/LXDE-pi/autostart
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.

klricks
Posts: 7154
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: Editing the autostart file from bash command line with raspbian

Fri Aug 18, 2017 4:38 am

bubblegumpi wrote:
Fri Aug 18, 2017 3:07 am
...
@xscreensaver -no-splash

Can that be left in? What does it mean?
That command will auto-start the xscreensaver program if it has been installed. If not installed it will do nothing.

The no-splash option prevents an annoying pop up at boot time.
You can 'comment out' the line with # or delete the line if you wish but there is no need to do so.

FYI - The xscreensaver package allows full GUI control over screen blanking such as changing time interval or to turn on/off (disable) blanking at will.
It will also of course allow the user to choose from dozens of typical screensaver graphics or just blanking etc.

Code: Select all

sudo apt-get update
sudo apt-get install xscreensaver
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.

bubblegumpi
Posts: 39
Joined: Tue Sep 06, 2016 3:22 am

Re: Editing the autostart file from bash command line with raspbian

Mon Sep 04, 2017 12:07 am

klricks wrote:
Fri Aug 18, 2017 3:21 am
bubblegumpi wrote:
Fri Aug 18, 2017 2:55 am
....Add these lines to /etc/xdg/lxsession/LXDE/autostart
@xset s noblank
@xset s off
@xset -dpms
Wrong path and file...
Try:

Code: Select all

sudo nano /home/pi/.config/lxsession/LXDE-pi/autostart
So I add the @xset s noblack etcetcetec

onto the bottom of the lines already written in there?
New to Linux, Keep in mind I'm legally blind, so my questions may seem dumb. Yes, I did a search, that's why I'm here. Links to FAQ'a and youtube are a HUGE help.| MY OS: Pi 3B with Oct'16 Noobs Raspberrian, 16Gb SD drive, HDMI video, no extras

klricks
Posts: 7154
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: Editing the autostart file from bash command line with raspbian

Mon Sep 04, 2017 12:22 am

bubblegumpi wrote:
Mon Sep 04, 2017 12:07 am
....
So I add the @xset s noblack etcetcetec
onto the bottom of the lines already written in there?
Yes
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.

Return to “General discussion”