Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Rep:
Clock jumps hours ahead after boot.
When I shut down the machine everything is as it should be. Time set from the net, hwclock synced.
When I boot again, time is set several hours into the future. This is an additive process, when I don't set the correct time it drifts with every boot even days into the future (until boot is denied, because files are too far in the future).
I tried to get rid of that behaviour by doing
Code:
sntp -P no -r pool.ntp.org
hwclock --systohc
I renamed /etc/adjtime which looked like this:
Quote:
22292.201093 1289670517 0.000000
1289670480
UTC
Now it looks as follows:
Quote:
0.000000 1289733620 0.000000
1289733620
UTC
To no avail. What could cause that and how can I correct it?
I don't think the atomic clocks are wrong, so that leaves the local clock on your system. When was the last time you changed the cmos battery on the system board? That clock may be drifting if the battery is at or near end of life.
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Original Poster
Rep:
Thanks for your answers.
@camorri: The system is brand new (one month). And it is not drift, since the time is kept accurately during sessions. And it was more or less stable the first few weeks. I'd guess it is a software-thingy.
@aus9: It is OpenSuSE 11.3_64 with no windows(c) (R) at all (there is a FreeBSD installation on a hard disk I salvaged from my old machine, but I can't boot it here).
I suspect the time gets *beep* during shutdown, since the hardware clock is haywire right after a "shutdown -r now". It is also not always (but sometimes) a multiple hours offset (like from the wrong timezone) but an arbitrary interval including an odd number of minutes (and probably seconds, didn't check that).
I use the timezone of "Berlin, Europe" as set up during install and confirmed by KDE right now. (Time is aligned with UTC, see first post). I don't quite get what you are saying with "its the reverse of what you think Germany is +" -- its not politics, I'd guess .
As to your links -- umm, they pertain to puppy-specific things, but I use SuSE. And I used the hwclock-commands as shown in my first post in analogy to the second link...
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Original Poster
Rep:
Quote:
No problem if you don't dual boot or you live in a UTC time zone without daylight saving.
And I don't do dual boot. IT is CET time now not anymore CEST.
If you scroll back to my first post (or should I write "complaint"? ) you'll notice, that I factored those different time keepings in by first getting the accurate time from the net and then sync'ing it with the hardware clock. And I disabled "ntp" during that, too.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.