Bug 709182

Summary: Unable to print after scanning, hp deskjet f2480
Product: [Fedora] Fedora Reporter: Iván Jiménez <icj>
Component: hplipAssignee: Tim Waugh <twaugh>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: jpopelka, twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-07 08:37:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
system-config-printer's troubleshooter output
none
error log none

Description Iván Jiménez 2011-05-31 00:29:30 UTC
Created attachment 501894 [details]
system-config-printer's troubleshooter output

Description of problem:
Printing any document after scanning doesn't work; a message appears in the message tray saying: "Not connected? Printer Deskjet-F2400-series may not be connected". It happens only after scanning and powering off and then on the printer prints the pending job immediately. I ran system-config-printer's troubleshooter and it said not problem was encountered.

After scanning, in messages appears:
May 30 17:57:20 big kernel: [ 6533.154529] usblp0: removed

and su -c "lpinfo -l -v" doesn't show it:
Device: uri = lpd
        class = network
        info = LPD/LPR Host or Printer
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = https
        class = network
        info = Internet Printing Protocol (https)
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = scsi
        class = direct
        info = SCSI Printer
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = ipp
        class = network
        info = Internet Printing Protocol (ipp)
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = http
        class = network
        info = Internet Printing Protocol (http)
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = socket
        class = network
        info = AppSocket/HP JetDirect
        make-and-model = Unknown
        device-id = 
        location = 

but after rebooting the printer, it appears:
Device: uri = usb://HP/Deskjet%20F2400%20series?serial=CN035BG0S605BS
        class = direct
        info = HP Deskjet F2400 series
        make-and-model = HP Deskjet F2400 series
        device-id = MFG:HP;MDL:Deskjet F2400 series;CMD:MLC,PCL,DW-PCL,PML,DESKJET,DYN;1284.4DL:4d,4e,1;CLS:PRINTER;DES:CB730A;SN:CN035BG0S605BS;S:038000C484001021012c0000000c0000000;J:                    ;Z:0102,05037dca007da8,0600,0c0,0e00000000,0f00000004,10000008000008,12000,147,150,163c8c37dc000112c0145a0001;
        location = 

It's using the default config, driver hpcups and the ppd is /etc/cups/ppd/Deskjet-F2400-series.ppd

Version-Release number of selected component (if applicable):
hplip-libs-3.11.5-2.fc15.x86_64
hpijs-3.11.5-2.fc15.x86_64
hplip-common-3.11.5-2.fc15.x86_64
cups-1.4.6-15.fc15.x86_64

How reproducible:
always

Steps to Reproduce:
1. scan in simple-scan
2. try to print the test page
  
Actual results:
noting prints and message appears

Expected results:
job prints

Additional info:
it didn't happen in fedora 14, using the defaults

Comment 1 Jiri Popelka 2011-05-31 10:30:39 UTC
Hmm, there's no error_log in the troubleshooter output.

Please run 'cupsctl --debug-logging; service cups restartlog'
then try to scan & print
and finally attach the relevant part of /var/log/cups/error_log

Thanks.

Comment 2 Tim Waugh 2011-05-31 11:20:14 UTC
When the printer is used for scanning, the SANE backend needs to use libusb to talk to the device at a low level.  I think it might deliberately unload the usblp kernel driver at this point.

The 'usb://...' device URI requires the usblp kernel driver to be loaded.  Ordinarily this situation is resolved by using an 'hp://...' device URI, but you don't appear to have one listed for some reason.

The way you can do this in system-config-printer normally is by clicking 'Change...' next to the Device URI in the printer properties, then clicking on '> Connection' in the bottom right of that screen. (This only appears when more than one device URI refers to the same physical device.)

What do you see if you run 'lpinfo -l --include-schemes=hp -v' before scanning?

Comment 3 Iván Jiménez 2011-06-02 19:15:51 UTC
(In reply to comment #2)
> When the printer is used for scanning, the SANE backend needs to use libusb to
> talk to the device at a low level.  I think it might deliberately unload the
> usblp kernel driver at this point.
> 
> The 'usb://...' device URI requires the usblp kernel driver to be loaded. 
> Ordinarily this situation is resolved by using an 'hp://...' device URI, but
> you don't appear to have one listed for some reason.
> 
> The way you can do this in system-config-printer normally is by clicking
> 'Change...' next to the Device URI in the printer properties, then clicking on
> '> Connection' in the bottom right of that screen. (This only appears when more
> than one device URI refers to the same physical device.)
> 
> What do you see if you run 'lpinfo -l --include-schemes=hp -v' before scanning?

nothing:

[ivan@big ~]$ su -c 'lpinfo -l --include-schemes=hp -v'
Contraseña: 
[ivan@big ~]$

Comment 4 Iván Jiménez 2011-06-02 19:25:17 UTC
Created attachment 502622 [details]
error log

Comment 5 Tim Waugh 2011-06-03 15:46:49 UTC
Is anything written to /var/log/messages when you run /usr/lib/cups/backend/hp as root?

Comment 6 Iván Jiménez 2011-06-07 04:44:01 UTC
(In reply to comment #5)
> Is anything written to /var/log/messages when you run /usr/lib/cups/backend/hp
> as root?

bash: /usr/lib/cups/backend/hp: No such file or directory

Comment 7 Iván Jiménez 2011-06-07 04:55:33 UTC
Installing hplip package (which contains /usr/lib/cups/backend/hp) fixes it. The device uir is still usb://HP/Deskjet%20F2400%20series?serial=CN035BG0S605BS. Maybe hplip should be installed by default? When I first powered on the printer, the Printers panel installed some packages but not hplip.

By the way, there's another bug: it doesn't print in color. Should I open a different bug?

Comment 8 Iván Jiménez 2011-06-07 05:00:54 UTC
(In reply to comment #7)
> Installing hplip package (which contains /usr/lib/cups/backend/hp) fixes it.
> The device uir is still
> usb://HP/Deskjet%20F2400%20series?serial=CN035BG0S605BS. 

Sorry about it, after closing and reopening s-c-p it says: hp:/usb/Deskjet_F2400_series?serial=CN035BG0S605BS

Comment 9 Tim Waugh 2011-06-07 08:35:56 UTC
Oh, I should have spotted that -- hplip is missing from the packages you listed.

yum install hplip

..and try again, starting from comment #2 (i.e. changing configuration to use the hp:// URI).  Does that fix it?

Comment 10 Tim Waugh 2011-06-07 08:37:15 UTC
Oh.. I see in comment #7 it does.  Great, closing.