Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4909

Troubleshooting • Issues with auto-refresh in kiosk mode Raspberry Pi 5

$
0
0
Hi everyone, fairly new here but was wondering if could help provide a solution to my issue.
I currently have a raspberry pi 5 that I have set to boot to chromium -> cloud excel page.

I followed some guides on here but could not find a solution
viewtopic.php?t=178206
viewtopic.php?p=1622221&hilit=auto+refr ... e#p1622221
https://fleetstack.io/blog/raspberry-pi-kiosk-tutorial

So here's where I'm currently at.
I have edited /etc/xdg/lxsession/LXDE-pi/autostart with the following:

Code:

sudo nano /etc/xdg/lxsession/LXDE-pi/autostart  

Code:

@xset s noblank@xset s off@xset -dpms@unclutter -idle 0.1 -root@chromium-browser --noerrdialogs --disable-infobars --kiosk http://web-based-excel-sheet.com
I created a script named refresh.sh and added the following:

Code:

#!/bin/bashDISPLAY=:0 xdotool key "ctrl+F5"export DISPLAY=:0while true; #create an infinite loopdo  xdotool key "ctrl+F5" &  sleep 60 #I wanted 1 minute intervals  done  
I then made them executable with the following:

Code:

sudo chmod 755 refresh.shsudo chmod +x refresh.sh

I then proceeded to edit crontab by using the following

Code:

crontab -e
I then placed the following inside of crontab:

Code:

* * * * * DISPLAY=:0 /home/pi/refresh.sh
Side Note: If my login is "admin" would the directory be /home/admin/refresh.sh? Either way I did try with both variations independently and they both did not work:

Code:

* * * * * DISPLAY=:0 /home/pi/refresh.sh* * * * * DISPLAY=:0 /home/admin/refresh.sh
In turn, the raspberry pi boots into Kiosk mode with no issues. However it just does not refresh and after a good amount of the time, it seems the webpage will idle and when I plug in a keyboard and press any key, it refresh auto-matically.

Another question is, does it have to be Ctrl + F5 or does any key work?

Statistics: Posted by jimrny — Fri Apr 12, 2024 2:43 pm



Viewing all articles
Browse latest Browse all 4909

Trending Articles