Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: GuncCon2 on CRT with GroovyMame  (Read 4154 times)

0 Members and 3 Guests are viewing this topic.

nix999

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 23
  • Last login:Today at 02:20:29 pm
  • I want to build my own arcade controls!
GuncCon2 on CRT with GroovyMame
« on: July 03, 2026, 11:28:22 am »
Hi,

I got hold of a GunGon2 (edit: NPC106 from the year 2000 Japanese model and it looks as new actually) I want to get it to work with my GroovyMame realtime installation on custom Arch KMSRDM.
I have installed a Goobay/Wentronic 50312 between the UMSA and the TV and I have 'some' sync tracking through the composite video output. At least I think I have.
I installed drivers from psakhis that include a python calibration tool and if I try that tool I sometimes succeed in 'calibrating' it but I need to be very close to the tv. And that calibration tool is all but the correct aspect ratio et cetera.
In GM I am getting nowhere for the time being ... but I think my issue lies elsewhere ...
evtest registers all the buttons on the gun and if I sweep the gun over the screen it outputs data but I do not think it is as it should be.
I am aware that this post does not include details of my current setup and attempts but I can provide that if it could be relevant.
Now I just stumbled upon https://github.com/psakhis/guncon2/tree/main/linux that has an *.sh config tool. I havent tried it yet. I also found https://github.com/ZFEbHVUE/Batocera-CRT-Script.
I saw Substring and Calamity as contributors so I just wanted to ask before I try to reverse engineer the whole thing.

Is there any decent setup guide for what I'm trying to achieve?

I think my hardware is fine though in all honesty I am not sure ... It think the UMSA generates the correct sync signal as some of it's features mention:
- Composite Video Sync Generating by logic. Thus a wider range of graphic cards and TV are supported. This results in more stable signal as well.
- Jumper for negative and positive sync. Some signal needs a positive sync and some are negative. Configure here your needs.
But I do not know what that actually means ...

I'd be gratefull for any help offered.

Edit: it seems my hardware is bad . The UMSA outputs CSYNC and the Goobay (set to IN) just brings what is on pin 20 on the SCART out onto the yellow RCA - and the GunCon2 needs a proper composite video waveform with sync embedded at the correct voltage levels - whatever that means ... 
« Last Edit: July 03, 2026, 01:10:45 pm by nix999 »

Substring

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 872
  • Last login:July 10, 2026, 10:43:29 am
  • Forking GroovyArcade
    • forum.arcadecontrols.com/index.php/topic,160023.0.html
    • GroovyArcade active fork
Re: GuncCon2 on CRT with GroovyMame
« Reply #1 on: July 10, 2026, 03:39:00 am »
To tell you the truth, using a Guncon2 on CRT really disappointed me because calibration depends on the current resolution. We're on a groovymame setup, the resolution changes for every rom. So you got the picture I guess ...

Now, on a hardware note, livingn in France and having a SCART, I tried 2 different ways of setting up my guncon :
- through some hacky sCART input
- using a SCART component out

Both worked fine, I had no real hardware issue. Just that darn per resolution calibration which made me wanting to throw away the guncon. The microcalibration method from psakhis was supposed to "solve" that, but I didn't like the method, I wanted some real "per resolution maths based on the default calibration"

nix999

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 23
  • Last login:Today at 02:20:29 pm
  • I want to build my own arcade controls!
Re: GuncCon2 on CRT with GroovyMame
« Reply #2 on: July 10, 2026, 09:21:54 am »
It already crossed my mind indeed ... I'm awaiting delivery of a SCART adapter that should generate the correct signal for the gun to lock onto. Unfortunately it comes from the UK and as I'm writing this I am getting screwed over by customs and the post company... Brexit was a such a fantastic idea ...
If the hardware works I'll try to automate calibration somehow. If I deduct the resolution before a game starts I could re-calibrate. One would have to do it for every resolution but once it's done... I'll report back should I succeed.
You don't happen to know how the calibration works under the hood?
If it is something that's gets stored in the gun via usb I could sniff it out and record and replicate whatever happens. Any information that can help is welcome. I haven't really looked at the python calibration code nor have I investigated it in depth ...
I don't know if it'll work but I'm going to give it a try ...

Substring

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 872
  • Last login:July 10, 2026, 10:43:29 am
  • Forking GroovyArcade
    • forum.arcadecontrols.com/index.php/topic,160023.0.html
    • GroovyArcade active fork
Re: GuncCon2 on CRT with GroovyMame
« Reply #3 on: July 10, 2026, 10:34:09 am »
I'm interested in the recalibration, but I'm afraid you can't recalibrate from outside the kernel. Would need to expose some RW sysfs stuff