Bug 744025

Summary: No notification for unrecognised printer state reasons
Product: [Fedora] Fedora Reporter: Noe Nieto <nnieto>
Component: gnome-settings-daemonAssignee: Marek Kašík <mkasik>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 16CC: bnocera, collura, cybertimber2000, jpopelka, mkasik, rstrode, twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-27 13:54:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Output from Printer troubleshooter
none
Printer Queue GUI none

Description Noe Nieto 2011-10-06 18:59:01 UTC
Description of problem:

I send a print job to my HP Deskjet-d1500-series
printer and a issue comes up saying the printer isn't connected.


Version-Release number of selected component (if applicable):

- I'm doing these tests on a Fedora16 beta liveCD for i686


How reproducible:

- Every time

Steps to Reproduce:

1. Connect printer and install drivers if new printer.
2. Fire up gedit, make simple document and print. The print dialog shows this printer as available.
3. Print with default settings. Immediatly a notification is raised with the message "Not connected? Printer 'HP-LaserJet-1020' might not be connected".
  
Actual results:

- Won't print.

Expected results:

- Should print.

Additional info:

See attachments

Comment 1 Noe Nieto 2011-10-06 19:01:28 UTC
CORRECTION: This bug is for HP-Laser-Jet-1020. It was my mistake to put HP Deskjet-d1500-series.

Comment 2 Noe Nieto 2011-10-06 19:02:39 UTC
Created attachment 526775 [details]
Output from Printer troubleshooter

Comment 3 Tim Waugh 2011-10-07 08:38:29 UTC
The "Not connected?" message has been filed as bug #743877.  It is not what prevents you from printing.

The hplip.plugin-error message in /var/log/cups/error_log means that this driver needs a proprietary plugin, which you can install using "hp-setup".

You should have had an on-screen notification about the "hplip.plugin-error" issue, and you didn't; that's the real bug.

To reproduce:
1. Install hpijs
2. Set up a queue for a driver that requires the HP proprietary plugin:
# lpadmin -p x -m drv:///hp/hpcups.drv/hp-laserjet_1020.ppd -v serial:/dev/ttyS0 -E
3. Submit a job to that queue as the session user:
$ echo . | lp -d x

Expected results:
Notification that hp-setup ought to be run.

Actual results:
Job doesn't print and there is no clue about why that is or what action to take.

Additional information:
gnome-settings-dameon needs to spot that there is a printer-state-reason in the queue (in this case "hplip.plugin-error"), and try to look up what it means.  It already does this for reasons that are common to all drivers such as connecting-to-device, but for ones it does not recognise it must look them up in the printer's PPD file.

In this instance, the PPD file has a cupsIPPReason attribute matching hplip.plugin-error:

*cupsIPPReason hplip.plugin-error/printer requires a binary plugin, run hp-setup: ""

so that text should be displayed in the on-screen notification.

This all worked fine with system-config-printer-applet. :-/

Comment 4 Tim Waugh 2011-10-17 10:01:07 UTC
*** Bug 746440 has been marked as a duplicate of this bug. ***

Comment 5 Noe Nieto 2011-11-11 18:10:47 UTC
I'm on F16 now and The print queue GUI says that there is an error with the printer.

On the bottom of the window,there's this message:

Printer 'HP-LaserJet-1020': requires a binary plugin, run hp-setup.

The hp-setup program is not installed. 

What's next?



---
Atacched is a screenshot of the print-queue GUI.

Comment 6 Noe Nieto 2011-11-11 18:12:23 UTC
Created attachment 533144 [details]
Printer Queue GUI

Comment 7 Jiri Popelka 2011-11-11 18:30:48 UTC
(In reply to comment #5)
> The hp-setup program is not installed. 
> What's next?

yum install hplip

Comment 8 Noe Nieto 2011-12-17 05:18:37 UTC
- Installed hplip
- Next, removed the printer queue and reconected the printer.
- Gnome (or the apropiate component) detected the printer and prompted me to install various packages. At the end of the process the printer queue was installed and reported no errors.

- I sent a print job (a test page) to the printer queue. The job was processed within some seconds and removed from printer queue. But, NO PAGE WAS PRINTED.

How can I help to debug this?

Comment 9 Tim Waugh 2011-12-19 18:00:19 UTC
Noe: please file a separate bug report for this, choosing 'hplip' as the component.  Follow the instructions here:
https://fedoraproject.org/wiki/Printing/Debugging#Printing_troubleshooter
and attach the troubleshoot.txt file you get.

Comment 10 Noe Nieto 2011-12-20 01:01:03 UTC
Can't close this bug as Fixed. I think I don't have permissions for that.

Comment 11 Marek Kašík 2012-01-27 12:48:55 UTC
Hi,

I've added support for unrecognized printer state reasons to gnome-settings-daemon. It will be available in gnome-settings-daemon 3.3.5.

Regards

Marek