Repository navigation
(WIP) initial trackball/spinner database - #12807
Tovarichtch wants to merge 10 commits into
Conversation
Only 4 devices for the moment. I invite everyone to post `evtest` result with device names (spinner and/or trackball) and event codes
|
Atari Single Player USB Fightstick |
HUB with buttons and combo (TS-SPTB-COMBO). 2-in-1 in a hub.
ccec1d9 to
67a7b42
Compare
|
This is for the AtGames Legends Ultimate Control Panel, connected to a mini PC via USB. [root@BATOCERA /userdata/system]# evtest /userdata$ lsusb |
Has a trackball connected to the main board
Do you have a picture of your control panel? Is there only one trackball? Any spinners on it? I see three times the same device. Can you share a support file? Or share the evtest of each three events of the same device (6 to 8) |
|
Hopefully this works. Here is a link to a picture of the control panel. Yes, there are 2 spinners, and one trackball. |
Thanks. I still need the file support or evtest of all |
|
Tovarichtch, I am a newbie with Batocera. Would this have to be done on the PC running Batocera ? |
|
Here is an Ultimarc UltimateIO - specifically, the optical interface: |
Press START and go to SYSTEM SETTINGS → FRONTEND DEVELOPER OPTIONS → CREATE A SUPPORT FILE. It will generate a file in /userdata/saves/ named
That's the controller, which differs from the hardware itself (trackball/spinner). I don't think I need it, but thanks for sharing it, just in case. |
|
Tovarichtch, thanks for all your help. |
I think I see the trackball, but I'm unsure about both spinners. Can you |
|
Yes, when I spin the spinners I see lots of data onscreen. I will post this, as soon as I am back at my PC. Edit: I have ran evtest on my PC using Putty, Selected event number 6, as that's the one where all the most data is recieved when using the spinners, and trackball. I have attached a text file, rather cut and paste a large amount of text. |
|
I need all 3 events. Move the spinner a bit when doing so and tell me which spinner you used |
|
Those numbers are from me moving both spinners, left and right, and the trackball in all directions. |
|
This is not helping me. That event seems to be for trackball only but it takes both spinners at the same time. Not good. This has to be blocked. However, I repeat, I need to know what value the spinners do for the remaining event6. Not only event6, but the two others too. Please share the logs once done for all three events, not just one. Thank you |
|
Those are the values for both spinners for event6. I will do the same for the other 2 events, but this will be a lot of data, so I will use a text file again. And again I will state that, for event6, I spin BOTH spinners for a full 360 spin both full left spin 360 degrees, and full right spin 360 degrees, and finally the trackball I do a spin for ALL directions. And I will do the same for the other 2 events, and upload the text file as soon as I am back at my main PC. Thanks for your patience, and help. |
|
You don't need to do a full spin. Just very slighty to trigger a result. |
|
Ok. Done evtests for events 6 - 8. Hope that helps. Many thanks. |
|
Are spinners doing something in event7 and event8? Because if spinners and trackball are only doing something in event6, this is problematic... |
|
No, only in event6. |
|
That's not good. If they are seen in the same event, separating them won't be simple. Thanks for the logs and info, we will check what we can do |
|
Tovarichtch, appreciate all your help, and good luck. If you need me to do any testing, I will happily oblige. |
REL_Y is spinner 1 REL_X is spinner 2 REL_Y + REL_X is trackball
e8a2e5f to
3bfea85
Compare
REL_Y+REL_X for trackball REL_WHEEL_HI_RES for spinner
You got it dude: |
|
Incremental Rotary Encoder 600pr (https://it.aliexpress.com/item/1005008076686008.html?spm=a2g0o.order_list.order_list_main.58.43583696sYwuJo&gatewayAdapt=glo2ita4itemAdapt) connected to I-PAC Ultimate I/O:
[root@BATOCERA /userdata/system]# evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: Ultimarc I-PAC Ultimate I/O
/dev/input/event1: Ultimarc I-PAC Ultimate I/O System Control
/dev/input/event10: hotkeys
/dev/input/event11: vc4-hdmi-0
/dev/input/event12: vc4-hdmi-0 HDMI Jack
/dev/input/event13: vc4-hdmi-1
/dev/input/event14: vc4-hdmi-1 HDMI Jack
/dev/input/event15: batocera hotkeys
/dev/input/event2: Ultimarc I-PAC Ultimate I/O Consumer Control
/dev/input/event3: Ultimarc I-PAC Ultimate I/O
/dev/input/event6: ZhuHai JieLi Technology JieLi BR21
/dev/input/event7: Logitech K400 Plus
/dev/input/event8: Arcade 1
/dev/input/event9: Arcade 2
Select the device event number [0-15]: 3
Input driver version is 1.0.1
Input device ID: bus 0x3 vendor 0xd209 product 0x410 version 0x111
Input device name: "Ultimarc I-PAC Ultimate I/O"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 272 (BTN_LEFT)
Event code 273 (BTN_RIGHT)
Event code 274 (BTN_MIDDLE)
Event type 2 (EV_REL)
Event code 0 (REL_X)
Event code 1 (REL_Y)
Event type 4 (EV_MSC)
Event code 4 (MSC_SCAN)
Properties:
Testing ... (interrupt to exit)
[root@BATOCERA /userdata/system]# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 003: ID d209:0410 Ultimarc I-PAC Ultimate I/O
Bus 001 Device 004: ID e5b7:0811 ZhuHai JieLi Technology JieLi BR21
Bus 001 Device 005: ID 152d:0581 JMicron Technology Corp. / JMicron USA Technology Corp. External
Bus 001 Device 006: ID 214b:7250 Huasheng Electronics USB2.0 HUB
Bus 001 Device 007: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 008: ID 1a86:7523 QinHeng Electronics CH340 serial converter
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
[root@BATOCERA /userdata/system]# udevadm info -q all /dev/input/event3
P: /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.1/0003:D209:0410.0002/input/input3/event3
N: input/event3
S: input/by-id/usb-Ultimarc_I-PAC_Ultimate_I_O_4-if01-event-mouse
S: input/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.1:1.1-event-mouse
E: DEVLINKS=/dev/input/by-id/usb-Ultimarc_I-PAC_Ultimate_I_O_4-if01-event-mouse /dev/input/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.1:1.1-event-mouse
E: DEVNAME=/dev/input/event3
E: DEVPATH=/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.1/0003:D209:0410.0002/input/input3/event3
E: ID_BUS=usb
E: ID_INPUT=1
E: ID_INPUT_MOUSE=1
E: ID_MODEL=I-PAC_Ultimate_I_O
E: ID_MODEL_ENC=I-PAC\x20Ultimate\x20I\x2fO
E: ID_MODEL_ID=0410
E: ID_PATH=platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.1:1.1
E: ID_PATH_TAG=platform-fd500000_pcie-pci-0000_01_00_0-usb-0_1_1_1_1
E: ID_REVISION=0055
E: ID_SERIAL=Ultimarc_I-PAC_Ultimate_I_O_4
E: ID_SERIAL_SHORT=4
E: ID_TYPE=hid
E: ID_USB_DRIVER=usbhid
E: ID_USB_INTERFACES=:030101:030102:030000:
E: ID_USB_INTERFACE_NUM=01
E: ID_VENDOR=Ultimarc
E: ID_VENDOR_ENC=Ultimarc
E: ID_VENDOR_ID=d209
E: LIBINPUT_DEVICE_GROUP=3/d209/410:usb-0000:01:00.0-1
E: MAJOR=13
E: MINOR=67
E: SUBSYSTEM=input
E: USEC_INITIALIZED=6638861 |
|
Trackball (zero buttons), seems generic, seemingly built from a mouse reference design kit.
|
|
Ultimarc SpinTrak, https://www.ultimarc.com/trackballs-and-spinners/spinners/spintrak/, adapter as shown under "connecting mouse buttons", this one currently has left + right buttons connected to it (as shown in
|
|
Cheap PS/2 trackball https://www.arcadexpress.com/en/trackballs-spinners-light-guns/68-trackball-arcade-ps2-led.html lsusb: evtest: udevadm: |
I need you to use your spinner so I can get some values with evtest. |
|
Sure, tell me what I have to do and later when I get back I'll send you the answer |
Not knowing exactly what you need, I'll send you encoder inputs all the way to the right and then all the way to the left. Thanks |
|
"GRS USB Button Hole Spinner" by Thunderstick Studio. ( https://thunderstickstudio.com/products/usb-spinner?variant=41979624325349 ) lsusb: evtest: udevadm: |
|
[root@Host-028 /userdata/system]# evtest I think my trackball is event 1, right? Select the device event number [0-16]: 1 |
|
Baolian DA Spinner v2 Device has 192cpr evtest: lsusb: udevadm info -q all /dev/input/event3 |
|
reacting axis are required in the description, often REL_X and REL_Y for trackballs, REL_X or REL_Y for spinners, but can be different: The following format is preferable :
extra fields for some specific devices (contact me before adding any of these 2 fields): |
|
@Tovarichtch yep good idea for the photos. i will initialize a wiki page to list hardware. |
not enough information. |
|
@ dkt70 need more information. which event is reacting ? which axes ? a link to the device image ? |
|
in fact, the question is for all. the current given information doesnt allow me to make something. |
Only
47 devices for the moment.I invite everyone to post
evtestandlsusbresults with device names (spinner and/or trackball).Post event triggers/codes if you have a push&pull spinner.