LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-06-2012, 07:22 AM   #1
4Strings
Member
 
Registered: Aug 2010
Distribution: slackware-14.1
Posts: 38

Rep: Reputation: 5
hanging printer and "udev-configure-printer"


I'm experiencing a printing issue with Epson Stylus DX4450 (driver: Epson Stylus DX4450 - CUPS+Gutenprint v5.2.9). I'm running on slackware current.

I'm trying to print a pdf file (by Okular) but the printing process hangs at 80% (more or less) and the printer doesn't eject the sheet. In order to take it I've to press manually the "stop" button on the printer.
I tried to do a quick test by printing the "Test Page". Same problem!

I tried "lpr", too.
Code:
lpr -P EPSON_Stylus_DX4400 FileToPrint.pdf
Unfortunately, ....same issue!

When the printer hangs, the "/var/log/syslog" reports the following line:
Code:
Aug  6 12:19:16 darkstar udev-configure-printer: unable to access /sys/devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.1/usb/lp0
ls -ld returns:
Code:
ls -ld /sys/devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.1/usb/lp0
drwxr-xr-x 3 root root 0 Aug  6 12:29 /sys/devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.1/usb/lp0
Here is the output of /var/log/messages, since I connect the printer to the usb port till the end of the printing process:
Code:
Aug  6 12:16:08 darkstar kernel: [  417.475090] usb 3-1: new full-speed USB device number 2 using uhci_hcd
Aug  6 12:16:08 darkstar kernel: [  417.623119] usb 3-1: New USB device found, idVendor=04b8, idProduct=083f
Aug  6 12:16:08 darkstar kernel: [  417.623128] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Aug  6 12:16:08 darkstar kernel: [  417.623135] usb 3-1: Product: USB1.1 MFP(Full-Speed)
Aug  6 12:16:08 darkstar kernel: [  417.623140] usb 3-1: Manufacturer: EPSON
Aug  6 12:16:08 darkstar kernel: [  417.623144] usb 3-1: SerialNumber: B06270803031705052
Aug  6 12:16:08 darkstar mtp-probe: checking bus 3, device 2: "/sys/devices/pci0000:00/0000:00:1d.1/usb3/3-1" 
Aug  6 12:16:08 darkstar mtp-probe: bus: 3, device: 2 was not an MTP device 
Aug  6 12:16:08 darkstar kernel: [  417.691218] usblp0: USB Bidirectional printer dev 2 if 1 alt 0 proto 2 vid 0x04B8 pid 0x083F
Aug  6 12:16:08 darkstar kernel: [  417.691257] usbcore: registered new interface driver usblp
Aug  6 12:16:09 darkstar kernel: [  418.863363] usblp0: removed
Aug  6 12:16:09 darkstar kernel: [  418.874204] usblp0: USB Bidirectional printer dev 2 if 1 alt 0 proto 2 vid 0x04B8 pid 0x083F
Aug  6 12:16:10 darkstar udev-configure-printer: Re-enabled printer ipp://localhost:631/printers/EPSON_Stylus_DX4400
Aug  6 12:18:07 darkstar kernel: [  536.431565] usblp0: removed
Aug  6 12:19:16 darkstar kernel: [  605.668241] usblp0: USB Bidirectional printer dev 2 if 1 alt 0 proto 2 vid 0x04B8 pid 0x083F
Aug  6 12:19:16 darkstar kernel: [  605.670083] usblp0: removed
Aug  6 12:19:16 darkstar kernel: [  605.772062] usb 3-1: reset full-speed USB device number 2 using uhci_hcd
Aug  6 12:19:17 darkstar kernel: [  605.910262] usblp0: USB Bidirectional printer dev 2 if 1 alt 0 proto 2 vid 0x04B8 pid 0x083F
How could I solve? Is this an udev issue? ...or a cups one?
 
Old 08-06-2012, 10:14 AM   #2
4Strings
Member
 
Registered: Aug 2010
Distribution: slackware-14.1
Posts: 38

Original Poster
Rep: Reputation: 5
a quick update...

