LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Time is changed when use kernel 3.5.0 (https://www.linuxquestions.org/questions/slackware-14/time-is-changed-when-use-kernel-3-5-0-a-4175418710/)

botzko 07-26-2012 01:03 AM

Time is changed when use kernel 3.5.0
 
I compiled kernel 3.5.0 and everything works fine but after every reboot I must correct the time. If I boot the default kernel 2.6.37.6 time is correct.
System clock is set to localtime and /etc/hardwareclock is set to localtime too, so the problem is in my new kernel. The new kernel "thinks" that system clock is set to UTC.

Can you tell me what is the problem?

jostber 07-26-2012 02:54 AM

Maybe you can diff the config files for the two kernels to check if a timer setting is different in the new kernel?

bathory 07-26-2012 03:44 AM

Hi,

Check if you have rtc-cmos compiled as a module or built-in:
Code:

CONFIG_RTC_DRV_CMOS=y
Regards

botzko 07-26-2012 04:55 AM

OK. CONFIG_RTC_DRV_CMOS is not compiled but if I compile it I need to choose a driver. I do not know which one. I will search in google but if you know what I must choose for Acer Aspire 5920G you can tell me.

botzko 07-26-2012 05:00 AM

Oh there is 'PC-Style CMOS' so I will compile with it and will see what will happen.

H_TeXMeX_H 07-26-2012 12:40 PM

make sure to also enable:

Code:

  ┌──────────── Set system time from RTC on startup and resume ─────────────┐
  │ CONFIG_RTC_HCTOSYS:                                                    │ 
  │                                                                        │ 
  │ If you say yes here, the system time (wall clock) will be set using    │ 
  │ the value read from a specified RTC device. This is useful to avoid    │ 
  │ unnecessary fsck runs at boot time, and to network better.              │ 
  │                                                                        │ 
  │ Symbol: RTC_HCTOSYS [=y]                                                │ 
  │ Type  : boolean                                                        │ 
  │ Prompt: Set system time from RTC on startup and resume                  │ 
  │  Defined at drivers/rtc/Kconfig:20                                    │ 
  │  Depends on: RTC_CLASS [=y]                                            │ 
  │  Location:                                                            │ 
  │    -> Device Drivers                                                  │ 
  │      -> Real Time Clock (RTC_CLASS [=y])                              │ 
  │                                                                        │ 
  ├─────────────────────────────────────────────────────────────────( 99%)──┤


botzko 07-27-2012 07:37 AM

After recompile there is no problem with the clock.

Thank you guys.


All times are GMT -5. The time now is 05:52 AM.