Turning the screen off (again) and screensaver problems.
-
Pi Model or other hardware: Pi5b 4GB ram, M.2 HAT with 128GB NVME drive (system is on this drive)
Power Supply used: Official 5.1V 5A brick
RetroPie Version Used:
Bookworm 6.6.62+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.62-1+rpt1 (2024-11-25) aarch64
RetroPie 4.8.9
Built From: On top of existing Fresh Official Bookworm OS (baked by Raspberry Pi Imager)
USB Devices connected: 4TB hard drive, 2 Joysticks, Mouse, Keyboard, Sound card, ArduinoTo cut the long story short, after a lot of problems with Pi4, new versions etc, etc, etc (I got it working on 4 even when "vcgencmd display_power 0" stopped working)
I fixed it by using "setterm -term linux -blank force -powersave powerdown" for turning screen OFF
"setterm -term linux -blank poke" for turning the screen back ON - worked perfectly on buster, old rpi4 (don't know what version it was, I think I updated it a couple months ago)This is working when emulationstation is not running
When emulationstation is running, the emulationstation turns the screen instantly back on (I see it flash black briefly)
This never happened before, is there something I can do to disable this behaviour?
-> Why? Two reasons:
-
Because in-built screen saver just turns the screen black and not off. Backlight is strong and very visible, monitor runs hot and uses a lot of electricity...
-
Because my joysticks have a bug and they send ghost invisible inputs of invisible buttons and they're waking up my pi even when the built in screensaver feature turns the monitor black. I'm using a bugfix in my "idle-screenoff.sh" so my script ignores the ghost inputs.
Bugfix was to install (jscal -s 7,1,0,127,127,4227201,4194176,1,0,127,127,4227201,4194176,1,0,-1,260,1,1,1,0,-1,260,1,1,1,0,-1,260,1,1,1,0,0,0,536870912,536870912,1,0,0,0,536870912,536870912 /dev/input/js0)
-
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.