Bug Official Raspberry 7" Touchscreen goes black with Kodi on Raspbian
#1
Im currently running an RPi-3 with kernel 4.9.5, Raspbian testing (stretch) and a kodi i built myself, but ive had the same problem on all Raspbian + Kodi configurations i have tried.

After playing music for a few minutes the 7inch screen goes dark, and it wont power on if i touch it or if i touch the keyboard. Any ssh connection is still active, music is still playing, and i can still control the kodi music remotely through http (from an iPad-app for example).

If i quit the kodi application from the kodi remote app the music stops, but the screen is still black.

However, if i now touch the screen or the keyboard, i am greeted with an xwindows login screen, and can re-login to my linux desktop.

I know other people has seen this problem ( https://www.raspberrypi.org/forums/viewt...3#p1109643 ) but I have yet to see any solution for it..

I am running in a box which has an ATX-style power supply, which means I want to install some extra stuff in my distribution, so LibreELEC etc are not good options for me. (I also want to use the RPi for other stuff than media..)

Otherwise: Thanks for an amazing media player app!

Any help on hot to fix or get around this problem would be greatly appreciated!
Reply
#2
I don't know how you are running Kodi on Raspbian testing Stretch, but Kodi on Raspbian stable Jessie (the packages from PiPplware/RetroPie) run just fine. More information and Kodi logs would help.
Reply
#3
I have been running Jessie with standard Kodi installation before (I still have cards with it), and have the same problem there.

Heres a log file:

https://paste.ubuntu.com/23935230/
Reply
#4
Heres another log https://paste.ubuntu.com/23935413/

Just to be clear: I had to wait for the problem to appear, quit from Kodi from my official iOS remote-app and restart Kodi from the Linux desktop to upload the log. I'm not sure if the log contains data from the previous run, or if it's only from the current Kodi-run (where the problem hasn't occured yet).
Reply
#5
Where did you get that Kodi build ? Most likely it is not optimized for the Raspberry Pi. If you are compiling it yourself, make sure you use popcornmix krypton_rbp_backports (Raspbian's Kodi isn't) because it has many Raspberry Pi specific patches not included in the original Kyrpton branch, not sure if the ones related to the touchscreen are upstream already.
And some additional udev rules, allowing some extra permissions, might also de needed for the touchscreen to work good.
Reply
#6
I was building it myself using this build command:

cmake ../xbmc-17.0-Krypton/project/cmake/ -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib -DCMAKE_PREFIX_PATH=/opt/vc -DCORE_SYSTEM_NAME=rbpi -DCPU=cortex-a7 -DWITH_ARCH=arm -DENABLE_OPENGL=OFF -DENABLE_X11=OFF -DENABLE_VAAPI=OFF -DENABLE_VDPAU=OFF

which I found in this thread

http://forum.kodi.tv/showthread.php?tid=305560
Reply
#7
I tried fetching that OpenELEC git, and checking out the krypton_rbp_backports branch. I agree that it does have some fixes that might help, however it doesn't build.

After building for a while (26%) I get this error:


In file included from /home/pi/OpenELEC/xbmc/xbmc/filesystem/BlurayDirectory.cpp:27:0:
/home/pi/OpenELEC/xbmc/lib/DllLibbluray.h:34:34: fatal error: libbluray/clpi_parse.h: No such file or directory
#include <libbluray/clpi_parse.h>

The clpi_parse.h file is simply missing

I tried both with default configuration (no extra switches) and the same switches mentioned above (that built nicely with the default Krypton branch).

Like I said Im running a raspberry pi 3.

/ Kenneth
Reply
#8
(2017-02-09, 17:10)endian Wrote: In file included from /home/pi/OpenELEC/xbmc/xbmc/filesystem/BlurayDirectory.cpp:27:0:
/home/pi/OpenELEC/xbmc/lib/DllLibbluray.h:34:34: fatal error: libbluray/clpi_parse.h: No such file or directory
#include <libbluray/clpi_parse.h>

You need the patch to libbluray:
https://github.com/popcornmix/xbmc/commi...a23ff48f4d
Reply
#9
Yes I noticed this patch already.

It is included on the branch I checked out in xbmc\tools\depends\target\libbluray\bump_to_Nevcairie_v0.9.2.patch, and it is referenced from the Makefile at xbmc\OpenELEC\xbmc\tools\depends\target\libbluray\Makefile but it doesnt apply, neither when running the make scripts or if I try to apply it manually.

Do you have any hint on special magic I can add to make it apply ok?
Reply
#10
I did some more tests today, and realized that the problem does not occur if I use the HDMI output (to my TV), but only when I use the official RPi 7" touchscreen display, so I assume it's related to the touchsreen driver.

I should add that this print is seen when the screen goes black:

Feb 12 16:56:58 raspberrypi kernel: [ 1413.181127] rpi-backlight rpi_backlight: Backlight change failed

..and that it happens almost exactly 10 minutes after Kodi is started.
Reply
#11
Now I found a solution:

On this page: https://www.raspberrypi.org/forums/viewt...66&t=18200

I found that the x-screensaver is disabled by inserting this line:

xserver-command=X -s 0 dpms

in /etc/lightdm/lightdm.conf
Reply

Logout Mark Read Team Forum Stats Members Help
Official Raspberry 7" Touchscreen goes black with Kodi on Raspbian0