2015-10-01, 21:07
File which works:
DISPLAY=:0
OUTPUT=`xrandr -q | sed '/ connected/!d;s/ .*//;q'`
xrandr --output $OUTPUT --set "Broadcast RGB" "Full"
xrandr --output $OUTPUT --set "Broadcast RGB" "Video 16:235 pass-through"
/usr/bin/kodi --standalone
File with problems:
DISPLAY=:0
OUTPUT=`xrandr -q | sed '/ connected/!d;s/ .*//;q'`
xrandr --output $OUTPUT --set "Broadcast RGB" "Full"
xrandr --output $OUTPUT --set "Broadcast RGB" "Video 16:235 pass-through"
xrandr --output $OUTPUT --off
sleep 1
xrandr --output $OUTPUT --auto
/usr/bin/kodi --standalone
But please remember:
1. Problematic file works - Kodi runs. Only display is black. And after running "xrandr --output $OUTPUT --auto" on terminal Kodi shows.
2. For some reason it doesn't work even if i run Kodi in the background ("/usr/bin/kodi --standalone &") and add "xrandr --output $OUTPUT --auto" as next line. Screen is still black. To show Kodi i need to run it from terminal (through ssh).
DISPLAY=:0
OUTPUT=`xrandr -q | sed '/ connected/!d;s/ .*//;q'`
xrandr --output $OUTPUT --set "Broadcast RGB" "Full"
xrandr --output $OUTPUT --set "Broadcast RGB" "Video 16:235 pass-through"
/usr/bin/kodi --standalone
File with problems:
DISPLAY=:0
OUTPUT=`xrandr -q | sed '/ connected/!d;s/ .*//;q'`
xrandr --output $OUTPUT --set "Broadcast RGB" "Full"
xrandr --output $OUTPUT --set "Broadcast RGB" "Video 16:235 pass-through"
xrandr --output $OUTPUT --off
sleep 1
xrandr --output $OUTPUT --auto
/usr/bin/kodi --standalone
But please remember:
1. Problematic file works - Kodi runs. Only display is black. And after running "xrandr --output $OUTPUT --auto" on terminal Kodi shows.
2. For some reason it doesn't work even if i run Kodi in the background ("/usr/bin/kodi --standalone &") and add "xrandr --output $OUTPUT --auto" as next line. Screen is still black. To show Kodi i need to run it from terminal (through ssh).