Re: Windows screws up Linux's clock



On 02/21/2012 05:25 PM, Paul Johnson wrote:
Seems like this could be made easier by mailing the .reg file (or
throwing it in a webspace someplace) with the correct key and value
already set.

On Tue, Feb 21, 2012 at 4:06 PM, Don deJuan <donjuansjiz@xxxxxxxxx
<mailto:donjuansjiz@xxxxxxxxx>> wrote:

On 02/21/2012 03:58 PM, Doug wrote:

On 2/21/2012 1:00 AM, Don deJuan wrote:

On 02/20/2012 09:51 PM, Bob Proulx wrote:

Hendrik Boom wrote:

I run my machine on UCT, or something like it
(timezone +0). Every time


It's UTC. Having the hardare clock in UTC is normal and
standard.

http://en.wikipedia.org/wiki/__Coordinated_Universal_Time <http://en.wikipedia.org/wiki/Coordinated_Universal_Time>

I boot to Windows XP (which I need to do once in a
blue moon) Windows
takes it on itself to set my clock as if the UCT
time were actually
local
time. I have no idea where it gets its idea of what
the current time
is.


The basic problem is that Windows keeps the hardware
clock in
localtime but modern systems keep the hardware clock in
UTC. They are
fundamentally incompatible.

You can configure Debian's /etc/default/rcS to keep the
hardware clock
in local time too. (With UTC=no) But if you only dual
boot very
rarely then I wouldn't do it. I would simply live with
Windows having
messed up time. It should be fine when you boot Debian.

It is fine when you boot Debian, right? If not then
install 'ntp' and
it will be fine.

What I'd like to know is, how can I keep Windows
from messing with my
clock. I'd really like it to just leave it alone.


Windows is just /displaying/ the clock as localtime, not
setting the
clock, right? That is what I see when I dual boot a machine.

By the way... The date on your email is UTC. Is that
also your local
time zone too?

Date: Tue, 21 Feb 2012 04:55:14 +0000 (UTC)


Bob


In windows open regedit go to:
HKLM\SYSTEM\CurrentControlSet\__Control\TimeZoneInformation
add a DWORD with name of "RealTimeIsUniversal" exactly as
its entered
there and set the value to 1. Now you can have windows time
play nice
with any linux distro, no matter if you use localtime or UTC.


I'm confused. In another post of a few minutes ago, I asked
about this
dword (DWORD?) business.
Could you please post the entire string correctly, with whatever
dword
or DWORD is supposed to be and 000001 or 1 or whatever
that's supposed to be.

Thank you. --doug

--doug



For me and from my understanding the "windows" way to solve this is.
1.open regedit
2. go to
HKEY_LOCAL_MACHINE\SYSTEM\__CurrentControlSet\Control\__TimeZoneInformation\
3. Add in "RealTimeIsUniversal"
4. Give it a hex value of "1" -- this is the 'DWORD'
5. save
6. shutdown windows
7. profit ;)

Does this make sense now?

If it does not a simple google of "regedit windows time linux" gives lots of tutorials as a result. But giving


it the value in regedit makes it so no matter when you log in/boot
Windows, it will no longer mess with the time settings and any Linux
OS can now run as UTC or localtime with Windows no longer making
changes to the time that effect Linux.

HTH



--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxxxx
<mailto:debian-user-REQUEST@xxxxxxxxxxxxxxxx> with a subject of
"unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
<mailto:listmaster@xxxxxxxxxxxxxxxx>
Archive: http://lists.debian.org/__4F443175.7020706@xxxxxxxxx
<http://lists.debian.org/4F443175.7020706@xxxxxxxxx>


Seriously? Could you not as easily google exactly what I said to and follow the step by step guides that are beyond numerous on google? I have given the procedure to solve this 3 times through this thread. If you're unfamiliar with regedit, then please read up on regedit. This is a simple procedure to accomplish in Windows following what I have already posted each of the 3 times.

Do not mean to sound rude, but I do not have a bigger spoon for feeding, and am not a regular Debian user anymore, only replying to questions I can answer in 1 post. I even gave you the exact terms to go do your own research to verify I am not passing bad info, in the previous response ;). That is how I remember the terms to add in on a new install (generally takes a minute to search and apply), doing that exact search, or you could make a batch file to share with everyone else in the future, if you wish to contribute in that manner.

RTM is always great advice ;)


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/4F444692.2080309@xxxxxxxxx



Relevant Pages

  • Re: -Re: Linux messes up clock
    ... > clock has not been messed up every time). ... > boot time. ... Does clock behave without APM or ACPI? ... Do you dual boot with some form of windows? ...
    (comp.os.linux.misc)
  • Re: XP with BIOS clock set to UTC?
    ... The boot proceeds normally after that, ... it had something to do with my bios clock being set ... set the bios clock to UTC, ... This is a known issue when dual-booting Windows and Linux. ...
    (microsoft.public.windowsxp.general)
  • Re: NTP client with ability to write Windows NT system time to hardware clock?
    ... working beginning in Windows Vista SP2 + Windows 7, ... system time to the hardware clock during the shut down process. ...
    (comp.protocols.time.ntp)
  • Re: Windows screws up Linuxs clock
    ... localtime but modern systems keep the hardware clock in UTC. ... I would simply live with Windows having ... dword business. ... If it does not a simple google of regedit windows time linux gives lots of tutorials as a result. ...
    (Debian-User)
  • Virtual PC and real time clock lag
    ... I noticed something that is rather peculiar about Virtual PC, Windows ... PC to lose its real time clock accuracy. ... The real-time clock still ticks once per second. ... playing around with iTunes for Windows, I found that QuickTime ...
    (microsoft.public.mac.virtualpc)