From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Thu, 08 Oct 2009 22:38:18 +0000 Subject: Re: group is not set properly for usb printer for older kernels Message-Id: List-Id: References: <20091008191201.19276c15@workstation64.home> In-Reply-To: <20091008191201.19276c15@workstation64.home> MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org On Thu, Oct 8, 2009 at 22:11, Andreas Radke wrote: > Am Thu, 8 Oct 2009 21:05:00 +0200 > schrieb Kay Sievers : > >> On Thu, Oct 8, 2009 at 20:33, Andreas Radke wrote: >> > Am Thu, 8 Oct 2009 20:24:14 +0200 >> > schrieb Kay Sievers : >> > >> >> On Thu, Oct 8, 2009 at 20:19, Andreas Radke >> >> wrote: >> >> > should be this: >> >> > >> >> > [root@server64 andyrtr]# ls -1hR /dev/.udev/names/usbdev4.5 >> >> > /dev/.udev/names/usbdev4.5: >> >> > \x2fdevices\x2fpci0000:00\x2f0000:00:04.0\x2fusb4\x2f4-2\x2fusb_dev= ice\x2fusbdev4.5 >> >> >> >> usbdev4.5 should not exist with recent kernels, the device nodes >> >> are provided by the usb bus device directly. Do you have: >> >> CONFIG_USB_CLASS_DEVICE enabled? >> >> >> >> Kay >> >> >> > >> > Yes. It's enabled: >> >> If you get rid of it, all should work. >> >> Kay >> > > Sadly not. > > # > # Miscellaneous USB options > # > CONFIG_USB_DEVICEFS=3Dy > # CONFIG_USB_DEVICE_CLASS is not set > CONFIG_USB_DYNAMIC_MINORS=3Dy > CONFIG_USB_SUSPEND=3Dy > # CONFIG_USB_OTG is not set > CONFIG_USB_MON=3Dy > > > [root@server64 andyrtr]# ls -lhR /dev/bus/usb/004/ > /dev/bus/usb/004/: > insgesamt 0 > crw-rw-r-- 1 root root 189, 384 =C2=A08. Okt 22:03 001 > crw-rw-r-- 1 root root 189, 387 =C2=A08. Okt 22:09 004 > > > UDEV =C2=A0[1255032558.475180] add =C2=A0 =C2=A0 =C2=A0/devices/pci0000:0= 0/0000:00:04.0/usb4/4-2 (usb) > UDEV_LOG=3D0 > ACTION=ADd > DEVPATH=3D/devices/pci0000:00/0000:00:04.0/usb4/4-2 > SUBSYSTEM=3Dusb > DEVTYPE=3Dusb_device > DEVICE=3D/proc/bus/usb/004/004 > PRODUCTCd/c/100 > TYPE=3D0/0/0 > BUSNUM=004 > DEVNUM=004 > SEQNUM=1894 > ID_VENDOR=3DLexmark_International__Inc. > ID_VENDOR_ENC=3DLexmark\x20International\x2c\x20Inc. > ID_VENDOR_ID=043d > ID_MODEL=3DLexmark_Optra_E312 > ID_MODEL_ENC=3DLexmark\x20Optra\x20E312 > ID_MODEL_ID=000c > ID_REVISION=0100 > ID_SERIAL=3DLexmark_International__Inc._Lexmark_Optra_E312_8050926 > ID_SERIAL_SHORT=8050926 > ID_BUS=3Dusb > ID_USB_INTERFACES=3D:070102: > DEVNAME=3D/dev/bus/usb/004/004 > MAJOR=189 > MINOR87 > DEVLINKS=3D/dev/char/189:387 > > UDEV =C2=A0[1255032558.475831] add =C2=A0 =C2=A0 =C2=A0/devices/pci0000:0= 0/0000:00:04.0/usb4/4-2/usb_endpoint/usbdev4.4_ep00 (usb_endpoint) > UDEV_LOG=3D0 > ACTION=ADd > DEVPATH=3D/devices/pci0000:00/0000:00:04.0/usb4/4-2/usb_endpoint/usbdev4.= 4_ep00 > SUBSYSTEM=3Dusb_endpoint > SEQNUM=1898 > DEVNAME=3D/dev/usbdev4.4_ep00 > MAJOR%3 > MINOR=10 > DEVLINKS=3D/dev/char/253:10 > > UDEV =C2=A0[1255032558.504858] add =C2=A0 =C2=A0 =C2=A0/devices/pci0000:0= 0/0000:00:04.0/usb4/4-2/4-2:1.0 (usb) > UDEV_LOG=3D0 > ACTION=ADd > DEVPATH=3D/devices/pci0000:00/0000:00:04.0/usb4/4-2/4-2:1.0 > SUBSYSTEM=3Dusb > DEVTYPE=3Dusb_interface > DEVICE=3D/proc/bus/usb/004/004 > PRODUCTCd/c/100 > TYPE=3D0/0/0 > INTERFACE=3D7/1/2 > MODALIAS=3Dusb:v043Dp000Cd0100dc00dsc00dp00ic07isc01ip02 > SEQNUM=1895 > > UDEV =C2=A0[1255032558.505436] add =C2=A0 =C2=A0 =C2=A0/devices/pci0000:0= 0/0000:00:04.0/usb4/4-2/4-2:1.0/usb_endpoint/usbdev4.4_ep01 (usb_endpoint) > UDEV_LOG=3D0 > ACTION=ADd > DEVPATH=3D/devices/pci0000:00/0000:00:04.0/usb4/4-2/4-2:1.0/usb_endpoint/= usbdev4.4_ep01 > SUBSYSTEM=3Dusb_endpoint > SEQNUM=1896 > DEVNAME=3D/dev/usbdev4.4_ep01 > MAJOR%3 > MINOR=3D8 > DEVLINKS=3D/dev/char/253:8 > > UDEV =C2=A0[1255032558.505498] add =C2=A0 =C2=A0 =C2=A0/devices/pci0000:0= 0/0000:00:04.0/usb4/4-2/4-2:1.0/usb_endpoint/usbdev4.4_ep81 (usb_endpoint) > UDEV_LOG=3D0 > ACTION=ADd > DEVPATH=3D/devices/pci0000:00/0000:00:04.0/usb4/4-2/4-2:1.0/usb_endpoint/= usbdev4.4_ep81 > SUBSYSTEM=3Dusb_endpoint > SEQNUM=1897 > DEVNAME=3D/dev/usbdev4.4_ep81 > MAJOR%3 > MINOR=3D9 > DEVLINKS=3D/dev/char/253:9 > > > [root@server64 andyrtr]# ls -lhR =C2=A0/dev/.udev/names/usbdev4.4* > /dev/.udev/names/usbdev4.4_ep00: > insgesamt 0 > -rw-r--r-- 1 root root 0 =C2=A08. Okt 22:09 \x2fdevices\x2fpci0000:00\x2f= 0000:00:04.0\x2fusb4\x2f4-2\x2fusb_endpoint\x2fusbdev4.4_ep00 > > /dev/.udev/names/usbdev4.4_ep01: > insgesamt 0 > -rw-r--r-- 1 root root 0 =C2=A08. Okt 22:09 \x2fdevices\x2fpci0000:00\x2f= 0000:00:04.0\x2fusb4\x2f4-2\x2f4-2:1.0\x2fusb_endpoint\x2fusbdev4.4_ep01 > > /dev/.udev/names/usbdev4.4_ep81: > insgesamt 0 > -rw-r--r-- 1 root root 0 =C2=A08. Okt 22:09 \x2fdevices\x2fpci0000:00\x2f= 0000:00:04.0\x2fusb4\x2f4-2\x2f4-2:1.0\x2fusb_endpoint\x2fusbdev4.4_ep81 > > > another idea? What does: udevadm test /devices/pci0000:00/0000:00:04.0/usb4/4-2 print? Kay