linux-orangepi icon indicating copy to clipboard operation
linux-orangepi copied to clipboard

Joystick doesn't detected in /dev/input

Open sreesms opened this issue 1 year ago • 3 comments

I have to use the joystick for control of a robot, I expect to get /dev/input/js0 after connecting the Joystick, but js0 is appearing. Screenshot_2024-06-25_09-00-05

When I enter lsusb I get like this:

Screenshot_2024-06-25_08-53-48

below is the screenshot of dmesg after disconnecting and connecting the joystick usb. Screenshot_2024-06-25_08-56-49

USB joystick is working fine in another PC.

Anyone help how to solve this issue?

sreesms avatar Jun 25 '24 01:06 sreesms

I would guess your joystick is added as a evdev device rather than the older joystick specific.

Look in

/dev/input/by-id

do you see something like your joystick there?

try running

evtest

that will show the different devices attached to those /dev/input/event* files

broadblues avatar Jun 26 '24 10:06 broadblues

I would guess your joystick is added as a evdev device rather than the older joystick specific.

Look in

/dev/input/by-id

do you see something like your joystick there?

try running

evtest

that will show the different devices attached to those /dev/input/event* files

ls /dev/input/by-id doesn't show joystick, evtest also doesn't show joystick events.

sreesms avatar Jun 27 '24 08:06 sreesms

I rebuilt the kernel and enabled joystick support. Linux kernel 6.1.43 https://github.com/RoboticsChen/orangepi_kernel.git

RoboticsChen avatar Jul 23 '24 13:07 RoboticsChen