I have a wee problem. My printer WAS working fine. It's an HP All-in-one PSC-1210. I got a new printer (HP colour laster 2600n, network attached), got that working, then went to try & use the 1210.... No go...
So I investigated a bit... And it looks like the USB functionality is a bit broken on my Linux box... OK. dmesg shows the printer being attached. ohci_hcd 0000:00:1c.0: wakeup usb 2-2: new full speed USB device using ohci_hcd and address 7 PM: Adding info for usb:2-2 PM: Adding info for No Bus:usbdev2.7_ep00 usb 2-2: configuration #1 chosen from 1 choice PM: Adding info for usb:2-2:1.0 PM: Adding info for No Bus:usbdev2.7_ep01 PM: Adding info for No Bus:usbdev2.7_ep81 PM: Adding info for No Bus:usbdev2.7_ep82 PM: Adding info for usb:2-2:1.1 drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 7 if 1 alt 0 proto 2 vid 0x03F0 pid 0x2F11 PM: Adding info for No Bus:usbdev2.7_ep03 PM: Adding info for No Bus:usbdev2.7_ep83 PM: Adding info for No Bus:usbdev2.7_ep84 PM: Adding info for usb:2-2:1.2 PM: Adding info for No Bus:usbdev2.7_ep05 PM: Adding info for No Bus:usbdev2.7_ep85 PM: Adding info for No Bus:usbdev2.7_ep86 It's in /proc/bus/usb/devices T: Bus=02 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 7 Spd=12 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=03f0 ProdID=2f11 Rev= 1.00 S: Manufacturer=Hewlett-Packard S: Product=psc 1200 series S: SerialNumber=HU341BP1Y75H C:* #Ifs= 3 Cfg#= 1 Atr=c0 MxPwr= 2mA I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=cc Prot=00 Driver=(none) E: Ad=01(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=81(I) Atr=02(Bulk) MxPS= 32 Ivl=0ms E: Ad=82(I) Atr=03(Int.) MxPS= 8 Ivl=10ms I: If#= 1 Alt= 0 #EPs= 3 Cls=07(print) Sub=01 Prot=02 Driver=usblp E: Ad=03(O) Atr=02(Bulk) MxPS= 32 Ivl=0ms E: Ad=83(I) Atr=02(Bulk) MxPS= 32 Ivl=0ms E: Ad=84(I) Atr=03(Int.) MxPS= 8 Ivl=10ms I: If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none) E: Ad=05(O) Atr=02(Bulk) MxPS= 32 Ivl=0ms E: Ad=85(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=86(I) Atr=03(Int.) MxPS= 8 Ivl=10ms I: If#= 2 Alt= 1 #EPs= 3 Cls=ff(vend.) Sub=d4 Prot=00 Driver=(none) E: Ad=05(O) Atr=02(Bulk) MxPS= 32 Ivl=0ms E: Ad=85(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=86(I) Atr=03(Int.) MxPS= 8 Ivl=10ms And there's an entry for it in usbfs damned ~ # ls -l /proc/bus/usb/002/ total 0 -rw-r--r-- 1 root root 43 Oct 6 16:08 001 -rw-r--r-- 1 root root 147 Oct 6 21:04 007 damned ~ # lsusb -t shows a device there... damned ~ # lsusb -t Bus# 4 `-Dev# 1 Vendor 0x0000 Product 0x0000 `-Dev# 2 Vendor 0x046d Product 0xc50e Bus# 3 `-Dev# 1 Vendor 0x0000 Product 0x0000 Bus# 2 `-Dev# 1 Vendor 0x0000 Product 0x0000 `-Dev# 7 Vendor 0x03f0 Product 0x2f11 Bus# 1 `-Dev# 1 Vendor 0x0000 Product 0x0000 `-Dev# 2 Vendor 0x0409 Product 0x0059 `-Dev# 4 Vendor 0x0400 Product 0x0807 damned ~ # But now the funny part... damned ~ # lsusb Bus 004 Device 002: ID 046d:c50e Logitech, Inc. MX-1000 Cordless Mouse Receiver Bus 004 Device 001: ID 0000:0000 Bus 003 Device 001: ID 0000:0000 Bus 002 Device 001: ID 0000:0000 Bus 001 Device 004: ID 0400:0807 National Semiconductor Corp. Bluetooth Dongle Bus 001 Device 002: ID 0409:0059 NEC Corp. HighSpeed Hub Bus 001 Device 001: ID 0000:0000 damned ~ # No printer from lsusb... And specifying the device to show with lsusb damned ~ # lsusb -D /proc/bus/usb/002/007 Cannot open /proc/bus/usb/002/007 damned ~ # strace shows open("/dev/bus/usb/001/001", O_RDWR) = 3 ioctl(3, USBDEVFS_IOCTL, 0x7fff404aeed0) = 9 close(3) = 0 readlink("/proc/bus/usb/002/007", 0x7fff404ae710, 4097) = -1 EINVAL (Invalid argument) write(2, "Cannot open /proc/bus/usb/002/00"..., 34Cannot open /proc/bus/usb/002/007 ) = 34 exit_group(1) = ? Process 31182 detached damned ~ # So why? What's happening? If I specify a diofferent device to lsusb -D it tries the link, gets EINVAL & then does an fstat... But just seems to give up on the printer... Why? Any ideas? is my printer haunted? Oh yeah... The printer, cable etc all work fine on a Windoze machine... Go figure. H
pgpFVdmF709J3.pgp
Description: PGP signature
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users