Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
System time keeps resetting
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Rune
n00b
n00b


Joined: 07 Oct 2002
Posts: 29
Location: Winnipeg

PostPosted: Thu Jul 17, 2003 4:27 am    Post subject: System time keeps resetting Reply with quote

Ok i did the localtime thing as in the install guide and my time was fine for awhile but it randomly decided to screw up. Let's say it's 11pm right now, my clock says 6pm 5 hours in the past. I used root to reset it with date but that too only worked for so long before resetting itself. Any ideas?
Back to top
View user's profile Send private message
ckdake
l33t
l33t


Joined: 10 Apr 2003
Posts: 889
Location: Atlanta, GA

PostPosted: Thu Jul 17, 2003 5:02 am    Post subject: Reply with quote

could be your bios battery is dead or dying.

I have the same problem and instead of fixing it I jsut use NTP.

just emerge " ntp ", edit the config do it and all it to runlevel boot.
_________________
http://ckdake.com/
Back to top
View user's profile Send private message
Rune
n00b
n00b


Joined: 07 Oct 2002
Posts: 29
Location: Winnipeg

PostPosted: Thu Jul 17, 2003 5:21 am    Post subject: Reply with quote

I'll try ntp.
I know it's not the battery because windows is fine.
and i emerg'd it and set the server to something local and then i became totally and utterly lost. any good easy to understand page to help configure this? i checked the real ntp page but its all greek to me.
Back to top
View user's profile Send private message
patience
n00b
n00b


Joined: 26 Jun 2003
Posts: 14

PostPosted: Thu Jul 17, 2003 1:47 pm    Post subject: Reply with quote

Windows is your problem. It's resetting the hardware clock to your local time whereas linux sets it to GMT. I had this problem too, then I stopped dual-booting, got rid of Windoze :D . Linux displays your localtime as an offset of the GMT which is stored by your hardware clock. Just set your linux clock to no offset and it should be fine because next time you boot into windows, it will change your hardware clock to local time.
Back to top
View user's profile Send private message
ckdake
l33t
l33t


Joined: 10 Apr 2003
Posts: 889
Location: Atlanta, GA

PostPosted: Thu Jul 17, 2003 2:57 pm    Post subject: Reply with quote

I just set up my computer to use apples time server (im an apple person too). and here is my ntpd file in /etc/conf.d

Code:
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2         
# $Header: /home/cvsroot/gentoo-x86/net-misc/ntp/files/ntpd.confd,v 1.12 2003/02/03 06:52:58 vapier Exp $

# NOTES:
#  - NTPDATE variables below are used if you wish to set your
#    clock when you start the ntp init.d script
#  - make sure that the NTPDATE_CMD will close by itself ...
#    the init.d script will not attempt to kill/stop it
#  - ntpd will be used to maintain synchronization with a time
#    server regardless of what NTPDATE is set to
#  - read each of the comments above each of the variable

# Comment this out if you dont want the init script to warn
# about not having ntpdate setup
NTPDATE_WARN="y"

# Command to run to set the clock initially
# Most people should just uncomment this line ...
# however, if you know what you're doing, and you
# want to use ntpd to set the clock, change this to 'ntpd'
NTPDATE_CMD="ntpdate"

# Options to pass to the above command
# Most people should just uncomment this variable and
# change 'someserver' to a valid hostname which you
# can aquire from the URL's below
NTPDATE_OPTS="-b time.apple.com"

##
# A list of available servers is available here:
# http://www.eecis.udel.edu/~mills/ntp/servers.html
# Please follow the rules of engagement and use a
# Stratum 2 server (unless you qualify for Stratum 1)
##

# Options to pass to the ntpd process that will *always* be run
# Most people should not uncomment this line ...
# however, if you know what you're doing, feel free to tweak
#NTPD_OPTS=""


Not too complicated and works for me.
_________________
http://ckdake.com/
Back to top
View user's profile Send private message
rinnan
Tux's lil' helper
Tux's lil' helper


Joined: 24 May 2003
Posts: 138
Location: Honolulu, Hawai`i

PostPosted: Sun Jul 20, 2003 4:06 am    Post subject: Windows not the problem. Reply with quote

I have exactly the same problem, but there are no other OS's on my machine, other than Gentoo. So Windows is not the problem. I read somewhere (forgot where) in these forums, that there is some kind of "auto correct" script that compares your hardware clock to the system clock upon shutdown and tries to "adjust" one or the other clock so that they match correctly. No problem, except if you were to change the system time during some time while the computer was running, the two would be way off. And so it adjusts by that time every time it boots. Try this -- reboot a couple of times. Does it jump" in the same direction by the same amount with each reboot? If so that's the problem. As for me I'm just going to install ntp on it.

Erik
Back to top
View user's profile Send private message
meisterlampe
n00b
n00b


Joined: 02 Jun 2004
Posts: 23

PostPosted: Wed Jul 21, 2004 1:34 pm    Post subject: got exactly the same problem Reply with quote

i've got exactly the same problem. I've installed windows (but rarely use is) and there the clock doesn't skew. I'm sure that windows isn't the problem here, cause it happens even without a winboot .

Nevertheless, the clock scew must happen anywhere during the startup scripts cause until the kernel starts booting the time is still correct in the bios (aka the hwclock).
Currently I'm using kernel 2.6.7-r6.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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