I have a box running kodi in standalone mode with X11. My TV displays “no signal” if I leave it for too long, does anyone know how to stop this from happening?
I can still ssh into the box and use the remote app Kore so the system hasn’t suspended or anything like that.
Pressing up/down etc on the kore remote, which should change what is displayed on screen, doesn’t wake kodi up. However, I can wake it up if I tell Kodi to play a video.
Apparently you can put whatever you like in the identifier field and it’s not verified by X. So I changed to
That got rid of the error but it still wasn’t working.
Trying another method with xset:
I figured out I need to specify a display since I’m connecting with ssh:
This shows me that dpms was still on even after rebooting with the /etc/xorg.conf.d/10-monitor.conf file in place.
Anyway I ran the following commands:
The commands are explained here: https://wiki.archlinux.org/title/Display_Power_Management_Signaling
Now an xset query returns:
I also added the commands above to ~/.xinitrc so hopefully they will be run automatically every time
– edit:
So, although those xset commands work I have to run them every time, the commands in .xinitrc clearly aren’t being run.
I have a feeling this is because kodi is being started using xinit run from a systemd unit file so it isn’t reading /kodi/home/.xinitrc.
So the plan is to set the home environment variable in the unit file (like below) and see if that works. Will test when the box is free.