Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Sharing XP and Gentoo on my system messes up system time.
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
GreazyMF
n00b
n00b


Joined: 24 May 2004
Posts: 11

PostPosted: Fri Dec 17, 2004 8:57 pm    Post subject: Sharing XP and Gentoo on my system messes up system time. Reply with quote

Hi all,

Just wondering if anyone else has had the same problem as me. I have a dual boot laptop (XP and 2.6.9-gentoo-r9). Whenever I boot into Gentoo after having been in my XP partition, my system clock is off by 2 or 6 hours.

I noticed that the time is off in XP when I first boot it up, but XP "corrects" itself.

I am in Minneapolis MN, USA. That is in the Central Standard Time Zone. I had made a link in /etc/localtime before I built the kernel like so:

Code:

ln -sf /usr/share/zoneinfo/America/Chicago /etc/localtime


However, that link isn't valid anymore. Maybe because I used KDE to adjust the time???

So, does anyone have any ideas how to stop this from happening? It isn't the end of the world, just annoying. Plus, if we could, it would be nice to fix it a la XP whereby it sees that the time is off when it boots up and corrects it.

Thanks,
--Greazy
_________________
It wasn't easy being Greazy ....but it was interesting.
Back to top
View user's profile Send private message
nyteryda
Guru
Guru


Joined: 26 Jul 2003
Posts: 337
Location: London

PostPosted: Fri Dec 17, 2004 9:03 pm    Post subject: Reply with quote

are you usually connected to the internet when you boot up ? because you could try using ntp
Which checks a servers time and automatically corrects your clock at boot time
you should also remake that link.
also is XP set to the correct time zone ?
_________________
Code:
#include "forums.h"
     int main() {while (bollox) postcount++;}
Back to top
View user's profile Send private message
Taladar
Guru
Guru


Joined: 09 Oct 2004
Posts: 458
Location: Bielefeld, Germany

PostPosted: Fri Dec 17, 2004 9:08 pm    Post subject: Reply with quote

If you don't want dual-boot to mess with your time you should change
Code:

CLOCK="UTC"

to
Code:

CLOCK="local"

in /etc/conf.d/clock. Windows stores the local time in the hardware clock while Linux stores the Time in UTC (a.k.a. GMT) per default so the hardware clock is not affected by daylight saving time changes. With the above mentioned change you can switch Linux to interpret the hardware time as local time instead.
Back to top
View user's profile Send private message
ebrostig
Bodhisattva
Bodhisattva


Joined: 20 Jul 2002
Posts: 3152
Location: Orlando, Fl

PostPosted: Fri Dec 17, 2004 9:41 pm    Post subject: Reply with quote

I always run ntpclient at startup to sync the clock on my machine with a known timesource.

emerge ntp
should get you going...

Erik
_________________
'Yes, Firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.'
Back to top
View user's profile Send private message
GreazyMF
n00b
n00b


Joined: 24 May 2004
Posts: 11

PostPosted: Fri Dec 17, 2004 9:45 pm    Post subject: Reply with quote

Hey all,

Thanks so much for the fast responses. Unfortunately, I am not always connected to a network at bootup, so I don't think that ntp is "the" solution.

I am interested in the post by Taladar however, I don't have a file named /etc/conf.d/clock. Is that file part of a specific package?

Thanks,
--Greazy
_________________
It wasn't easy being Greazy ....but it was interesting.
Back to top
View user's profile Send private message
Dgege
n00b
n00b


Joined: 14 Jun 2004
Posts: 59

PostPosted: Fri Dec 17, 2004 10:52 pm    Post subject: Reply with quote

IT's actually in /etc/rc.conf
Try it.
Back to top
View user's profile Send private message
GreazyMF
n00b
n00b


Joined: 24 May 2004
Posts: 11

PostPosted: Fri Dec 17, 2004 10:55 pm    Post subject: Reply with quote

Thanks Dgege,

I've made the change and will give it a test here shortly.

--Greazy.
_________________
It wasn't easy being Greazy ....but it was interesting.
Back to top
View user's profile Send private message
Boris27
Guru
Guru


Joined: 05 Nov 2003
Posts: 562
Location: Almelo, The Netherlands

PostPosted: Fri Dec 17, 2004 11:29 pm    Post subject: Reply with quote

rc.conf will do the trick.

dont forget to remove /etc/adjtime after you change that value, and reboot.

should be working fine... (to think it took me the thick end of a year to figure this out....:S)
_________________
we are microsoft, lower your firewalls and surrender your pc's. we will add your biological and technological distinctiveness to our own. your culture will adapt and service us. resistance is futile.
Back to top
View user's profile Send private message
ArsDangor
Guru
Guru


Joined: 20 May 2003
Posts: 477

PostPosted: Sat Dec 18, 2004 3:49 am    Post subject: Reply with quote

Dgege wrote:
IT's actually in /etc/rc.conf
Try it.

It's not anymore. If you updated your system recently, the next time you boot up you'll find a message telling you not to use /etc/rc.conf but /etc/conf.d/clock
_________________
Cómo usar Portage correctamente
Back to top
View user's profile Send private message
mcdermottpa
Tux's lil' helper
Tux's lil' helper


Joined: 06 Oct 2004
Posts: 95

PostPosted: Sat Dec 18, 2004 4:37 am    Post subject: Reply with quote

It's been awhile since I used windows but I was almost sure you could set it to use UTC as well. So I did some searching and found this gem that explains the problem. http://weblogs.asp.net/oldnewthing/archive/2004/09/02/224672.aspx . Every time someone asks me why I don't use windows any longer I think of things like this.
_________________
Murphy's Military Laws:
#19.There is no such thing as an atheist in a foxhole.
#54. Killing for peace is like screwing for virginity.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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