Gentoo Archives: gentoo-user

From: Walter Dnes <waltdnes@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] My machine wakes up from hibernation in GMT time !?!?
Date: Tue, 10 Mar 2015 22:42:47
Message-Id: 20150310224228.GA3322@waltdnes.org
In Reply to: Re: [gentoo-user] My machine wakes up from hibernation in GMT time !?!? by Fernando Rodriguez
1 On Tue, Mar 10, 2015 at 02:54:04PM -0400, Fernando Rodriguez wrote
2 > On Tuesday, March 10, 2015 1:05:58 PM Walter Dnes wrote:
3 > > On Tue, Mar 10, 2015 at 03:39:05AM -0400, Fernando Rodriguez wrote
4 > > >
5 > > > Are you using OpenRC?
6 > > > If so, do you have the hwclock init script set to run at boot?
7 > >
8 > > Yes and yes. "/sbin/rc-update show boot" shows it. "rc-status boot"
9 > > also shows it.
10 >
11 > Do you have CONFIG_RTC_HCTOSYS set on your kernel? If so it's because
12 > you're using localtime and the kernel sets it to UTC. Either disable
13 > that option or if you need localtime for windows you can also set
14 > windows to use UTC.
15 > https://wiki.archlinux.org/index.php/Time#UTC_in_Windows
16
17 No Windows on this machine. I do keep 2 kernels, and select via lilo.
18 This is an insurance policy in case a kernel update goes didastrously
19 wrong; i.e. it's unbootable. I just did an update, which pulled in a
20 new kernel. I updated to it, and it now comes up OK, both from "reboot"
21 and from hibernate-to-disk followed by restore-from-disk. I don't
22 understand...
23
24 1) why it stopped working properly for a while
25 2) why it's working properly now
26
27 Here's what I have in my .config in both the current linux-3.18.7-gentoo
28 and the previous linux-3.17.8-gentoo-r1
29
30 CONFIG_RTC_LIB=y
31 CONFIG_RTC_CLASS=y
32 # CONFIG_RTC_HCTOSYS is not set
33 CONFIG_RTC_SYSTOHC=y
34 CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
35 # CONFIG_RTC_DEBUG is not set
36
37 --
38 Walter Dnes <waltdnes@××××××××.org>
39 I don't run "desktop environments"; I run useful applications