Kodi 16 black screen
#46
(2016-11-29, 21:34)highcountry Wrote: bacsom

Edit the end of /usr/bin/kodi:

VT="$(sudo fgconsole)"

worked for me

Thank you, it worked for me too! :-)
Reply
#47
I created startkodi script in \usr\local\bin\

Code:
#!/bin/bash

# Check if kodi is already running
if pgrep "kodi.bin" > /dev/null
then
  #echo "Running"
  exit
else
  #echo "Not running"
  fbset_bin=`which fbset`
  xset_bin=`which xset`
  xrefresh_bin=`which xrefresh`
  if [ ! -z $fbset_bin ]; then
    DEPTH2=`$fbset_bin | head -3 | tail -1 | cut -d " " -f 10`
  fi
  kodi "$@"
  if [ ! -z $fbset_bin ]; then
    if [ "$DEPTH2" == "8" ]; then
      DEPTH1=16
    else
      DEPTH1=8
    fi
    $fbset_bin -depth $DEPTH1 > /dev/null 2>&1
    $fbset_bin -depth $DEPTH2 > /dev/null 2>&1
  fi
  if [ ! -z $xset_bin ] && [ ! -z $xrefresh_bin ]; then
    if [ -z $DISPLAY ]; then
      DISPLAY=":0"
    fi

    $xset_bin -display $DISPLAY -q > /dev/null 2>&1
      if [ "$?" == "0" ]; then
        $xrefresh_bin -display $DISPLAY > /dev/null 2>&1
      fi
  fi
  VT="$(fgconsole)"
  if [ "$VT" ]; then
    sudo chvt 7
    sudo chvt "$VT"
  fi
fi

and added this line:
Code:
@/usr/local/bin/startkodi
in \home\pi\.config\lxsession\LXDE-pi\autostart

Now blank screen is gone, and Kodi will start automatically on system boot. If I connect remotely on my Raspberry with XRDP I enter system GUI (desktop) and if i use VNC with dispmanx_vnc previously installed I enter Kodi GUI directly and this two remote things can work even together what is pretty cool.
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi 16 black screen0