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

    Boot to kodi.

    Scheduled Pinned Locked Moved Help and Support
    kodiautobootreboot
    13 Posts 3 Posters 10.9k 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.
    • SanoS
      Sano
      last edited by

      Did you read this page of the doc ?
      https://retropie.org.uk/docs/FAQ/#how-do-i-boot-to-the-desktop-or-kodi

      J 1 Reply Last reply Reply Quote 0
      • J
        josete2k @Sano
        last edited by

        @Sano yes yes... Thanks.

        My system is booting to kodi.

        But sometimes, it crashes and auto reboots... But it reboots to ES, not to Kodi.

        1 Reply Last reply Reply Quote 0
        • RascasR
          Rascas
          last edited by

          It doesn't reboot. The boot to Kodi option, boots to Kodi, and when you exit it, it starts Emulation Station. What is happening in your system is that Kodi for some unknown reason crashes and then starts ES, whithout rebooting. You have to give more info about your setup ( read the first post) and provide your Kodi log.

          1 Reply Last reply Reply Quote 1
          • SanoS
            Sano
            last edited by

            After some research, I found this strange.
            The autostart is called by the profile if the user is pi on tty1, and I don't see a reason to ignore the first line (kodi).
            2 questions :

            • is this really a reboot after crash ? : boot splashscreen, kernel booting, uptime, ...
            • is it possible that kodi silently crashes again after the reboot, normally returning to ES ?

            Sorry, I ask more question than I resolve :(

            1 Reply Last reply Reply Quote 0
            • RascasR
              Rascas
              last edited by

              Read my reply again, my english is not very good but I think is understandable ;)

              SanoS 1 Reply Last reply Reply Quote 0
              • SanoS
                Sano @Rascas
                last edited by

                @Rascas I was replying to the op, but you replied before me (I upvoted your post BTW)
                My questions were to verify the very same the point you mention :)

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

                  You're right.

                  Maybe it is not a reboot because there is not splash/loading screen (the one with raspberries) when kodi crashes... Only the ES loading screen.

                  It happens too in another raspberry pi with libreelec... But in this raspberry kodi boots again (of course, there is not any another OS to boot XD).

                  So, my question is... Is there any option to direct boot to kodi and ONLY launch ES from kodi's program option (like an addon) and not from exit?

                  Thanks in advance guys.

                  RascasR 1 Reply Last reply Reply Quote 0
                  • RascasR
                    Rascas @josete2k
                    last edited by Rascas

                    @josete2k I am not familiar with Libreelec but I bet that it also doesn't reboot when Kodi crashes, it just restarts Kodi, not the whole system.
                    You have two options, at least:

                    • Try to find why Kodi crashes, because it is not normal. It may crash in any system, speccially with problematic 3rd party addons. So my advice is to try to find why it crashes, if you don't know we may help if you provide you Kodi log.
                    • Edit /opt/retropie/configs/all/autostart.sh and change the first line:
                    kodi #auto
                    

                    to

                    kodi-standalone #auto
                    

                    With this, if Kodi crashes, it will be restarted, before ES starts. Just like Libre/OpenELEC. ES will only start, when there is a "clean Kodi exit".
                    The problem with this, and why it is not default in RetroPie is because, most of the times when you do "Exit" in Kodi on the Raspberry Pi, it isn't a "clean exit", and it restarts again, which becomes frustating if you want to go to Emulation Station.

                    @Sano I am sorry, I was on the phone, didn't notice it was another person replying.

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

                      Thanks, I'll try it tomorrow. When Kodi crashes is on start... but as you say it seems a restart, not a reboot.

                      As I said, I use the CEC option and many times I only have my remote TV control near...

                      The best way, so, should be an addon to "clean exit & lanuch ES"...

                      RascasR 1 Reply Last reply Reply Quote 0
                      • RascasR
                        Rascas @josete2k
                        last edited by Rascas

                        @josete2k No. There isn't an addon for a "clean exit and launch ES" because it is a internal Kodi problem, a very old one on the Pi at least. The best way is to identify which addon or whatever is causing your problem.

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

                          First time I got a crash was in a clean installation just editting the background options in confluence... strange isn't it?

                          Well I've changed the line in autostart.sh...

                          from

                          #kodi

                          to

                          #kodi-standalone

                          And installed this addon I made myself:

                          https://mega.nz/#!2EpRXYZR!fNpGj06JZVGv-frspfpCO0-h38RkKF5vDlq_jZdMI_4

                          I got the idea from

                          https://www.raspberrypi.org/forums/viewtopic.php?p=965712#p965712

                          RascasR 1 Reply Last reply Reply Quote 0
                          • RascasR
                            Rascas @josete2k
                            last edited by

                            @josete2k If Kodi crashes, with default settings, and doing simple things like that, your problem is likely a hardware one. Make sure you have a good SD card and a good power supply, preferebly a one piece one, whitout a separate usb cable.
                            Making a python script to kill/restart Kodi isn't going to do any better.

                            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.