@substring Would that also work for mk_arcade_joystick_rpi? I have opened another thread about that.
Posts made by Flavor
-
RE: Kodi + fbcp
-
GPIO Controller Input (as keyboard or joystick)
I have a system that uses GPIO for input. I would like to map them to a joystick or keyboard.
---JOYSTICK---
To map the GPIOs as a joystick, I have used mk_arcade_joystick_rpi, but my GPIO aren't set up the same as what is shown in https://github.com/recalbox/recalbox-os/wiki/GPIO-controllers-(EN)
The 0.1.5 version of mk_arcade_joystick_rpi should allow a custom map, but that doesn't seem to be included in Recalbox. In fact, I would prefer to use the version at https://github.com/TheFlav/mk_arcade_joystick_rpi, but I would really prefer to not mess with adding a driver unless it's quite easy for others to add. Is there an easy way for a user to add a newer version of mk_arcade_joystick_rpi to their Recalbox?---KEYBOARD---
If not, the alternate plan could be to use GPIO as a keyboard. While some may think that this causes the same problem, it's actually not widely known that all you really need is a .dtbo and some config.txt entries like
#left
dtoverlay=gpio-key,gpio=6,keycode=105
#right
dtoverlay=gpio-key,gpio=5,keycode=106
#up
dtoverlay=gpio-key,gpio=4,keycode=103
#down
dtoverlay=gpio-key,gpio=17,keycode=108
#a = a = OK
dtoverlay=gpio-key,gpio=16,keycode=30
...After that, you can easily navigate the menu system, but the mappings do not seem to work inside of any emulator or Kodi. I wonder if it is because each GPIO button is acting as a separate keyboard. If I run evtest, it looks like this.
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: 17.button
/dev/input/event1: e.button
/dev/input/event2: 12.button
/dev/input/event3: f.button
/dev/input/event4: 1a.button
/dev/input/event5: 13.button
/dev/input/event6: 18.button
/dev/input/event7: 10.button
/dev/input/event8: 11.button
/dev/input/event9: 4.button
/dev/input/event10: 5.button
/dev/input/event11: 6.button
I guess I'm looking for ideas here. Is there an easy way for me to build a version of https://github.com/TheFlav/mk_arcade_joystick_rpi and add it to a Recalbox install? Is there a pre-built version of mk_arcade_joystick_rpi v0.1.5 available somewhere? Is there a way to get the keyboard input working?
-
RE: Kodi + fbcp
@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.
-
RE: Kodi + fbcp
@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.
-
RE: Kodi + fbcp
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).
-
RE: Kodi + fbcp
@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.
-
RE: Kodi + fbcp
@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 eventsIf 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.
-
RE: Kodi + fbcp
@substring Okay. I think I built the support archive. I just SSH'd in and ran /recalbox/scripts/recalbox-support.sh
https://drive.google.com/open?id=1Ra7LsczTmjI1RgOikMINpFs-2NEuW2QKIt does use an SPI screen, but it's only 320x240 so updates are not that intensive. I think you would be surprised with the speed. This machine runs fine with RetroPie, but I am not as familiar with Recalbox.
I will say that someone else has tried running Kodi on RetroPie and may have the same issue. This issue is common to fbcp. fbcp is copying from fb0 to fb1, and it does not like parameters of fb0 to be changed at all. Once that happens, the LCD (fb1) will just freeze. That will happen if you select a custom resolution for an emulator.
It appears that the same thing is happening with Kodi, but the resolution (as reported by 'tvservice -s') doesn't seem to change. That's why I think Kodi (or the scripts that call Kodi) must be resetting the HDMI (even if the same resolution is being used).
I do not think this has anything to do with the LCD's FPS or the SPI clock. The emulators will act the same way if they are allowed to set the resolution. This is a known issue with using fbcp, as far as I know.
Is there a way to tell if Kodi is trying to configure the fb0 resolution? Is there a way to block it?
I'm not opposed to trying a bunch of stuff, but I just don't know where to look. I'm not really much of a Kodi user, so I am not used to it at all.
Thanks for the help!
-
RE: Kodi + fbcp
@paradadf I'm sorry. I should have mentioned that I tried kodi.videomode=default. It didn't seem to do anything for me.
-
Kodi + fbcp
I'm using fbcp to run a small TFT LCD. It works pretty well, but fbcp will choke if anything tries to mess with the HDMI setting. I think that it will even choke if the process tries to set the HDMI to the same setting it previously was.
When I launch Kodi, fbcp will choke, and the LCD will freeze. If I kill fbcp and restart it, it doesn't help. I think it won't re-init the LCD.
BUT
If I don't start fbcp at bootup, run Kodi (using the HDMI), and then run fbcp (via SSH session), the LCD will be fine.
How can we stop Kodi from messing with the HDMI.
By the way, all emulators had the same problem before I set
global.videomode=default
global.ratio=4/3It seems that Kodi doesn't conform to these settings?
If I do 'tvservice -s' before and after running Kodi, I don't see a difference, but I'm sure it's doing something fbcp doesn't like.
-
RE: RPi Compute Module 3 Support
@substring I think it's no trick. Our hardware does not come with any software. Users are free to choose anything they want. Our hardware just makes it easy for people to put the Pi inside of the GBA-style shell.
Most people use RetroPie. Just lately people are asking about getting Recalbox working, and I would like to support that.
I can start another thread for my next question.
-
RE: RPi Compute Module 3 Support
@substring It's for the Freeplay CM3 project. A couple of users at https://forum.freeplaytech.com/showthread.php?tid=4510 were asking about Recalbox (both for Pi Zero and Pi CM3).
I have it working on both now, but there are definitely other issues. I have some other questions about getting things set up easily that might be worth discussing on another thread or even via email if you'd like.
-
RE: RPi Compute Module 3 Support
@substring It booted up with the one I linked!
-
RE: RPi Compute Module 3 Support
@substring I don't see a bcm2710-rpi-cm3.dtb there. There's just a cm (old compute module) blob.
Is this possibly it? https://github.com/raspberrypi/firmware/blob/7a0d52e1e6e4188648d85d886eb46842c9165c98/boot/bcm2710-rpi-cm3.dtb
-
RE: RPi Compute Module 3 Support
I'm using the .img that I burned to an SD. I'll pop that file in and see if it works. Thanks.
-
RE: RPi Compute Module 3 Support
@substring Okay, I'm not in a hurry. If it's easy for you to tell me how to find the proper file, that could work, too. Otherwise I'm fine waiting until you can send me a link. Thanks!!!
-
RE: RPi Compute Module 3 Support
Can you link me to the proper bcm2710-rpi-cm3.dtb you think I should try? Thanks!
-
RE: RPi Compute Module 3 Support
@substring Do I need a specific version of the dtb? Maybe I had the wrong one?
-
RPi Compute Module 3 Support
It seems that Recalbox does not support the Raspberry Pi Compute Module 3. Is that correct?
Is there a way for me to get Recalbox to boot on my CM3L board? I have tried adding bcm2710-rpi-cm3.dtb, but I think there must be more to it than that.