Active Topics

 


Reply
Thread Tools
ME2g's Avatar
Posts: 168 | Thanked: 58 times | Joined on Aug 2010 @ Vienna
#31
Originally Posted by myk View Post
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?
 
Posts: 96 | Thanked: 6 times | Joined on May 2010 @ Adelaide, Australia
#32
I just installed openntpd. How do I know if its working?
__________________
CQ CQ CQ de VK5FTDM
 
chemist's Avatar
Administrator | Posts: 1,036 | Thanked: 2,019 times | Joined on Sep 2009 @ Germany
#33
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.
 
Posts: 992 | Thanked: 738 times | Joined on Jun 2010 @ Low Earth Orbit
#34
Originally Posted by tmarinos View Post
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.
 
Posts: 55 | Thanked: 36 times | Joined on Oct 2010 @ Milano, Italia
#35
TANKS!!!
i fix my problem!


Originally Posted by youxing View Post
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
 
Posts: 1,746 | Thanked: 1,832 times | Joined on Dec 2010
#36
gps recorder syncs time with gps
 
int_ua's Avatar
Posts: 676 | Thanked: 1,067 times | Joined on Jul 2010 @ Kyiv, Ukraine
#37
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.

Last edited by int_ua; 2014-03-12 at 11:05.
 
Posts: 25 | Thanked: 9 times | Joined on Oct 2010
#38
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

Last edited by vask; 2014-08-30 at 22:54.
 
Reply


 
Forum Jump


All times are GMT. The time now is 12:42.