From: sean <seandarcy2@gmail.com>
To: linux-hotplug@vger.kernel.org
Subject: something changed in 2.6.18-rc1??
Date: Sun, 09 Jul 2006 23:35:13 +0000 [thread overview]
Message-ID: <e8s3ri$iua$1@sea.gmane.org> (raw)
Trying to setup a usb printer, but ( from "Writing udev rules"):
udevinfo -a -p $(udevinfo -q path -n /dev/usb/lp0)
......................................
looking at device
'/devices/pci0000:00/0000:00:02.2/usb3/3-5/3-5:1.1/lp0':
KERNEL="lp0"
SUBSYSTEM="usb"
SYSFS{dev}="180:0"
looking at parent device
'/devices/pci0000:00/0000:00:02.2/usb3/3-5/3-5:1.1':
ID="3-5:1.1"
BUS="usb"
DRIVER="usblp"
SYSFS{ieee1284_id}="MFG:EPSON_CMD:ESCPL2,BDC,D4_MDL:Stylus
Photo R300_CLS:PRINTER_DES:EPSON Stylus Photo R300_"
SYSFS{interface}="USB2.0 Printer"
SYSFS{modalias}="usb:v04B8p0803d0100dc00dsc00dp00ic07isc01ip02"
SYSFS{bInterfaceProtocol}="02"
SYSFS{bInterfaceSubClass}="01"
SYSFS{bInterfaceClass}="07"
SYSFS{bNumEndpoints}="02"
SYSFS{bAlternateSetting}=" 0"
SYSFS{bInterfaceNumber}="01"
looking at parent device
'/devices/pci0000:00/0000:00:02.2/usb3/3-5':
ID="3-5"
BUS="usb"
DRIVER="usb"
SYSFS{configuration}="USB2.0 MFP_Hi-Speed_"
SYSFS{serial}="L17P10401110941270"
SYSFS{product}="USB2.0 MFP_Hi-Speed_"
SYSFS{manufacturer}="EPSON"
SYSFS{maxchild}="0"
SYSFS{version}=" 2.00"
SYSFS{devnum}="2"
SYSFS{speed}="480"
SYSFS{bMaxPacketSize0}="64"
SYSFS{bNumConfigurations}="1"
SYSFS{bDeviceProtocol}="00"
SYSFS{bDeviceSubClass}="00"
SYSFS{bDeviceClass}="00"
SYSFS{bcdDevice}="0100"
SYSFS{idProduct}="0803"
SYSFS{idVendor}="04b8"
SYSFS{bMaxPower}=" 2mA"
SYSFS{bmAttributes}="c0"
SYSFS{bConfigurationValue}="1"
SYSFS{bNumInterfaces}=" 2"
looking at parent device
'/devices/pci0000:00/0000:00:02.2/usb3':
ID="usb3"
BUS="usb"
DRIVER="usb"
SYSFS{configuration}=""
SYSFS{serial}="0000:00:02.2"
SYSFS{product}="EHCI Host Controller"
SYSFS{manufacturer}="Linux 2.6.17-1.2358.fc6 ehci_hcd"
SYSFS{maxchild}="8"
SYSFS{version}=" 2.00"
SYSFS{devnum}="1"
SYSFS{speed}="480"
SYSFS{bMaxPacketSize0}="64"
SYSFS{bNumConfigurations}="1"
SYSFS{bDeviceProtocol}="01"
SYSFS{bDeviceSubClass}="00"
SYSFS{bDeviceClass}="09"
SYSFS{bcdDevice}="0206"
SYSFS{idProduct}="0000"
SYSFS{idVendor}="0000"
SYSFS{bMaxPower}=" 0mA"
SYSFS{bmAttributes}="e0"
SYSFS{bConfigurationValue}="1"
SYSFS{bNumInterfaces}=" 1"
looking at parent device '/devices/pci0000:00/0000:00:02.2':
ID="0000:00:02.2"
BUS="pci"
DRIVER="ehci_hcd"
SYSFS{broken_parity_status}="0"
SYSFS{enable}="1"
SYSFS{modalias}="pci:v000010DEd000000E8sv00001458sd00005004bc0Csc03i20"
SYSFS{local_cpus}="00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001"
SYSFS{irq}="177"
SYSFS{class}="0x0c0320"
SYSFS{subsystem_device}="0x5004"
SYSFS{subsystem_vendor}="0x1458"
SYSFS{device}="0x00e8"
SYSFS{vendor}="0x10de"
looking at parent device '/devices/pci0000:00':
ID="pci0000:00"
BUS=""
DRIVER=""
Based on that I tried this rule in
/etc/udev/rules.d/15-local.rules, based on the ieee1284_id
since it was the most specific attribute I could find:
BUS="usb",
SYSFS{ieee1284_id}="MFG:EPSON_CMD:ESCPL2,BDC,D4_MDL:Stylus
Photo R300_CLS:PRINTER_DES:EPSON Stylus Photo R300_",
SYMLINK+="epson-R300"
/dev/epson-R300 is not created. /dev/usb/lp0 does exist.
FWIW,
BUS="usb", KERNEL="lp0", SYMLINK+="epson_R300"
SUBSYSTEM="usb", KERNEL="lp0", SYMLINK+="epson_R300
both worked, but are too generic.
puzzled.
sean
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
next reply other threads:[~2006-07-09 23:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-09 23:35 sean [this message]
2006-07-10 1:03 ` something changed in 2.6.18-rc1?? sean
2006-07-18 18:19 ` sean
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='e8s3ri$iua$1@sea.gmane.org' \
--to=seandarcy2@gmail.com \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).