Summary: | Sync clock on hpoj startup | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Christopher Covington <covracer> |
Component: | Current packages | Assignee: | Printing Team <printing> |
Status: | RESOLVED INVALID | ||
Severity: | enhancement | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Changes to /etc/init.d/hpoj I accidentally said ptal-hp was in sbin. |
Description
Christopher Covington
2005-12-11 07:15:41 UTC
Created attachment 74501 [details, diff]
Changes to /etc/init.d/hpoj
I accidentally said ptal-hp was in sbin.
A question: what happens if the printer is turned off when you run this script? Comment on attachment 74501 [details, diff] Changes to /etc/init.d/hpoj I accidentally said ptal-hp was in sbin. >--- /etc/init.d/hpoj.original 2005-12-11 10:09:02.071603500 -0500 >+++ /etc/init.d/hpoj 2005-12-11 10:08:46.642639250 -0500 >@@ -7,6 +7,8 @@ > start() { > ebegin Starting hpoj > /usr/bin/ptal-init start -q >+ einfo Syncing printer clock >+ /usr/sbin/ptal-hp clock -set > eend 0 > } > ptal-mlcd: ERROR at ExMgr.cpp:2525, dev=<mlc:par:OfficeJet-700>, pid=16877, e=11, t=1134340272 Couldn't find device! ptal-mlcd: ERROR at ExMgr.cpp:2525, dev=<mlc:par:OfficeJet-700>, pid=16877, e=11, t=1134340274 Couldn't find device! /usr/bin/ptal-hp: Unable to communicate with device "mlc:par:OfficeJet-700"! Syntax: /usr/bin/ptal-hp [<devname>] <command> [-help] [<params>...] Where <devname> may be one of: mlc:par:OfficeJet-700 Valid commands: device display clock That's what happens when you try to do this when the printer is off. I tried adding &> /dev/null || ewarn "Printer looks powered off" to the end of the clock line but that doesn't keep the mlcd errors off of the console. I suppose I spoke too soon, saying it's "really easy." 2>&1 >/dev/null use that and see if it works for you please Squelching it like that doesn't do the trick either. ptal-mlcd seems to be the information-dumping culprit, not ptal-hp. I'd investigate where that gets called and squelch or log it, but hpoj is deprecated and I'll only be using it until I get the newer hp drivers working. |