I also tried to print as root but with no result: same problem with the same behaviour.
(I guess ...it isn't a permission matter!).

Printing as root syslog reports the same error message:
Code:
Aug  6 15:48:48 darkstar udev-configure-printer: unable to access /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1:1.1/usb/lp0
 
Old 08-06-2012, 11:48 AM   #3
hj1967
LQ Newbie
 
Registered: Jun 2011
Location: Nunspeet, The Netherlands
Distribution: Slackware x64
Posts: 28

Rep: Reputation: Disabled
Quote:
Originally Posted by 4Strings View Post
a quick update...

I also tried to print as root but with no result: same problem with the same behaviour.
(I guess ...it isn't a permission matter!).

Printing as root syslog reports the same error message:
Code:
Aug  6 15:48:48 darkstar udev-configure-printer: unable to access /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1:1.1/usb/lp0
Are you using your own kernel with usblp built in?
CUPS now uses libusb.

I used my own kernel and also had printing problems but after rebuilding the kernel with no usblp it works fine.
 
Old 08-06-2012, 02:05 PM   #4
4Strings
Member
 
Registered: Aug 2010
Distribution: slackware-14.1
Posts: 38

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by hj1967 View Post
Are you using your own kernel with usblp built in?
CUPS now uses libusb.
I'm using the original slackware -current kernel (3.2.23-smp). As you supposed the usblp module was loaded:
Code:
$lsmod | grep lp
usblp                   9263  0 
lp                      7119  0 
parport                26159  3 parport_pc,ppdev,lp
...
So, I've blacklisted the "usblp" module in /etc/modprobe.d/blacklist.conf.
Now the lsmod output is: (no usblp!)
Code:
$lsmod | grep lp
lp                      7119  0 
parport                26159  3 parport_pc,ppdev,lp
...
After the reboot, the issue unfortunately persists!
1. the printing process ends up at 80-90%;
2. the printer doesnt'eject the sheet
3. the printer enter in stand-by mode, so that I've to disconnect and reconnect the usb cable.

By disabling usblp, I could notice some changes in syslog and messages reports.

In syslog disappeared the following line:
Code:
udev-configure-printer: unable to access /sys/devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.1/usb/lp0
Here's the /var/log/messages when the printing process stops and the printer enter in stand-by mode:
Code:
Aug  6 19:27:03 darkstar kernel: [ 1057.905114] usb 2-1: reset full-speed USB device number 4 using uhci_hcd
 
Old 08-06-2012, 03:18 PM   #5
hj1967
LQ Newbie
 
Registered: Jun 2011
Location: Nunspeet, The Netherlands
Distribution: Slackware x64
Posts: 28

Rep: Reputation: Disabled
You might have a different problem as what I had.

I had all kind of print problems and nothing came out the printer. There also where a lot of udev-config-printer messages although
not exactly the same as you have.

I recompiled my kernel removed the USB_PRINTER support and it works fine for me. (I have an HP deskjet connected using usb2).

Is your printer connected on an USB3 port? could you try a USB2 if you have one.

Also do you have the cups update of 2 aug (1.5.4) ?
 
Old 08-06-2012, 04:59 PM   #6
4Strings
Member
 
Registered: Aug 2010
Distribution: slackware-14.1
Posts: 38

Original Poster
Rep: Reputation: 5
Thanks for your help!

Quote:
Originally Posted by hj1967 View Post
Is your printer connected on an USB3 port? could you try a USB2 if you have one.
No, it isn't. My laptop has only USB2 ports.

Quote:
Originally Posted by hj1967 View Post
Also do you have the cups update of 2 aug (1.5.4) ?
Yes, I do.

I will try to downgrade cups by recompiling the previous version (1.5.3). If still no success, I will rebuild kernel in order to remove "usblp".
 
Old 08-06-2012, 06:38 PM   #7
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 877

Rep: Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827
Quote:
Originally Posted by 4Strings View Post
I will try to downgrade cups by recompiling the previous version (1.5.3). If still no success, I will rebuild kernel in order to remove "usblp".
Perhaps try adding /etc/modprobe.d/usblp.conf containing this line:

blacklist usblp

I'll be interested to hear if it helps. I'm considering adding that to the default blacklists since I don't think anything wants the module at this point. It's supposed to be unloaded as needed, but you know how that can go.
 
Old 08-07-2012, 04:51 AM   #8
4Strings
Member
 
Registered: Aug 2010
Distribution: slackware-14.1
Posts: 38

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by volkerdi View Post
Perhaps try adding /etc/modprobe.d/usblp.conf containing this line:

blacklist usblp

I'll be interested to hear if it helps. I'm considering adding that to the default blacklists since I don't think anything wants the module at this point. It's supposed to be unloaded as needed, but you know how that can go.
Hi! I'm going to do this test!

In the meantime I'd like to report that downgrading to the previous version (1.5.3) of cups (compiled by the original slackbuild in slackware-current/source/a/cups/) solves the issue.
I could even remove the line "blacklist usblp" from the /etc/modprobe.d/blacklist and print with success!!
(So it'd be that by using cups-1.5.3 no matter if the usblp mobule is blacklisted or not!!)

here's the /var/log/messages:
Code:
Aug  7 10:12:00 darkstar kernel: [  163.338130] usb 2-1: Manufacturer: EPSON
Aug  7 10:12:00 darkstar kernel: [  163.338134] usb 2-1: SerialNumber: B06270803031705052
Aug  7 10:12:00 darkstar mtp-probe: checking bus 2, device 2: "/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1" 
Aug  7 10:12:00 darkstar mtp-probe: bus: 2, device: 2 was not an MTP device 
Aug  7 10:12:00 darkstar kernel: [  163.421234] usblp0: USB Bidirectional printer dev 2 if 1 alt 0 proto 2 vid 0x04B8 pid 0x083F
Aug  7 10:12:00 darkstar kernel: [  163.421272] usbcore: registered new interface driver usblp
Aug  7 10:12:01 darkstar kernel: [  164.607484] usblp0: removed
Aug  7 10:12:01 darkstar kernel: [  164.616204] usblp0: USB Bidirectional printer dev 2 if 1 alt 0 proto 2 vid 0x04B8 pid 0x083F
Aug  7 10:12:02 darkstar udev-configure-printer: Re-enabled printer ipp://localhost:631/printers/Stylus-DX4400
Aug  7 10:13:19 darkstar kernel: [  242.286222] usblp0: removed
Aug  7 10:14:34 darkstar kernel: [  317.286279] usblp0: USB Bidirectional printer dev 2 if 1 alt 0 proto 2 vid 0x04B8 pid 0x083F
Aug  7 10:17:38 darkstar kernel: [  500.942310] usblp0: removed
Aug  7 10:17:54 darkstar kernel: [  516.767323] usblp0: USB Bidirectional printer dev 2 if 1 alt 0 proto 2 vid 0x04B8 pid 0x083F
This time the /var/log/messages is slightly different than before, 'cause doesn't report the row:
Code:
reset full-speed USB device number 2 using uhci_hcd

According to this page https://bugs.archlinux.org/task/30965 the same issue has been noticed in ArchLinux with cups-1.5.4. It seems that the solution was to apply a patch.

Now I'm going to reinstall cups-1.5.4 and adding /etc/modprobe.d/usblp.conf with
Code:
blacklist usblp
 
Old 08-07-2012, 06:27 AM   #9
4Strings
Member
 
Registered: Aug 2010
Distribution: slackware-14.1
Posts: 38

Original Poster
Rep: Reputation: 5
test result /etc/modprobe.d/usblp.conf

Quote:
Originally Posted by volkerdi View Post
Perhaps try adding /etc/modprobe.d/usblp.conf containing this line:

blacklist usblp

I'll be interested to hear if it helps.
Hi again! I've reinstalled cups-1.5.4-i486-1 and added /etc/modprobe.d/usblp.conf with the line blacklist usblp.
Unfortunately, it doesn't solve the issue.

It appears to be no difference between creating the new /etc/modprobe.d/usblp.conf and simply adding the blacklist usblp line at the end of the /etc/modprobe.d/blacklist.
In both cases same identical behaviour: when the printer hangs, the following ..."nightmare" () line appears in the /var/log/messages:
Code:
Aug  7 11:55:52 darkstar kernel: [  423.151085] usb 2-1: reset full-speed USB device number 2 using uhci_hcd
I'll make a try, applying the patch (available here https://bugs.archlinux.org/task/30965) to the 1.5.4 cups sources.
 
Old 08-07-2012, 09:19 AM   #10
4Strings
Member
 
Registered: Aug 2010
Distribution: slackware-14.1
Posts: 38

Original Poster
Rep: Reputation: 5
test2 result -patching cups-1.5.4 source-

Hi! Another feedback! Patching the cups-1.5.4 sources really seems to solve the problem.

The above mentioned ArchLinux discussion (https://bugs.archlinux.org/task/30965) links to a Cups Bug Report Page (http://cups.org/str.php?L4155) to download the patch: http://cups.org/strfiles/4155/usb-ba...-devices.patch
The new USB backend of CUPS 1.5.4 and 1.6.x does a port reset; so, it has been created an handler to prevent the port reset for some printers:
Samsung printers, Seiko Epson Receipt Printer M129C (my Epson DX4450 has the same VendorID: 0x04b8) and for Prolific Technology USB->Parallel adapters.

So far I've printed ten pages without problem. I stopped then restarted cups, plugging and unplugging the usb cable of the printer, too. All seems to be OK!!
The printing process is ok even with the usblp module loaded (not blacklisted)!
 
Old 08-07-2012, 11:02 AM   #11
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,638

Rep: Reputation: 451Reputation: 451Reputation: 451Reputation: 451Reputation: 451
Thanks
i added this patch on my CUPS 1.6.1 package and it should fix the problem where it would stop printing at 3/4 of the page
 
Old 08-07-2012, 03:36 PM   #12
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 877

Rep: Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827
Quote:
Originally Posted by 4Strings View Post
Hi! Another feedback! Patching the cups-1.5.4 sources really seems to solve the problem.
Thanks for the report! I'll be applying the patch.
 
Old 08-07-2012, 06:40 PM   #13
4Strings
Member
 
Registered: Aug 2010
Distribution: slackware-14.1
Posts: 38

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by volkerdi View Post
Thanks for the report! I'll be applying the patch.
Hi! I'm really very happy to know that the patch will be applied!!!
I'm really glad and honoured to have given a little contribution to the greatest linux distribution!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
server-error-internal-error with CUPS "Configure Printer" fskmh Slackware 6 06-05-2013 02:51 PM
"Printer not connected.." with CUPS 1.2.10 and Brother MFC-215C USB mattp52 Linux - Hardware 1 09-18-2007 04:39 AM
Printer Configuration: "Print file sent, waiting for printer to finish", JetDirect Ed-MtnBiker Fedora 3 02-23-2007 01:41 PM
"Unable to create printer" from KDE Wizard when setting up SMB printer Happy2Bme Suse/Novell 1 01-18-2005 08:30 AM
how can i add a printer that is not listed in the "Red Hat Printer Config?" kublador Linux - Newbie 2 03-05-2003 09:37 PM


All times are GMT -5. The time now is 01:17 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration