public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] My machine wakes up from hibernation in GMT time !?!?
@ 2015-03-10  2:20 Walter Dnes
  2015-03-10  7:39 ` Fernando Rodriguez
  0 siblings, 1 reply; 5+ messages in thread
From: Walter Dnes @ 2015-03-10  2:20 UTC (permalink / raw
  To: Gentoo Users List

  I'm in Canada/Eastern timezone.  For some reason, my machine seems to
come up in GMT when waking up from hibernation.  This started happening
a week or two ago.  I do not think this is related to my conversion and
re-install from 32-bit to 64-bit.  I worked OK for a while.  Only
recently did it start waking up with the clock 5 hours ahead of Eastern
Standard (i.e. GMT).  Since the time change this past Sunday, it's been
waking up 4 hours ahead of Eastern Daylight.  It definitely looks like
it's coming up in GMT.  I reset it to Eastern time, but after
hibernation and wakeup, it comes up GMT.  I don't know why.  Any ideas?
Here are the contents of...

/etc/hibernate/hibernate.conf
/etc/timezone
/etc/conf.d/hwclock

...a sanity-check on /etc/local/timezone

...my script to manually sync my machine clock.

============================================================

[d531][waltdnes][~] grep -v ^# /etc/hibernate/hibernate.conf

TryMethod disk.conf
Distribution gentoo
EnsureLILOResumes yes
LogVerbosity 3
LogFile /var/log/hibernate.log
PowerdownMethod shutdown
RestartServices sshd
OnResume 00 /bin/cat /home/waltdnes/.appointments

==================================================

[d531][waltdnes][~] cat /etc/timezone 
Canada/Eastern

==================================================

[d531][waltdnes][~] grep -v ^# /etc/conf.d/hwclock 
clock="local"

clock_hctosys="YES"

clock_systohc="YES"

clock_args=""

==================================================

[d531][waltdnes][~] diff -s /etc/localtime /usr/share/zoneinfo/Canada/Eastern 
Files /etc/localtime and /usr/share/zoneinfo/Canada/Eastern are identical

==================================================

[d531][waltdnes][~] cat bin/settime 
#!/bin/bash
date
/usr/bin/sudo /usr/bin/openrdate -n -s ca.pool.ntp.org
/usr/bin/sudo /sbin/hwclock --systohc
date

-- 
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] My machine wakes up from hibernation in GMT time !?!?
  2015-03-10  2:20 [gentoo-user] My machine wakes up from hibernation in GMT time !?!? Walter Dnes
@ 2015-03-10  7:39 ` Fernando Rodriguez
  2015-03-10 17:05   ` Walter Dnes
  0 siblings, 1 reply; 5+ messages in thread
From: Fernando Rodriguez @ 2015-03-10  7:39 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 2201 bytes --]

On Monday, March 09, 2015 10:20:39 PM Walter Dnes wrote:
>   I'm in Canada/Eastern timezone.  For some reason, my machine seems to
> come up in GMT when waking up from hibernation.  This started happening
> a week or two ago.  I do not think this is related to my conversion and
> re-install from 32-bit to 64-bit.  I worked OK for a while.  Only
> recently did it start waking up with the clock 5 hours ahead of Eastern
> Standard (i.e. GMT).  Since the time change this past Sunday, it's been
> waking up 4 hours ahead of Eastern Daylight.  It definitely looks like
> it's coming up in GMT.  I reset it to Eastern time, but after
> hibernation and wakeup, it comes up GMT.  I don't know why.  Any ideas?
> Here are the contents of...
> 
> /etc/hibernate/hibernate.conf
> /etc/timezone
> /etc/conf.d/hwclock
> 
> ...a sanity-check on /etc/local/timezone
> 
> ...my script to manually sync my machine clock.
> 
> ============================================================
> 
> [d531][waltdnes][~] grep -v ^# /etc/hibernate/hibernate.conf
> 
> TryMethod disk.conf
> Distribution gentoo
> EnsureLILOResumes yes
> LogVerbosity 3
> LogFile /var/log/hibernate.log
> PowerdownMethod shutdown
> RestartServices sshd
> OnResume 00 /bin/cat /home/waltdnes/.appointments
> 
> ==================================================
> 
> [d531][waltdnes][~] cat /etc/timezone 
> Canada/Eastern
> 
> ==================================================
> 
> [d531][waltdnes][~] grep -v ^# /etc/conf.d/hwclock 
> clock="local"
> 
> clock_hctosys="YES"
> 
> clock_systohc="YES"
> 
> clock_args=""
> 
> ==================================================
> 
> [d531][waltdnes][~] diff -s /etc/localtime /usr/share/zoneinfo/Canada/Eastern 
> Files /etc/localtime and /usr/share/zoneinfo/Canada/Eastern are identical
> 
> ==================================================
> 
> [d531][waltdnes][~] cat bin/settime 
> #!/bin/bash
> date
> /usr/bin/sudo /usr/bin/openrdate -n -s ca.pool.ntp.org
> /usr/bin/sudo /sbin/hwclock --systohc
> date
> 
> 

Are you using OpenRC?
If so, do you have the hwclock init script set to run at boot?

-- 
Fernando Rodriguez

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] My machine wakes up from hibernation in GMT time !?!?
  2015-03-10  7:39 ` Fernando Rodriguez
