Linux Lite Forums
How to deal with broken RTC (real time clock) - Printable Version

+- Linux Lite Forums (https://www.freecinema2022.gq/forums)
+-- Forum: Software - Support (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=5)
+--- Forum: Other (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=20)
+--- Thread: How to deal with broken RTC (real time clock) (/showthread.php?tid=7300)



How to deal with broken RTC (real time clock) - minesheep - 08-24-2020

My computer has time and date going ahead even days. This started when I upgraded to LL 5.0 but It is now happening even with LL4.6. I understand I cant have time without internet and without hardware RTC. Bios battery have already being changed with no help. Since computers with no hw rtcs exist (raspberry pi for example) I wonder if it's possible to override hw rtc when internet is available.
Code:
linux  ~  sudo hwclock --get
hwclock: ioctl(RTC_RD_TIME) to /dev/rtc0 to read the time failed: Invalid argument
linux  ~ 
When that happens I have to enter time manually with time and date (preinstalled software) in order to access some websites.
sudo hwclock --get usually works but when it fails my computer loses time.