Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Clock malfunction
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
gsilva
Tux's lil' helper
Tux's lil' helper


Joined: 24 Dec 2007
Posts: 84
Location: Portugal

PostPosted: Sun May 18, 2008 3:18 am    Post subject: Clock malfunction Reply with quote

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
View user's profile Send private message
Link31
Apprentice
Apprentice


Joined: 17 Apr 2006
Posts: 200
Location: France

PostPosted: Sun May 18, 2008 3:29 am    Post subject: Reply with quote

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
View user's profile Send private message
gsilva
Tux's lil' helper
Tux's lil' helper


Joined: 24 Dec 2007
Posts: 84
Location: Portugal

PostPosted: Sun May 18, 2008 3:36 am    Post subject: Reply with quote

It's already set to local and the timezone to Portugal..
Back to top
View user's profile Send private message
champ
Tux's lil' helper
Tux's lil' helper


Joined: 25 Oct 2006
Posts: 97
Location: Thailand

PostPosted: Sun May 18, 2008 6:53 am    Post subject: Reply with quote

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
View user's profile Send private message
gsilva
Tux's lil' helper
Tux's lil' helper


Joined: 24 Dec 2007
Posts: 84
Location: Portugal

PostPosted: Sun May 18, 2008 1:25 pm    Post subject: Reply with quote

Also tried that :\

Everytime I come from Windows to Gentoo my clock goes 30min back in time...
Back to top
View user's profile Send private message
champ
Tux's lil' helper
Tux's lil' helper


Joined: 25 Oct 2006
Posts: 97
Location: Thailand

PostPosted: Tue May 20, 2008 2:21 am    Post subject: Reply with quote

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
View user's profile Send private message
gsilva
Tux's lil' helper
Tux's lil' helper


Joined: 24 Dec 2007
Posts: 84
Location: Portugal

PostPosted: Tue May 20, 2008 9:32 am    Post subject: Reply with quote

Asus G1 (the first version -> P) :)

It disappears after a while? What do you mean?

Thanks.
Back to top
View user's profile Send private message
soka
Tux's lil' helper
Tux's lil' helper


Joined: 27 Dec 2006
Posts: 99
Location: Argentina

PostPosted: Tue May 20, 2008 11:45 am    Post subject: Reply with quote

Check and see if the motherboard battery is not discharged. Something similar happened to me recently and that was the problem.
Back to top
View user's profile Send private message
gsilva
Tux's lil' helper
Tux's lil' helper


Joined: 24 Dec 2007
Posts: 84
Location: Portugal

PostPosted: Tue May 20, 2008 11:55 am    Post subject: Reply with quote

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
View user's profile Send private message
hind
n00b
n00b


Joined: 12 Nov 2004
Posts: 50
Location: Haifa, Israel

PostPosted: Sat May 24, 2008 4:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
gsilva
Tux's lil' helper
Tux's lil' helper


Joined: 24 Dec 2007
Posts: 84
Location: Portugal

PostPosted: Sat May 24, 2008 4:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6749

PostPosted: Sat May 24, 2008 4:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
gsilva
Tux's lil' helper
Tux's lil' helper


Joined: 24 Dec 2007
Posts: 84
Location: Portugal

PostPosted: Mon May 26, 2008 9:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6749

PostPosted: Tue May 27, 2008 1:01 pm    Post subject: Reply with quote

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
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