How to make Win 11 sync time on boot


smoketoxdoc

Member
Local time
4:28 AM
Posts
12
OS
Windows 11
On my dual-boot PC's, when I switch from Linux (Ubuntu) to Win 11 or 10, Win always boots up to GMT time instead of US Eastern time, which is the time set in Win. i have to manually Sync now to get the correct time. How do I get the time to sync automatically? Win 10 and 11 are latest upgrades through Insider program.

Thank you,

John
 

My Computers

System One System Two

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    Dell Precision 7720
    Memory
    32 gb
    Graphics Card(s)
    NVidia
    Monitor(s) Displays
    built on
    Screen Resolution
    1920 x 1080
    Browser
    Chrome
  • Operating System
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Lenovo ThinkCentre M83
There's usually a date and time setting in the BIOS which loads before the Operating System, might check that.
 

My Computers

System One System Two

  • OS
    Win11 Pro RTM
    Computer type
    Laptop
    Manufacturer/Model
    Dell Vostro 3400
    CPU
    Intel Core i5 11th Gen. 2.40GHz
    Memory
    12GB
    Hard Drives
    256GB SSD NVMe
  • Operating System
    Windows 11 Pro RTM x64
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Vostro 5890
    CPU
    Intel Core i5 10th Gen. 2.90GHz
    Memory
    16GB
    Graphics card(s)
    Onboard, no VGA, using a DisplayPort-to-VGA adapter
    Monitor(s) Displays
    24" Dell
    Hard Drives
    512GB SSD NVMe, 2TB WDC HDD
    Browser
    Firefox, Edge
    Antivirus
    Windows Defender/Microsoft Security
Most people are reading this question wrong.
His clock isn't "out of sync", but Linux & Windows disagree on the time zone offset.

UPDATE: Force Windows to write BIOS time using UTC.
Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
"RealTimeIsUniversal"=qword:00000001

Side effect is your BIOS time isn't displayed as local time, but dual-booting won't cause time problems.
 
Last edited:

My Computer

System One

  • OS
    Windows 7
UPDATE: Force Windows to write BIOS time using UTC.
Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
"RealTimeIsUniversal"=qword:00000001

Side effect is your BIOS time isn't displayed as local time, but dual-booting won't cause time problems.
Old thread, apologies. I just wanted to confirm that this solution works perfectly to allow a Windows and Linux dual-boot to agree on the same clock, for anyone else looking for the solution.
 

My Computer

System One

  • OS
    Windows 11, Debian
The Reg entry Did the trick - anybody know how to make this setting on TrueNAS (BSD) ?
 

My Computer

System One

  • OS
    Win11 Pro; Ubuntu, Forth, CPM
    Computer type
    PC/Desktop
    Manufacturer/Model
    Homey Tech
    CPU
    Intel(R) Core(TM) i9-9900 CPU @ 3.10GHz 3.10 GHz
    Motherboard
    GigaBytez390
    Memory
    64
    Graphics Card(s)
    NVidia GeForce RTX 2080 Ti
    Sound Card
    Built in
    Monitor(s) Displays
    4 x Dell P2715Qs
    Screen Resolution
    3840x2160
    Hard Drives
    12
    PSU
    Thermaltake Toughpower DPS G RGB 1500W Digital 80+ Titanium Smart Zero
    Case
    BeQuiet! Dark Base 900
    Cooling
    Corsair Hydro Series H100i PRO RGB AIO Liquid CPU Cooler
    Keyboard
    Logitech Craft
    Mouse
    Logitech MX Master 3
    Internet Speed
    1GB
    Browser
    Firefox
    Antivirus
    None
When /etc/wall_cmos_clock is touched, both FreeBSD and default Windows will interpret the BIOS time as local timezone.
So pick one of the two methods, Windows reg or /etc/wall_cmos_clock, but not both.

FreeBSD and Windows show different times
Thanks, garlin. The freeNAS is a standalone box but I'm hoping this will do the trick. Will fill you in. Thanks a million.
 

My Computer

System One

  • OS
    Win11 Pro; Ubuntu, Forth, CPM
    Computer type
    PC/Desktop
    Manufacturer/Model
    Homey Tech
    CPU
    Intel(R) Core(TM) i9-9900 CPU @ 3.10GHz 3.10 GHz
    Motherboard
    GigaBytez390
    Memory
    64
    Graphics Card(s)
    NVidia GeForce RTX 2080 Ti
    Sound Card
    Built in
    Monitor(s) Displays
    4 x Dell P2715Qs
    Screen Resolution
    3840x2160
    Hard Drives
    12
    PSU
    Thermaltake Toughpower DPS G RGB 1500W Digital 80+ Titanium Smart Zero
    Case
    BeQuiet! Dark Base 900
    Cooling
    Corsair Hydro Series H100i PRO RGB AIO Liquid CPU Cooler
    Keyboard
    Logitech Craft
    Mouse
    Logitech MX Master 3
    Internet Speed
    1GB
    Browser
    Firefox
    Antivirus
    None
