Kubuntu does not let UEFI clock keep correct time

I hope I put this under the right topics, and areas.

I have a motherboard that is super old: https://www.amazon.com/dp/B01N1ZOTOG?ref_=ppx_hzsearch_conn_dt_b_fed_asin_title_4&th=1

I want to use it for a server - Install VMs on, and do some video Editing. The version of Linux I installed is Kubuntu 26.04 LTS.

How ever when Linux is installed, the UEFI clock is always off. I will set it, and reboot, and it will be off. I have replaced the CMOS batter 2-3 times. I even updated the firmware to the latest for the motherboard.

The operating system clock is always correct. It is just the UEFI clock is always wrong.

I noticed this after I removed my Windows 10 drive, and went to Linux. I then re-installed windows 10, and the UEFI clock was correct.

I pulled the windows 10 drive, bought a NVME m.2 drive, install Kubuntu, and the UEFI clock was off again. I pulled the linux drive, rebooted, left the computer off for a few hours, and then went back in, and the UEFI clock was correct.

I then bought an enclosure that can hold the NVME drive, and connects via USB C. I connected it to the PC, and the UEFI clock was off.

As long as ANY drive is connected via USB, SATA, or NVME, to the PC that has linux installed, the UEFI clock is off. With windows 10 installed and running, the UEFI clock stays the correct time.

I was on the MSI forum, and no luck there. This is a unique problem. I can still use the PC, everything works, just the UEFI clock is off ONLY when using a linux based OS. For some reason this bugs me and I would very much like it fixed. I do not have money for a new parts otherwise I would replace the board, processor and ram.

You’d posted this in the Kubuntu flavor area which is for discussions and not support, thus I’ve moved it to the Support and Help.

3 Likes

You refer to BIOS time; where I gather you mean the motherboard real time clock, as BIOS/uEFI does not normally have any clock as its mostly just code & values.

You do know different OSes can have different time defaults; Unix machines started using Unix time which has no timezones (using UTC) and counts only the seconds since 1 Jan 1970 midnight; where a Linux system will use this.

Microsoft traditionally used local time, as they started with PCs with no network knowledge (DOS), then when it was added Microsoft used ‘Microsoft time’ which used the time of their headquarters in Seattle WA US briefly, before too switching too to using UTC time by default (internet connections required this anyway). Microsoft Windows thus could be set to local/Seattle/UTC time.

Are you sure your problem isn’t just a timezone issue? with your Microsoft Windows OS set to a different default to your Kubuntu system? Kubuntu defaults to UTC time for machine [real time] clock, where as Microsoft Windows’ default at install is set at install time & that’s usually local time? Both Microsoft Windows & Kubuntu can be set to match each other if you wish.

I’ve never seen an ‘uEFI clock’, as any uEFI/BIOS I’ve used has just used the motherboard clock.

2 Likes

The clock in the BIOS I set to 214PM my local time. I attach my windows drive, and the clock in the UEFI stays set at 214PM. There is date and time in the UEFI.

When installing Windows 10 I selected Mountain time.

When installing Linux, I selected Denver. I do not change anything post install, I just leave everything at the defaults when installing both windows and Linux.

I then shut the PC down, connect my linux drive, boot into linux.

After linux loads, I stay in the OS for 30 seconds, then reboot go into the UEFI and the time is now 1 day ahead at 1AM. The date and time do not stay set when ever I use Linux.

It is something about using Linux that throws the UEFI date and time off. I do not know how to explain it more simply. Linux is the problem. As much as the run down and the history lesson is nice, I need to know what is causing the UEFI clock to be off when using linux, and how to fix it.

If there is no Linux drive attached by SSD SATA, NMVE, Or USB the UEFI date and time stay correct.

I should add that I am NOT DUAL booting. I have windows installed on an SATA drive, and Linux installed on a nvme drive. I connected them one at a time.

I have contacted MSI support, but due to the age of the board, I am not sure they will be of any help. This is the last time I by an MSI motherboard. Their quality has gone downhill.

Windows stores local wall clock time in the RTC and Linux stores UTC time in the RTC by default.

Keeping RTC as local time would have problems in every multi-boot setup because each OS would independently adjust for summer time. Just tell Windows to use UTC as well:

Since you sometimes boot Linux and Windows on this computer, if you want both to show the correct time you will need to have the Hardware clock on both systems set to local time OR both systems set to UTC. This has been problematic for users for decades. There is a difference between the Hardware clock which is on the motherboard and is kept running by a battery there even when the machine is powered off. This is what you refer to as the ‘UEFI clock’. This is not true for the System clock which is software. Do an online search to get a more detailed explanation using ‘difference between hardware and system clock linux windows’

I do not want to boot both systems. I only loaded up windows 10 as a test to see if the clock on the motherboard would keep the correct time and it did. Windows was only used a test.

What I want is the motherboard clock to keep the correct time when using linux. It does not keep the correct time when using linux. Going forward, I do not want to use windows at all on this machine. This computer is going to be linux only.

When installing Kubuntu, with the default values, how can I get it to work with the motherboard clock, so the motherboard keeps the correct time? The time and date in the OS are ALWAYS correct.

I have looked all over the internet, and found nothing on this issue. I heard back from MSI and they only support windows. Going forward I will need to go to a different company for all my motherboard needs.

If I could get windows 11 to work on this computer, I would. But the processor does not meet Microshafts requirements. The motherboard does, but the processor does not, and the motherboard cannot go to a processor that will work with windows 11.

So I have to modify the timedatectl in Linux, and then the motherboard clock will keep the correct time. Though warnings have appeared in Ubuntu about how this is going to throw off DST and other stuff.

You can configure Linux to use Local Time instead of UTC so that it matches how Windows and your UEFI clock operate.

Step 1: Open a terminal in Linux
Step 2: Run the command to use local time
Execute the following command to tell systemd/Linux to store local time in the hardware clock:
bash timedatectl set-local-rtc 1 --adjust-system-clock

This topic was automatically closed 18 hours after the last reply. New replies are no longer allowed.