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 --- Bug Reports --- Site News

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

  

Author Topic: A-PAC troubles on Gentoo  (Read 2285 times)

0 Members and 1 Guest are viewing this topic.

noosphere

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:October 07, 2008, 12:59:56 pm
A-PAC troubles on Gentoo
« on: October 04, 2008, 04:34:00 pm »
I'm having some problems with a brand new Ultimarc A-PAC USB joystick interface, which I've been trying to get to work on my amd64 Gentoo system (running kernel 2.6.25-r7 from gentoo-sources).

The A-PAC shows up as two devices:  /dev/input/js0 and /dev/input/js1 (which correspond to /dev/input/event5 and /dev/input/event6 respectively).

I can connect to either device just fine via jstest, but only button presses from one half of the device (16 of the 32 buttons) register, and only on js0.

I can get no button presses from the second half of the device to show up at all (on either js0 or js1).  However, I've also tried the A-PAC out on Windows Vista and it has no problems registering button presses from all 32 buttons on the device.  So the device itself is working fine, and the problem I'm experiencing on Gentoo must some kind of compatibility issue between Gentoo and the A-PAC.

I've also tried using evtest to connect to /dev/input/event5 and /dev/input/event6, with no better luck than I had with jstest.  As with jstest, evtest connects to both devices just fine, but only button presses from one half of the device show up on event5, and no button presses from the other half of the device show up on either event5 or event6.

Any help in getting this to work is greatly appreciated, as I've been tearing my hair out over this for a week now.

Incidentally, I had Dual Shock Gamepad connected up to my machine via a single USB cable, and it also showed up as two devices (js0 and js1) but had no problems registering button presses from either gamepad (half on js0 and the other half on js1).

Here's some information about my machine, in case any of it could be useful for troubleshooting this problem:


I'm also using x11-drivers/xf86-input-evdev version 2.0.5, sys-apps/hal version 0.5.11-r1, and games-util/joystick version 20060731.

Thanks in advance for any help or advice on this matter.

  ::noosphere::

frankzampolla

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:October 10, 2008, 04:28:45 am
Re: A-PAC troubles on Gentoo
« Reply #1 on: October 07, 2008, 12:46:34 pm »
hi,
I use A-PAC in a linux debian box, I can use js0 and js1 but is impossible to calibrate the axes in digital mode...
someone managed to do it?  :dunno

noosphere

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:October 07, 2008, 12:59:56 pm
Re: A-PAC troubles on Gentoo
« Reply #2 on: October 07, 2008, 01:00:39 pm »
I just found (with some very valuable help) a solution for the problem I've been having getting js1 to work on Gentoo with the amd64 2.6.25-gentoo-r7 kernel.  It's actually very simple...

All you have to do is connect to both js0 and js1 at the same time (via, say, jstest).

I first open js0 and then open js1 and then I can read button presses from both halves of the A-PAC.  Buttons from side 1 appear on js0, and buttons from side 2 appear on js1.

The reason I'd had problems before is that I was just trying js0 or js1 separately.  It appears they have to be used together because js1 needs to communicate with js0 in order to work (or that's the theory, anyway).


frankzampolla

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:October 10, 2008, 04:28:45 am
Re: A-PAC troubles on Gentoo
« Reply #3 on: October 10, 2008, 04:27:53 am »
I can see both js0 and js1, all buttons are recognized but I can't calibrate the ax.
Code: [Select]
#jscal -c /dev/input/js0
....
# jscal -p /dev/input/js0
jscal -s 2,1,0,0,0,-16513,16384,1,0,0,0,-16513,16384 /dev/input/js0
Code: [Select]
jstest --event /dev/input/js0
Event: type 2, time 175695556, number 0, value 32512 (right)
Event: type 2, time 175741396, number 0, value 32767 (left)
Event: type 2, time 175769984, number 1, value 32512 (up)
Event: type 2, time 175768024, number 1, value 32767 (down)
I use a digital joystick...

MotorHedJr

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 46
  • Last login:October 06, 2015, 06:25:45 am
  • Christmas everyday!!!
Re: A-PAC troubles on Gentoo
« Reply #4 on: June 22, 2009, 05:27:42 pm »
noosphere,

What emulator are you running on your AMD64 gentoo linux box?  I've been trying to get AdvMAME w/ SVGAlib-1.9.19 to work on mine for a while now...

-MH Jr.