Homepage › Forums › RetroPie Project › Everything else related to the RetroPie Project › Exiting Kodi to Emulationstation
- This topic has 37 replies, 14 voices, and was last updated 9 years, 1 month ago by test.
-
AuthorPosts
-
04/06/2015 at 12:44 #93959ceuseParticipant
Hey Guys,
I think/know that this Problem occures to quite a few people : After you exit Kodi you come to a blackscreen
I used the “normal” Script to start kodi via Emulationstation:
#!/bin/bash kodi-standalone
After some Googleing a found the following script which should solve the Issue.
Sadly doesnt work and im wondering if anyone can help me out / figure out what (i added the Emulationstation part (last 2 lines) myself but im far too bad in Linux / Python to figure out where i go wrong.LOG_FILE=$HOME/.kodi/temp/kodi.log rm $LOG_FILE 2> /dev/null /usr/lib/kodi/kodi.bin --standalone & while [[ ! -f $LOG_FILE ]] ; do sleep 1s done while read line ; do if [[ ${line} =~ "application stopped" ]] ; then echo "Killing kodi" break fi done < <(tail --pid=$$ -f -n0 $LOG_FILE) killall kodi.bin fbset -depth 8 && fbset -depth 16 killall emulationstation /opt/retropie/supplementary/emulationstation/emulationstation
Anybody can help me out? i think alot of Ppl would love a working script for this.
04/07/2015 at 01:22 #94042davejacaParticipantHi Ceuse,
On RetroPie 2.6 and 3.0, if you select exit from the shutdown menu it automatically returns to EmulationStation. I have heard of a few people having the black screen issue but when they exit this way it works fine.
How do you usually exit Kodi?
04/07/2015 at 14:03 #94077pokeparadoxParticipantI’m not sure what to say apart from that I also have this problem.
I have to shut down the pi every time I exit Kodi as it just locks on a black screen instead of going back to ES.
04/07/2015 at 15:51 #94089ceuseParticipantAlso it happens no matter if its exit or shut down from the kodi menue.
It only occures after a longer period of time though. as far as i read its because emulationstation enters sleep mode and wont react after kodi is quit.sooo nobody with a bit of python experience ? :-(
04/07/2015 at 15:59 #94090tankParticipanti thought it’s not about retropie/emulationstation but about raspbmc… i think there’s an issue with kodi in raspbmc… !? hopefully this will get fixed soon. there seems to be a lot of confusion about this topic as well ;)
04/07/2015 at 16:32 #94097ceuseParticipant[quote=94090]i thought it’s not about retropie/emulationstation but about raspbmc… i think there’s an issue with kodi in raspbmc… !? hopefully this will get fixed soon. there seems to be a lot of confusion about this topic as well [/quote]
I Think you mean Raspbian ;-)
And thats the context where i found the script above that im unable to get to work :-( but it seems like a easy fix if i just would know how to get emulationstation killed and restarted. It wont fix the source problem but it would be a great workaround i think04/07/2015 at 20:13 #94111kmhamelParticipant[quote=93959]Hey Guys,
I think/know that this Problem occures to quite a few people : After you exit Kodi you come to a blackscreen
I used the “normal” Script to start kodi via Emulationstation:
#!/bin/bash kodi-standalone
After some Googleing a found the following script which should solve the Issue.
Sadly doesnt work and im wondering if anyone can help me out / figure out what (i added the Emulationstation part (last 2 lines) myself but im far too bad in Linux / Python to figure out where i go wrong.LOG_FILE=$HOME/.kodi/temp/kodi.log rm $LOG_FILE 2> /dev/null /usr/lib/kodi/kodi.bin --standalone & while [[ ! -f $LOG_FILE ]] ; do sleep 1s done while read line ; do if [[ ${line} =~ "application stopped" ]] ; then echo "Killing kodi" break fi done < <(tail --pid=$$ -f -n0 $LOG_FILE) killall kodi.bin fbset -depth 8 && fbset -depth 16 killall emulationstation /opt/retropie/supplementary/emulationstation/emulationstation
Anybody can help me out? i think alot of Ppl would love a working script for this.
[/quote]
Yes I tried this one also, didn’t work for me either. I found this, but haven’t tried it yet.
http://www.raspberrypi.org/forums/viewtopic.php?f=63&t=100811&hilit=black+screen+kodi
Looks like we just have to wait until the fix is added to the repository.
04/07/2015 at 22:35 #94126ceuseParticipantwell it seems though it runs the same command in the end (although checks for other stuff). i checked the kodi.log file while a blackscreen occured and it read (at least on my test) “application stopped”. so i think this one should work.
also it basicly does the same thing in the end :
sudo killall /usr/lib/kodi/kodi.bin
i dont think Kodi itself is the issue but “Waking up” Emulationstation.
i gotta check in my free time again where the script fails. although i just think the problem occures in my own modification (killing emulationstation and starting it again)
04/10/2015 at 02:20 #94352dishinsParticipanti don’t get exactly the black screen but when i exit kodi the CEC turn my TV OFF, then i just have to turn ir on and its on the E.Station menu.
04/11/2015 at 14:58 #94531coderkindParticipantI get the black screen too. While FTP and SSH’d into my Pi at the same time the FTP client disconnects but it seems I’m still connected via SSH.
This is a problem as essentially it means without keyboard access you’re faced with having to pull the power supply to get the system operational again.
04/12/2015 at 18:13 #94665ceuseParticipantBumpedy..
no python guru arround? :-(
04/17/2015 at 17:04 #95264coderkindParticipantBump-shizzle.
Nobody? Does this work? https://www.petrockblock.com/forums/topic/kodi-tab-in-emulationstation/
04/17/2015 at 20:04 #95274ceuseParticipantno idea. the initial post is the normal script where the blackscreen can occure. and the other way around i didnt try out / dont want to since i want to boot into emulationstation first :-)
04/23/2015 at 15:28 #95972labelwhoreParticipantThere’s a fix for the black screen that seems to work. check it out. Replace your kodi.sh script with this. It looks really similar to what was pasted above. I only poked around at this a little last night but it seems to be working ok on my end.
06/01/2015 at 01:58 #98848herbfargusMemberJust in case anyone else is interested, I added a patch to the source code that fixes the black screen issue (assuming that you are booting into emulationstation). I’ve tested it and it no longer freezes on a black screen upon exit or shutdown of Kodi.
You can either update your setup script and reinstall kodi or modify the kodi.sh file in roms/ports/ to look like this:
#!/bin/bash /opt/retropie/supplementary/runcommand/runcommand.sh 0 "kodi-standalone" "kodi"
06/01/2015 at 03:28 #98849OmnijaParticipantNice, so many new additions have been fixed and added this weekend.
06/01/2015 at 11:12 #98856pattaboyParticipant[quote=98849]Nice, so many new additions have been fixed and added this weekend.
[/quote]
in a new update?
06/01/2015 at 16:55 #98866tankParticipant[quote=98849]Nice, so many new additions have been fixed and added this weekend.
[/quote]
what… just one line should fix it? funny, how there are ~5 different very long bash-scripts that DO NOT work…
i hope this really fixes it for me too, then i wouldn’t need to change to kodi 15 beta 2, which should work also.edit: yep, doesn’t work… the same. after starting a video and then closing kodi – blackscreen!
06/03/2015 at 10:35 #98944meatParticipantIt seemed to fix the problem for quick use of kodi. (open,close)
This blank screen still happens after longer use e.g. movie, youtube.
For me anyway it completely locks up the pi with the only way to restart it SSH.edit: Is there a way via keyboard hotkey to force it out of blank screen to restart it safely?
06/03/2015 at 15:07 #98955herbfargusMemberAh… Perhaps I spoke too soon on the matter and should have tested it more… I’ll keep looking into it and post the real solution when I come up with it. What a bother, sorry for instilling false hope.
06/03/2015 at 15:45 #98959OmnijaParticipant[quote=95972]
#!/bin/bashLOG_FILE=$HOME/.kodi/temp/kodi.log
rm $LOG_FILE 2> /dev/null
/usr/lib/kodi/kodi.bin –standalone &
while [[ ! -f $LOG_FILE ]] ; do
sleep 1s
donewhile read line ; do
if [[ ${line} =~ “application stopped” ]] ; then
echo “Killing kodi”
break
fi
done < <(tail –pid=$$ -f -n0 $LOG_FILE)killall kodi.bin
fbset -depth 8 && fbset -depth 16
[/quote]I’ve been using this one for quite some time now, and it seems to help a lot.
06/03/2015 at 16:22 #98962herbfargusMemberyeah, I’ve tested that too but the dev’s want something more concise in the source code… Ideally I’d like to have this be patched upstream so people don’t have to modify configs themselves.
06/03/2015 at 17:16 #98965OmnijaParticipantAt least temporarily until a better method works.
06/04/2015 at 07:15 #99046meatParticipantYeah I can also confirm that labelwhore’s method works. No worries Herb appreciate the hard work!
06/04/2015 at 09:50 #99055tankParticipantwell, with kodi 15 the bug is fixed anyways… i’ll just wait for the stable release.
maybe you can add an option in the script to install the experimental experimental kodi 15 beta (actually its beta 2 already) instead of 14.2 ;)06/04/2015 at 15:48 #99059herbfargusMemberYeah I’ve looked at that as well- its definitely worth looking into. Some of the addons have issues with the latest beta but all betas have their bugs.
06/04/2015 at 18:05 #99067dishinsParticipantMaybe this is a bit off topic but how can i update my kodi build to the 15x beta? i installed it within the Retropie Script.
06/04/2015 at 18:49 #99069herbfargusMemberThis is a post on compiling the latest kodi:
https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=109088-
it may have to be adapted somewhat for retropie and being beta you may run into more issues than just a black screen (broken addons, etc). I’d like to test it myself as well once I’ve got some free time.
(Note this may only work for a Raspberry Pi 2 Model B.)
06/05/2015 at 04:55 #99100herbfargusMemberFor anyone who is interested- if you have a raspberry pi 2, these are the steps I followed to install Kodi 15
Uninstall current Kodi:
sudo apt-get remove kodi kodi.bin
Install Kodi 15
wget http://steinerdatenbank.de/software/kodi-15.tar.gz tar -xzf kodi-15.tar.gz cd kodi-15 sudo ./install
Replace contents of roms/ports/kodi.sh with:
#!/bin/bash startkodi
There is no black screen issue with this build (i made sure to test it long enough this time) Some of my addons didn’t work but I think it will just be a matter of time before those are fixed.
06/05/2015 at 06:16 #99102dishinsParticipanti can confirm this work, goodbye black screen! :)
06/05/2015 at 09:10 #99106tankParticipantoh nice! i’m gonna try it now… people keep saying the thing about the addons only – so it seems to be quite stable otherwise.
thank you for posting the way you did it.you don’t even have to test it “a long time”. just start kodi, start a video and exit kodi. if it works, it works (i think)
06/05/2015 at 12:20 #99110pattaboyParticipantI have managed to update Kodi to the new Isengard but whenever I quit to emulationstation there is no black screen which is a good thing but emulationstation will have small window in the left corner instead of full screen.
Any fixes for that?06/05/2015 at 14:52 #99112OmnijaParticipantDoes installing kodi 15 overwrite the old kodi or do you need to uninstall 14 then install 15?
06/05/2015 at 15:34 #99113herbfargusMemberI didn’t have that issue, but you could try changing kodi.sh to
#!/bin/bash /opt/retropie/supplementary/runcommand/runcommand.sh 0 "startkodi" "kodi"
And see if that makes any difference.
I think you have to uninstall kodi 14 first (at least according to the post I used to install it- but they were saying to make sure you install kodi 14 first so you have the right dependencies and then you uninstall it before you install kodi 15.) You could try it without uninstalling it and see if it works, but I uninstalled 14 first when I installed 15.
06/05/2015 at 17:34 #99121OmnijaParticipant@herbfargus what would be the best method of removing/uninstalling kodi
sudo apt-get --purge remove kodi
orsudo apt-get remove kodi
Also whats the benefits and disadvantages of remove and autoremove and purge?
-
AuthorPosts
- The forum ‘Everything else related to the RetroPie Project’ is closed to new topics and replies.