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 into Emulationstation

    Scheduled Pinned Locked Moved Help and Support
    emulationstatiokodi
    13 Posts 4 Posters 4.7k 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.
    • BuZzB
      BuZz administrators
      last edited by

      Are you forcing a composite mode in /boot/config.txt ?

      if you ssh in and run tvservice -c "PAL 4:3" does that help ?

      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
      • cyberhomieC
        cyberhomie
        last edited by

        I am trying to force the SDTV using the following in the /boot/config.txt:

        sdtv_mode=0
        sdtv_aspect=1
        

        The tvservice -c "PAL 16:9" command makes the screen flicker, but nothing else. I have tried the other combinations as well NTSC, 4:3.

        1 Reply Last reply Reply Quote 0
        • BuZzB
          BuZz administrators
          last edited by

          maybe it's to do with PAL/NTSC switching - can you make sure your kodi mode and the mode in the config are the same (both pal or both ntsc)

          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

          cyberhomieC 1 Reply Last reply Reply Quote 0
          • cyberhomieC
            cyberhomie @BuZz
            last edited by

            @BuZz Where would I check that? I haven't specifically set anything.

            Curious, when Kodi "Quits", what commands are being run? I noticed somewhere that you could specify a resolution for Emulationstation. I am curious if maybe something is being passed then in a script or something, that isn't when it initially starts up or doesn't effect it when using HDMI.

            1 Reply Last reply Reply Quote 0
            • cyberhomieC
              cyberhomie
              last edited by

              Ok this might help. I am using the tvservice -s (Status) command check what its doing.

              When I initially boot into Emulationstation:

              pi@TruckPi:~ $ tvservice -s
              state 0x40001 [NTSC 4:3], 720x480 @ 60.00Hz, interlaced
              

              When I go to Kodi from Ports>Kodi:

              pi@TruckPi:~ $ tvservice -s
              state 0x40001 [NTSC 4:3], 720x480 @ 60.00Hz, interlaced
              

              When I quit Kodi to return to Emulationstation:

              pi@TruckPi:~ $ tvservice -s
              state 0x40005 [DVI CEA (1) RGB lim 4:3], 640x480 @ 60.00Hz, progressive
              

              So something must be telling it to use "[DVI CEA (1) RGB lim 4:3]" somewhere. Any idea where to look?

              1 Reply Last reply Reply Quote 0
              • cyberhomieC
                cyberhomie
                last edited by

                Anyone have any ideas where I might look for the command or script that Kodi runs to launch Emulationstation when it is Quit?

                1 Reply Last reply Reply Quote 0
                • BuZzB
                  BuZz administrators
                  last edited by BuZz

                  I think I have the answer.

                  The Kodi launch script calls sudo tvservice -p >/dev/null 2>&1 to switch the resolution back to "the preferred" mod, which I think it is getting wrong in your case. This could be argued that it is a firmware bug as the composite should be the preferred mode in your case. If you edit /usr/bin/kodi and remove this line (towards the end), it should solve it.

                  Just to check also, you don't have an hdmi cable plugged in at the same time or ?

                  @Rascas Perhaps this could be worked around, by not calling tvservice -p if for example the current mode is a PAL/NTSC mode ?

                  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

                  cyberhomieC 1 Reply Last reply Reply Quote 1
                  • BuZzB
                    BuZz administrators
                    last edited by

                    @cyberhomie instead of editing the file directly, you could copy it to /usr/local/bin/ and edit it there - which would take priority over the shipped script - you would need to manually keep it up to date as needed though until this is resolved in the Kodi launch script.

                    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

                    cyberhomieC 1 Reply Last reply Reply Quote 0
                    • cyberhomieC
                      cyberhomie @BuZz
                      last edited by

                      @BuZz I commented that line out and it works!

                      No, I don't have HDMI plugged in, nor using any forced HDMI argument in the config.txt.

                      1 Reply Last reply Reply Quote 0
                      • cyberhomieC
                        cyberhomie @BuZz
                        last edited by cyberhomie

                        @BuZz said in Exiting Kodi into Emulationstation:

                        @cyberhomie instead of editing the file directly, you could copy it to /usr/local/bin/ and edit it there - which would take priority over the shipped script - you would need to manually keep it up to date as needed though until this is resolved in the Kodi launch script.

                        @BuZz I tried initially doing a separate file, but didn't seem to have any effect. Maybe I needed to change it's permissions? Otherwise commenting the line out on the main file did work.

                        Thanks!

                        1 Reply Last reply Reply Quote 0
                        • J
                          JordiMayor
                          last edited by

                          This is not my case... System appears to be "looped" <green led on the raspberry is showing activity>, but the screen in KODI where exit option is displayed is showed on my TV.

                          Please, any suggestion will be very useful. My system do not return to emulationstation when I run KODI. What to do?

                          Thank you very much !!!

                          markyh444M 1 Reply Last reply Reply Quote 0
                          • markyh444M
                            markyh444 @JordiMayor
                            last edited by markyh444

                            @JordiMayor I'd recommend starting a new thread on the forum listing details on your setup in not rather than hijacking a solved thread from October.

                            Retropie in a NES - Pi 3 with Mausberry circuit shutdown switch wired to buttons and 8bitdo NesPro30 controller
                            Retropie in a Saturn Controller - Pi Zero, GPIO controls using DB9 driver
                            Retropie in a PSX - Pi3
                            https://markyh444.wordpress.com

                            1 Reply Last reply Reply Quote 0
                            • First post
                              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.