Gentoo Archives: gentoo-user

From: wireless@×××××××××××.com
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] System date/time goes to GMT when PC wakes from hibernate
Date: Tue, 07 Apr 2015 00:59:05
Message-Id: 55233A04.4050702@tampabay.rr.com
1 On 04/06/2015 04:10 PM, Walter Dnes wrote:
2 > I have a bunch of spreadsheets, browser tabs, etc, open all the time,
3 > scattered over various work areas. Rather than re-open them every day,
4 > I simply hibernate, using suspend-to-disk. This way, things are where I
5 > left them.
6 >
7 > The past couple of months, when the machine comes up from hibernation,
8 > the clock is a few hours ahead. Now it's 4 hours ahead. It was 5 hours
9 > ahead before the switch to daylight savings time. This looks
10 > suspiciously like GMT. GMT is 5 hours ahead of EST, and 4 hours ahead
11 > of EDT.
12 >
13 > I dug deeper. Apparently, it's just the "kernel system time" that
14 > gets bumped forward when it wakes up from hibernation. The BIOS clock
15 > is OK. As a heavy-handed hack, I've inserted the line...
16 >
17 > OnResume 01 hwclock --hctosys
18 >
19 > ...into my /etc/hibernate/hibernate.conf. This copies over the BIOS
20 > time to the kernel system date. It works, but I'd really like to know
21 > why it's necessary in the first place.
22 >
23
24
25 # hwclock --help
26
27 Gives many options to test.
28
29 https://wiki.gentoo.org/wiki/System_time
30
31 is the formal gentoo wiki pagy on system time.
32
33
34 hth,
35 James