User avatar
expandables
Posts: 654
Joined: Fri Jun 27, 2014 7:34 pm
Location: Neverland with Michael Jackson

Black screen on exit xbmc/kodi

Fri Nov 07, 2014 7:06 pm

Hi good day! I don't know if it is a kodi bug but with xbmc 13.2 i don't get a black screen on exit i only get a black screen using kodi beta and the nightly builds. I am using xbmc on raspbian does anyone have the same problem and know how to fix it? Thanks appreciate the help!
By thinking like an engineer you can create a raspberry pi.
Michael Jackson enthusiast.
I got the PI model B, B+ and PI 2 model B.
When will I get the A? I don't know.

User avatar
expandables
Posts: 654
Joined: Fri Jun 27, 2014 7:34 pm
Location: Neverland with Michael Jackson

Re: Black screen on exit xbmc/kodi

Sat Nov 08, 2014 1:06 am

Anybody? I am using Raspbmc builds
By thinking like an engineer you can create a raspberry pi.
Michael Jackson enthusiast.
I got the PI model B, B+ and PI 2 model B.
When will I get the A? I don't know.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5243
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Black screen on exit xbmc/kodi

Sat Nov 08, 2014 4:23 pm

If xbmc/kodi changed hdmi mode then the framebuffer will be lost, and you get a black screen on exit.

Switching VT brings it back (try ctrl-alt-F2 then ctrl-alt-F1).
You can also bring it back by changing a framebuffer parameter:

Code: Select all

fbset -depth 8 && fbset -depth 16 

User avatar
expandables
Posts: 654
Joined: Fri Jun 27, 2014 7:34 pm
Location: Neverland with Michael Jackson

Re: Black screen on exit xbmc/kodi

Sat Nov 08, 2014 7:07 pm

I put fbset -depth 8 && fbset -depth 16 in my kodi launch script and i still get a black screen on exit or where do i put "fbset -depth 8 && fbset -depth 16 "?

My launch script

#!/bin/bash
setterm -cursor off
mkdir -p ~/.xbmc
clear
/opt/xbmc-bcm/xbmc-bin/lib/xbmc/xbmc.bin --standalone &> ~/.xbmc/temp.log
setterm -cursor on
By thinking like an engineer you can create a raspberry pi.
Michael Jackson enthusiast.
I got the PI model B, B+ and PI 2 model B.
When will I get the A? I don't know.

DirkS
Posts: 9804
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Black screen on exit xbmc/kodi

Sat Nov 08, 2014 7:19 pm

expandables wrote:I put fbset -depth 8 && fbset -depth 16 in my kodi launch script and i still get a black screen on exit or where do i put "fbset -depth 8 && fbset -depth 16 "?
I would say after you exit xbmc

User avatar
expandables
Posts: 654
Joined: Fri Jun 27, 2014 7:34 pm
Location: Neverland with Michael Jackson

Re: Black screen on exit xbmc/kodi

Sat Nov 08, 2014 7:37 pm

DirkS wrote:
expandables wrote:I put fbset -depth 8 && fbset -depth 16 in my kodi launch script and i still get a black screen on exit or where do i put "fbset -depth 8 && fbset -depth 16 "?
I would say after you exit xbmc
So should i put exit 0 and then fbset -depth 8 && fbset -depth 16?
By thinking like an engineer you can create a raspberry pi.
Michael Jackson enthusiast.
I got the PI model B, B+ and PI 2 model B.
When will I get the A? I don't know.

User avatar
expandables
Posts: 654
Joined: Fri Jun 27, 2014 7:34 pm
Location: Neverland with Michael Jackson

Re: Black screen on exit xbmc/kodi

Sat Nov 08, 2014 8:05 pm

i put fbset at the end i still get black screen and i ran this command

Code: Select all

ps aux | grep xbmc
and i get this

Code: Select all

pi        2518 52.5 26.6 206284 67392 tty1     Sl+  14:59   1:50 /opt/xbmc-bcm/x                                                                                        bmc-bin/lib/kodi/kodi.bin --standalone
pi        2601  0.0  0.2   2020   632 pts/0    S+   15:03   0:00 grep --color=au                                                                                        to xbmc
By thinking like an engineer you can create a raspberry pi.
Michael Jackson enthusiast.
I got the PI model B, B+ and PI 2 model B.
When will I get the A? I don't know.

User avatar
expandables
Posts: 654
Joined: Fri Jun 27, 2014 7:34 pm
Location: Neverland with Michael Jackson

Re: Black screen on exit xbmc/kodi

Sat Nov 08, 2014 10:53 pm

Have been trying for hours :shock: :o :( :cry: :?
By thinking like an engineer you can create a raspberry pi.
Michael Jackson enthusiast.
I got the PI model B, B+ and PI 2 model B.
When will I get the A? I don't know.

DirkS
Posts: 9804
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Black screen on exit xbmc/kodi

Sat Nov 08, 2014 11:20 pm

expandables wrote:
DirkS wrote:
expandables wrote:I put fbset -depth 8 && fbset -depth 16 in my kodi launch script and i still get a black screen on exit or where do i put "fbset -depth 8 && fbset -depth 16 "?
I would say after you exit xbmc
So should i put exit 0 and then fbset -depth 8 && fbset -depth 16?
If you put it after exit 0 the script will exit before the code is run.

BTW: what version are you actually having problems with? Is that a beta?

Gr.
Dirk.

User avatar
expandables
Posts: 654
Joined: Fri Jun 27, 2014 7:34 pm
Location: Neverland with Michael Jackson

Re: Black screen on exit xbmc/kodi

Sat Nov 08, 2014 11:47 pm

I am using kodi nightly builds every version has this error except official xbmc gotham. I am using these builds from here

Code: Select all

http://forum.kodi.tv/showthread.php?tid=176043
Any help would be appreciated!
By thinking like an engineer you can create a raspberry pi.
Michael Jackson enthusiast.
I got the PI model B, B+ and PI 2 model B.
When will I get the A? I don't know.

DirkS
Posts: 9804
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Black screen on exit xbmc/kodi

Sat Nov 08, 2014 11:56 pm

expandables wrote:I am using kodi nightly builds every version has this error except official xbmc gotham. I am using these builds from here

Code: Select all

http://forum.kodi.tv/showthread.php?tid=176043
Any help would be appreciated!
AIUI you're using beta builds meant for use in Raspbmc. Raspbmc is not the same as Raspbian.
Not sure that this is the best forum to get this problem solved...

Gr.
Dirk.

WillACC
Posts: 1
Joined: Thu Feb 09, 2017 8:43 pm

Re: Black screen on exit xbmc/kodi

Thu Feb 09, 2017 8:56 pm

Hi,

I have been fiddling with this for a couple of hours, and instead of all the auto run code etc I just tried to solve the problem from the permissions side of things to keep it a bit simpler..
So in the command line i went to /usr/share/applications then found kodi.desktop & edited it at the top of the file in nano, changing 'Exec=kodi' to 'Exec=sudo kodi -standalone':

Code: Select all

cd /usr/share/applications
sudo su
nano kodi.desktop
Then about 4 lines down, change 'Exec=kodi' to:

Code: Select all

Exec=sudo kodi -standalone
Then you'll need to ctrl+o to save, hit enter, then ctrl+x to exit and your done!
This seems to work for me, I no longer get a black screen on exit. Although I'm not sure how universal this fix is for specific setups etc.

Hope it helps,

Will.

gkreidl
Posts: 5916
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Black screen on exit xbmc/kodi

Fri Feb 10, 2017 5:58 am

You shouldn't run kodi as root!
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

Return to “Beginners”