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:
recallog "Custom.sh to handle cec-client tv standby"
case "$1" in
recallog "Turn off the TV"
echo standby 0 | cec-client -s -d 1 &
recallog "Do nothing. custom.sh will only execute during shutdown"
@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 :)
peut etre ajouter dans le config.txt : hdmi_ignore_cec_init Doesn't sent initial active source message. Avoids bringing (CEC enabled) TV out of standby and channel switch when rebooting. => hdmi_ignore_cec_init=1 hdmi_ignore_cec Pretends CEC is not supported at all by TV. No CEC functions will be supported. => hdmi_ignore_cec=1