at first thank you for your awesome work!
I have run into some glitches, and i hope you can help me with solving them.
I have installed Raspbian on my Raspberry Pi 2
Kernel is 3.18.11-v7- armv7l with the dkms-extensions installed.
So far so good, both of my PS2 Controllers work, but
When starting mupen64 the controller continuously draws to the bottom-right corner.
Configuring with input station and analog button pressed is also pretty tricky because the left analog-stick is not properly detected.
I tried setting psx_delay to 25 and to 30. In an radical attempt to solve it even to 50 still no use.
While going through testing with jstest and crawling through the configuration-files, I also noticed, that the left analog-stick ist not recognized as an axis, but rather as a dpad like button.
I know that this kind of configuration is standart on the xbox controller, but may it be possible, that dpad and left-analog stick are interchanged?
Playing Games that do not need the analog stick works like a charm.
Can you run "make" at /usr/src/db9_gpio_rpi-1.0/ -directory and paste the output here? It looks like the driver package was fetched and unpacked correctly, but there was problem when building it.pawelkrak wrote:I have in usr/src/db9_gpio_rpi-1.0/ db9_gpio_rpi.c
I'd like to use Amiga Joystick with GPIO. XBOX 360 pad works good but joystick mayby work better
Thankyou and waiting for help
I think both of your issues can be resolved by configuring controllers in retroarch / emulators. You could try "retroarch-joyconfig"-command line tool or editing retroarch.cfg directly (check. e.g. input_player1_joypad_index).pawelkrak wrote:another problem found. When real amiga joystick is connected and configured like gamepad #2, my xbox pad is configured like gamepad #3 but all games with libreto used gamepad #2. When dissabled amiga joystick then xbox360 pad is #2, when connected amiga joy then xbox pad is #3 but all emulators used gamepad #2. So my question is: where i can change param to define right pad values ?
Ok, if you are using a Pi2, the only pad choices available to you are pads 3, 4, 5, and 6. I have a SNES pad set up and I use pads 3 and 4. Try this:mccarthy wrote:Hi there,
I'm a little bit lost here. I would like to use GPIO9 for my SNES-Pad (DATA).
Is this possible? I've tried something like gamecon_gpio_rpi map=0,0,0,0,0,1, but needless to say, it didn't work.
Of I'm using a PI2 if that's important.
How about "pad5" and "pad6" where do I have to connect these to?
Code: Select all
You can use map=0,0,0,0,1,0mccarthy wrote:Thanks for your help. Let's say I would like to use Pad5 only. Do I have to use map=1,0,0,0 or map=1? Or map=0,0,0,0,1?
Hmmm, that's strange. So map=0,0,1,0 works for you. Which pin are you plugged into in that case?mccarthy wrote:Many thanks for your patience, but I'm afraid that it doesn't work either.
map 0,0,1,0 works like a charm, but plugging DATA into GPIO2 und using map=0,0,0,0,1,0 doesn't work. I've updated the kernel, reinstalled the headers and reinstalled the module. I made sure that it was loaded correctly, but nothing. I've even tested GPIO2 with a switch to proof that it isn't damaged or something like that. It's perfectly fine.
The thing is, that I need to replug it, because I want to use the DB9 module at the same time :/
Here's an image with the pin locations and names so you can double check your work (just to be safe). Is it possible to use GPIO 3 without affecting your db9 configuration? or GPIO 7?mccarthy wrote:It's GPIO4, if I'm not mistaken.
It's driving me crazy, there's no plausible answer for this behaviour.
The driver reads the input every 10ms. In order to increase this, you need to recompile kernel with higher tick rate (default CONFIG_HZ is 100 I think) and also modify the driver (see DB9_REFRESH_TIME in db9_gpio_rpi.c). There's probably other tricks which may better help reducing latency, e.g. turning off vsync in emulator, disabling CPU dynamic frequency scaling etc. Did you try if keyboard control is as laggy?Flausch wrote:I did not find any info at which rate the driver reads/updates its input.
I am using db9_gpio_rpi with two competition pro joysticks on rpi2 and when using these with vice (c64 emulator), I had the feeling that with fast games there is some lag/some input events got lost.
This may highly subjective, but it did not feel like a real C64.
Is there a method to debug/measure this or increase the update rate of the driver?
That should work - perhaps you have mismatching firmware and kernel headers? You could try updating to latest firmware (3.18.16+) and then install matching headers manually or automatically via retropie db9/gamecon installation.matock wrote:Hi all,
I have the error below when I try to compile the db9_gpio_rpi driver.
I have a RPi-1 model B with the last RetroPie 3 beta 3.
The installation of the driver via the retroPie-Setup was fine. But as I need to reassign GPIO ports in the db9_gpio_rpi.c file, I need to recompile it. I did it previously with RetroPie 1.8 and it worked perfectly.
I saw that the driver is now in version 1.0 (instead of 0.7). But in the dkms.conf file it is still mentioned 0.7. Then, I tried to update to 1.0 and to recompile, but with no more success.
What I did exactly is:
dkms remove db9_gpio_rpi/1.0 --all (to remove the previous installation of the driver)
dkms install db9_gpio_rpi/1.0 (to recompile)
Is something wrong?
Many thank you for your help.
Try to remove all linux headers before installing drivers via retropie:matock wrote:Thank you marqs for your reply.
I updated from 3.18.11+ to 3.18.16+ (with rpi-update), and now I'm able to recompile the db9_gpio_rpi driver with success. BUT...
When I try to load the driver (with "modprobe --first-time db9_gpio_rpi map=3,3"), I have the error:
ERROR: could not insert 'db9_gpio_rpi': Exec format error
I decided to restart from the beginning: I removed all the drivers (db9 & gamecon) and I totally refreshed RetroPie from the menu (option 1 Binary-based installation). Now, I can't install GPIO drivers at all. It fails at the end with the message "Gamecon driver installation FAILED". None driver is installed, neither db9 nor gamecom. The source files are not in /usr/src/.
I'm totally lost. Is somebody was able to install the GPIO drivers with RetroPie v3?
Very thank you for your help.
Code: Select all
apt-get purge linux-headers*