unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Christopher Allan Webber <cwebber@dustycloud.org>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 22274@debbugs.gnu.org
Subject: bug#22274: GuixSD resets hardware clock (on Lenovo x200 with libreboot)
Date: Sun, 03 Jan 2016 21:39:35 -0600	[thread overview]
Message-ID: <87io3aypk7.fsf@dustycloud.org> (raw)
In-Reply-To: <87oad5jp4e.fsf@gnu.org>

Ludovic Courtès writes:

> Christopher Allan Webber <cwebber@dustycloud.org> skribis:
>
>> If I reboot into GuixSD, at some point in the boot process it resets my
>> hardware clock to 1970!  If I reboot into Debian again after that, it's
>> 1970 there also.
>
> Ouch!  Your config includes the ntp daemon.  Could it be that it’s
> misbehaving?
>
> You can remove it along the lines of:
>
>   (define %my-desktop-services
>     (remove (lambda (service)
>               (eq? (service-kind service) ntp-service-type))
>             %desktop-services))
>
> Well, you need to export ‘ntp-service-type’ from (gnu services
> networking) first…
>
> Other than that, I have no idea what could be resetting the hardware
> clock to 0.

So I did this, and it stopped resetting the hardware clock for Debian as
well when I rebooted into Guix.  It also makes me think that there's no
reason we should have ntp-service-type in %desktop-services, though
that's a separate issue.

So that's part 1 resolved, I think.  Part 2 is the problem that even
though Debian now keeps the right time while rebooting from Debian ->
GuixSD -> Debian, GuixSD still doesn't know what time it is... or that
is, doesn't know what time it is on the most recent system build!  It
turns out my 0.9.0 system build still works correctly.

Not only that, but I verified that my friend Aeva hits the *same*
"problem" and "solution"...!


*** Most recent Guix system (Linux-Libre 4.3.3) ***

bash-4.3$ date
Wed Dec 31 18:01:42 CST 1969
bash-4.3$ sudo hwclock -r
hwclock: ioctl(RTC_RD_TIME) to /dev/rtc to read the time failed: Invalid argument

(NOTE: aeva did not hit the hwclock -r ... but she also did not do
"hwclock -w" from Debian (she did it from GuixSD instead))


*** Initial Guix system (Linux-Libre 4.2.5) ***

bash-4.3$ date
Sat Jan  2 20:39:30 CST 2016
bash-4.3$ sudo hwclock -r
Sun 03 Jan 2016 02:39:48 AM America  .821300 seconds


In both Aeva and I's systems, the hardware clock could not be read (and
thus we got 1969) in the most recent system built and installed by
GuixSD, but in the original system install (from Guix 0.9.0), the clock
works just fine.

Thus my *guess* is that this is a regression in the kernel (either that
or we both "added" some mistake) between 4.2.5 and 4.3.3.

When I'm not on a train I can try building the "current" system with
Linux-Libre 4.2.5 and see if it's really the kernel.

Looks like we're on the right track to sorting this out....!
 - Chris

  reply	other threads:[~2016-01-04 14:16 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-30 15:24 bug#22274: GuixSD resets hardware clock (on Lenovo x200 with libreboot) Christopher Allan Webber
2015-12-31 20:27 ` Mark H Weaver
2016-01-04  3:37   ` Christopher Allan Webber
2016-01-01 15:28 ` Ludovic Courtès
2016-01-04  3:39   ` Christopher Allan Webber [this message]
2016-01-04 15:02     ` Ludovic Courtès
2016-01-05 15:40       ` Christopher Allan Webber
2016-01-14 18:55         ` Christopher Allan Webber
2016-01-15  9:35           ` Ludovic Courtès
2016-01-17 16:51             ` Christopher Allan Webber
2016-01-18 16:58               ` Christopher Allan Webber
2016-01-18 19:42                 ` Christopher Allan Webber
2016-01-18 22:42                   ` Ludovic Courtès
2016-01-18 23:11                     ` Christopher Allan Webber
2016-01-19 16:33                   ` Mark H Weaver
2016-01-19 17:07                     ` Ludovic Courtès
2016-01-19 17:11                       ` Mark H Weaver
2016-01-19 21:50                       ` Christopher Allan Webber
2016-02-02  8:17                         ` Mark H Weaver
2016-02-05 13:08                           ` Ludovic Courtès
2016-02-05 15:23                             ` Mark H Weaver
2016-01-12  7:19 ` bug#22274: epochfail Francis Rowe
2016-01-12 19:03   ` Leo Famulari
2016-01-18 17:02   ` Christopher Allan Webber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87io3aypk7.fsf@dustycloud.org \
    --to=cwebber@dustycloud.org \
    --cc=22274@debbugs.gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).