I've been having problems with windows 7 waking from sleep after one minute or so on my laptop. I also have ArchLinux installed on this computer. A while back I tried a registry tweak to get windows to use UTC so it would play nice with Linux. The registry tweak didn't seem to work and my windows clock was always wrong. Today I deleted the registry entry that I added, and the problem with sleeping seemed to go away.
Can anyone make sense of this?
Edit: I'm specifically wondering about the sleep problem, not so much about the clock.
The registry entry I added was: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation] "RealTimeIsUniversal"=dword:00000001
Answer
Ok. UTS is Universal Time Coordinated, or the same as Greenwich Mean time. Keep that in mind.
EST or Eastern Standard Time, which is my time zone, is -5:00 from GMT... or UTC. So, if the only clock I could see with my eyes was set to GMT, I would have to subtract 5 hours from it to know what time it was for me. Still with me?
Now, Linux and OSX see the BIOS clock of the computer they are installed on as UTC. Same thing as having the clock in the living room set to GMT. Linux and OSX maintain a conversion setting that the user sets at one point (stating what time zone they are in) so that they display the correct local time to the user.
Windows is different. Windows sees the BIOS computer clock as the local time, without having to convert it.
This is why your Windows clock was always wrong. After the Registry tweak, you still missed telling Windows to convert the clock to your correct local time with the right time zone setting. If you want Linux and Windows to play nice at this point, without the registry tweak AND with your Windows sleep function working properly like it is... you will have to change the time zone setting in Linux to assume GMT or UTC +-0.
Comments
Post a Comment