Bug 218605

Summary: HPLIP service should start on demand
Product: [Fedora] Fedora Reporter: Tim Waugh <twaugh>
Component: hplipAssignee: Tim Waugh <twaugh>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6CC: bjohnson, bnocera, deerfieldtech, mclasen
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 2.7.6-1.fc8 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-07-04 17:06:49 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:
Bug Depends On: 246257    
Bug Blocks: 222312, 235704    

Description Tim Waugh 2006-12-06 13:40:26 UTC
Description of problem:
The HPLIP service should only be running when an HP device it drives is
connected.  Can use HAL for that.

Comment 1 P Jones 2006-12-19 18:01:49 UTC
I'm not sure if the problem I am recently experiencing has to do with this bug.
Please let me know if not and I'll file a new bug. This occurs on an up to date
(as of 12/19/06) FC6.

I can not print to a JetDirect connected HP OfficeJet 7110 All In One unless I
scan something first using XSane.

I've tried this with SElinux and firewall off, and on, the result is the same.

Setup of the printer is done using hp-setup in GUI mode, and printing a test
page right after setup works. Reboot, and then printing does not work unless
scanning first, which works fine first time.



Comment 2 Tim Waugh 2006-12-21 13:18:12 UTC
Please file a separate bug report.  Thanks.

Comment 3 Tim Waugh 2007-02-05 13:48:19 UTC
*** Bug 224516 has been marked as a duplicate of this bug. ***

Comment 4 Bernard Johnson 2007-05-06 19:01:33 UTC
(In reply to comment #0)
> Description of problem:
> The HPLIP service should only be running when an HP device it drives is
> connected.  Can use HAL for that.

What about network connected printers?  Can you detect them with avahi and do
the same?

Comment 5 Bastien Nocera 2007-05-08 21:29:12 UTC
(In reply to comment #4)
> (In reply to comment #0)
> > Description of problem:
> > The HPLIP service should only be running when an HP device it drives is
> > connected.  Can use HAL for that.
> 
> What about network connected printers?  Can you detect them with avahi and do
> the same?

I guess the printers would already be configured, one way or another via
system-config-printer/cups. We should be able to start up HPLIP after cups if a
printer requires it. But what about network scanners?

I guess the best bet is to make HPLIP a D-Bus service that can startup on
demand, and die when nothing uses it.

Comment 6 Bernard Johnson 2007-05-08 22:01:37 UTC
(In reply to comment #5)
> I guess the best bet is to make HPLIP a D-Bus service that can startup on
> demand, and die when nothing uses it.

I don't think that would work for things like low supply notices.  (Not sure if
hplip is even doing anything like that right now though)


Comment 7 Tim Waugh 2007-05-09 08:51:47 UTC
HPLIP does give marker-supply-low-warning notices, yes, but CUPS keeps them
persistent if HPLIP disappears after issuing them.  They are part of the CUPS
printer's printer-state-reasons attribute.

Comment 8 Tim Waugh 2007-06-29 16:51:12 UTC
HPLIP 2.7.6 is now daemon-less.