[Bug 649280] New: hp-systray should not run if no matching print queue exists
https://bugzilla.novell.com/show_bug.cgi?id=649280 https://bugzilla.novell.com/show_bug.cgi?id=649280#c0 Summary: hp-systray should not run if no matching print queue exists Classification: openSUSE Product: openSUSE 11.4 Version: Factory Platform: All OS/Version: SuSE Other Status: ASSIGNED Severity: Minor Priority: P5 - None Component: Printing AssignedTo: jsmeix@novell.com ReportedBy: jsmeix@novell.com QAContact: jsmeix@novell.com CC: coolo@novell.com Found By: Development Blocker: --- Currently hp-systray runs in any case during deskop start-up via /etc/xdg/autostart/hplip-systray.desktop regardless whether or not a matching print queue (probably a queue with a "hp:/..." DeviceURI) exists. This wastes CPU and in particular disk-IO resources while the desktop starts up which delays the desktop start up procedure. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=649280 https://bugzilla.novell.com/show_bug.cgi?id=649280#c Johannes Meixner <jsmeix@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P4 - Low -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=649280 https://bugzilla.novell.com/show_bug.cgi?id=649280#c1 --- Comment #1 from Johannes Meixner <jsmeix@novell.com> 2010-10-26 14:41:28 UTC --- Created an attachment (id=397074) --> (http://bugzilla.novell.com/attachment.cgi?id=397074) /usr/bin/hp-systray.wrapper Install the attachment as -rwxr-xr-x 1 root root /usr/bin/hp-systray.wrapper and in /etc/xdg/autostart/hplip-systray.desktop change the "Exec" line to: ---------------------------------------------------- Exec=hp-systray.wrapper ---------------------------------------------------- This works at least for me with a HP USB printer. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=649280 https://bugzilla.novell.com/show_bug.cgi?id=649280#c2 Johannes Meixner <jsmeix@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |coolo@novell.com --- Comment #2 from Johannes Meixner <jsmeix@novell.com> 2010-10-26 14:47:05 UTC --- Coolo, could you test if my proposed solution in comment #1 works also for you and improves the desktop startup time? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=649280 https://bugzilla.novell.com/show_bug.cgi?id=649280#c3 Stephan Kulow <coolo@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|coolo@novell.com | --- Comment #3 from Stephan Kulow <coolo@novell.com> 2010-10-27 10:31:36 CEST --- I can't really say if it works for me as in both cases I get no systray. But I see no traces of python in the bootchart either, so I think it worked. Interestingly enough I can't measure any improvements, the boot time differences of full kde are just too large ;( But what I do know: right after kde start time hp-system -> 1s time wrapper -> 0.018s So there _is_ an improvement. But only use this wrapper if maintaining it is little work I would say. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=649280 https://bugzilla.novell.com/show_bug.cgi?id=649280#c4 Johannes Meixner <jsmeix@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #397074|0 |1 is obsolete| | --- Comment #4 from Johannes Meixner <jsmeix@novell.com> 2010-10-27 10:08:52 UTC --- Created an attachment (id=397258) --> (http://bugzilla.novell.com/attachment.cgi?id=397258) improved /usr/bin/hp-systray.wrapper The attached improved /usr/bin/hp-systray.wrapper should work much better, see the comments therein. Coolo, for testing you can set up a fake print queue as root with # lpadmin -p hpfake -v hp:/usb/HP_Fakeprinter?serial=1234 -E (after this hp-systray should be run when starting your desktop) and to remove the fake queue again use # lpadmin -x hpfake (after this hp-systray should not be run when starting your desktop) I will ask upstream what they think about the wrapper. Perhaps there is a special reason why upstream likes to run hp-systray in any case. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=649280 https://bugzilla.novell.com/show_bug.cgi?id=649280#c5 --- Comment #5 from Johannes Meixner <jsmeix@novell.com> 2010-10-27 10:16:48 UTC --- For the upstream question see https://answers.launchpad.net/hplip/+question/131418 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=649280 https://bugzilla.novell.com/show_bug.cgi?id=649280#c6 --- Comment #6 from Johannes Meixner <jsmeix@novell.com> 2010-10-27 12:48:21 UTC --- Actually it is an upstream bug and therefore I submitted https://bugs.launchpad.net/hplip/+bug/667234 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=649280 https://bugzilla.novell.com/show_bug.cgi?id=649280#c7 --- Comment #7 from Johannes Meixner <jsmeix@novell.com> 2010-10-27 13:03:25 UTC --- The upstream bug https://bugs.launchpad.net/hplip/+bug/667234 is invalid. It works exactly as it should: hp-systray exits if no HPLIP installed queues exist. I confused things on my test system. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=649280 https://bugzilla.novell.com/show_bug.cgi?id=649280#c8 Johannes Meixner <jsmeix@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|hp-systray should not run |hp-systray should not be |if no matching print queue |started at all if no |exists |matching print queue exists --- Comment #8 from Johannes Meixner <jsmeix@novell.com> 2010-10-27 13:19:10 UTC --- The actual issue is not that hp-systray is running when no matching print queue exists because it exits in this case and the question in comment #4 if there is a special reason why upstream likes to run hp-systray in any case is answered: There is no such reason. The actual issue is that hp-systray should not be started at all if no matching print queue exists because the plain startup of hp-systray with all its Python stuff needs disk-IO resources which delays the desktop start up. I.e. the built-in test in hp-systray whether or not a matching print queue exists does not help in this case. Instead a less resource-consuming test must be used to increase desktop startup speed and therefore I will use /usr/bin/hp-systray.wrapper -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=649280 https://bugzilla.novell.com/show_bug.cgi?id=649280#c9 Johannes Meixner <jsmeix@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED Target Milestone|--- |Factory --- Comment #9 from Johannes Meixner <jsmeix@novell.com> 2010-10-27 15:50:58 UTC --- Version upgrade to HPLIP 3.10.9 and added hp-systray.wrapper and submitted hplip to "Printing" via submitrequest 51497 and forwarded this to openSUSE:Factory via submitrequest 51498 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=649280 https://bugzilla.novell.com/show_bug.cgi?id=649280#c10 Johannes Meixner <jsmeix@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #10 from Johannes Meixner <jsmeix@suse.com> 2013-03-06 09:35:22 CET --- Since hplip-3.13.2 (currently only in OBS Printing and openSUSE:Factory) hp-systray.wrapper is no longer called via /etc/xdg/autostart/hplip-systray.desktop because the sed search string in hplip.spec does no longer match ------------------------------------------------------------------------------ # Change /etc/xdg/autostart/hplip-systray.desktop to call hp-systray.wrapper: sed -i -e '/^Exec=hp-systray$/s/hp-systray/hp-systray.wrapper/;' %{buildroot}/etc/xdg/autostart/hplip-systray.desktop ------------------------------------------------------------------------------- because since hplip-3.13.2 hplip-systray.desktop.in changed from "Exec=hp-systray" to "Exec=hp-systray -x" -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=649280 https://bugzilla.novell.com/show_bug.cgi?id=649280#c11 Johannes Meixner <jsmeix@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |ASSIGNED --- Comment #11 from Johannes Meixner <jsmeix@suse.com> 2013-03-06 10:07:36 CET --- "hp-systray -h" results: ---------------------------------------------------------------------- Startup even if no hplip CUPS -x or --force-startup queues are present: ---------------------------------------------------------------------- which means "Exec=hp-systray -x" is intentional by HPLIP upstream to let it start even if no hplip CUPS queues are present. Because I do not want to work against HPLIP upstream, I will remove hp-systray.wrapper because the reason for it (see comment#8) is no longer in compliance with HPLIP upstream intentions. If someone does not agree with the HPLIP upstream intentions he should "Ask a Question" or "Report a Bug" at HPLIP upstream via http://hplipopensource.com/hplip-web/support.html -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=649280 https://bugzilla.novell.com/show_bug.cgi?id=649280#c12 Johannes Meixner <jsmeix@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #12 from Johannes Meixner <jsmeix@suse.com> 2013-03-06 11:38:02 CET --- Fixed hplip in OBS project "Printing": - Removed hp-systray.wrapper because the reason for it is no longer in compliance with HPLIP upstream intentions (see SUSE Bugzilla bnc#649280 starting at comment#10). Forwarded it to openSUSE:Factory via submitrequest 157493. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=649280 https://bugzilla.novell.com/show_bug.cgi?id=649280#c13 --- Comment #13 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-03-06 12:00:07 CET --- This is an autogenerated message for OBS integration: This bug (649280) was mentioned in https://build.opensuse.org/request/show/157493 Factory / hplip -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=649280 https://bugzilla.novell.com/show_bug.cgi?id=649280#c14 --- Comment #14 from Stephan Kulow <coolo@suse.com> 2013-03-08 13:06:45 CET --- The problem I see is that people who download HPLIP upstream will most certainly do it to get a HP printer supported. openSUSE users who install openSUSE will get HPLIP on live cd without any intention to support a HP printer. So if upstream intentions are more severe than openSUSE users's needs, we have to make damn sure hplip does not get installed by default but only on user's explicit request. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=649280 https://bugzilla.novell.com/show_bug.cgi?id=649280#c15 --- Comment #15 from Johannes Meixner <jsmeix@suse.com> 2013-03-08 14:45:54 CET --- Stephan Kulow, I agree with your problem description in comment#14. I will talk to HPLIP upstream what their reason behind is why they call it now with "Exec=hp-systray -x". Note that for openSUSE 12.3 there is no change, see comment#10 "hplip-3.13.2 currently only in OBS Printing and openSUSE:Factory". I filed bnc#808315 RFC: No longer install HPLIP and other big printer driver packages by default? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=649280 https://bugzilla.novell.com/show_bug.cgi?id=649280#c16 --- Comment #16 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-03-10 09:00:09 CET --- This is an autogenerated message for OBS integration: This bug (649280) was mentioned in https://build.opensuse.org/request/show/158147 Factory / patterns-openSUSE -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com