orangepi-xunlong / linux-orangepi

Other
176 stars 157 forks source link

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

Open sreesms opened 3 weeks ago

sreesms commented 3 weeks 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 2 weeks 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 2 weeks 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 6 days ago

I encountered the same problem,and i tried modify the kernal options, then re-compile and install kernal manually,but it didn't work @orangepi-xunlong