Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nice work - need some direction :) #8

Open
ondafly opened this issue Feb 6, 2024 · 8 comments
Open

nice work - need some direction :) #8

ondafly opened this issue Feb 6, 2024 · 8 comments

Comments

@ondafly
Copy link

ondafly commented Feb 6, 2024

hi - I'm running groovyarcade through a New Astro City and recently added a Ps2 Guncon2 into the mix.

I installed your drivers - and I'm pretty sure that side of things is 100%. The gun fires and buttons work on it in game. However the mouse/crosshair is erratic all over the screen. I ran the calibration - however it didn't work, I don't see usb-0b9a_016a-event-joystick but I do see usb-0b9a_016a-event-mouse. Even with that change, still no change to the guns behaviour.

finally - I do not have the sync cable attached, I was unsure from the guide - is this required in this setup ? I'm running VGA > extron > RGB BNC > Dsub15 arcade monitor. So I would assume if required - I would put a T connection into the BNCs and join in from there.

@rtomasa
Copy link
Collaborator

rtomasa commented Feb 6, 2024

You must connect the rca sync cable otherwise nothing will work.

@ondafly
Copy link
Author

ondafly commented Feb 6, 2024

perfect - just needed the confirmation

@beardypig
Copy link
Owner

@rtomasa is, of course, correct :)

@ondafly
Copy link
Author

ondafly commented Feb 12, 2024

Back again - Just for clarity - I'm running GroovyArcade (arch linunx) latest version, which I suspect has guncon2 drivers already but I could be wrong. I am also unsure what to use for sync on the guncon2 - I've tried horizontal, vertical and green, but no difference in any of them. I installed the guncon2 drivers as per the instructions.

From within Mame - it sees Guncon2 as an input device. However it doesn't respond.

If I launch Time Crisis from within AttractMode - the guncon2 does nothing. If I exit attractmode and switch to the arch desktop, the mouse is taken over by the guncon2 - and basically scrolls really quickly, unless I unplug the sync. Buttons work also. However its impossible to use, and when I launch Mame from the desktop - its detected now and the buttons work, but same issue with it scrolling all over.

So - I ran "evdev-joystick --e /dev/input/by-id/usb-0b9a_016a-event-mouse -m 175 -M 720 -a 0"
"evdev-joystick --e /dev/input/by-id/usb-0b9a_016a-event-mouse -m 20 -M 240 -a 1"

Now I clearly there is a difference in my setup - where it is seen as event-mouse and not event-joystick. Also when I run evdev-joystick --l ; I'm only seeing my MadCatz x360 padhacks.

output showing the IDs
[arcade@GroovyArcade by-id]$ pwd
/dev/input/by-id
[arcade@GroovyArcade by-id]$ ls -al
total 0
drwxr-xr-x 2 root root 200 Feb 12 20:19 .
drwxr-xr-x 4 root root 500 Feb 12 20:19 ..
lrwxrwxrwx 1 root root 9 Feb 12 20:19 usb-0b9a_016a-event-mouse -> ../event5
lrwxrwxrwx 1 root root 6 Feb 12 20:19 usb-0b9a_016a-mouse -> ../js2
lrwxrwxrwx 1 root root 9 Feb 12 20:19 usb-Logitech_USB_Receiver-if02-event-mouse -> ../event8
lrwxrwxrwx 1 root root 9 Feb 12 20:19 usb-Logitech_USB_Receiver-if02-mouse -> ../mouse1
lrwxrwxrwx 1 root root 9 Feb 12 20:19 usb-Mad_Catz__Inc._Street_Fighter_IV_FightPad_0F26DC07-event-joystick -> ../event4
lrwxrwxrwx 1 root root 6 Feb 12 20:19 usb-Mad_Catz__Inc._Street_Fighter_IV_FightPad_0F26DC07-joystick -> ../js1
lrwxrwxrwx 1 root root 9 Feb 12 20:19 usb-Mad_Catz__Inc._Street_Fighter_IV_FightPad_0F28502C-event-joystick -> ../event3
lrwxrwxrwx 1 root root 6 Feb 12 20:19 usb-Mad_Catz__Inc._Street_Fighter_IV_FightPad_0F28502C-joystick -> ../js0

So my question is - what am I doing wrong and what do I have to do to fix ? also what should I use for sync.

thanks again

@ondafly
Copy link
Author

ondafly commented Feb 12, 2024

********** This is resolved now - by creating the pem key manually using google ! Install worked now without SSL error, however above issues of scrolling cursor continues on H-sync in desktop. and with v-sync curor moves frantic and always returns to top right.

additional info - I'm re-running the installer and noticed this

[arcade@GroovyArcade guncon2-master]$ make modules
make -C /lib/modules/6.6.8-arch1-1-15khz/build M=/home/arcade/guncon/guncon2-master modules
make[1]: Entering directory '/usr/lib/modules/6.6.8-arch1-1-15khz/build'
make[1]: Leaving directory '/usr/lib/modules/6.6.8-arch1-1-15khz/build'
[arcade@GroovyArcade guncon2-master]$ sudo make modules_install
make -C /lib/modules/6.6.8-arch1-1-15khz/build M=/home/arcade/guncon/guncon2-master modules_install
make[1]: Entering directory '/usr/lib/modules/6.6.8-arch1-1-15khz/build'
INSTALL /lib/modules/6.6.8-arch1-1-15khz/updates/guncon2.ko
SIGN /lib/modules/6.6.8-arch1-1-15khz/updates/guncon2.ko
At main.c:167:

  • SSL error:FFFFFFFF80000002:system library::No such file or directory: crypto/bio/bss_file.c:67
  • SSL error:10000080:BIO routines::no such file: crypto/bio/bss_file.c:75
    sign-file: ./certs/signing_key.pem
    ZSTD /lib/modules/6.6.8-arch1-1-15khz/updates/guncon2.ko.zst
    DEPMOD /lib/modules/6.6.8-arch1-1-15khz
    make[1]: Leaving directory '/usr/lib/modules/6.6.8-arch1-1-15khz/build'
    [arcade@GroovyArcade guncon2-master]$

Previously I ssh;d via my phone, so obviously missed the fine detail "ssl error"

@rtomasa
Copy link
Collaborator

rtomasa commented Feb 12, 2024

I have no idea about other systems since I've only implemented the driver in RGB-Pi OS. The driver creates two devices for mouse and joystick that need to be carefully remapped from the emulator/frontend. You need to get the sync from a composite rca. We always use this kind of cheap adapter
image

@ondafly
Copy link
Author

ondafly commented Feb 13, 2024

ah ok - so I need composite sync - which would explain the pointer either scrolling only across, or up and down, when i use either H or V as sync. If my understanding is correct - composite is just H and V joined. I'll post on arcade controls and see has someone created an inline dongle, that would enable me to extract h&v into a single RCA for sync on the guncon2

@ondafly
Copy link
Author

ondafly commented Feb 20, 2024

got a bit further - https://forum.arcadecontrols.com/index.php/topic,168305.0.html

but no joy as of yet - can only kill 1 guy at the start - gun doesn't pan far enough to the right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants