From: Gernot H. <aik...@gm...> - 2015-09-21 19:03:29
|
On Tue, Sep 22, 2015 at 3:44 AM, Gernot Hassenpflug <aik...@gm...> wrote: > On Tue, Sep 22, 2015 at 3:38 AM, Solomon Peachy <pi...@sh...> wrote: >> On Tue, Sep 22, 2015 at 03:28:53AM +0900, Gernot Hassenpflug wrote: >>> Does getusbprinterid.pl work on the new libusb devices? >> >>> root@hase:/usr/share/system-config-printer# ./getusbprinterid.pl >>> /dev/bus/usb/010/003 >>> Died at ./getusbprinterid.pl line 12. > > Hello Solomon, > >> Same things happens on my x86_64 system: >> >> Bus 001 Device 007: ID 04f9:0039 Brother Industries, Ltd HL-5340 series >> >> perl getusbprinterid.pl /dev/bus/usb/001/007 >> Died at /home/pizza/getusbprinterid.pl line 12. >> >> And the CUPS USB backend finds it just fine: >> >> /usr/lib/cups/backend/usb >> direct usb://Brother/HL-5340D%20series?serial=M9J473381 "Brother HL-5340D series" "Brother HL-5340D series" "MFG:Brother;CMD:PJL,PCL,PCLXL;MDL:HL-5340D series;CLS:PRINTER;" "" >> >> Come to think of it, any reason you can't just invoke the CUPS USB backend to get the IEEE1284 ID? > > Good point, I did not know I could do that! > However, only the iP4500 is found: > > root@hase:/home/hase/src/gutenprint/print-compile/src/testpattern# > /usr/lib/cups/backend/usb > DEBUG: Loading USB quirks from "/usr/share/cups/usb". > DEBUG: Loaded 127 quirks. > DEBUG: list_devices > DEBUG: libusb_get_device_list=20 > DEBUG2: Printer found with device ID: > MFG:Canon;CMD:BJL,BJRaster3,BSCCe,PLI;SOJ:TXT01;MDL:iP4500 > series;CLS:PRINTER;DES:Canon iP4500 > series;VER:1.000;STA:10;FSI:03;HRI:JP;MSI:AOFF,BOFF,DAT,E3; Device > URI: usb://Canon/iP4500%20series?serial=200E70 > direct usb://Canon/iP4500%20series?serial=200E70 "Canon iP4500 series" > "Canon iP4500 series" > "MFG:Canon;CMD:BJL,BJRaster3,BSCCe,PLI;SOJ:TXT01;MDL:iP4500 > series;CLS:PRINTER;DES:Canon iP4500 > series;VER:1.000;STA:10;FSI:03;HRI:JP;MSI:AOFF,BOFF,DAT,E3;" "" > > No mention of the MP10/MPC200. Weird. > Regards, > Gernot Hassenpflug For reference, here the /var/log/messages entries when connecting the USB cable (lsusb however sees it is MPC200): Sep 22 03:58:48 hase kernel: [120756.716028] usb 1-2: new full-speed USB device number 3 using uhci_hcd Sep 22 03:58:48 hase kernel: [120756.892071] usb 1-2: New USB device found, idVendor=04a9, idProduct=261f Sep 22 03:58:48 hase kernel: [120756.892076] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 Sep 22 03:58:48 hase kernel: [120756.892079] usb 1-2: Product: PIXUS MP10 Sep 22 03:58:48 hase kernel: [120756.892081] usb 1-2: Manufacturer: Canon Inc. Sep 22 03:58:48 hase kernel: [120756.892084] usb 1-2: SerialNumber: 00000001894E Sep 22 03:58:48 hase kernel: [120756.895240] usb-storage 1-2:1.1: USB Mass Storage device detected Sep 22 03:58:48 hase kernel: [120756.895319] scsi host15: usb-storage 1-2:1.1 Sep 22 03:58:48 hase mtp-probe: checking bus 1, device 3: "/sys/devices/pci0000:00/0000:00:1d.0/usb1/1-2" Sep 22 03:58:48 hase mtp-probe: bus: 1, device: 3 was not an MTP device Sep 22 03:58:50 hase kernel: [120757.980177] scsi 15:0:0:0: Direct-Access Canon MultiPASS PCcard 0100 PQ: 0 ANSI: 2 Sep 22 03:58:50 hase kernel: [120757.980490] sd 15:0:0:0: Attached scsi generic sg7 type 0 Sep 22 03:58:50 hase kernel: [120758.000145] sd 15:0:0:0: [sdg] Attached SCSI removable disk And when disconnecting the cable: Sep 22 04:00:30 hase kernel: [120858.230599] usblp1: removed Sep 22 04:00:30 hase kernel: [120858.257958] usblp 8-4:1.0: usblp1: USB Bidirectional printer dev 5 if 0 alt 0 proto 2 vid 0x04A9 pid 0x10C4 Sep 22 04:01:38 hase kernel: [120926.228114] usb 1-2: USB disconnect, device number 3 Regards, Gernot Hassenpflug |