Go to advanced search

by SimonDuffy
Fri Nov 27, 2020 1:13 pm
Forum: Python
Topic: GPIOZERO button control
Replies: 13
Views: 324

Re: GPIOZERO button control

... features may find the final code of interest: at /etc/xdg/lxsession/LXDE-pi/autostart @lxpanel --profile LXDE-pi @pcmanfm --desktop --profile LXDE-pi @sh /home/pi/startscript.sh ...
by kevilay2020
Thu Nov 26, 2020 9:22 pm
Forum: Beginners
Topic: VNC Viewer Issue
Replies: 3
Views: 141

VNC Viewer Issue

... During all of these scenarios the HMI never turns off. Here is my autostart script: nano /home/pi/ .config/lxsession/LXDE-pi/autostart @lxpanel --profile LXDE-pi @pcmanfm --desktop --profile LXDE-pi @xscreensaver ...
by lmarmisa
Thu Nov 26, 2020 2:52 pm
Forum: Networking and servers
Topic: Qbittorrent autostart
Replies: 4
Views: 194

Re: Qbittorrent autostart

... and I have added the line @qbittorrent to the file /etc/xdg/lxsession/LXDE-pi/autostart . The program qbittorrent starts properly. Using the RealVNC viewer , the GUI works ...
by Rud31
Thu Nov 26, 2020 12:03 pm
Forum: Networking and servers
Topic: Qbittorrent autostart
Replies: 4
Views: 194

Re: Qbittorrent autostart

... Failed to start qBittorrent service. Edit the file /etc/xdg/lxsession/LXDE-pi/autostart sudo nano /etc/xdg/lxsession/LXDE-pi/autostart and append a line like this: ... @qbittorrent ...
by djhnsn
Thu Nov 26, 2020 3:49 am
Forum: Troubleshooting
Topic: Launch python from rc.local
Replies: 9
Views: 239

Re: Launch python from rc.local

... to run your command before the Desktop is ready. Much easier to use autostart instead. /etc/xdg/lxsession/LXDE-pi/autostart I looked it up, and found a guide for autostart that had me make a .desktop ...
by klricks
Thu Nov 26, 2020 12:05 am
Forum: Troubleshooting
Topic: Launch python from rc.local
Replies: 9
Views: 239

Re: Launch python from rc.local

... to run your command before the Desktop is ready. Much easier to use autostart instead. /etc/xdg/lxsession/LXDE-pi/autostart I looked it up, and found a guide for autostart that had me make a .desktop ...
by djhnsn
Wed Nov 25, 2020 11:19 pm
Forum: Troubleshooting
Topic: Launch python from rc.local
Replies: 9
Views: 239

Re: Launch python from rc.local

... to run your command before the Desktop is ready. Much easier to use autostart instead. /etc/xdg/lxsession/LXDE-pi/autostart I looked it up, and found a guide for autostart that had me make a .desktop ...
by djhnsn
Wed Nov 25, 2020 10:46 pm
Forum: Troubleshooting
Topic: Launch python from rc.local
Replies: 9
Views: 239

Re: Launch python from rc.local

... to run your command before the Desktop is ready. Much easier to use autostart instead. /etc/xdg/lxsession/LXDE-pi/autostart Thanks! It has no gui, it just prints the ip address. It's one of those mini ...
by klricks
Wed Nov 25, 2020 10:22 pm
Forum: Troubleshooting
Topic: Launch python from rc.local
Replies: 9
Views: 239

Re: Launch python from rc.local

Desktop GUI apps won't easily work from rc.local as it attempts to run your command before the Desktop is ready.
Much easier to use autostart instead.

Code: Select all

/etc/xdg/lxsession/LXDE-pi/autostart
by JumpZero
Wed Nov 25, 2020 12:43 pm
Forum: Français
Topic: [Résolu] script au démarrage
Replies: 5
Views: 129

Re: [Résolu] script au démarrage

Très bien, ceci dit /etc/xdg/lxsession/LXDE-pi/autostart n'est sans doute pas le meilleur moyen d’exécuter une commande au boot. Cet autostart est celui ...
by SimonDuffy
Wed Nov 25, 2020 12:06 pm
Forum: Python
Topic: GPIOZERO button control
Replies: 13
Views: 324

GPIOZERO button control

... image. When the RPi boots it uses this script at /etc/xdg/lxsession/LXDE-pi/autostart to call a script in the pi folder: @lxpanel --profile LXDE-pi @pcmanfm --desktop ...
by HermannSW
Tue Nov 24, 2020 5:30 pm
Forum: Raspberry Pi OS
Topic: "time reboot"
Replies: 5
Views: 259

"time reboot"

... line here: pi@raspberrypi400:~ $ tail -2 /etc/xdg/lxsession/LXDE-pi/autostart @/sbin/rEboot @xscreensaver -no-splash pi@raspberrypi400:~ $ Clicking "Logout->Reboot", ...
by films_de_sf
Tue Nov 24, 2020 3:55 pm
Forum: Français
Topic: [Résolu] script au démarrage
Replies: 5
Views: 129

[Résolu] script au démarrage

... executer ce scipt au démarrage donc sudo nano /etc/xdg/lxsession/LXDE-pi/autostart "@lxpanel --profile LXDE-pi @pcmanfm --desktop --profile LXDE-pi @xscreensaver -no-splash ...
by klricks
Mon Nov 23, 2020 10:12 pm
Forum: Beginners
Topic: Setting display brightness via auto start
Replies: 1
Views: 83

