orangepi-xunlong / linux-orangepi

Other
200 stars 174 forks source link

Joystick doesn't detected in /dev/input #81

Open sreesms opened 5 months ago

sreesms commented 5 months ago

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?

broadblues commented 5 months ago

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

sreesms commented 5 months ago

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.

RoboticsChen commented 4 months ago

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