Official Raspberry 7″ Touchscreen goes black with Kodi on Raspbian

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!