[argyllcms] Re: SOLVED newbie problems with make, usb
- From: Milan Knizek <knizek@xxxxxxxx>
- To: argyllcms@xxxxxxxxxxxxx
- Date: Tue, 26 Jun 2007 18:55:55 +0200
On Tuesday 26 June 2007, Graeme Gill wrote:
> Really weird. There are many examples of udev configs that use
> BUS=="usb" out there, so why this should have a negative effect
> is a puzzle. Perhaps this has been removed from udev, and
> now one uses SUBSYSTEM=="usb_device" ?
You are right, my version of udev 108-0ubuntu4 does not include the key "BUS".
I have searched the release notes of udev and found that in version 098 some
keys were renamed (incl. BUS -> SUBSYSTEMS) so they may not be supported in
newer versions anymore.
Hence it seems quite difficult to propose a universal advice valid for all
systems apart from
1) check dmesg after plug-in to find out which usb device was assigned (e.g.
usb 2-1)
2) check udevinfo -a -p /sys/bus/usb/devices/2-1
3) use those keys in your rules.
--
Milan Knizek
knizek (na) volny (tecka) cz
http://www.milan-knizek.net/
udevmonitor will print the received events for:
UDEV the event which udev sends out after rule processing
UEVENT the kernel uevent
UEVENT[1182874180.170331] add /devices/pci0000:00/0000:00:1d.1/usb2/2-1
(usb)
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:1d.1/usb2/2-1
SUBSYSTEM=usb
SEQNUM=2791
PHYSDEVBUS=usb
DEVICE=/proc/bus/usb/002/007
PRODUCT=971/2003/600
TYPE=0/0/0
UEVENT[1182874180.170390] add /class/usb_endpoint/usbdev2.7_ep00
(usb_endpoint)
ACTION=add
DEVPATH=/class/usb_endpoint/usbdev2.7_ep00
SUBSYSTEM=usb_endpoint
SEQNUM=2792
MAJOR=254
MINOR=19
UDEV [1182874180.171843] add /devices/pci0000:00/0000:00:1d.1/usb2/2-1
(usb)
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:1d.1/usb2/2-1
SUBSYSTEM=usb
SEQNUM=2791
PHYSDEVBUS=usb
DEVICE=/proc/bus/usb/002/007
PRODUCT=971/2003/600
TYPE=0/0/0
UDEVD_EVENT=1
UEVENT[1182874180.173309]
add /devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1:1.0 (usb)
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1:1.0
SUBSYSTEM=usb
SEQNUM=2793
PHYSDEVBUS=usb
DEVICE=/proc/bus/usb/002/007
PRODUCT=971/2003/600
TYPE=0/0/0
INTERFACE=0/0/0
MODALIAS=usb:v0971p2003d0600dc00dsc00dp00ic00isc00ip00
UEVENT[1182874180.173416] add /class/usb_endpoint/usbdev2.7_ep81
(usb_endpoint)
ACTION=add
DEVPATH=/class/usb_endpoint/usbdev2.7_ep81
SUBSYSTEM=usb_endpoint
SEQNUM=2794
MAJOR=254
MINOR=20
UEVENT[1182874180.173437] add /class/usb_device/usbdev2.7 (usb_device)
ACTION=add
DEVPATH=/class/usb_device/usbdev2.7
SUBSYSTEM=usb_device
SEQNUM=2795
PHYSDEVPATH=/devices/pci0000:00/0000:00:1d.1/usb2/2-1
PHYSDEVBUS=usb
PHYSDEVDRIVER=usb
MAJOR=189
MINOR=134
UDEV [1182874180.185181] add /class/usb_endpoint/usbdev2.7_ep00
(usb_endpoint)
UDEV_LOG=3
ACTION=add
DEVPATH=/class/usb_endpoint/usbdev2.7_ep00
SUBSYSTEM=usb_endpoint
SEQNUM=2792
MAJOR=254
MINOR=19
UDEVD_EVENT=1
DEVNAME=/dev/usbdev2.7_ep00
UDEV [1182874180.195559] add /class/usb_endpoint/usbdev2.7_ep81
(usb_endpoint)
UDEV_LOG=3
ACTION=add
DEVPATH=/class/usb_endpoint/usbdev2.7_ep81
SUBSYSTEM=usb_endpoint
SEQNUM=2794
MAJOR=254
MINOR=20
UDEVD_EVENT=1
DEVNAME=/dev/usbdev2.7_ep81
UDEV [1182874180.209292]
add /devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1:1.0 (usb)
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1:1.0
SUBSYSTEM=usb
SEQNUM=2793
PHYSDEVBUS=usb
DEVICE=/proc/bus/usb/002/007
PRODUCT=971/2003/600
TYPE=0/0/0
INTERFACE=0/0/0
MODALIAS=usb:v0971p2003d0600dc00dsc00dp00ic00isc00ip00
UDEVD_EVENT=1
UDEV [1182874180.232296] add /class/usb_device/usbdev2.7 (usb_device)
UDEV_LOG=3
ACTION=add
DEVPATH=/class/usb_device/usbdev2.7
SUBSYSTEM=usb_device
SEQNUM=2795
PHYSDEVPATH=/devices/pci0000:00/0000:00:1d.1/usb2/2-1
PHYSDEVBUS=usb
PHYSDEVDRIVER=usb
MAJOR=189
MINOR=134
UDEVD_EVENT=1
USB_BUS=002
USB_DEV=007
DEVNAME=/dev/bus/usb/002/007
- Follow-Ups:
- [argyllcms] Re: SOLVED newbie problems with make, usb
- From: Caspar Maessen
- References:
Other related posts:
- » [argyllcms] Re: SOLVED newbie problems with make, usb
- » [argyllcms] Re: SOLVED newbie problems with make, usb
- [argyllcms] Re: SOLVED newbie problems with make, usb
- From: Caspar Maessen