View previous topic :: View next topic |
Author |
Message |
gsilva Tux's lil' helper
Joined: 24 Dec 2007 Posts: 84 Location: Portugal
|
Posted: Sun May 18, 2008 3:18 am Post subject: Clock malfunction |
|
|
Hi!
Lately I've been having some problems with my computer clock... I have two OS: Gentoo and Windows (for playing, once in a while).
The problem is that when I switch between OS's my clock starts going back in time and I can't figure out why... Could someone help me?
Thanks |
|
Back to top |
|
|
Link31 Apprentice
Joined: 17 Apr 2006 Posts: 200 Location: France
|
Posted: Sun May 18, 2008 3:29 am Post subject: |
|
|
Check the "clock=" setting in /etc/conf.d/hwclock. It seems that it must be set to "local" (not "UTC") when dual booting with windows. |
|
Back to top |
|
|
gsilva Tux's lil' helper
Joined: 24 Dec 2007 Posts: 84 Location: Portugal
|
Posted: Sun May 18, 2008 3:36 am Post subject: |
|
|
It's already set to local and the timezone to Portugal.. |
|
Back to top |
|
|
champ Tux's lil' helper
Joined: 25 Oct 2006 Posts: 97 Location: Thailand
|
Posted: Sun May 18, 2008 6:53 am Post subject: |
|
|
Not sure what may be causing the problem, but you might consider using ntp-client on gentoo. It will sync your clock on boot. Code: | emerge ntp
rc-update add ntp-client boot | This will not work however if you behind a proxy _________________ "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety." - Benjamin Franklin
blog: johnsearth.blogspot.com |
|
Back to top |
|
|
gsilva Tux's lil' helper
Joined: 24 Dec 2007 Posts: 84 Location: Portugal
|
Posted: Sun May 18, 2008 1:25 pm Post subject: |
|
|
Also tried that :\
Everytime I come from Windows to Gentoo my clock goes 30min back in time... |
|
Back to top |
|
|
champ Tux's lil' helper
Joined: 25 Oct 2006 Posts: 97 Location: Thailand
|
Posted: Tue May 20, 2008 2:21 am Post subject: |
|
|
Quote: | Everytime I come from Windows to Gentoo my clock goes 30min back in time. | Interesting! What computer do you have? I and others have had problems with new HP/Compaq computers going back 30-45 minutes on startup. It appears to be a hardware problem, which then disappears after a while.
lol _________________ "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety." - Benjamin Franklin
blog: johnsearth.blogspot.com |
|
Back to top |
|
|
gsilva Tux's lil' helper
Joined: 24 Dec 2007 Posts: 84 Location: Portugal
|
Posted: Tue May 20, 2008 9:32 am Post subject: |
|
|
Asus G1 (the first version -> P)
It disappears after a while? What do you mean?
Thanks. |
|
Back to top |
|
|
soka Tux's lil' helper
Joined: 27 Dec 2006 Posts: 99 Location: Argentina
|
Posted: Tue May 20, 2008 11:45 am Post subject: |
|
|
Check and see if the motherboard battery is not discharged. Something similar happened to me recently and that was the problem. |
|
Back to top |
|
|
gsilva Tux's lil' helper
Joined: 24 Dec 2007 Posts: 84 Location: Portugal
|
Posted: Tue May 20, 2008 11:55 am Post subject: |
|
|
Yesterday I tried only using Windows. Of course, it lasted only a few boots/hours but the clock kept good, as well as it keeps correct on Gentoo if I don't switch between them. |
|
Back to top |
|
|
hind n00b
Joined: 12 Nov 2004 Posts: 50 Location: Haifa, Israel
|
Posted: Sat May 24, 2008 4:11 pm Post subject: |
|
|
You might want to disable "Windows Time" service in windows (right click on "My Computer" -> Manage -> Services), it screwed my computer clock more than once.
Also, check that you linux clock syncs back to hardware, but it's only important if you set your clock through Gentoo. |
|
Back to top |
|
|
gsilva Tux's lil' helper
Joined: 24 Dec 2007 Posts: 84 Location: Portugal
|
Posted: Sat May 24, 2008 4:13 pm Post subject: |
|
|
Well, after a while I'm starting to think that this is a gentoo problem since my clocl goes back even if I don't touch Windows... When I boot, the clock is OK but after starting Gnome it goes something like 15min back. This only happens on Shutdown+Boot-up and not on Restart.
This is really confusing :\ |
|
Back to top |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6749
|
Posted: Sat May 24, 2008 4:37 pm Post subject: |
|
|
I would bet this is a problem with your /etc/adjtime. Delete this file, and make sure that it does not generated automatically by /etc/init.d/clock or /etc/init.d/hwclock, respectively. Depending on whether you use baselayout-2 or baselayout-1 you have to set clock_adjtime to NO and perhaps pass the parameter CLOCK_ARGS="--noadjfile" to hwclock in the corresponding /etc/conf.d/*clock file. |
|
Back to top |
|
|
gsilva Tux's lil' helper
Joined: 24 Dec 2007 Posts: 84 Location: Portugal
|
Posted: Mon May 26, 2008 9:29 pm Post subject: |
|
|
I did what you said and apparently it fixed the problem
The funny thing is that I get this error at startup:
Code: | hwclock: The --adjust and --noadjfile options are mutually exclusive. You specified booth.
Failed to set clock You will need to set the clock yourself |
My /etc/conf.d/clock seems fine... why is this happening? |
|
Back to top |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6749
|
Posted: Tue May 27, 2008 1:01 pm Post subject: |
|
|
gsilva wrote: | Code: | hwclock: The --adjust and --noadjfile options are mutually exclusive. |
|
It seems that your baselayout passes --adjust to hwclock which it shouldn't do. In baselayout-2 (more precisely: in openrc) there is the clock_adjtime variable (if you set this, you do not have to set clock_args). I do not remember whether there was something similar in baselayout-1 in /etc/conf.d/clock - I have upgraded since months. |
|
Back to top |
|
|
|