this post was submitted on 28 Mar 2024
28 points (96.7% liked)

Linux

48624 readers
1388 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I put my laptop into sleep by just closing the lid and sometimes after wake up the clock shows wrong time and date which results into web sites not loading until I change it back and then I also lose logins to my previously logged in websites and have to re-enter the logins.

I don't have dual boot so it's not Windows messing with the Linux time issue I was able to find.

I use automatic time and date with my time zone selected. Not sure what I should do about this.

I've tried to enable RTC in local time zone but that made things even worse so I disabled it again.

top 9 comments
sorted by: hot top controversial new old
[–] yesman 12 points 8 months ago (1 children)

A common cause for time issues through power states is a dead CMOS battery.

[–] WereCat 2 points 8 months ago (1 children)

It's a new laptop. Just released like 2 months ago so I doubt CMOS battery is an issue

[–] owatnext 6 points 8 months ago (1 children)

Worth a quick check. Things can be DOA.

[–] [email protected] 3 points 8 months ago

Yep, especially surface mount lithium batteries - they're very sensitive to the solder reflow profile being juuuust right

[–] [email protected] 9 points 8 months ago* (last edited 8 months ago) (2 children)

timedatectl will tell you if your system time matches the rtc time on your motherboard. Could be the rtc is wrong (or failed) and the system is updating via ntp.

hwclock -w can write the current system time to the rtc. If the battery is dead it wouldn’t help.

[–] WereCat 3 points 8 months ago

I just got home. You're right that it's using NTP. I went into BIOS and checked system time and it was 1h behind so I corrected it. timedatectl shows that system clock sync is OFF so I used hwclock --systohc command to sync with system clock and will see if that causes any issues. If it wont work then I'll try to just stick with your way of doing it. But thanks for letting me know about the hwclock command.

[–] WereCat 1 points 8 months ago* (last edited 8 months ago)

Thanks, will look at it when I get home. Battery is fine

[–] [email protected] 3 points 8 months ago (1 children)

Have you checked the BIOS time and date?

[–] WereCat 2 points 8 months ago

No, I will when I get home, didn't occur to me to try