Quantcast
Channel: Active questions tagged kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 6334

Reload kernel module until (usbhid) device is initialized correctly (systemd, udev-rules maybe)

$
0
0

I have a system where multiple USB HID devices are connected to (keyboard, mouse, joystick ...)My problem is the Joystick. Sometimes it is not initialized correctly (no hidraw or input device shows up). However the kernel tries to probe and sees the vendor and device ID correctly but then exits probing with "-32".If I unplug and plug in the Joystick, in most cases it works. But since the system is enclosed this is not possible in production usage.So I found that unloading and loading the usbhid and xhci_pci gets the Joystick to work (usbhid alone does not work).

Of cause I can make a script which runs at boot, checks for the hidraw which belongs to the joysticks vendor/device ID and unloads and reloads the kernel modules. But I find similar cases (but basically inverted => do something when device shows up) by using a combination of udev-rules and systemd.

Any ideas?

BTW: I didn't find a kernel quirks which works for this device (e.g HID_QUIRK_NOGET)


Viewing all articles
Browse latest Browse all 6334

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>