LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   USB Printer no longer recognized with cups 1.5.3 (https://www.linuxquestions.org/questions/slackware-14/usb-printer-no-longer-recognized-with-cups-1-5-3-a-4175413462/)

allend 06-27-2012 06:00 PM

Quote:

Why didn't I think of udev right away? I must be getting old...
LOL - So must I. A udev custom rule has been the answer for me with this device in 2007 http://www.linuxquestions.org/questi...1/#post2936557 and again in 2010 http://www.linuxquestions.org/questi...7/#post3892704

gmgf 06-27-2012 11:32 PM

Till Kampeter make news patch for more cups version here:

http://www.cups.org/str.php?L4128

chrisretusn 06-28-2012 08:09 AM

My multifunction Canon PIXMA MP-258 printer is now recognized -current. Maraming salamat po lahat.

Added custom udev rules tp /etc/udev/rules.d/
Code:

# 10-usbprinter-MP258.rules
# Custom udev rules to enable printer and scanner on Canon PIXMA MP-258 (MP-250 series)
ATTR{idVendor}=="04a9", ATTR{idProduct}=="173a", MODE:="0660", GROUP:="lp"
ATTR{idVendor}=="04a9", ATTR{idProduct}=="173a", MODE:="0660", GROUP:="lp", ENV{libsane_matched}:="yes"

Code:

# with new udev-rule
# /var/log/messages
# printer on
Jun 28 06:28:59 racermach kernel: [  445.875059] usb 1-3: new high-speed USB device number 8 using ehci_hcd
Jun 28 06:28:59 racermach kernel: [  445.991945] usb 1-3: New USB device found, idVendor=04a9, idProduct=173a
Jun 28 06:28:59 racermach kernel: [  445.991948] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jun 28 06:28:59 racermach kernel: [  445.991950] usb 1-3: Product: MP250 series
Jun 28 06:28:59 racermach kernel: [  445.991951] usb 1-3: Manufacturer: Canon
Jun 28 06:28:59 racermach kernel: [  445.991952] usb 1-3: SerialNumber: 931088
Jun 28 06:28:59 racermach kernel: [  445.994995] usblp0: USB Bidirectional printer dev 8 if 1 alt 0 proto 2 vid 0x04A9 pid 0x173A
Jun 28 06:29:01 racermach kernel: [  447.240926] usblp0: removed
Jun 28 06:29:01 racermach kernel: [  447.243512] usblp0: USB Bidirectional printer dev 8 if 1 alt 0 proto 2 vid 0x04A9 pid 0x173A
Jun 28 06:29:01 racermach udev-configure-printer: Re-enabled printer ipp://localhost:631/printers/Canon_MP250_series
printer off
Jun 28 06:30:19 racermach kernel: [  525.255592] usb 1-3: USB disconnect, device number 8
Jun 28 06:30:19 racermach kernel: [  525.255719] usblp0: removed
Jun 28 06:30:19 racermach udev-configure-printer: Disabled printer ipp://localhost:631/printers/Canon_MP250_series as the corresponding device was unplugged or turned off


# dmesg
# printer on
[  445.875059] usb 1-3: new high-speed USB device number 8 using ehci_hcd
[  445.991945] usb 1-3: New USB device found, idVendor=04a9, idProduct=173a
[  445.991948] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  445.991950] usb 1-3: Product: MP250 series
[  445.991951] usb 1-3: Manufacturer: Canon
[  445.991952] usb 1-3: SerialNumber: 931088
[  445.994995] usblp0: USB Bidirectional printer dev 8 if 1 alt 0 proto 2 vid 0x04A9 pid 0x173A
[  447.240926] usblp0: removed
[  447.243512] usblp0: USB Bidirectional printer dev 8 if 1 alt 0 proto 2 vid 0x04A9 pid 0x173A
# printer off
[  525.255592] usb 1-3: USB disconnect, device number 8
[  525.255719] usblp0: removed

# ~# lpinfo -v
network https
network ipp
direct hp
network http
network lpd
network socket
network smb
network ipps
direct usb://Canon/MP250%20series?serial=931088&interface=1
direct hpfax

# ~# /usr/lib64/cups/backend/usb
DEBUG: list_devices
DEBUG: libusb_get_device_list=12
direct usb://Canon/MP250%20series?serial=931088&interface=1 "Canon MP250 series" "Canon MP250 series" "MFG:Canon;CMD:BJL,BJRaster3,BSCCe,IVEC,IVECPLI;SOJ:TXT01;MDL:MP250 series;CLS:PRINTER;DES:Canon MP250 series;VER:1.020;STA:10;FSI:00;HRI:ASI;MSI:DAT,E3;PDR:6;" ""

## When printing, does this each print job/
# start of job
Jun 28 07:03:08 racermach kernel: [ 2494.732643] usblp0: removed
# end of job
Jun 28 07:03:32 racermach kernel: [ 2518.154291] usblp0: USB Bidirectional printer dev 9 if 1 alt 0 proto 2 vid 0x04A9 pid 0x173A


## Related to scanner
# start xsane
# /var/log/syslog
Jun 28 06:58:26 racermach kernel: [ 2212.273456] usb 1-3: usbfs: interface 1 claimed by usblp while xsane' sets config #1
Jun 28 06:58:30 racermach kernel: [ 2216.128418] usb 1-3: usbfs: interface 1 claimed by usblp while 'xsane' sets config #1
Jun 28 06:58:31 racermach kernel: [ 2217.130793] usb 1-3: usbfs: interface 1 claimed by usblp while 'xsane' sets config #1

Unfortunately it appears I still have issues. I cannot get anything to printer in color. Tried printing local, from my laptop via the LAN and using xsane Copy. Ironically if I fire up any of my
VirtualBox Windows machines (XP, 7 and 8) or boot to Windows XP in my laptop it prints properly in color.

Going back to cups 1.4.6 now has issues too, it prints all black, the whole page. I just know it got to be something simple that I have overlooking.

:banghead:

chrisretusn 06-29-2012 01:39 AM

I couldn't get the printer to printer correctly with cups 1.4.6, printing black across the entire page. At least I am able to abort it, hate to waste all that ink. ;)

I am back to cups 1.5.3 and it's working except I cannot print in color. Only gray scale.

chrisretusn 06-29-2012 08:04 AM

WooHoo! It is working now. The Thu Jun 28 21:40:00 UTC 2012 updates fixed the problem. I'm guessing it was one of these three, or maybe all combined.

Code:

ap/ghostscript-9.05-x86_64-2.txz:  Rebuilt.
  Restored missing CUPS support.  Thanks to alienBOB.
l/libusb-1.0.9-x86_64-1.txz:  Upgraded.
l/libusb-compat-0.1.4-x86_64-1.txz:  Added.
  Split from libusb and upgraded.

Thanks to all who helped.

jensenr30 09-19-2015 08:02 PM

I added that one line to my
/etc/udev/rules.d/10-usbprinters.rules
file.
This still works three years later
Thanks!


All times are GMT -5. The time now is 01:25 AM.