Reply
Thread Tools
Posts: 164 | Thanked: 132 times | Joined on Dec 2007
#1
gps-clockd is a tiny (14KB) daemon that runs in the background and synchronizes the clock to GPS time whenever GPS is turned on. The daemon is started automatically at boot time. Adjustments are logged to /var/log/gps-clockd.log

[root@nokia ~]# cat /var/log/gps-clockd.log
[Sat Feb 2 20:47:25 2008] *** GPS Clock Daemon started ***
[Sat Feb 2 20:52:07 2008] GPS activated. Time to first fix 01m25s
[Sat Feb 2 20:52:07 2008] Adjusted clock by -0.39 seconds to match GPS time
[Sat Feb 2 21:02:08 2008] Adjusted clock by 0.14 seconds to match GPS time

Download at http://nitapps.com
__________________
See my collection of maemo apps: http://nitapps.com

Last edited by ag2; 2008-02-09 at 11:29.
 

The Following 10 Users Say Thank You to ag2 For This Useful Post:
fpp's Avatar
Posts: 2,853 | Thanked: 968 times | Joined on Nov 2005
#2
So with this our clocks will be 24hrs early too ? :-)
 
Posts: 38 | Thanked: 3 times | Joined on Dec 2007 @ UK
#3
Nice! Thank you
 
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#4
How accurate is it? I'm asking because when I run both my Palm T3 and my N800 with GPS units and showing the time, the N800 lags by one second approximately.. presumably because the N800 goes through daemons and whatnot while the T3 is more directly connected to the (GPS) iron (or less overhead at least).
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
 
Posts: 139 | Thanked: 24 times | Joined on Sep 2005
#5
Originally Posted by ag2 View Post
gps-clockd is a tiny (14KB) daemon that runs in the background and synchronizes the clock to GPS time whenever GPS is turned on. The daemon is started automatically at boot time.
Cool (also explains how you stumbled on the gpsd bug). Still, this is yet another reason why gpsmgr and gpsbt being closed source is a bloody stupid idea: this feature should definitely be inside those libs.
 
anidel's Avatar
Posts: 1,743 | Thanked: 1,231 times | Joined on Jul 2006 @ Twickenham, UK
#6
Could you tell us how faster the battery will drain with the GPS being activated all the time ?
In my small test (Map application running) it was not so bad at all.. the GPS was using just a small amount of battery (the indicator was still full at the end of the day, everything off).
 
Posts: 164 | Thanked: 132 times | Joined on Dec 2007
#7
Originally Posted by TA-t3 View Post
How accurate is it? I'm asking because when I run both my Palm T3 and my N800 with GPS units and showing the time, the N800 lags by one second approximately.. presumably because the N800 goes through daemons and whatnot while the T3 is more directly connected to the (GPS) iron (or less overhead at least).
rdate tells me adjustments are accurate to within 0.2 - 0.3 seconds.
__________________
See my collection of maemo apps: http://nitapps.com
 

The Following User Says Thank You to ag2 For This Useful Post:
Posts: 164 | Thanked: 132 times | Joined on Dec 2007
#8
Originally Posted by anidel View Post
Could you tell us how faster the battery will drain with the GPS being activated all the time ?
In my small test (Map application running) it was not so bad at all.. the GPS was using just a small amount of battery (the indicator was still full at the end of the day, everything off).
My N810 lasts about 10 hours with GPS constantly on.

Just to be clear, gps-clockd does not activate GPS when it's running. It piggybacks on other applications that use GPS.

gps-clockd should have a negligible effect on battery life, as it is event driven.
__________________
See my collection of maemo apps: http://nitapps.com
 
Posts: 164 | Thanked: 132 times | Joined on Dec 2007
#9
This utility now also logs time to first fix whenever GPS is turned on.
__________________
See my collection of maemo apps: http://nitapps.com
 
Posts: 4 | Thanked: 0 times | Joined on Mar 2008
#10
I tried to install gps-clockd on my N800 and I got a “incompatible application package” message.
 
Reply


 
Forum Jump


All times are GMT. The time now is 08:04.