Kodi Community Forum

Full Version: LibreElec/Kodi DSI Touch -> HDMI Workeround
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello Raspi Friends.. I'm new into this and try to get my official ttouch display OR my TV working since AND is not possible.

In serveral forums I read that this isn't possible and you only can use display_default_lcd=0 in /flash/config..
or u use something like PINN which would be a "bootloader" for LibreElec/Kodi

Would it be possible to write a script that listens for CEC changes then sets display_default_lcd=0 and reboot when HDMI is connected ?
Something like

if cec-client -s -d 1 >> "power status:on
mount -o remount,rw /flash/
cp /storage/Flaschconfig/on/config.txt /flash.config.txt
reboot
if cec-client -s -d 1 >> "power status:off/standby
mount -o remount,rw /flash/
cp /storage/Flaschconfig/off/config.txt /flash.config.txt
reboot

thanks for support !