LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-27-2012, 06:00 PM   #16
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,377

Rep: Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757

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
 
Old 06-27-2012, 11:32 PM   #17
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,227

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Till Kampeter make news patch for more cups version here:

http://www.cups.org/str.php?L4128
 
Old 06-28-2012, 08:09 AM   #18
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,978

Original Poster
Rep: Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556
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.

 
Old 06-29-2012, 01:39 AM   #19
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,978

Original Poster
Rep: Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556
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.
 
Old 06-29-2012, 08:04 AM   #20
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,978

Original Poster
Rep: Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556
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.
 
Old 09-19-2015, 08:02 PM   #21
jensenr30
LQ Newbie
 
Registered: Sep 2015
Posts: 1

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


Reply

Tags
cups, libusb, printer, slackware -current



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] CUPS no longer printing with Brother HL2170W laser printer lpallard Linux - Software 8 06-26-2011 04:45 AM
USB no longer recognized wcook1613 Linux - Newbie 1 05-27-2011 05:27 PM
[cups] "no printers found" - printer isn't recognized by CUPS over network Majin_Buu Linux - Server 3 06-18-2009 10:25 AM
cups to cups printing through network on usb printer checkmate3001 Linux - Server 2 02-16-2009 12:12 PM
Cups no longer working: printer useless realnerd Debian 3 02-28-2007 03:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration