Recalbox Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • recalbox.com
    • Gitlab repository
    • Documentation
    • Discord

    Kodi + fbcp

    Recalbox General
    kodi fbcp
    3
    15
    3172
    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.
    • Flavor
      Flavor @Flavor last edited by

      @flavor I was searching for some more info, and I found that I could put tvservice in monitor mode.

      # tvservice -M
      Starting to monitor for HDMI events

      If I run any emulators, I won't get any output. I think this is because I have set global.videomode=default

      When I run Kodi, I see this output.

      [I] HDMI in DVI mode

      That's when the LCD (fb1) stops responding.

      1 Reply Last reply Reply Quote 0
      • Substring
        Substring @Flavor last edited by

        @flavor i'm no kodi dev nor user ... I wouldn't know where to look for that in their massice source code.

        I don't remember if kodi is built with omx support, but that could be a lead to the issue.

        Regarding fbcp, i would also recommend you try the builtin kernel fbcp, but i have no idea how it works (it's not even compiled in our kernel tbh. But it's not that hard to do it)

        Former dev - Please reply with @substring so that i am notified when you answer me
        Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

        Flavor 1 Reply Last reply Reply Quote 0
        • Flavor
          Flavor @Substring last edited by

          @substring I get that. Thanks! I was actually thinking that it was something to do with Recalbox and how it starts Kodi, but the further we discuss and the more I search, I think I may need to ask the Kodi experts.

          If I can find anything more about Kodi, I will try to remember to report back here.

          I will look at the built-in kernel fbcp, too. I actually usually use a modified fbcp that does some other functions (something like overscan and status icons), but I really liked how Recalbox had the ability to just turn on fbcp in the config. There's also another guy that I'm in contact with that is making a fbcp that's specific to the LCD's chipset. That one is expected to be faster, and I hope that it can overcome this resolution issue.

          1 Reply Last reply Reply Quote 0
          • Flavor
            Flavor last edited by Flavor

            New data ( @substring 😞

            If fbcp is running while Kodi starts, it will choke and put the LCD in an unusable state. If you kill fbcp and start it a second time, it will still be unusable.

            BUT

            If you know that starting Kodi will fubar the LCD/fbcp, then you can gracefully exit fbcp, start Kodi, and then restart fbcp. This works.

            Now, how do I tell Kodi to start fbcp after Kodi is done with it's HDMI SetNativeResolution changes? To the user, it probably wouldn't even be noticeable.

            BTW, I have also posted at https://forum.kodi.tv/showthread.php?tid=329080&pid=2709135#pid2709135 which sparked this idea. I figured I'd also ask the same question here, since maybe it's something you would know how to implement (kill fbcp, start Kodi, restart fbcp).

            Substring 2 Replies Last reply Reply Quote 0
            • Substring
              Substring @Flavor last edited by

              @flavor i thought about a dirty trick ... Create a custom edid for your screen, that would just have the timings of your screen. Kind of complicated, but could be worth a try

              Former dev - Please reply with @substring so that i am notified when you answer me
              Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

              Flavor 1 Reply Last reply Reply Quote 0
              • Substring
                Substring @Flavor last edited by

                @flavor lucky you, popcornmix is one of raspberry's engineers he's thenone maintaining gpu and kernel ...

                So the trick with recalbox requires to modify the kodi generator of configgen. Problem is : it's monotask, dunno how i'd launch something after kodi ... May as well patch kodi to remive the resolution change as you seem to have found the code part

                Former dev - Please reply with @substring so that i am notified when you answer me
                Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                Flavor 1 Reply Last reply Reply Quote 0
                • Flavor
                  Flavor @Substring last edited by

                  @substring I could try it. The problem is that I think Kodi would still "change" the resolution. In their code it does a DispmanXDestroy (IIRC something like that) and then sets the new resolution, even of the new resolution is the same as the old.

                  1 Reply Last reply Reply Quote 0
                  • Flavor
                    Flavor @Substring last edited by

                    @substring Oh, yeah, nice! 🙂 It's good to get him (popcornmix) involved, then.

                    The big thing for me would be to publish the info so that other people could easily get Recalbox (and Kodi inside of it) running on their hardware. It kinda blows the idea out of the water if people would need to recompile Kodi. Setting some configs would be acceptable.

                    Substring 1 Reply Last reply Reply Quote 0
                    • Substring
                      Substring @Flavor last edited by

                      @flavor Recalbox is open source 😉 patch kodi, submit your patch and it's in

                      Former dev - Please reply with @substring so that i am notified when you answer me
                      Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                      Flavor 1 Reply Last reply Reply Quote 0
                      • Flavor
                        Flavor @Substring last edited by

                        @substring Would that also work for mk_arcade_joystick_rpi? I have opened another thread about that.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post

                        Want to support us ?

                        96
                        Online

                        99.6k
                        Users

                        28.1k
                        Topics

                        187.1k
                        Posts

                        Copyright © 2021 recalbox.com