• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
RetroPie forum home
  • Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

Exiting Kodi to EmulationStation gives black screen

Scheduled Pinned Locked Moved Help and Support
kodikodi 16.1 xin-m
16 Posts 4 Posters 6.1k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D
    devotee
    last edited by 29 Dec 2016, 19:58

    I have a Raspberry Pi 3 with RetroPie 4.1. I installed Kodi (16.1) into EmulationStation and set it up to boot right into it. This works great however, if I try to exit Kodi I just get a black screen and nothing happens (it should go to EmulationStation right?).

    Then I have to ssh in and do a reboot to get back.

    I've googled around and I see that I'm far from the only person with this issue, however the scripts I found and tried didn't work for me. Some suggest running kodi as standalone, I guess that means not running it through EmulationStation - however that would require me to use the console to change between the two and since I don't have a keyboard attached and just want to stuff away my PI so that's not a solution for me.

    Have anyone encountered this issue and/or have any input to give regarding how to fix this?

    C B 2 Replies Last reply 29 Dec 2016, 20:05 Reply Quote 0
    • C
      columboscoat Banned @devotee
      last edited by 29 Dec 2016, 20:05

      @devotee Update the RetroPie Setup script. Ver 4.1.8 is the latest. Reboot and try again. Changes made to Raspbian (the underlying OS) changed certain permissions. Try that first. If it doesn't work I can offer other solution but that should work.

      1 Reply Last reply Reply Quote 0
      • B
        BuZz administrators @devotee
        last edited by BuZz 29 Dec 2016, 20:06

        @devotee known issue due to Kodi 16 wrapper script / tvservice timing - you can add this fbset line to the top of /opt/retropie/configs/all/autostart.sh

        fbset -depth 8 && fbset -depth 32
        emulationstation #auto

        To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

        1 Reply Last reply Reply Quote 0
        • B
          BuZz administrators
          last edited by BuZz 29 Dec 2016, 20:06

          aah you are launching Kodi from ES - that fix is when launching Kodi before ES. I'll give another.

          To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

          1 Reply Last reply Reply Quote 0
          • B
            BuZz administrators
            last edited by BuZz 29 Dec 2016, 20:09

            add sleep 1; fbset -depth 8; fbset -depth 32 to the end of /usr/bin/kodi before the exit or you could try Kodi 17 rc1 which I believe has the wrapper script sorted now

            https://retropie.org.uk/forum/topic/6308/testing-kodi-17-release-candidate-1-available-for-retropie

            To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

            R 1 Reply Last reply 29 Dec 2016, 23:09 Reply Quote 0
            • R
              Rascas @BuZz
              last edited by Rascas 29 Dec 2016, 23:09

              @BuZz yes, it is included in the new kodi and I removed the tvservice since I saw it is now included in runcommand.

              @devotee take a look at Kodi 17 RC1, it is very close to final, it might be the last testing version also, it seems to be pretty stable already ;)

              C B 2 Replies Last reply 29 Dec 2016, 23:45 Reply Quote 0
              • C
                columboscoat Banned @Rascas
                last edited by 29 Dec 2016, 23:45

                @Rascas Is Kodi 17 RC 1 stable enough? It seems like Krypton is taking forever for a stable release. Much more so than Jarvis (I appreciate there are fundamental changes in 17, but...) I love Kodi, perhaps the whole thing is toxic now...

                R 1 Reply Last reply 29 Dec 2016, 23:59 Reply Quote 0
                • R
                  Rascas @columboscoat
                  last edited by Rascas 29 Dec 2016, 23:59

                  @columboscoat I think yes. Like I said ( check the release annoucement also) final stable version is very close. I am already using it in all my devices ;) ( I have to because de database version for mysql syncronization)

                  1 Reply Last reply Reply Quote 0
                  • C
                    columboscoat Banned
                    last edited by 30 Dec 2016, 00:03

                    Hmm, I'm genuinely asking. I wamt to upgrade. Will it fark my whole shit up? Been ruuning 2 Pi's stable for a while. Lessons have been learned...

                    R 1 Reply Last reply 30 Dec 2016, 00:10 Reply Quote 0
                    • R
                      Rascas @columboscoat
                      last edited by 30 Dec 2016, 00:10

                      @columboscoat Read the post about it here. I recommend to make a backup always in this cases.

                      1 Reply Last reply Reply Quote 0
                      • C
                        columboscoat Banned
                        last edited by 30 Dec 2016, 00:16

                        Well, you should always back up. I'm asking for my errrr, really lazy friend.... Kodi is a breeze to set up. I was just asking if there are any obvious bugs in RC1. I stopped following progress on 17 cos it looked like an actual release was never gonna happen...

                        1 Reply Last reply Reply Quote 0
                        • B
                          BuZz administrators @Rascas
                          last edited by 5 Jan 2017, 22:23

                          @Rascas said in Exiting Kodi to EmulationStation gives black screen:

                          @BuZz yes, it is included in the new kodi and I removed the tvservice since I saw it is now included in runcommand.

                          just wanted to confirm this - you don't reset mode on exit anymore or ? I had assumed you would use the code we discussed before for restoring the mode/framebuffer (if Kodi uses a different mode from the boot mode).

                          tvservice is only used in runcommand if the screenmode is changed with runcommand - and when launching Kodi before ES runcommand is not used.

                          To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                          R 1 Reply Last reply 5 Jan 2017, 22:51 Reply Quote 0
                          • R
                            Rascas @BuZz
                            last edited by Rascas 1 May 2017, 22:53 5 Jan 2017, 22:51

                            @BuZz I added the fbset save and restore depth, and removed the chvt lines, since in your tests and mine, it seems that chvt isn't needed anymore with fbset. And removed the sudo tvservice -p >/dev/null 2>&1because of runcommand but I didn't remembered that RetroPie has now an option to boot directly to Kodi, and on exit to open ES.
                            I can put it back again on kodi launch script, but it would be nice if this could be implemented in the Kodi -> ES launch (I didn't saw how you do that yet) instead, because now the Kodi launch script doesn't depend on sudo on RetroPie and Raspbian.

                            B 1 Reply Last reply 5 Jan 2017, 22:54 Reply Quote 0
                            • B
                              BuZz administrators @Rascas
                              last edited by BuZz 1 May 2017, 22:54 5 Jan 2017, 22:54

                              @Rascas You don't need sudo to run tvservice. But rather than tvervice -p you could use the code I posted in the other thread, which correctly saves/restores the screenmode (and works on composite).

                              To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                              R 1 Reply Last reply 5 Jan 2017, 23:28 Reply Quote 0
                              • R
                                Rascas @BuZz
                                last edited by 5 Jan 2017, 23:28

                                @BuZz Oh nice! Another thing I forgot :P
                                Is it ok ?
                                https://github.com/nsenica/xbmc/commit/38f4856082fbba21128941144edff844c916fe09

                                Will be on the next Kodi build.

                                B 1 Reply Last reply 6 Jan 2017, 00:16 Reply Quote 1
                                • B
                                  BuZz administrators @Rascas
                                  last edited by 6 Jan 2017, 00:16

                                  @Rascas from a quick look it looks good - thanks! :)

                                  To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                                  1 Reply Last reply Reply Quote 0
                                  16 out of 16
                                  • First post
                                    16/16
                                    Last post

                                  Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                                  Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.

                                    This community forum collects and processes your personal information.
                                    consent.not_received