Bug 679077 - cups doesn't print to USB printer
Summary: cups doesn't print to USB printer
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gutenprint
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-21 14:12 UTC by Horst H. von Brand
Modified: 2011-05-17 14:30 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-17 14:30:50 UTC
Type: ---


Attachments (Terms of Use)
error_log for the printer (5.61 MB, text/plain)
2011-02-24 00:22 UTC, Horst H. von Brand
no flags Details
Output from "lpinfo -l -v" (printer attached on boot) (1.74 KB, text/plain)
2011-02-24 22:10 UTC, Horst H. von Brand
no flags Details

Description Horst H. von Brand 2011-02-21 14:12:54 UTC
Description of problem:
I've got an Epson Stylus CX7700 USB printer. Cups does recognize and configure the printer just fine, printing out anyting (e.g. the testpage) says it queues the printout, and that it is printed out without a hitch. But the printer doesn't react at all (it shows something like "PC connected" on its screen when someting is sent to it), and nothing is printed. I tried removing and recreating the printer to no avail. /var/cups/*_log show nothing suspicious.

Version-Release number of selected component (if applicable):
cups-1.4.6-9.fc15.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Connect USB printer, configure it
2. Print something
3.
  
Actual results:
CUPS claims the printout went OK, but the printer doesn't get anything.

Expected results:
Printout

Additional info:
I configured a networked printer just now, and printed the testpage without problems.

Comment 1 Tim Waugh 2011-02-21 15:00:56 UTC
Presumably that's using gutenprint?  Support for this model was added in 5.2.1.

Troubleshooting output would still be useful.
https://fedoraproject.org/wiki/How_to_debug_printing_problems

Comment 2 Horst H. von Brand 2011-02-24 00:22:29 UTC
Created attachment 480612 [details]
error_log for the printer

The printer is not the default, it is called Stylus.

At first I printed the test page, but hadn't connected the printer (doh), an error window reminded me. On connection, the messages said the printout was complete. I tried twice more. No reaction from the printer, no printout, but "completed normally". After turning off logging I tried to print a PDF just for kicks, same result.

# grep '^*NickName:' /etc/cups/ppd/Stylus.ppd 
*NickName: "Epson Stylus Color Series"

gutenprint was _not_ installed, now it is. No change there.
Neither was foomatic (?). I installed that, 

None of the drivers there I tried worked. I finally got the recommended http://www.openprinting.org/driver/epson-escpr, configured that one. Now it prints fine.

Thanks, and sorry for all the noise.

Comment 3 Horst H. von Brand 2011-02-24 00:49:29 UTC
gutenprint-5.2.6-3.fc15.x86_64
foomatic-4.0.7-1.fc16.x86_64

Comment 4 Tim Waugh 2011-02-24 09:43:47 UTC
This printer model is meant to be supported by gutenprint.  Please run this command as root:

lpinfo -l -v

This will give me enough information to make it so that the gutenprint driver is automatically installed and configured when you plug in the printer.
https://fedoraproject.org/wiki/Features/AutomaticPrintDriverInstallation
http://cyberelk.net/tim/2010/04/01/printer-device-ids-wanted/

Comment 5 Horst H. von Brand 2011-02-24 14:14:59 UTC
Sorry, I haven't got that printer handy just now. Yes, I find it unfortunate that it doesn't work "out of the box" (but I'm reasonably sure that the predecesor to this machine did work OOB with the printer, or after some mild coaxing at most).

What I find strange is that on connecting the printer it automatically got a driver, I really don't know from where. I've got a netbook with a similar instalation, that also doesn't print (and which I haven't touched during this fracas), could a bit of forensics on that machine help?

Should I uninstall the recommended driver package, gutenprint, foomatic before going forward?

Comment 6 Tim Waugh 2011-02-24 14:24:40 UTC
The package containing the right CUPS driver is 'gutenprint-cups'.

The driver you had on the automatic queue was from CUPS's own small driver selection.

Let's solve this issue first before looking at others (or, file another bug report about the other machine).

No, no need to uninstall anything.  Just the 'lpinfo -l -v' output.

Comment 7 Horst H. von Brand 2011-02-24 19:45:39 UTC
(In reply to comment #6)
> The package containing the right CUPS driver is 'gutenprint-cups'.

Not installed as part of gutenprint... will install that one right away. Other stuff will have to wait until I get a chance to be near the blasted printer ;-)

Comment 8 Horst H. von Brand 2011-02-24 22:10:57 UTC
Created attachment 480862 [details]
Output from "lpinfo -l -v" (printer attached on boot)

Comment 9 Horst H. von Brand 2011-02-24 22:27:19 UTC
Correct URL for Print Head is git://git.fedorahosted.org/git/system-config-printer.git. Cloning right now...

Incidentally (rawhide) the percentage missing drivers went from 38.7 to 30.6:

$ lpinfo -l -m |grep 'device-id = ' | wc -l
9468
$ lpinfo -l -m |grep 'device-id = $' | wc -l
2899

Also:

$ su -c ./check-device-ids.py
Password: 

If you have not already done so, you may get more results
by temporarily disabling your firewall (or by allowing
incoming UDP packets on port 161).

Examining connected devices
Installing relevant drivers using system service
Ignoring exception: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.PackageKit was not provided by any .service files
Fetching driver list
Traceback (most recent call last):
  File "./check-device-ids.py", line 154, in <module>
    ppds = PPDs (c.getPPDs ())
  File "/home/vonbrand/tmp/system-config-printer/cupshelpers/ppds.py", line 343, in __init__
    import config
ImportError: No module named config

Comment 10 Horst H. von Brand 2011-02-24 22:36:24 UTC
Works fine now (Epson Stylus CX7700 - CUPS + Gutenprint v5.2.6 [en])

# /usr/share/system-config-printer/check-device-ids.py

If you have not already done so, you may get more results
by temporarily disabling your firewall (or by allowing
incoming UDP packets on port 161).

Examining connected devices
Installing relevant drivers using system service
Ignoring exception: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.PackageKit was not provided by any .service files
Fetching driver list
├── EPSON Stylus CX7700 (usb): MFG:EPSON;MDL:Stylus CX7700;CMD:ESCPL2,BDC,D4,ESCPR1;
│   ├── gutenprint.5.2://escp2-cx7700/simple [/usr/lib/cups/driver/gutenprint.5.2]
│   └── gutenprint.5.2://escp2-cx7700/expert [/usr/lib/cups/driver/gutenprint.5.2]
│       MISSING  lsb/usr/epson-inkjet-printer-escpr/Epson/Epson-Stylus_CX7700-epson-inkjet-printer-escpr.ppd.gz [/usr/share/ppd/epson-inkjet-printer-escpr/Epson/Epson-Stylus_CX7700-epson-inkjet-printer-escpr.ppd.gz]
└── Virtual PDF Printer (cups-pdf): MFG:Generic;MDL:CUPS-PDF Printer;CMD:POSTSCRIPT;
    └── CUPS-PDF.ppd [/usr/share/cups/model/CUPS-PDF.ppd]

Thanks!

Comment 11 Tim Waugh 2011-02-25 09:44:03 UTC
Oh.  I wonder how come the gutenprint-cups package was not installed when you plugged in the printer then?

Installing relevant drivers using system service
Ignoring exception: org.freedesktop.DBus.Error.ServiceUnknown: The name
org.freedesktop.PackageKit was not provided by any .service file

If you uninstall gutenpirnt-cups and run this command as root, what does it say?

dbus-send --system --print-reply \
  --dest=com.redhat.PrinterDriversInstaller \
  /com/redhat/PrinterDriversInstaller \
  com.redhat.PrinterDriversInstaller.InstallDrivers \
  string:EPSON string:'Stylus CX7700' string:''

I get a confirmation dialog for installing gutenprint-cups on Fedora 14.

Comment 12 Tim Waugh 2011-02-25 11:15:46 UTC
Out of interest, how did the print quality of the escpr driver compare with gutenprint-cups?  I wonder if it's worth trying to get that packaged for Fedora.

Comment 13 Horst H. von Brand 2011-02-25 12:47:48 UTC
(In reply to comment #11)
> Oh.  I wonder how come the gutenprint-cups package was not installed when you
> plugged in the printer then?
> 
> Installing relevant drivers using system service
> Ignoring exception: org.freedesktop.DBus.Error.ServiceUnknown: The name
> org.freedesktop.PackageKit was not provided by any .service file
> 
> If you uninstall gutenpirnt-cups and run this command as root, what does it
> say?
> 
> dbus-send --system --print-reply \
>   --dest=com.redhat.PrinterDriversInstaller \
>   /com/redhat/PrinterDriversInstaller \
>   com.redhat.PrinterDriversInstaller.InstallDrivers \
>   string:EPSON string:'Stylus CX7700' string:''
> 
> I get a confirmation dialog for installing gutenprint-cups on Fedora 14.

# dbus-send --system --print-reply \
>   --dest=com.redhat.PrinterDriversInstaller \
>   /com/redhat/PrinterDriversInstaller \
>   com.redhat.PrinterDriversInstaller.InstallDrivers \
>   string:EPSON string:'Stylus CX7700' string:''
Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.PackageKit was not provided by any .service files

# rpm -q PackageKit
PackageKit-0.6.12-4.fc15.x86_64

"rpm -V PackageKit" is clean

"rpm -Vf /etc/PackageKit/*" is also clean

[This machine was installed way back, tracking rawhide; there might be flakiness somewhere here.]

Comment 14 Horst H. von Brand 2011-02-25 12:54:09 UTC
(In reply to comment #12)
> Out of interest, how did the print quality of the escpr driver compare with
> gutenprint-cups?  I wonder if it's worth trying to get that packaged for
> Fedora.

Look quite similar, but I didn't look too closely. The escpr printer correctly centers the testpage on the paper; the one in g-c prints the black stripe on top almost at  the paper edge, and on the bottom too near the edge; the sides are OK.

Comment 15 Horst H. von Brand 2011-02-25 12:58:50 UTC
(In reply to comment #11)
> Oh.  I wonder how come the gutenprint-cups package was not installed when you
> plugged in the printer then?

I've had problems with setting up the network on this machine (the WiFi is handled by an out-of-tree driver), so it might have been that when I first connected the printer there was no network. I seem to remember that it said it was searching for drivers and downloaded something, but that could have been another machine. Sorry for the Alzheimer's...

Comment 16 Tim Waugh 2011-05-17 14:30:50 UTC
OK, seems to be working now then.  Thanks.


Note You need to log in before you can comment on or make changes to this bug.