Hello.
It seems that Lakka does not use calibrated joystick data. I am trying to connect Genius MaxFighter F-23 to Cubieboard A10 running Lakka RetroArch. It was successfully recognized by system but the analog stick works in one direction only. By using jstest
I found out that the actual data is not calibrated:
- Axes: 0:-25412 (when stick is deflected to the left)
- Axes: 0: 11368 (when stick is deflected to the right)
The games and Lakka shell detect the left deflection only. To fix that I have tried to use jscal:
# jscal -c /dev/input/js1
After calibration jstest
started to show values between 0 and 32000 for both axes. Unfortunately it did not fix neither the games nor Lakka shell.
Also I have tried to use udev rules to make calibration. I have created a shell script at
/storage/.config/jscal-maxfighter-f23.sh
that runs the jscal command with the calibration data. After that I added a rule file to
/storage/.config/udev.rules.d
with the following content:
ACTION=="add", KERNEL=="js*", RUN+="/storage/.config/jscal-maxfighter-f23.sh"
Finally I tried to reload rules:
# udevadm control --reload-rules && udevadm trigger
The dmesg
command shows the following:
- [ 1849.528117] usb 5-1: USB disconnect, device number 2
- [ 1850.803660] ehci_irq: port change detect
- [ 1850.846766] ehci_irq: port change detect
- [ 1851.189449] usb 5-1: new low-speed USB device number 3 using sw-ohci
- [ 1851.427103] input: 4-axis 8-button joystick as /devices/platform/sw-ohci.2/usb5/5-1/5-1:1.0/input/input3
- [ 1851.440743] generic-usb 0003:0458:1004.0003: input,hidraw1: USB HID v1.00 Joystick [4-axis 8-button joystick] on usb-sw-ohci-1/input0
I see two problems:
- The Lakka does not recognise the calibrated data even though it has been applied.
- The udev rules are not applied from /storage/.config for some reasons
Has anyone run into the same problem?