Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server
(2015-12-07, 23:38)fritsch Wrote:
(2015-12-07, 23:36)JaccoH Wrote: @fritsch
I actually think your script isn't what we need Wink.

Code:
#!/bin/bash

OUTPUT=`xrandr -display :0 -q | sed '/ connected/!d;s/ .*//;q'`
xrandr -display :0 --output $OUTPUT --set "Broadcast RGB" "Full"

while true; do
    /usr/bin/kodi --standalone
    #break while-loop if exit was clean, otherwise restart kodi
    if [ $? -eq 0 ]; then
      break
    fi
done

#give exit code to systemd
exit $?

I assume systemd needs the exit-code?

Won't hurt. It was more of a manual hack - that way you can exit kodi - use openbox and when it would crash it would get restarted by openbox.

FWIW: I tested it. Works fine so far.
Reply


Messages In This Thread
RE: New Era: VAAPI with EGL interoperation - by JaccoH - 2015-12-07, 23:54
Live TV broken again? - by schamane - 2016-02-29, 19:56
Random crashes - by hal2100 - 2016-03-08, 22:03
Strange Behaviour - by MicTie - 2016-12-07, 10:46
Working lirc with mce remote - by fr1day - 2019-08-10, 17:36
Logout Mark Read Team Forum Stats Members Help
Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server18