I found out that clicking for long enough on the top of where the taskbar is, will show it and let you escape chromium. Next we need to make the file executable, enter this into the console. One more edit note, if you're using kiosk mode with chromium you might want to disable this two lines in ~/.config/lxsession/LXDE-pi/autostart -profile -desktop -profile LXDE-pi Then add your rdesktop command to the file. One more thing that can be useful and easily added is to have it play a video file at random from a folder on each screensaver start. The CPU usage is staying very low (about 3% per core while playing), compared to mplayer, it's a day and night difference. I have been testing it now for 4 hours and my Pi is happily staying at <60☌ with no cooling, whilst playing loop trailers. I'm using Raspbian from NOOBS so I edited this file: vi ~/.config/lxsession/LXDE-pi/autostartīy adding this line to the end: whole autostart file for my kiosk looks like this: -profile -desktop -profile s s -i 's/"exited_cleanly": false/"exited_cleanly": true/' ~/.config/chromium -noerrdialogs -kiosk -kiosk-printing -incognito unbelievably great on my Pi 3, the script is not taxing the CPU at all. This little script/daemon utilises xscreensaver-command -watch and looks for a change of state. If you never need the GUI desktop, you could use Rapbian Lite. usr/bin/xscreensaver-command -watch | process If you want the command line interface (CLI) at startup, you could set the Pi to not bring up the GUI desktop at all. UNBLANK*) killall omxplayer.bin # This will kill the omxplayer processīLANK*) omxplayer -loop -no-osd -no-keys /home/pi/Desktop/Video/Guardians.mp4 & # Don't forget the & on the end or it will never stops, just add your movie file path Set xscreensaver to blank and set the "Blank After" to time you want the screensaver to kick in.Ĭreate a small script and stuff it somewhere, /etc/ is as good a place as any touch /etc/video_screensaver.shĮdit the file and add the following #!/bin/bash Ok so there is virtually no info about how to successfully pair xscreensaver and omxplayer, so I took it as a challenge and came up with a workaround, that actually works.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |