Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
UTC clock problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Catach
Apprentice
Apprentice


Joined: 06 Nov 2003
Posts: 268
Location: Australia

PostPosted: Wed Sep 22, 2004 10:38 pm    Post subject: UTC clock problem Reply with quote

Ok whats the best way to get Gentoo to use the exact BIOS clock for it's time setting? I tried to link /etc/localtime with /usr/share/zoneinfo/UTC, which I thought would just sync on the hardware clock, but I get these crazy random skews everytime I boot.

When I continually reboot and change the BIOS clock back to the real time Gentoo gets closer and closer. I thought I had it last night but I booted this morning and i'm 1h 20m off again :evil:
_________________
Zak: Luke's making a 3D interface for Linux"
Jon G: "Yeah, Luke's making a 3D user interface with Logowriter"
Jon H: "He's only got 99 shapes to work with"
Jon G: "And they're all turtles."
Back to top
View user's profile Send private message
hardcore
l33t
l33t


Joined: 01 Nov 2003
Posts: 626
Location: MSU, MI

PostPosted: Wed Sep 22, 2004 10:47 pm    Post subject: Reply with quote

Link to your local timezone, then in /etc/rc.conf change
Code:
CLOCK="local"

_________________
Nothing can stop me now, cuz I just don't care.
Back to top
View user's profile Send private message
Catach
Apprentice
Apprentice


Joined: 06 Nov 2003
Posts: 268
Location: Australia

PostPosted: Fri Sep 24, 2004 2:53 am    Post subject: Reply with quote

Did that, but it's still skewed by about 2 hours. I remember some file that recorded the clock offset or something that should be deleted, what's it called?

Is there a timezone that just reads from the hardware clock and thats it, nothing else?
_________________
Zak: Luke's making a 3D interface for Linux"
Jon G: "Yeah, Luke's making a 3D user interface with Logowriter"
Jon H: "He's only got 99 shapes to work with"
Jon G: "And they're all turtles."
Back to top
View user's profile Send private message
hardcore
l33t
l33t


Joined: 01 Nov 2003
Posts: 626
Location: MSU, MI

PostPosted: Mon Sep 27, 2004 10:05 am    Post subject: Reply with quote

You want to link /etc/localtime to a city that is in your timezone. If your clock is constantly gaining/losing minutes, your CMOS battery is dying, replace it.
_________________
Nothing can stop me now, cuz I just don't care.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20588

PostPosted: Mon Sep 27, 2004 4:19 pm    Post subject: Reply with quote

Moved from Portage & Programming.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
sabaisabai
Tux's lil' helper
Tux's lil' helper


Joined: 05 May 2004
Posts: 83
Location: Singapore

PostPosted: Mon Sep 27, 2004 4:40 pm    Post subject: Reply with quote

remove /etc/adjtime That should fix the skew on startup.

You'll probably find that the last number in the first line of your old /etc/adjtime is non-zero, which means Gentoo is trying to adjust your time when you boot.
After removing the file Gentoo will re-create it upon boot, and the last value on the first line should be zero.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum