View previous topic :: View next topic |
Author |
Message |
Rune n00b
Joined: 07 Oct 2002 Posts: 29 Location: Winnipeg
|
Posted: Thu Jul 17, 2003 4:27 am Post subject: System time keeps resetting |
|
|
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 |
|
|
ckdake l33t
Joined: 10 Apr 2003 Posts: 889 Location: Atlanta, GA
|
Posted: Thu Jul 17, 2003 5:02 am Post subject: |
|
|
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 |
|
|
Rune n00b
Joined: 07 Oct 2002 Posts: 29 Location: Winnipeg
|
Posted: Thu Jul 17, 2003 5:21 am Post subject: |
|
|
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 |
|
|
patience n00b
Joined: 26 Jun 2003 Posts: 14
|
Posted: Thu Jul 17, 2003 1:47 pm Post subject: |
|
|
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 . 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 |
|
|
ckdake l33t
Joined: 10 Apr 2003 Posts: 889 Location: Atlanta, GA
|
Posted: Thu Jul 17, 2003 2:57 pm Post subject: |
|
|
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 |
|
|
rinnan Tux's lil' helper
Joined: 24 May 2003 Posts: 138 Location: Honolulu, Hawai`i
|
Posted: Sun Jul 20, 2003 4:06 am Post subject: Windows not the problem. |
|
|
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 |
|
|
meisterlampe n00b
Joined: 02 Jun 2004 Posts: 23
|
Posted: Wed Jul 21, 2004 1:34 pm Post subject: got exactly the same problem |
|
|
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 |
|
|
|