Author Topic: Datentime Enhancement  (Read 9473 times)

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Datentime Enhancement
« Reply #30 on: March 15, 2007, 10:43:59 pm »
running datentime.py in a terminal just launched the GUI.
There was nothing printed or shown in the terminal.
I'm pretty sure I uninstalled the previous version first before installing the last one. I'll try uninstalling my current one, and installing the latest one.
Quote
my date/time is remembered most the time after reboot unless it locks up and you have to reset it.

but how often do you actually need to reboot your Z? once a month? I just suspend/resume and it is so much more responsive after I fixed the multiple rotations from executing after a resume...

actually, make sure you do have the latest datentime.py file. installing a new package without removing the older version sometimes does not work. even though it tells you that you got the new package installed, you still have the old files...

when you run datentime.py from a terminal, you should see the date and time printed twice, once in GMT0 and once in your timezone...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=156482\"][{POST_SNAPBACK}][/a][/div]
« Last Edit: March 15, 2007, 10:51:30 pm by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Datentime Enhancement
« Reply #31 on: March 16, 2007, 01:51:17 pm »
I uninstalled my current datentime.
I checked the /usr/bin directory, and made sure "datentime.py" was removed, and it was.
Then I re-installed datentime_1.0.8_armv5tel.ipk
I had to set the zone and clock and reboot twice, to make my time display correctly.
On the first reboot, it lost -6 hours, setting the clock again and rebooting resulted in a correct clock display.
I'm not sure if this will stay this way, since I haven't rebooted again.
Oh BTW, I can tell if the clock is going to "hold it's correct value" when rebooting.
Once I exit 'X' and type in reboot, there is a line that displays the time.
EDIT:
meanie, on your website you say one should reboot after installing/uninstalling a lot of pkgs.
I have been trying out a lot of pkgs, and this is the reason I reboot more that once a month.
« Last Edit: March 16, 2007, 01:55:53 pm by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

HoloVector

  • Hero Member
  • *****
  • Posts: 533
    • View Profile
    • http://
Datentime Enhancement
« Reply #32 on: March 16, 2007, 02:26:23 pm »
Jon_J, I am having the exact same problem as you on my recently flashed and upgraded to full 3200.  Thanks to some resume issues I have rebooted for the 4th time today.

Meanie, why was Saskatchewan chosen as the GMT -6 zone aka Central Standard Time?  The province of Saskatchewan does not observe daylight savings time and therefore spends half of it's year on the same time as the CST (GMT -6) and the other half in synch with MST (GMT -7).  That means that even if it was keeping time properly it will get out of sync for the CST folks (Manitoba, Illnois, etc) after some time changes.  

