| Prev |   2     3   4 |
maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   How can N900 sync time? GPS, NTP, and/or GSM? (https://talk.maemo.org/showthread.php?t=37662)

ME2g 2011-03-27 20:34

Re: How can N900 sync time? GPS, NTP, and/or GSM?
 
Quote:

Originally Posted by myk (Post 433352)
I noticed the n900 clock had drifted a few minutes off.
Odd, since it has access to accurate time over the internet, the phone network (other phones use this), and the GPS.
The GPS should be obscenely accurate, so why does it let the clock drift? I've ticked the box now to update automatically, but am wondering what it does. There was no instant change, so will see in the morning if it has caught up.
Ntpd does not seem to be installed or in the repository.

Maybe you are interested in this:
http://forums.internettablettalk.com...d.php?p=884697
;-)
I did not try, but maybe you can write a script and use it with a cronjob?

tmarinos 2011-05-11 06:31

Re: How can N900 sync time? GPS, NTP, and/or GSM?
 
I just installed openntpd. How do I know if its working?

chemist 2011-05-11 09:27

Re: How can N900 sync time? GPS, NTP, and/or GSM?
 
If your time is right it is working properly?! You may use a ntp server close to your location to have the sync most accurate.

Some GPS apps do also sync the internal clock and I think it was columbus telling me how far off it was after syncing with satellite-time.

kureyon 2011-05-11 11:58

Re: How can N900 sync time? GPS, NTP, and/or GSM?
 
Quote:

Originally Posted by tmarinos (Post 1003928)
How do I know if its working?

Manually set the time to a few minutes off. After a little while (maybe an hour?) it will gradually sync to the correct time. NB I think the default behaviour for openntpd is to not make huge corrections but make multiple small corrections hence you won't see the clock corrected immediately.

negus72 2011-09-09 23:32

Re: How can N900 sync time? GPS, NTP, and/or GSM?
 
TANKS!!!
i fix my problem!


Quote:

Originally Posted by youxing (Post 440254)
I got openntpd working!

This is what I did!
Make sure you have a working internet connection!
Install rootsh over application manager if you haven't yet.

Open XTerminal

type:

Code:

sudo gainroot

apt-get install openntpd

(wait until it's done installing)

Then type:

Code:

ntpd
after around 20 seconds, the time on the N900 should have updated!

You can check whether you suceeded using the
Code:

date
command!

Everytime you want to update the time on your phone, you need to type

Code:

sudo gainroot
ntpd



m4r0v3r 2011-09-10 00:48

Re: How can N900 sync time? GPS, NTP, and/or GSM?
 
gps recorder syncs time with gps

int_ua 2014-03-12 10:28

Re: How can N900 sync time? GPS, NTP, and/or GSM?
 
How can I debug clockd? It was working ideally on my first N900, and doesn't seem to work on the second with the same software, SIM and settings.

vask 2014-08-30 21:35

Re: How can N900 sync time? GPS, NTP, and/or GSM?
 
Without a sim card and with inserting a new battery, I can make my n900 sync time over wifi on startup with:

Code:

root
vi /etc/event.d
  start on started hildon-desktop
  script
    sleep 60
    exec /usr/sbin/ntpd ntp.ubuntu.com
  end script

To disable the prompt that requires you to set the date and time each boot on a new battery insert do:
Code:

sudo apt-get remove osso-startup-wizard
See: http://talk.maemo.org/archive/index.php/t-87080.html

= More Info =
My usb charging port is broken. However, I have 2 batteries and charge them in an external charger. I have to swap them 2x a day. I do not have a sim card.

Previously I had to manually sync time every time I changed a battery (pressing a few buttons or running a script) and click on the set date and time prompt!

= Failed Attempts =
My n900 doesn't have the man command (not sure how to get it) so writing scripts was kind of difficult. Below are my failed automation attempts.

== sh ==
shell script works but can not be used with:
* alarmd GUI (only runs the first reboot after saving an event)
* event.d (couldn't get it to run correctly)

=== script ===
vi vask.timesync.sh
#!/bin/sh
echo '/usr/sbin/ntpd ntp.ubuntu.com' | /usr/bin/root
chmod +x vask.timesync.sh
./vask.timesync.sh

== rootsh ==
won't let me run it because it says deprecated and security risk


| Prev |   2     3   4 |
All times are GMT. The time now is 18:41.

vBulletin® Version 3.8.8