Re: [gentoo-user] Wrong time on reboot. Not a CMOS battery problem.

2006-01-29 Thread Benno Schulenberg
Abhay Kedia wrote: Also, should I enable RTC in my kernel? As seen from the debug output, hwclock works fine without it. But maybe some other programs have some use for it, I don't know, here it is off. I am also using HPET in my kernel. Can I use both these features? Do they clash with

Re: [gentoo-user] Wrong time on reboot. Not a CMOS battery problem.

2006-01-28 Thread Uwe Thiem
On 28 January 2006 06:14, Abhay Kedia wrote: Is TZ set in your environment? If so, unset it and let /etc/localtime do the job. How can I know what is the TZ in my environment? Just curious. env | grep TZ Uwe -- Unix is sexy: who | grep -i blonde | date cd ~; unzip; touch; strip; finger

Re: [gentoo-user] Wrong time on reboot. Not a CMOS battery problem.

2006-01-28 Thread Benno Schulenberg
Abhay Kedia wrote: On Saturday 28 January 2006 02:55, Benno Schulenberg wrote: the /etc/adjtime file. Throw it away, as it might be the adjusting feature that thinks your clock is drifting a full hour per hour (that is: ticks away two hours in one). That was it!!! That was the file

Re: [gentoo-user] Wrong time on reboot. Not a CMOS battery problem.

2006-01-28 Thread Abhay Kedia
On Saturday 28 January 2006 20:38, Benno Schulenberg wrote: See man hwclock, the section on The Adjust Function. Thanks for the explanation and the tip. It certainly makes sense now :-) Also, should I enable RTC in my kernel? I disabled it recently when I was trying to get to the root of this

[gentoo-user] Wrong time on reboot. Not a CMOS battery problem.

2006-01-27 Thread Abhay Kedia
Hello Everyone, I am facing a very annoying problem with my system clock. Here is what is happening. I manually set correct time using sites like worldtimezone.com. Then, I shutdown the system and boot after a few hours. What I see is that Gentoo sets the system time to the same one at which

Re: [gentoo-user] Wrong time on reboot. Not a CMOS battery problem.

2006-01-27 Thread Michael A. Smith
Abhay Kedia wrote: I manually set correct time using sites like worldtimezone.com. Then, I shutdown the system and boot after a few hours. What I see is that Gentoo sets the system time to the same one at which I halted it. For example if I shutdown 4 hours ago at 14:00 hrs and boot at 18:00

Re: [gentoo-user] Wrong time on reboot. Not a CMOS battery problem.

2006-01-27 Thread Abhay Kedia
On Friday 27 January 2006 21:40, Michael A. Smith wrote: That deserves looking into: I'd start with the kernel config. Maybe something about /dev/rtc? Here are the outputs --- genbox abhay # ls -l /dev/rtc ls: /dev/rtc: No such file or directory genbox

Re: [gentoo-user] Wrong time on reboot. Not a CMOS battery problem.

2006-01-27 Thread Uwe Thiem
On 27 January 2006 17:28, Abhay Kedia wrote: Hello Everyone, I am facing a very annoying problem with my system clock. Here is what is happening. I manually set correct time using sites like worldtimezone.com. Then, I shutdown the system and boot after a few hours. What I see is that Gentoo

Re: [gentoo-user] Wrong time on reboot. Not a CMOS battery problem.

2006-01-27 Thread Uwe Thiem
On 27 January 2006 18:10, Michael A. Smith wrote: Abhay Kedia wrote: I manually set correct time using sites like worldtimezone.com. Then, I shutdown the system and boot after a few hours. What I see is that Gentoo sets the system time to the same one at which I halted it. For example if

Re: [gentoo-user] Wrong time on reboot. Not a CMOS battery problem.

2006-01-27 Thread Michael A. Smith
Uwe Thiem wrote: The device hwclock connects to *is* the BIOS clock. Uwe Let me rephrase. A physical device has to have a software representation for software to connect to it. I'm trying to suggest that something is wrong with that interface. Clearly Abhay's BIOS clock doesn't jive with

Re: [gentoo-user] Wrong time on reboot. Not a CMOS battery problem.

2006-01-27 Thread Benno Schulenberg
Abhay Kedia wrote: I manually set correct time using sites like worldtimezone.com. How? What commands do you give? Then, I shutdown the system and boot after a few hours. What I see is that Gentoo sets the system time to the same one at which I halted it. For example if I shutdown 4 hours

Re: [gentoo-user] Wrong time on reboot. Not a CMOS battery problem.

2006-01-27 Thread Abhay Kedia
On Saturday 28 January 2006 02:55, Benno Schulenberg wrote: If it is ticking , then set the hardware clock to the correct time with 'hwclock --set --date=thistime', then throw away the /etc/adjtime file. Throw it away, as it might be the adjusting feature that thinks your clock is drifting a

Re: [gentoo-user] Wrong time on reboot. Not a CMOS battery problem.

2006-01-27 Thread Abhay Kedia
On Friday 27 January 2006 21:40, Michael A. Smith wrote: But the quick fix is probably rc-update del clock. I don't know if that's a Bad Thing To Do (TM), but nobody screamed when I asked about it in #gentoo. Though the problem is solved now but it is still worth mentioning that removing

Re: [gentoo-user] Wrong time on reboot. Not a CMOS battery problem.

2006-01-27 Thread Abhay Kedia
with 'hwclock --set --date=thistime', then throw away the /etc/adjtime file. Throw it away, as it might be the adjusting feature that thinks your clock is drifting a full hour per hour (that is: ticks away two hours in one). Stupid me!!! Totally forgot to do the most important thing i.e. to