Weird issue with Ba...
 
Notifications
Clear all

Weird issue with Batocera

3 Posts
2 Users
0 Likes
119 Views
Al Linke
(@alinke)
Estimable Member
Joined: 5 years ago
Posts: 140
Topic starter  

I have Batocera v37 running and have EmulationStation (ES) configured so that the screensaver is activated after a few minutes.  If I 'wake' the system within a few minutes after that by moving a joystick / pressing a button, I am taken back to the last screen, as expected.

However, if enough time passes and I merely power the monitor (TV) back on (threshold seems to be maybe at least 15 - 30 minutes?), the Pixelcade will show the "Bye" message, and then ES will kick back to the 'system-select' screen with the last chosen system shown (for me, it's usuallly "Favorites").  The Pixelcade ES script in /userdata/system/configs/emulationstation/scripts/quit is coded to show the "Bye" message, but the scenario doesn't involve a 'quit mode' (reboot / shutdown) and I don't know of any other script that displays "Bye".  I checked the ES logs, and es_launch_stderr.log and es_launch_stdout.log both show a "Modified" timestamp of when I powered on the TV, but both files are 0 bytes with no data.

The TV is connected to a smart power strip and only activates the cabinet LED lighting, so nothing about powering on the TV should cause a 'wake' or any other action on the Batocera computer (that I can determine).  I think this may be a bug to report to Batocera, but I wanted to check in the Forum to see if anyone has encountered this or may have a suggestion.

 

Here is a sample excerpt from the Pixelcade log showing what happens:

INFO [2023-08-09 14:39:02.996] Received request for arcade stream: Console: mame ROM: robotron
INFO [2023-08-09 14:39:03.002] Found GIF: /userdata/system/pixelcade/mame/robotron_03.gif
INFO [2023-08-09 14:39:03.002] Found PNG: /userdata/system/pixelcade/mame/robotron.png
INFO [2023-08-09 14:39:03.052] Sending Animation: (Animation: robotron_03.gif, Image: robotron.png)
INFO [2023-08-09 14:39:32.722] Received request for arcade stream: blank screen
INFO [2023-08-09 15:18:09.475] Received request for text: Text: "Bye"
INFO [2023-08-09 15:18:09.476] Displaying Text: Bye
INFO [2023-08-09 15:18:11.587] Received request for console stream Console: favorites
INFO [2023-08-09 15:18:11.588] Found PNG: /userdata/system/pixelcade/console/favorites.png
INFO [2023-08-09 15:18:11.588] Sending Image: (Image: favorites.png)
INFO [2023-08-09 15:18:11.591] Received request for console stream Console: favorites
INFO [2023-08-09 15:18:11.592] Found PNG: /userdata/system/pixelcade/console/favorites.png
INFO [2023-08-09 15:18:11.592] Sending Image: (Image: favorites.png)
INFO [2023-08-09 15:18:26.779] Received request for arcade stream: blank screen

 


   
Quote
Pixelcade Admin
(@pixelcade-admin)
Reputable Member Admin
Joined: 5 years ago
Posts: 330
 

that's a weird one, are things still working though after powering the TV back on? If so and the bye message is bothering you, then you could also just delete the script under /userdata/system/configs/emulationstation/scripts/quit 


   
ReplyQuote
Al Linke
(@alinke)
Estimable Member
Joined: 5 years ago
Posts: 140
Topic starter  

As far as I can tell, everything else is working OK. I don't necessarily want to delete the 'quit' script, as I like seeing it as a confirmatory thing when actually shutting down the PC (which I rarely do). My guess is that there may be some buggy code in Batocera, probably involving "pm-suspend" logic which was only added a few releases ago (which really shouldn't be invoked in my scenario). I think I may take some time to do a little more debugging, like modifying the 'quit' script to make sure that is what is being invoked, maybe downloading the latest Beta Batocera version and testing, etc. If anyone has other input or suggestions in the mean time, please post them here.

One other comment: I am actually interested in trying to code a script that achieves the 2nd-half of the above scenario: that is, reloading the last game or system image that was active if the system were to wake up (like, loading the "Favorites" marquee if that's where woken system returns to). I have a script to run when the screensaver is activated that blanks out the Pixelcade:

(curl -s "http://127.0.0.1:8080/arcade/stream/black/dummy" >> /dev/null 2>/dev/null &)

This is being fixed in the next upcoming release of Batocera ( https://github.com/batocera-linux/batocera.linux/issues/9181 ), and I am trying to code something in the "screeensaver-stopped" script that would figure out what the last image used was (game vs system) and re-load it. Any suggestions for that would also be welcome.


   
ReplyQuote