NTP date&time

Asked by Frank

is it possible to set the date&time of a HP printer like its done automatic from the MS Windows software

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
dwelch91
Solved:
Last query:
Last reply:
Revision history for this message
Best dwelch91 (dwelch91) said :
#1

Try using the command: hp-timedate

http://hplipopensource.com/hplip-web/tech_docs/man_pages/timedate.html

It is not done automatically as HPLIP does not stay in constant
communication with the printer. If this command works for you, you
could schedule it with cron or add it to your startup script.

On 5/5/09, Frank <email address hidden> wrote:
> New question #69997 on HPLIP:
> https://answers.launchpad.net/hplip/+question/69997
>
> is it possible to set the date&time of a HP printer like its done automatic
> from the MS Windows software
>
> --
> You received this question notification because you are a member of HP
> Linux Imaging and Printing, which is an answer contact for HPLIP.
>

Revision history for this message
Frank (mail-frank-urban) said :
#2

Hello,

thanks for the hint, but it does not work for me

hp-probe
...
  Device URI Model
  ------------------------------------------------- ------------------------
  hp:/usb/officejet_5500_series?serial=MY516G126696 HP officejet 5500 series

hp-timedate -dhp:/usb/officejet_5500_series?serial=MY516G126696 -ldebug

HP Linux Imaging and Printing System (ver. 3.9.4b)
Time/Date Utility ver. 2.0

Copyright (c) 2001-9 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

hp-timedate[18313]: debug: getDeviceUri(hp:/usb/officejet_5500_series?serial=MY516G126696, None, ['hpfax'], {'fax-type': (<built-in function gt>, 0)}, , True)
hp-timedate[18313]: debug: Mode=0
hp-timedate[18313]: debug: {}
error: Invalid device URI: hp:/usb/officejet_5500_series?serial=MY516G126696
error: No device selected/specified or that supports this functionality.

what do I wrong?

Greetings

Frank

Revision history for this message
dwelch91 (dwelch91) said :
#3

Try:

hp-timedate -d hpax:/usb/officejet_5500_series?serial=MY516G126696 -ldebug

(if you don't have the fax queue setup, you will prob. need to)

On Tue, May 5, 2009 at 10:35 AM, Frank
<email address hidden>wrote:

> Question #69997 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/69997
>
> Status: Answered => Open
>
> Frank is still having a problem:
> Hello,
>
> thanks for the hint, but it does not work for me
>
> hp-probe
> ...
> Device URI Model
> -------------------------------------------------
> ------------------------
> hp:/usb/officejet_5500_series?serial=MY516G126696 HP officejet 5500
> series
>
>
> hp-timedate -dhp:/usb/officejet_5500_series?serial=MY516G126696 -ldebug
>
> HP Linux Imaging and Printing System (ver. 3.9.4b)
> Time/Date Utility ver. 2.0
>
> Copyright (c) 2001-9 Hewlett-Packard Development Company, LP
> This software comes with ABSOLUTELY NO WARRANTY.
> This is free software, and you are welcome to distribute it
> under certain conditions. See COPYING file for more details.
>
> hp-timedate[18313]: debug:
> getDeviceUri(hp:/usb/officejet_5500_series?serial=MY516G126696, None,
> ['hpfax'], {'fax-type': (<built-in function gt>, 0)}, , True)
> hp-timedate[18313]: debug: Mode=0
> hp-timedate[18313]: debug: {}
> error: Invalid device URI:
> hp:/usb/officejet_5500_series?serial=MY516G126696
> error: No device selected/specified or that supports this functionality.
>
> what do I wrong?
>
> Greetings
>
> Frank
>
> You received this question notification because you are a member of HP
> Linux Imaging and Printing, which is an answer contact for HPLIP.
>

Revision history for this message
Frank (mail-frank-urban) said :
#4

I still tried this.

hp-timedate -d hpax:/usb/officejet_5500_series?serial=MY516G126696

error: Invalid device URI: hpax:/usb/officejet_5500_series?serial=MY516G126696
error: No device selected/specified or that supports this functionality.

I think you mean hpfax and not hpax, but its the same

hp-timedate -d hpfax:/usb/officejet_5500_series?serial=MY516G126696

error: Invalid device URI: hpfax:/usb/officejet_5500_series?serial=MY516G126696
error: No device selected/specified or that supports this functionality.

Revision history for this message
Frank (mail-frank-urban) said :
#5

I just saw that my fax configuration seemed to be gone.
When I try to add a new device, the fax will be found, but when i press "Add Priner" I get a question for a username and password????
I tried root but that does not work
Now i'm notal confused

Revision history for this message
Frank (mail-frank-urban) said :
#6

OK,
now it works. Thanks for the help.
I needed to install some additional software (hp-check) than I was able to install the fax part of the printer and after that the command
hp-timedate -dhp:/usb/officejet_5500_series?serial=MY516G126696 -ldebug
works perfect :)

Revision history for this message
Frank (mail-frank-urban) said :
#7

Thanks dwelch91, that solved my question.

Revision history for this message
Frank (mail-frank-urban) said :
#8

I put now a script into my ~/.kde4/Autostart
with the command
hp-timedate -dhp:/usb/officejet_5500_series?serial=MY516G126696
and the time was set during my login. That enough. I think there is no need for a cronjob

Revision history for this message
dwelch91 (dwelch91) said :
#9

Great, glad you got it working.

On Tue, May 5, 2009 at 11:24 AM, Frank
<email address hidden>wrote:

> Question #69997 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/69997
>
> Frank posted a new comment:
> I put now a script into my ~/.kde4/Autostart
> with the command
> hp-timedate -dhp:/usb/officejet_5500_series?serial=MY516G126696
> and the time was set during my login. That enough. I think there is no need
> for a cronjob
>
> --
> You received this question notification because you are a member of HP
> Linux Imaging and Printing, which is an answer contact for HPLIP.
>