Re: Setting display brightness via auto start

I'm trying to set display brightness via autostart with the rpi backlight module (https://github.com/linusg/rpi-backlight). In /etc/xdg/lxsession/LXDE-pi/autostart I have this line that doesn't work: @/bin/echo 10 > /sys/class/backlight/rpi_backlight/brightness ...
by biltemakorv
Mon Nov 23, 2020 4:58 pm
Forum: Beginners
Topic: Setting display brightness via auto start
Replies: 1
Views: 83

Setting display brightness via auto start

I'm trying to set display brightness via autostart with the rpi backlight module (https://github.com/linusg/rpi-backlight).

In /etc/xdg/lxsession/LXDE-pi/autostart I have this line that doesn't work:
@/bin/echo 10 > /sys/class/backlight/rpi_backlight/brightness
by Birdybird
Sun Nov 22, 2020 8:50 am
Forum: Troubleshooting
Topic: Automatic command after reboot: sudo service minidlna force-reload
Replies: 5
Views: 159

Automatic command after reboot: sudo service minidlna force-reload

... systemctl disable myscript.service sudo nano /etc/xdg/lxsession/LXDE-pi/autostart @sudo service minidlna force-reload Are there other options other options ?
by kerry_s
Sat Nov 21, 2020 12:30 pm
Forum: Networking and servers
Topic: Accessing Windows shares on Pi
Replies: 6
Views: 224

Re: Accessing Windows shares on Pi

... manager: just click on it for startup: sudo mousepad /etc/xdg/lxsession/LXDE-pi/autostart @/home/pi/bin/winshare.sh or if your lazy: echo "sudo mount //192.168.1.6/Users /home/pi/Windowshare ...
by SurferTim
Fri Nov 20, 2020 4:46 pm
Forum: Troubleshooting
Topic: Keep Autostart Terminal Open
Replies: 18
Views: 393

Re: Keep Autostart Terminal Open

... that what I tested it with. I ASSUMED (very bad) that the first autostart worked with the &. My autostart @lxpanel --profile LXDE-pi @pcmanfm --desktop --profile LXDE-pi @xscreensaver -no-splash @/home/pi/.config/lxsession/LXDE-pi/termstart.sh ...
by Botspot
Fri Nov 20, 2020 4:40 pm
Forum: Troubleshooting
Topic: Keep Autostart Terminal Open
Replies: 18
Views: 393

Re: Keep Autostart Terminal Open

... to stay open and run the next command. Try this. @lxpanel --profile LXDE-pi @pcmanfm --desktop --profile LXDE-pi @xscreensaver -no-splash @lxterminal ... -e ls & @lxterminal -e dir & @lxterminal -e htop Incorrect. The autostart file is not a bash script! All commands are executed at once in ...
by SurferTim
Fri Nov 20, 2020 4:32 pm
Forum: Troubleshooting
Topic: Keep Autostart Terminal Open
Replies: 18
Views: 393

Re: Keep Autostart Terminal Open

The ampersand (&) is missing. That allows the terminal to stay open and run the next command. Try this. @lxpanel --profile LXDE-pi @pcmanfm --desktop --profile LXDE-pi @xscreensaver -no-splash @lxterminal -e python3 home/pi/Documents/GarageControl/GarageOverhead/GarageOverhead.py & ...
by lmarmisa
Fri Nov 20, 2020 4:20 pm
Forum: Networking and servers
Topic: Qbittorrent autostart
Replies: 4
Views: 194

Re: Qbittorrent autostart

Edit the file /etc/xdg/lxsession/LXDE-pi/autostart

Code: Select all

sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
and append a line like this:

Code: Select all

...
@qbittorrent
by epoch1970
Fri Nov 20, 2020 1:25 pm
Forum: Graphics programming
Topic: Running GUI script on Boot fails, why?
Replies: 2
Views: 175

Re: Running GUI script on Boot fails, why?

... once the GUI environment is up and running, I would suggest using the LXDE autostart facility. Automated launch of tasks that require the graphical environment from anything ...
by petecal
Fri Nov 20, 2020 3:08 am
Forum: Troubleshooting
Topic: Keep Autostart Terminal Open
Replies: 18
Views: 393

Keep Autostart Terminal Open

... but here is what I am doing. On the RPI3 my file etc/xdg/lxsession/LXDE-pi/autostart/ contains: @lxpanel --profile LXDE-pi @pcmanfm --desktop --profile LXDE-pi @xscreensaver ...
by Jarusss
Thu Nov 19, 2020 3:05 pm
Forum: Troubleshooting
Topic: OMXPlayer flickering issue
Replies: 5
Views: 173

OMXPlayer flickering issue

... to No . I have installed compton I start the video by .config/lxsession/LXDE-pi/autostart @xset s off @xset s noblank @xset -dpms @unclutter -idle 1 -root @/usr/bin/compton ...
by grantalewis
Wed Nov 18, 2020 2:41 pm
Forum: Graphics, sound and multimedia
Topic: Randomizing playback of omxplayer videos in xterm
Replies: 0
Views: 97

Randomizing playback of omxplayer videos in xterm

... & omxplayer --loop --display=7 /home/pi/Videos/video1.mp4 Autostart runs my video_loop.py script on startup after the GUI loads. I edited /home/pi/.config/lxsession/LXDE-pi as follows: @lxterminal -e /home/pi/video_loop.py I'm barely a beginner, so ...

Go to advanced search