Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Maemo: Users

ntp on maemo

 

 

Maemo users RSS feed   Index | Next | Previous | View Threaded


rdorsch at web

Jul 17, 2009, 1:20 PM

Post #1 of 6 (1309 views)
Permalink
ntp on maemo

Hello,

although I have openntpd installed, the time on my N800 is often significantly
off the right time

Nokia-N800-23-14:~# dpkg -s openntpd|head -2
Package: openntpd
Status: install ok installed
Nokia-N800-23-14:~#

I suspect that the HW clock is not updated by openntpd, but I did not find a
hwclock utility. Is that possible?

Thanks,
Rainer
_______________________________________________
maemo-users mailing list
maemo-users [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-users


gary at eyetraxx

Jul 17, 2009, 1:28 PM

Post #2 of 6 (1235 views)
Permalink
Re: ntp on maemo [In reply to]

How often is your tablet online? What does 'date' tell you from a
command line? Does the package include ntpq? If so, run 'ntpq -p' and
see if it's properly querying your upstream server(s). If you've chosen
only one server, consider using geographically appropriate servers from
www.pool.ntp.org.

-Gary
_______________________________________________
maemo-users mailing list
maemo-users [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-users


rdorsch at web

Jul 17, 2009, 1:45 PM

Post #3 of 6 (1240 views)
Permalink
Re: ntp on maemo [In reply to]

Hi Gary,

Am Friday 17 July 2009 22:28:20 schrieb Gary:
> How often is your tablet online?
Almost daily, but at least once a week.

> What does 'date' tell you from a command line?
Nokia-N800-23-14:~# date
Fri Jul 17 21:25:17 CEST 2009
Nokia-N800-23-14:~#

whereas on my desktop

rd [at] del:~$ date
Fr 17. Jul 22:39:08 CEST 2009
rd [at] del:~$


> Does the package include ntpq?

No:

Nokia-N800-23-14:~# ntpq
-sh: ntpq: not found
Nokia-N800-23-14:~# dpkg -L openntpd
/.
/usr
/usr/sbin
/usr/sbin/ntpd
/usr/share
/usr/share/man
/usr/share/man/man5
/usr/share/man/man5/ntpd.conf.5.gz
/usr/share/man/man8/ntpd.8.gz
/usr/share/doc
/usr/share/doc/openntpd
/usr/share/doc/openntpd/changelog.gz
/usr/share/doc/openntpd/README
/usr/share/doc/openntpd/CREDITS
/usr/share/doc/openntpd/copyright
/usr/share/doc/openntpd/changelog.Debian.gz
/etc
/etc/openntpd
/etc/openntpd/ntpd.conf
/etc/default
/etc/default/openntpd
/etc/init.d
/etc/init.d/openntpd
/var
/var/run
/var/run/openntpd
Nokia-N800-23-14:~#

> If so, run 'ntpq -p' and see if it's properly querying your upstream
> server(s). If you've chosen only one server, consider using
> geographically appropriate servers from www.pool.ntp.org.

Seems to be the debian default, 4 servers are used:

Nokia-N800-23-14:~# cat /etc/openntpd/ntpd.conf
# $OpenBSD: ntpd.conf,v 1.7 2004/07/20 17:38:35 henning Exp $
# sample ntpd configuration file, see ntpd.conf(5)

# Addresses to listen on (ntpd does not listen by default)
#listen on *
#listen on 127.0.0.1
#listen on ::1

# sync to a single server
#server ntp.example.org

# use a random selection of 4 public stratum 2 servers
# see http://twiki.ntp.org/bin/view/Servers/NTPPoolServers
# and http://www.pool.ntp.org/
server 0.debian.pool.ntp.org
server 1.debian.pool.ntp.org
server 2.debian.pool.ntp.org
server 3.debian.pool.ntp.org
Nokia-N800-23-14:~#


When I restart ntpd, everything seems to be ok

Nokia-N800-23-14:~# date
Fri Jul 17 21:29:23 CEST 2009
Nokia-N800-23-14:~# /etc/init.d/openntpd restart
Restarting openntpd: ntpd.
Nokia-N800-23-14:~# date
Fri Jul 17 22:47:56 CEST 2009
Nokia-N800-23-14:~#

After the next reboot, I see the same issue again. Can I update the internal
hw clock from the command line?

_______________________________________________
maemo-users mailing list
maemo-users [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-users


gary at eyetraxx

Jul 17, 2009, 3:36 PM

Post #4 of 6 (1225 views)
Permalink
Re: ntp on maemo [In reply to]

Rainer Dorsch wrote:
> Nokia-N800-23-14:~# date
> Fri Jul 17 21:25:17 CEST 2009
> Nokia-N800-23-14:~#
>
> whereas on my desktop
>
> rd [at] del:~$ date
> Fr 17. Jul 22:39:08 CEST 2009
>

That doesn't tell me much -- what does the pretty UI clock show? Is it
the same as the date output? Have you tried manually adjusting the time
then restarting NTPd?

IMHO, not including ntpq or an equivalent in OpenNNTP is a mistake.
Those wacky BSD devs.

> server 0.debian.pool.ntp.org
> server 1.debian.pool.ntp.org
> server 2.debian.pool.ntp.org
> server 3.debian.pool.ntp.org

That's good -- those are just CNAMEs for 0.pool.ntp.org, etc.

> After the next reboot, I see the same issue again. Can I update the internal
> hw clock from the command line?
>

Yes. 'man date'. It might be easier to do it through the clock app or
system prefs, though. Take your pick.

-Gary
_______________________________________________
maemo-users mailing list
maemo-users [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-users


dufkaf at seznam

Jul 18, 2009, 1:42 PM

Post #5 of 6 (1221 views)
Permalink
Re: ntp on maemo [In reply to]

Rainer Dorsch wrote:
> I did not find a
> hwclock utility. Is that possible?

chroot /mnt/initfs retutime -I

_______________________________________________
maemo-users mailing list
maemo-users [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-users


rdorsch at web

Jul 18, 2009, 2:00 PM

Post #6 of 6 (1219 views)
Permalink
Re: ntp on maemo [In reply to]

Am Saturday 18 July 2009 22:42:57 schrieben Sie:
> Rainer Dorsch wrote:
> > I did not find a
> > hwclock utility. Is that possible?
>
> chroot /mnt/initfs retutime -I

Thanks, I can add that in this in a init script before shutdown. Is there no
better way to keep time consistent?

Rainer
_______________________________________________
maemo-users mailing list
maemo-users [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-users

Maemo users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.