@ 2015-03-10 17:05   ` Walter Dnes
  2015-03-10 18:54     ` Fernando Rodriguez
  0 siblings, 1 reply; 5+ messages in thread
From: Walter Dnes @ 2015-03-10 17:05 UTC (permalink / raw
  To: gentoo-user

On Tue, Mar 10, 2015 at 03:39:05AM -0400, Fernando Rodriguez wrote
> 
> Are you using OpenRC?
> If so, do you have the hwclock init script set to run at boot?

  Yes and yes.  "/sbin/rc-update show boot" shows it.  "rc-status boot"
also shows it.

  A tangentaial question.  "rc-status" shows service "netmount" stopped.
Is it really needed?  I'm not doing NFS or netboot.

-- 
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] My machine wakes up from hibernation in GMT time !?!?
  2015-03-10 17:05   ` Walter Dnes
@ 2015-03-10 18:54     ` Fernando Rodriguez
  2015-03-10 22:42       ` Walter Dnes
  0 siblings, 1 reply; 5+ messages in thread
From: Fernando Rodriguez @ 2015-03-10 18:54 UTC (permalink / raw
  To: gentoo-users; +Cc: Walter Dnes, gentoo-user

[-- Attachment #1: Type: text/plain, Size: 813 bytes --]

On Tuesday, March 10, 2015 1:05:58 PM Walter Dnes wrote:
> On Tue, Mar 10, 2015 at 03:39:05AM -0400, Fernando Rodriguez wrote
> > 
> > Are you using OpenRC?
> > If so, do you have the hwclock init script set to run at boot?
> 
>   Yes and yes.  "/sbin/rc-update show boot" shows it.  "rc-status boot"
> also shows it.

Do you have CONFIG_RTC_HCTOSYS set on your kernel?
If so it's because you're using localtime and the kernel sets it to UTC.
Either disable that option or if you need localtime for windows you can also
set windows to use UTC. 
https://wiki.archlinux.org/index.php/Time#UTC_in_Windows


>   A tangentaial question.  "rc-status" shows service "netmount" stopped.
> Is it really needed?  I'm not doing NFS or netboot.

I don't think so. I dont have it.

-- 
Fernando Rodriguez

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] My machine wakes up from hibernation in GMT time !?!?
  2015-03-10 18:54     ` Fernando Rodriguez
@ 2015-03-10 22:42       ` Walter Dnes
  0 siblings, 0 replies; 5+ messages in thread
From: Walter Dnes @ 2015-03-10 22:42 UTC (permalink / raw
  To: gentoo-user

On Tue, Mar 10, 2015 at 02:54:04PM -0400, Fernando Rodriguez wrote
> On Tuesday, March 10, 2015 1:05:58 PM Walter Dnes wrote:
> > On Tue, Mar 10, 2015 at 03:39:05AM -0400, Fernando Rodriguez wrote
> > > 
> > > Are you using OpenRC?
> > > If so, do you have the hwclock init script set to run at boot?
> > 
> >   Yes and yes.  "/sbin/rc-update show boot" shows it.  "rc-status boot"
> > also shows it.
> 
> Do you have CONFIG_RTC_HCTOSYS set on your kernel?  If so it's because
> you're using localtime and the kernel sets it to UTC.  Either disable
> that option or if you need localtime for windows you can also set
> windows to use UTC.
> https://wiki.archlinux.org/index.php/Time#UTC_in_Windows

  No Windows on this machine.  I do keep 2 kernels, and select via lilo.
This is an insurance policy in case a kernel update goes didastrously
wrong; i.e. it's unbootable.  I just did an update, which pulled in a
new kernel.  I updated to it, and it now comes up OK, both from "reboot"
and from hibernate-to-disk followed by restore-from-disk.  I don't
understand...

1) why it stopped working properly for a while
2) why it's working properly now

  Here's what I have in my .config in both the current linux-3.18.7-gentoo
and the previous linux-3.17.8-gentoo-r1

CONFIG_RTC_LIB=y
CONFIG_RTC_CLASS=y
# CONFIG_RTC_HCTOSYS is not set
CONFIG_RTC_SYSTOHC=y
CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
# CONFIG_RTC_DEBUG is not set

-- 
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-03-10 22:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-10  2:20 [gentoo-user] My machine wakes up from hibernation in GMT time !?!? Walter Dnes
2015-03-10  7:39 ` Fernando Rodriguez
2015-03-10 17:05   ` Walter Dnes
2015-03-10 18:54     ` Fernando Rodriguez
2015-03-10 22:42       ` Walter Dnes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox