Feb 17 2007, 10:58 PM
Post
#1
|
|
![]() Group: Members Posts: 409 Joined: 3-December 06 Member No.: 13,063 |
When I started with beta3, had some time issues and pdaxrom occasionally "locking up" - which turns out to be because of wrong clock. Here I share my way of fixing them.
I use the following pair of scripts. When you need date synchronization, just call 'dt' script. (modify the values to your needs, I live in Sofia and use for sync ntp.intergenia.de, which you might not be able to access. Place the files in /usr/local/bin, and 'chmod +x' ) dt CODE #!/bin/bash lt_unset ntpdate ntp.intergenia.de hwclock --systohc lt_set lt_set: CODE #!/bin/bash rm -f /etc/localtime ln -s /usr/share/zoneinfo/Europe/Sofia /etc/localtime lt_unset: CODE #!/bin/bash rm -f /etc/localtime in /etc/apm/scripts.d/hwclock the functions inside look like this: CODE suspend() { lt_unset hwclock --systohc lt_set return 0 } resume() { lt_unset hwclock --hctosys lt_set return 0 } I can guarantee you that you will have _no_ problems with the clock anymore, just set the correct timezone and ntp server. If you don't have internet, you just can issue commands in 'dt' one by one, replacing ntpdate with 'date xxxx' command to set the clock. Also, if you accidentally turn off your zaurus, don't turn it on immediately. wait 3-4 seconds at least, and then do it. timezones package from the feed is required. |
|
|
|
louigi600 QUOTE(kkazakov13 @ Feb 18 2007, 08:58 AM)When... Feb 18 2007, 01:39 AM
kkazakov13 I did not said it's for r121, but for beta3 Feb 18 2007, 04:43 AM
ZDevil I simply get rid of atd, which meddles with the sy... Feb 18 2007, 06:20 AM
tombraider ZDevil:
The date/time setting going to a total cr... Feb 18 2007, 08:52 AM
kkazakov13 I really _rely_ on Z's date/time now, somethin... Feb 18 2007, 10:08 AM
tovarish you dont need to delete /etc/localtime if you do
h... Feb 18 2007, 11:15 PM
Meanie this is what I have in /etc/apm.d/scripts/hwclock
... Feb 18 2007, 11:27 PM
daniel3000 QUOTE(Meanie @ Feb 19 2007, 09:27 AM)this is ... Feb 19 2007, 06:12 AM

ToneBlind QUOTE(daniel3000 @ Feb 19 2007, 07:12 AM)... Jul 10 2009, 10:40 AM

ToneBlind QUOTE(ToneBlind @ Jul 10 2009, 11:40 AM) ... Jul 10 2009, 01:13 PM
tombraider I also have this code below in hwclock. Would I l... Feb 19 2007, 09:13 AM
Ling Is this the default for pdaXii13? I assume so as I... Feb 19 2007, 04:24 AM
zeigerpuppy I am having a problem with my clock on Beta 3,
it ... Apr 10 2007, 03:15 AM
ToneBlind The obvious solution was to only stop atd before c... Jul 10 2009, 02:30 PM![]() ![]() |
|
Lo-Fi Version | Time is now: 21st May 2013 - 05:01 AM |