Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

Sharing XP and Gentoo on my system messes up system time.

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
10 posts • Page 1 of 1
Author
Message
GreazyMF
n00b
n00b
Posts: 11
Joined: Mon May 24, 2004 6:50 pm

Sharing XP and Gentoo on my system messes up system time.

  • Quote

Post by GreazyMF » Fri Dec 17, 2004 8:57 pm

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: Select all

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.
Top
nyteryda
Guru
Guru
User avatar
Posts: 337
Joined: Sat Jul 26, 2003 9:03 pm
Location: London

  • Quote

Post by nyteryda » Fri Dec 17, 2004 9:03 pm

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: Select all

#include "forums.h"
     int main() {while (bollox) postcount++;}
Top
Taladar
Guru
Guru
Posts: 458
Joined: Sat Oct 09, 2004 4:26 pm
Location: Bielefeld, Germany

  • Quote

Post by Taladar » Fri Dec 17, 2004 9:08 pm

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

Code: Select all

CLOCK="UTC"
to

Code: Select all

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.
Top
ebrostig
Bodhisattva
Bodhisattva
User avatar
Posts: 3152
Joined: Sat Jul 20, 2002 12:44 am
Location: Orlando, Fl

  • Quote

Post by ebrostig » Fri Dec 17, 2004 9:41 pm

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.'
Top
GreazyMF
n00b
n00b
Posts: 11
Joined: Mon May 24, 2004 6:50 pm

  • Quote

Post by GreazyMF » Fri Dec 17, 2004 9:45 pm

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.
Top
Dgege
n00b
n00b
Posts: 59
Joined: Mon Jun 14, 2004 9:36 pm

  • Quote

Post by Dgege » Fri Dec 17, 2004 10:52 pm

IT's actually in /etc/rc.conf
Try it.
Top
GreazyMF
n00b
n00b
Posts: 11
Joined: Mon May 24, 2004 6:50 pm

  • Quote

Post by GreazyMF » Fri Dec 17, 2004 10:55 pm

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.
Top
Boris27
Guru
Guru
User avatar
Posts: 562
Joined: Wed Nov 05, 2003 10:14 pm
Location: Almelo, The Netherlands
Contact:
Contact Boris27
Website

  • Quote

Post by Boris27 » Fri Dec 17, 2004 11:29 pm

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.
Top
ArsDangor
Guru
Guru
User avatar
Posts: 477
Joined: Tue May 20, 2003 5:29 pm

  • Quote

Post by ArsDangor » Sat Dec 18, 2004 3:49 am

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
Top
mcdermottpa
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 95
Joined: Wed Oct 06, 2004 6:02 pm

  • Quote

Post by mcdermottpa » Sat Dec 18, 2004 4:37 am

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/arch ... 24672.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.
Top
Post Reply

10 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic