Adding a 9th button to GPIO
-
Thanks for the input, @mitu. I've put a lot of time into what I have right now, so I may spend some more time messing with it. If I don't figure it out, I'll just disable the one hotkey button since I don't really need a player 2 hotkey. I would much rather figure out the problem though. So we shall see. Thanks again.
-
@simonster said in Adding a 9th button to GPIO:
I have just tried this method and it worked for me completely:
Install MK_Arcade_Joystick from the drivers in the retropie setup. Then exit Emulation Station by pressing F4
rm -r mk_arcade_joystick_rpi
git clone https://github.com/recalbox/mk_arcade_joystick_rpi.git -b hotkeybtn
sudo mkdir /usr/src/mk_arcade_joystick_rpi-0.1.5.1/
cd mk_arcade_joystick_rpi/
nano dkms.conf
change the line that begins PACKAGE_VERSION to read
PACKAGE_VERSION="0.1.5.1"
Press Ctrl+X and then Y and Enter to exit and save changes
sudo cp -a * /usr/src/mk_arcade_joystick_rpi-0.1.5.1/
sudo dkms build -m mk_arcade_joystick_rpi -v 0.1.5.1
sudo dkms install -m mk_arcade_joystick_rpi -v 0.1.5.1 --force
Once installed, restart the Pi using the following command
sudo shutdown -r -t 0 now
WORKS. THANK YOU
-
I'm back at it again. I installed a while new setup but I'm having issues with the kernel headers again. I followed the steps to build and install 0.1.5.1 but I'm getting this error when trying to build...
Error! Bad return status for module build on kernel: 4.19.66-v7+.
Any ideas? Thanks!
-
@theRog05 The driver is not compatible with Linux Kernel versions > 4.14 and the Github repository is not updated anymore . The driver version included in RetroPie has this fixed, but it's using the main branch and not the
hotkeybtn
branch - which I think you might need.
However, RetroPie should still be at kernel version 4.14 - have you usedrpi-update
to update your installation ? -
@mitu I have not tried
rpi-update
yet. I can do that now. -
@theRog05 I wasn't suggesting to use that, since it will upgrade your Linux Kernel. What version of RetroPie are you using ?
-
@mitu oh. Gotcha. I won't do that then.
-
@mitu I'm at a loss here. Maybe I should reflash the SD card? I was at one point getting an error saying "kernel headers for 4.14.79-v7+ cannot be found" when trying to run this command
sudo dkms build -m mk_arcade_joystick_rpi -v 0.1.5.1
-
@mitu currently running RetroPie version 4.4.4
-
@theRog05 If you're re-starting again, then get the 4.5.1 image from https://retropie.org.uk/download, which should have the necessary pre-requisites installed.
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.