OK. Gotta get this thing working so, i've made a custom.sh for this.
1 - Create the /recalbox/share/system/custom.sh script
2 - Enable executable bit with chmod +x /recalbox/share/system/custom.sh
3 - vi /recalbox/share/system/custom.sh and paste the following contents on it:
#!/bin/bash
recallog "Custom.sh to handle cec-client tv standby"
case "$1" in
stop)
recallog "Turn off the TV"
echo standby 0 | cec-client -s -d 1 &
;;
*)
recallog "Do nothing. custom.sh will only execute during shutdown"
esac
exit $?
@Bkg2k , @paradadf . What do you think of a specific daemon to deal with this and read a recalbox.conf parameter(something like global.video.autooff=1) ? I think i could do it 🙂