Re: ntp on maemo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@dell:~$ date
Fr 17. Jul 22:39:08 CEST 2009
rd@dell:~$ 


> 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@xxxxxxxxx
https://lists.maemo.org/mailman/listinfo/maemo-users

[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Big List of Linux Books]    

  Powered by Linux