Meanie, would it be possible to replace the city names for the Americas with the timezone names in the drop down list instead?  The Timezones are:  Maritime, Eastern, Central, Saskatchewan, Mountain and Pacific.   Thanks for all your hardwork, Meanie.
I think I'm coming down with what kahm's got!  I now have 3 Zaurii in house!  ;)
Current: Zaurus SL-C3200 -  Bobby (Configuring pdaXii13 Akita with Full 5.4.9 upgrade running IceWM)
Zaurus SL-C1000 - Hachiko (Configuring Cacko 1.23 with evilJazz's new kernel)
Zaurus SL-C860 - Fett (Customized Cacko 1.23 with handmade Boba Fett Theme)
Symbol WiFi CF card|Buffalo WiFi CF Card|Buffalo Ethernet CF Card|Red Piel Frama Case|PDAir Case|Black Pelican 1020 Case|Pentopia Stylii|SaruTek Protectors|Transcend SDs (4GB 150X, 1GB 80X, 256MB 45X, 128MB 45X)|2GB PNY SD|2GB SanDisk SD|Transcend CFs (1GB 80X, 512MB 80X)|Sandisk CFs (4GB, 512MB, 256MB)|256MB Netac USB-CF|RH-1 Remote
Check out the ScummVM@tyrannozaurus page if you are an "adventurer" type of person.

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Datentime Enhancement
« Reply #33 on: March 20, 2007, 07:17:14 am »
ok, this version of datentime will keep the right time even after several reboots.
also fixed the timezones (i think) for the northern americans.
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Datentime Enhancement
« Reply #34 on: March 24, 2007, 09:59:13 pm »
daylight savings has just ended here in Sydney (AET) and my Z automatically turned the clock back by an hour! yay

this was using the updated zoneinfo data from the updated timezones package and linking /etc/localtime to my corresponding timezone using the updated datentime python script.
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

HoloVector

  • Hero Member
  • *****
  • Posts: 533
    • View Profile
    • http://
Datentime Enhancement
« Reply #35 on: March 24, 2007, 11:13:09 pm »
Thanks Meanie.  I going to try this after I ipkg upgrade my 3200 to the latest pdaxii13.
I think I'm coming down with what kahm's got!  I now have 3 Zaurii in house!  ;)
Current: Zaurus SL-C3200 -  Bobby (Configuring pdaXii13 Akita with Full 5.4.9 upgrade running IceWM)
Zaurus SL-C1000 - Hachiko (Configuring Cacko 1.23 with evilJazz's new kernel)
Zaurus SL-C860 - Fett (Customized Cacko 1.23 with handmade Boba Fett Theme)
Symbol WiFi CF card|Buffalo WiFi CF Card|Buffalo Ethernet CF Card|Red Piel Frama Case|PDAir Case|Black Pelican 1020 Case|Pentopia Stylii|SaruTek Protectors|Transcend SDs (4GB 150X, 1GB 80X, 256MB 45X, 128MB 45X)|2GB PNY SD|2GB SanDisk SD|Transcend CFs (1GB 80X, 512MB 80X)|Sandisk CFs (4GB, 512MB, 256MB)|256MB Netac USB-CF|RH-1 Remote
Check out the ScummVM@tyrannozaurus page if you are an "adventurer" type of person.

zeigerpuppy

  • Full Member
  • ***
  • Posts: 109
    • View Profile
Datentime Enhancement
« Reply #36 on: April 10, 2007, 09:33:07 am »
I am also getting the time shifting problem whenever I suspend or reboot, however it goes 10 hours forward for me (Melbourne time).
My suspend script contains the following:

suspend() {
  # stop atd (but only if it's running)
  if [ -n "$(ps | grep atd | grep -v grep)" ]; then
  /etc/rc.d/init.d/atd stop
  fi
  hwclock --systohc
  return 0
}

resume() {
  # start atd (but only if service installed and enabled)
  if [ -x /etc/rc.d/init.d/atd ]; then
  /etc/rc.d/init.d/atd start
  fi
  hwclock --hctosys
 return 0
}  
  return 0



I also have a problem with the script:

# python /usr/bin/datentime.py
Traceback (most recent call last):
  File "/usr/bin/datentime.py", line 2, in ?
    import gtk
  File "/usr/lib/python2.4/site-packages/gtk-2.0/gtk/__init__.py", line 81, in ?
    _init()
  File "/usr/lib/python2.4/site-packages/gtk-2.0/gtk/__init__.py", line 66, in _init
    _gtk.init_check()
AttributeError: 'module' object has no attribute 'init_check'

I have rebooted to no avail and installed the latest gtk2
« Last Edit: April 10, 2007, 09:52:04 am by zeigerpuppy »
Zaurus C3100, CE-RH2, Socket lowpower CF Wifi, Socket CF Bluetooth
pdaXrom r198 - testing!, IceWM, Bluetooth modem: Sony Ericsson v600i with 3G.
see some howtos and tips at http://greenant.net/portal/greenant/wiki/Zaurus3100

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Datentime Enhancement
« Reply #37 on: April 12, 2007, 01:06:24 am »
Quote
I am also getting the time shifting problem whenever I suspend or reboot, however it goes 10 hours forward for me (Melbourne time).
My suspend script contains the following:

suspend() {
  # stop atd (but only if it's running)
  if [ -n "$(ps | grep atd | grep -v grep)" ]; then
  /etc/rc.d/init.d/atd stop
  fi
  hwclock --systohc
  return 0
}

resume() {
  # start atd (but only if service installed and enabled)
  if [ -x /etc/rc.d/init.d/atd ]; then
  /etc/rc.d/init.d/atd start
  fi
  hwclock --hctosys
 return 0
}   
  return 0



I also have a problem with the script:

# python /usr/bin/datentime.py
Traceback (most recent call last):
  File "/usr/bin/datentime.py", line 2, in ?
    import gtk
  File "/usr/lib/python2.4/site-packages/gtk-2.0/gtk/__init__.py", line 81, in ?
    _init()
  File "/usr/lib/python2.4/site-packages/gtk-2.0/gtk/__init__.py", line 66, in _init
    _gtk.init_check()
AttributeError: 'module' object has no attribute 'init_check'

I have rebooted to no avail and installed the latest gtk2
[div align=\"right\"][a href=\"index.php?act=findpost&pid=158405\"][{POST_SNAPBACK}][/a][/div]

you are probably missing pygtk
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

zeigerpuppy

  • Full Member
  • ***
  • Posts: 109
    • View Profile
Datentime Enhancement
« Reply #38 on: April 14, 2007, 05:39:02 am »
Thanks Meanie,

that worked but I still have the problem with the time shifting (back to GMT 0) when I suspen/resume,

is there a problem with my suspend/resume scripts?

EDIT
I found the error, it was in the resume script, it was running hwclock after starting the atd daemon, not before... updated version below

resume() {
# start atd (but only if service installed and enabled)
hwclock --hctosys
if [ -x /etc/rc.d/init.d/atd ]; then
/etc/rc.d/init.d/atd start
fi
return 0

I know this is rather off topic... but is there a way to start a ppp connection automatically on resume so that ntpdate can also be run automatically?
EDIT
« Last Edit: April 17, 2007, 11:21:08 pm by zeigerpuppy »
Zaurus C3100, CE-RH2, Socket lowpower CF Wifi, Socket CF Bluetooth
pdaXrom r198 - testing!, IceWM, Bluetooth modem: Sony Ericsson v600i with 3G.
see some howtos and tips at http://greenant.net/portal/greenant/wiki/Zaurus3100