Bug 744025 - No notification for unrecognised printer state reasons
Summary: No notification for unrecognised printer state reasons
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-settings-daemon
Version: 16
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Marek Kašík
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 746440 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-06 18:59 UTC by Noe Nieto
Modified: 2012-01-27 13:54 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-01-27 13:54:58 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Output from Printer troubleshooter (38.42 KB, text/plain)
2011-10-06 19:02 UTC, Noe Nieto
no flags Details
Printer Queue GUI (36.84 KB, image/png)
2011-11-11 18:12 UTC, Noe Nieto
no flags Details

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


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