Active Topics

 


Reply
Thread Tools
Posts: 67 | Thanked: 6 times | Joined on Dec 2007
#1
Anybody know how to set the hardware clock on the n800? Seems the date/time adj from control panel or the clock app. sets the software clock, and from an xterm window the normal Debian hwclock command doesn't seem to exist.
 

The Following User Says Thank You to ArgentSilver For This Useful Post:
Posts: 110 | Thanked: 12 times | Joined on Oct 2007 @ Cambridge, UK
#2
here's how:

/mnt/initfs/usr/bin/retutime --rtc-from-system


you can use:

/mnt/initfs/usr/bin/retutime --get-time

to check the current RTC clock time, too.
 

The Following 4 Users Say Thank You to cdmackay For This Useful Post:
Posts: 110 | Thanked: 12 times | Joined on Oct 2007 @ Cambridge, UK
#3
see also the adjust-clock pkg at: http://nitapps.com/
 
Posts: 52 | Thanked: 22 times | Joined on Apr 2008
#4
So why don't they do it on shutdown like RedHat ?

I am using ntpdate in cron to keep the clock correct, then found it was 24hrs out when I rebooted so it took somewhat longer to get a GPS fix.
Anyway, I have added retutime to the cron command.
 
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#5
It's fine to automatically sync hardware clock from software clock at shutdown if you run ntp, it's very bad if you don't. (For desktop systems you should read up on /etc/adjtime and you will understand why.) That's why I hate what RedHat and some other distros do.
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
 
Posts: 110 | Thanked: 12 times | Joined on Oct 2007 @ Cambridge, UK
#6
right, so I recommend using: adjust-clock from http://nitapps.com/, which is an adjtime equivalent. this issue is discussed further on that page.
 
Reply


 
Forum Jump


All times are GMT. The time now is 02:34.