Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 156997 - clock gets crazy, deleting /etc/adjtime fixes it
Summary: clock gets crazy, deleting /etc/adjtime fixes it
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-03 08:35 UTC by Tiago Marques
Modified: 2006-12-04 08:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tiago Marques 2006-12-03 08:35:17 UTC
Hi.
I have had this problem in various systems, some wich started with gentoo 2005.0, others 2006.0
The problem is the clock is always wrong, till i set only to use --noadjtime in /etc/init.d/clock or i delete /etc/adjtime.
Then everything becomes normal.
It's kind of a pain in the ass bug, especially when it happens on other systems that not mine, mine i can fix.
Comment 1 SpanKY gentoo-dev 2006-12-03 12:20:27 UTC
afaict, this is by design

if something is putting crazy values into adjtime, then that thing is broken ... the fact that clock uses the values in there and your clock goes crazy is not a bug
Comment 2 Tiago Marques 2006-12-03 15:02:10 UTC
So... what could do that.
And why don't i need the file? in my system i edited the clock initscript so it doesn't use adjtime.
Comment 3 SpanKY gentoo-dev 2006-12-03 18:27:29 UTC
adjtime is used to handle clock sources that are not sane (which is not an uncommon event)

see the "The Adjust Function" in the hwclock manpage
Comment 4 Tiago Marques 2006-12-04 03:15:05 UTC
This seems to me something that shouldn't be done... Why? Maybe what's putting these values in adjtime is the KDE clock utility, as i usually have computers where i mess alot with the bios, i change the clock alot, but not in a normal way, i can adjust hours, days or even years. 
If that's the case, that's what has been giving me problems.
Maybe the adjtime function should be limited to some minutes of maximum deviation, i had problems with it changing my clock sometimes a few hours, sometimes days.
Best regards
Comment 5 SpanKY gentoo-dev 2006-12-04 08:27:37 UTC
there's no way to know what is a valid value in adjtime and what is not