Bug 178146
Summary: | Hotplug does not load joydev module for Super Smartjoy 2 | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | W. Michael Petullo <redhat> |
Component: | udev | Assignee: | Harald Hoyer <harald> |
Status: | CLOSED RAWHIDE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | rawhide | CC: | hdegoede, notting |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | powerpc | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2006-02-13 03:56:50 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
W. Michael Petullo
2006-01-18 01:27:40 UTC
What's in /sys/bus/input (if it exists?) /sys/bus/input does not exist (though sysfs is mounted). /proc/bus/input/handlers has: N: Number=0 Name=kbd N: Number=1 Name=mousedev Minor=32 N: Number=2 Name=evdev Minor=64 N: Number=3 Name=joydev Minor=0 /proc/bus/input/devices has: [...] I: Bus=0003 Vendor=6666 Product=0667 Version=0210 N: Name="Smartjoy Family Super Smartjoy 2" P: Phys=usb-0001:10:1b.1-1/input0 S: Sysfs=/class/input/input12 H: Handlers=event4 js0 B: EV=b B: KEY=ff 0 0 0 0 0 0 0 0 0 B: ABS=3 [...] Hm, ok. So, lots more questions: - what kernel? - does 'modinfo joydev' show input:.... aliases? - is there a modalias file under /sys/class/input that matches one of these? I have a USB thumb drive and when I plug it in the sd_mod and usb_storage modules are loaded. I noticed that there is no /sbin/hotplug and /proc/sys/kernel/hotplug is empty. Is this significant? Or is my understanding of how hotplug works terribly out of date? Kernel version 2.6.15-1.1857_FC5. "modinfo joydev" says: filename: /lib/modules/2.6.15-1.1857_FC5/kernel/drivers/input/joydev.ko author: Vojtech Pavlik <vojtech> description: Joystick device interfaces license: GPL vermagic: 2.6.15-1.1857_FC5 gcc-4.1 depends: alias: input:b*v*p*e*-e*3,*k*r*a*0,*m*l*s*f*w* alias: input:b*v*p*e*-e*3,*k*r*a*8,*m*l*s*f*w* alias: input:b*v*p*e*-e*3,*k*r*a*6,*m*l*s*f*w* srcversion: E85FFB616DC2979F2FD2093 input:b*v*p*e*-e*3,*k*r*a*0,*m*l*s*f*w* seems to match input:b0003v6666p0667e0210-e0,1,3,k120,121,122,123,124,125,126,127,ra0,1,mlsfw in /sys/class/input/input13/modalias. (In reply to comment #4) > I noticed that there is no /sbin/hotplug and /proc/sys/kernel/hotplug is empty. > Is this significant? Or is my understanding of how hotplug works terribly out > of date? Somewhat out of date. This is all handled by udev now. > "modinfo joydev" says: > > filename: /lib/modules/2.6.15-1.1857_FC5/kernel/drivers/input/joydev.ko > author: Vojtech Pavlik <vojtech> > description: Joystick device interfaces > license: GPL > vermagic: 2.6.15-1.1857_FC5 gcc-4.1 > depends: > alias: input:b*v*p*e*-e*3,*k*r*a*0,*m*l*s*f*w* > alias: input:b*v*p*e*-e*3,*k*r*a*8,*m*l*s*f*w* > alias: input:b*v*p*e*-e*3,*k*r*a*6,*m*l*s*f*w* > srcversion: E85FFB616DC2979F2FD2093 > > input:b*v*p*e*-e*3,*k*r*a*0,*m*l*s*f*w* seems to match > input:b0003v6666p0667e0210-e0,1,3,k120,121,122,123,124,125,126,127,ra0,1,mlsfw > in /sys/class/input/input13/modalias. Do you have a line that says: ACTION=="add", SUBSYSTEM=="?*", MODALIAS=="?*", RUN+="/sbin/modprobe $modalias" in /etc/udev/rules.d/50-udev.rules? > Do you have a line that says: > ACTION=="add", SUBSYSTEM=="?*", MODALIAS=="?*", RUN+="/sbin/modprobe $modalias" > in /etc/udev/rules.d/50-udev.rules? Yes. This line exists. I added this: ACTION=="add", SUBSYSTEM=="?*", MODALIAS=="?*", RUN+="/bin/sh -c 'echo $modalias >> /tmp/mod'" and got (in /tmp/mod:) usb:v6666p0667d0210dc00dsc00dp00ic03isc00ip00 usb:v6666p0667d0210dc00dsc00dp00ic03isc00ip00 usb:v6666p0667d0210dc00dsc00dp00ic03isc00ip00 Strange, no "input:..." The environment(s) provided to this shell is: SUBSYSTEM=usb DEVPATH=/devices/pci0001:10/0001:10:1b.1/usb3/3-1/3-1:1.0 ACTION=add MODALIAS=usb:v6666p0667d0210dc00dsc00dp00ic03isc00ip00 PWD=/ UDEV_LOG=3 UDEVD_EVENT=1 SHLVL=1 DEVICE=/proc/bus/usb/003/005 INTERFACE=3/0/0 PRODUCT=6666/667/210 TYPE=0/0/0 PHYSDEVBUS=usb SEQNUM=642 _=/bin/env PHYSDEVPATH=/devices/pci0001:10/0001:10:1b.1/usb3/3-1/3-1:1.0 EV=b SUBSYSTEM=input ABS=3 DEVPATH=/class/input/input9 NAME="Smartjoy Family Super Smartjoy 2" ACTION=add MODALIAS=input:b0003v6666p0667e0210-e0,1,3,k120,121,122,123,124,125,126,127,ra0,1,mlsfw PWD=/ UDEV_LOG=3 KEY=ff 0 0 0 0 0 0 0 0 0 UDEVD_EVENT=1 SHLVL=1 PHYSDEVDRIVER=usbhid PHYS="usb-0001:10:1b.1-1/input0" PRODUCT=3/6666/667/210 PHYSDEVBUS=usb UNIQ="" SEQNUM=643 _=/bin/env PHYSDEVPATH=/devices/pci0001:10/0001:10:1b.1/usb3/3-1/3-1:1.0 SUBSYSTEM=input DEVPATH=/class/input/input9/event4 MINOR=68 ACTION=add PWD=/ UDEV_LOG=3 MAJOR=13 UDEVD_EVENT=1 DEVNAME=/dev/input/event4 SHLVL=1 PHYSDEVDRIVER=usbhid PHYSDEVBUS=usb SEQNUM=644 _=/bin/env I'm confused. You have three events listed there: ADD/USB - modalias = usb:v6666p0667d0210dc00dsc00dp00ic03isc00ip00 ADD/INPUT - modalias = nput:b0003v6666p0667e0210-e0,1,3,k120,121,122,123,124,125,126,127,ra0,1,mlsfw ADD/INPUT - no modalias But the only modalias according to udev was the usb one??? Hm, something is off in either udev or the kernel. 1. event: SUBSYSTEM=usb DEVPATH=/devices/pci0001:10/0001:10:1b.1/usb3/3-1/3-1:1.0 ACTION=add MODALIAS=usb:v6666p0667d0210dc00dsc00dp00ic03isc00ip00 2. event: SUBSYSTEM=input DEVPATH=/class/input/input9 MODALIAS=input:b0003v6666p0667e0210-e0... 3. event: SUBSYSTEM=input DEVPATH=/class/input/input9/event4 Re: #8, yes, but see the debugging output in comment #6... hmm, right... The newer kernel 2.6.15-1.1928_FC5 and udev 084-1 works fine. The joydev module is loaded automatically and /dev/input/js0 is created when I plug in my gamepad. The latest Raw Hide seems to fix this. Ubfortunatly this bug still happens for me. This is on a Rawhide systems last updated the day of FC-5 release (I'm still hesitating if I want to stick with Rawhide or use FC-5 for a while). kernel: kernel-2.6.15-1.2064_FC6.x86_64 udev: udev-084-13.x86_64 Joystick (gamepad): Logitech Rumblepad 2 Reopen? Anyways let me know what info you need to debug this and I'll add it. |