lol, I was confused why someone would dual-boot a NAS box :unsure:.
 

My Computer

System One

  • OS
    Windows 7
lol, I was confused why someone would dual-boot a NAS box :unsure:.
Never underestimate the creative power of silly people....
 

My Computer

System One

  • OS
    Win11 Pro; Ubuntu, Forth, CPM
    Computer type
    PC/Desktop
    Manufacturer/Model
    Homey Tech
    CPU
    Intel(R) Core(TM) i9-9900 CPU @ 3.10GHz 3.10 GHz
    Motherboard
    GigaBytez390
    Memory
    64
    Graphics Card(s)
    NVidia GeForce RTX 2080 Ti
    Sound Card
    Built in
    Monitor(s) Displays
    4 x Dell P2715Qs
    Screen Resolution
    3840x2160
    Hard Drives
    12
    PSU
    Thermaltake Toughpower DPS G RGB 1500W Digital 80+ Titanium Smart Zero
    Case
    BeQuiet! Dark Base 900
    Cooling
    Corsair Hydro Series H100i PRO RGB AIO Liquid CPU Cooler
    Keyboard
    Logitech Craft
    Mouse
    Logitech MX Master 3
    Internet Speed
    1GB
    Browser
    Firefox
    Antivirus
    None
lol, I was confused why someone would dual-boot a NAS box :unsure:.
It's an odd issue. In FreeNAS I schedule a shutdown at 11pm but for some reason with this BIOS (Gigabyte GA-77N-WiFi) when the TrueNAS syncs it's time it and changes the BIOS clock. I have the BIOS set to turn on the system at 5am. But I am constantly changing it to get to get the turn on time I want. The fine folks at IX Systems do not allow the root user to mess with the boot parameters (or at least I haven't figured out how) so I ntpq - p ; ntpdate -d; ntpd -I 192.168.1.* But it never sticks. I've just been eating the wasted power (10 spinning drives) 'cause of the hassle. I have had a chance to try your fix yet but will let you know for sure. Thanks again....
 

My Computer

System One

  • OS
    Win11 Pro; Ubuntu, Forth, CPM
    Computer type
    PC/Desktop
    Manufacturer/Model
    Homey Tech
    CPU
    Intel(R) Core(TM) i9-9900 CPU @ 3.10GHz 3.10 GHz
    Motherboard
    GigaBytez390
    Memory
    64
    Graphics Card(s)
    NVidia GeForce RTX 2080 Ti
    Sound Card
    Built in
    Monitor(s) Displays
    4 x Dell P2715Qs
    Screen Resolution
    3840x2160
    Hard Drives
    12
    PSU
    Thermaltake Toughpower DPS G RGB 1500W Digital 80+ Titanium Smart Zero
    Case
    BeQuiet! Dark Base 900
    Cooling
    Corsair Hydro Series H100i PRO RGB AIO Liquid CPU Cooler
    Keyboard
    Logitech Craft
    Mouse
    Logitech MX Master 3
    Internet Speed
    1GB
    Browser
    Firefox
    Antivirus
    None
ntpdate is to adjust the clock drift in minutes, seconds; it's not designed to fix timezone errors.
If your BIOS is set to wake up based on local time, then FreeNAS needs to be adjusted to know BIOS clock is the local time already.

# touch /etc/wall_cmos_clock
Reboot
 

My Computer

System One

  • OS
    Windows 7
ntpdate is to adjust the clock drift in minutes, seconds; it's not designed to fix timezone errors.
If your BIOS is set to wake up based on local time, then FreeNAS needs to be adjusted to know BIOS clock is the local time already.

# touch /etc/wall_cmos_clock
Reboot
Sadly, IX has limited root somehow. Here's what I get (please see attached screen shot)
 

Attachments

  • Screenshot 2023-07-12 091246.png
    Screenshot 2023-07-12 091246.png
    35.1 KB · Views: 2

My Computer

System One

  • OS
    Win11 Pro; Ubuntu, Forth, CPM
    Computer type
    PC/Desktop
    Manufacturer/Model
    Homey Tech
    CPU
    Intel(R) Core(TM) i9-9900 CPU @ 3.10GHz 3.10 GHz
    Motherboard
    GigaBytez390
    Memory
    64
    Graphics Card(s)
    NVidia GeForce RTX 2080 Ti
    Sound Card
    Built in
    Monitor(s) Displays
    4 x Dell P2715Qs
    Screen Resolution
    3840x2160
    Hard Drives
    12
    PSU
    Thermaltake Toughpower DPS G RGB 1500W Digital 80+ Titanium Smart Zero
    Case
    BeQuiet! Dark Base 900
    Cooling
    Corsair Hydro Series H100i PRO RGB AIO Liquid CPU Cooler
    Keyboard
    Logitech Craft
    Mouse
    Logitech MX Master 3
    Internet Speed
    1GB
    Browser
    Firefox
    Antivirus
    None
Like I mentioned they have loocked out root after booting. for "certain" tasks...
 

My Computer

System One

  • OS
    Win11 Pro; Ubuntu, Forth, CPM
    Computer type
    PC/Desktop
    Manufacturer/Model
    Homey Tech
    CPU
    Intel(R) Core(TM) i9-9900 CPU @ 3.10GHz 3.10 GHz
    Motherboard
    GigaBytez390
    Memory
    64
    Graphics Card(s)
    NVidia GeForce RTX 2080 Ti
    Sound Card
    Built in
    Monitor(s) Displays
    4 x Dell P2715Qs
    Screen Resolution
    3840x2160
    Hard Drives
    12
    PSU
    Thermaltake Toughpower DPS G RGB 1500W Digital 80+ Titanium Smart Zero
    Case
    BeQuiet! Dark Base 900
    Cooling
    Corsair Hydro Series H100i PRO RGB AIO Liquid CPU Cooler
    Keyboard
    Logitech Craft
    Mouse
    Logitech MX Master 3
    Internet Speed
    1GB
    Browser
    Firefox
    Antivirus
    None
root doesn't need to sudo, you're root.
# ls -l /etc/wall_cmos_clock

The file only has to exist, the OS startup scripts check for it's appearance and take action.
 

My Computer

System One

  • OS
    Windows 7
root doesn't need to sudo, you're root.
# ls -l /etc/wall_cmos_clock

The file only has to exist, the OS startup scripts check for it's appearance and take action.
?
 

Attachments

  • Screenshot 2023-07-12 094040.png
    Screenshot 2023-07-12 094040.png
    29.7 KB · Views: 2

My Computer

System One

  • OS
    Win11 Pro; Ubuntu, Forth, CPM
    Computer type
    PC/Desktop
    Manufacturer/Model
    Homey Tech
    CPU
    Intel(R) Core(TM) i9-9900 CPU @ 3.10GHz 3.10 GHz
    Motherboard
    GigaBytez390
    Memory
    64
    Graphics Card(s)
    NVidia GeForce RTX 2080 Ti
    Sound Card
    Built in
    Monitor(s) Displays
    4 x Dell P2715Qs
    Screen Resolution
    3840x2160
    Hard Drives
    12
    PSU
    Thermaltake Toughpower DPS G RGB 1500W Digital 80+ Titanium Smart Zero
    Case
    BeQuiet! Dark Base 900
    Cooling
    Corsair Hydro Series H100i PRO RGB AIO Liquid CPU Cooler
    Keyboard
    Logitech Craft
    Mouse
    Logitech MX Master 3
    Internet Speed
    1GB
    Browser
    Firefox
    Antivirus
    None
Do you need me to create that file ?
 

My Computer

System One

  • OS
    Win11 Pro; Ubuntu, Forth, CPM
    Computer type
    PC/Desktop
    Manufacturer/Model
    Homey Tech
    CPU
    Intel(R) Core(TM) i9-9900 CPU @ 3.10GHz 3.10 GHz
    Motherboard
    GigaBytez390
    Memory
    64
    Graphics Card(s)
    NVidia GeForce RTX 2080 Ti
    Sound Card
    Built in
    Monitor(s) Displays
    4 x Dell P2715Qs
    Screen Resolution
    3840x2160
    Hard Drives
    12
    PSU
    Thermaltake Toughpower DPS G RGB 1500W Digital 80+ Titanium Smart Zero
    Case
    BeQuiet! Dark Base 900
    Cooling
    Corsair Hydro Series H100i PRO RGB AIO Liquid CPU Cooler
    Keyboard
    Logitech Craft
    Mouse
    Logitech MX Master 3
    Internet Speed
    1GB
    Browser
    Firefox
    Antivirus
    None
This point, you're better off reading TrueNAS forums.

TrueNAS implements FreeBSD on a temp filesystem, so /etc/wall_cmos_clock isn't permanent across reboots. If you read the NTP threads, the instructions don't make it clear setting the BIOS clock to UTC as the accepted method. Then you would shift the BIOS's wake up time to compensate for using UTC.
 

My Computer

System One

  • OS
    Windows 7
Most people are reading this question wrong.
His clock isn't "out of sync", but Linux & Windows disagree on the time zone offset.

UPDATE: Force Windows to write BIOS time using UTC.
Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
"RealTimeIsUniversal"=qword:00000001

Side effect is your BIOS time isn't displayed as local time, but dual-booting won't cause time problems.
Thank you very much, that solved my issue! I did not know that Windows 11 is capable of interpreting the CMOS clock UTC, just the other way around to set Linux on a localized clock setting. But this (changing Win behavior) is the preferrable way in a multiboot scenario I would say. Thank you a lot!
 

My Computer

System One

  • OS
    Gentoo Linux
Back
Top Bottom