Type this in text editor then save in Documents as Kodi
#!/bin/bash
kodi
if [ "$?" = "0" ]; then
killall kodi
fbset -depth 8 && fbset -depth 16
xrefresh
fi
In Terminal type
cd Documents/
chmod +x kodi
Copy the file Kodi to the desktop and click and select Execute.Works on Jessie RPi 2&3