[maemo-users] ntp on maemo

From: Rainer Dorsch rdorsch at web.de
Date: Fri Jul 17 23:45:59 EEST 2009
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

whereas on my desktop

rd at dell:~$ date
Fr 17. Jul 22:39:08 CEST 2009
rd at dell:~$ 

> Does the package include ntpq? 


Nokia-N800-23-14:~# ntpq
-sh: ntpq: not found
Nokia-N800-23-14:~# dpkg -L openntpd

> 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
#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

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

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

More information about the maemo-users mailing list