GNU bug report logs - #25031
Recovery from sleep/hibernate is broken

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Nikolay Merinov <nikolay.merinov@HIDDEN>; Keywords: moreinfo; dated Fri, 25 Nov 2016 23:56:01 UTC; Maintainer for guix is bug-guix@HIDDEN.
Added tag(s) moreinfo. Request was from ludo@HIDDEN (Ludovic Courtès) to control <at> debbugs.gnu.org. Full text available.

Message received at 25031 <at> debbugs.gnu.org:


Received: (at 25031) by debbugs.gnu.org; 10 Jan 2017 15:06:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 10 10:06:47 2017
Received: from localhost ([127.0.0.1]:49040 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cQy0c-0003un-Sp
	for submit <at> debbugs.gnu.org; Tue, 10 Jan 2017 10:06:47 -0500
Received: from eggs.gnu.org ([208.118.235.92]:43790)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1cQy0a-0003ua-Nu
 for 25031 <at> debbugs.gnu.org; Tue, 10 Jan 2017 10:06:45 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ludo@HIDDEN>) id 1cQy0S-0005Sn-El
 for 25031 <at> debbugs.gnu.org; Tue, 10 Jan 2017 10:06:39 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60457)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1cQy0S-0005Sj-Bc; Tue, 10 Jan 2017 10:06:36 -0500
Received: from [193.50.110.111] (port=49006 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1cQy0R-0005l2-Pq; Tue, 10 Jan 2017 10:06:36 -0500
From: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
To: Nikolay Merinov <nikolay.merinov@HIDDEN>
Subject: Re: bug#25031: Recovery from sleep/hibernate is broken
References: <87twavjes8.fsf@HIDDEN> <87twaulydk.fsf@HIDDEN>
 <87ziklrfkk.fsf@HIDDEN>
Date: Tue, 10 Jan 2017 16:06:33 +0100
In-Reply-To: <87ziklrfkk.fsf@HIDDEN> (Nikolay Merinov's message of
 "Sun, 27 Nov 2016 04:23:23 +0500")
Message-ID: <871swbvts6.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -8.2 (--------)
X-Debbugs-Envelope-To: 25031
Cc: 25031 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -8.2 (--------)

Hi Nikolay,

Apologies for the delay.

Nikolay Merinov <nikolay.merinov@HIDDEN> skribis:

> Thank you for answer about hibernation. Can you help me with similar
> issue with sleeping?

I=E2=80=99ve never had this problem with my laptops (an old Dell and a new =
HP
Elitebook): elogind suspends the system to RAM when I close the lid
(equivalent to =E2=80=9Cecho mem > =E2=80=A6=E2=80=9D), and the system resu=
mes correctly when I
reopen it.

Did you have similar problems with other distros or kernel versions?
Guix has Linux-libre 4.9 and 4.4.  Could you check if both behave
similarly?

HTH,
Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#25031; Package guix. Full text available.

Message received at 25031 <at> debbugs.gnu.org:


Received: (at 25031) by debbugs.gnu.org; 26 Nov 2016 23:23:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 26 18:23:34 2016
Received: from localhost ([127.0.0.1]:42709 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cAmJi-0006CC-5a
	for submit <at> debbugs.gnu.org; Sat, 26 Nov 2016 18:23:34 -0500
Received: from mail-lf0-f68.google.com ([209.85.215.68]:34311)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <nikolay.d.merinov@HIDDEN>) id 1cAmJg-0006Bw-2y
 for 25031 <at> debbugs.gnu.org; Sat, 26 Nov 2016 18:23:32 -0500
Received: by mail-lf0-f68.google.com with SMTP id o141so6192340lff.1
 for <25031 <at> debbugs.gnu.org>; Sat, 26 Nov 2016 15:23:32 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=sender:from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=OiEUitT0MwCSqp7DaopMoTBFAjv2dTM0EAcGZKW3k3c=;
 b=WDmqFP1miLwh39a1EDGppvxX5on5Vz271g1OE75jlhOZ3Tqdn/PvN4YRzrc7BKmwEU
 TDZBQ/QLv+6xkaO0Z8DVN+UKHbpkFZnpK/g0kFg8M7oONgdeYJl3uCqGzAyir8fdSITs
 vW8+ZTsnxQExhkh7N913uJwrg0k+msrFlrzEOynmdjhqFsFFy6Q/zyDIFNUE+rUYlb2N
 S0dRUT8OQEYIDxJIRxdDJOX57IuKrYhFi9v4uscVVWXPJHxm14X8Jw/uHSlO7MnH+P9x
 Culwb2p2+P9f2/t3fL4gvReheTggwOMFUFhvW/zhD80mtqFFfQx2hfGlpdGWwsQAzCVi
 36Ng==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:sender:from:to:cc:subject:references:date
 :in-reply-to:message-id:user-agent:mime-version;
 bh=OiEUitT0MwCSqp7DaopMoTBFAjv2dTM0EAcGZKW3k3c=;
 b=kkRoKKW5ovS7jw9ObkNEXNgZyoXbW5GSeXpNxRVwOd7LzMYiWfnyGK24hNI8jbZM0i
 LxaJft2QOvzUbTRPEf4RKbn6EF+eOGOFciXw2UuiHnt6+YmPS1Su14LXgQ42CPtyLYUi
 qNUeYH/C7sIPqKlN3nlrmGIZSOVN+bQh6TM27ZzGqAnJNWfYb+/g8Ev2RZceS29PcqY8
 1JvawGng6/d3RgFvwp8jftZifZuzQUylWERjcOc4lF9vuAn2PsFMUjpBabw0XNDo9LkA
 Vh3PKog6qe2z6lzRJZQEMmW81B18BXEM4gBbK0ELxEQtdtW12OUVmYmOsOctDIQvErXC
 BtyA==
X-Gm-Message-State: AKaTC02kXMKH8tyjhpC0t2Q5MLKBkXSPidiQ6F6mbndzUWZlcKcAh+hhA0qFU9Zx3gk8zw==
X-Received: by 10.25.40.211 with SMTP id o202mr5832683lfo.183.1480202606188;
 Sat, 26 Nov 2016 15:23:26 -0800 (PST)
Received: from libremnd (97.9-157-90.telenet.ru. [90.157.9.97])
 by smtp.gmail.com with ESMTPSA id e94sm10799540lji.40.2016.11.26.15.23.25
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Sat, 26 Nov 2016 15:23:25 -0800 (PST)
From: Nikolay Merinov <nikolay.merinov@HIDDEN>
To: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
Subject: Re: bug#25031: Recovery from sleep/hibernate is broken
References: <87twavjes8.fsf@HIDDEN> <87twaulydk.fsf@HIDDEN>
Date: Sun, 27 Nov 2016 04:23:23 +0500
In-Reply-To: <87twaulydk.fsf@HIDDEN> ("Ludovic
 \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\=
 \=\?utf-8\?Q\?s\?\= message of "Sat, 26 Nov 2016 22:33:43 +0100")
Message-ID: <87ziklrfkk.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 25031
Cc: 25031 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.5 (/)

--=-=-=
Content-Type: text/plain

Hi,

Thank you for answer about hibernation. Can you help me with similar
issue with sleeping?

I can freeze system and wake it up with "echo freeze > /sys/power/state"
command, but system can't wake up from suspend to mem (that can be
started with closing display, pressing sleep button or with "echo mem >
/sys/power/state" command).

Log after freeze command attached. As far as I can see wakeup must be
possible with "sleep" button:

    $ cat /proc/acpi/wakeup 
    Device  S-state   Status   Sysfs node
    HDEF      S4    *disabled  pci:0000:00:1b.0
    USB1      S4    *enabled   pci:0000:00:1d.0
    USB2      S4    *enabled   pci:0000:00:1d.1
    USB3      S4    *enabled   pci:0000:00:1d.2
    EHC1      S4    *enabled   pci:0000:00:1d.7
    USB4      S4    *enabled   pci:0000:00:1a.0
    USB5      S4    *enabled   pci:0000:00:1a.1
    USB6      S4    *enabled   pci:0000:00:1a.2
    EHC2      S4    *enabled   pci:0000:00:1a.7
    SLT1      S4    *disabled
    SLT2      S4    *disabled
    SLT3      S4    *disabled
    SLT6      S4    *disabled
    LANC      S3    *disabled
    LANR      S3    *disabled
    SLPB      S3    *enabled   platform:PNP0C0E:00
    LID       S3    *enabled   platform:PNP0C0D:00

When I power off notebook and restart it after sleep there is nothing
about sleep in logs.

Regards,
Nikolay

--=-=-=
Content-Type: text/plain
Content-Disposition: attachment; filename=freeze.txt

Nov 27 03:55:31 localhost vmunix: [  522.009436] PM: Syncing filesystems ... done.
Nov 27 03:55:31 localhost vmunix: [  522.188954] Freezing user space processes ... (elapsed 0.001 seconds) done.
Nov 27 03:55:31 localhost vmunix: [  522.190236] Double checking all user space processes after OOM killer disable... (elapsed 0.000 seconds) 
Nov 27 03:55:31 localhost vmunix: [  522.190265] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Nov 27 03:55:31 localhost vmunix: [  522.191469] Suspending console(s) (use no_console_suspend to debug)
Nov 27 03:55:31 localhost vmunix: [  522.204461] queueing ieee80211 work while going to suspend
Nov 27 03:55:31 localhost vmunix: [  522.208349] sd 0:0:0:0: [sda] Synchronizing SCSI cache
Nov 27 03:55:31 localhost vmunix: [  522.208849] e1000e: EEE TX LPI TIMER: 00000000
Nov 27 03:55:31 localhost vmunix: [  522.264262] sd 0:0:0:0: [sda] Stopping disk
Nov 27 03:55:32 localhost vmunix: [  522.707325] PM: suspend of devices complete after 515.559 msecs
Nov 27 03:55:32 localhost vmunix: [  522.724166] PM: late suspend of devices complete after 16.836 msecs
Nov 27 03:55:32 localhost vmunix: [  522.725536] ehci-pci 0000:00:1d.7: System wakeup enabled by ACPI
Nov 27 03:55:32 localhost vmunix: [  522.725620] uhci_hcd 0000:00:1d.2: System wakeup enabled by ACPI
Nov 27 03:55:32 localhost vmunix: [  522.725636] uhci_hcd 0000:00:1d.1: System wakeup enabled by ACPI
Nov 27 03:55:32 localhost vmunix: [  522.725678] uhci_hcd 0000:00:1d.0: System wakeup enabled by ACPI
Nov 27 03:55:32 localhost vmunix: [  522.725743] ehci-pci 0000:00:1a.7: System wakeup enabled by ACPI
Nov 27 03:55:32 localhost vmunix: [  522.725785] uhci_hcd 0000:00:1a.2: System wakeup enabled by ACPI
Nov 27 03:55:32 localhost vmunix: [  522.725836] uhci_hcd 0000:00:1a.1: System wakeup enabled by ACPI
Nov 27 03:55:32 localhost vmunix: [  522.725887] uhci_hcd 0000:00:1a.0: System wakeup enabled by ACPI
Nov 27 03:55:32 localhost vmunix: [  522.764036] PM: noirq suspend of devices complete after 38.890 msecs
Nov 27 03:55:32 localhost vmunix: [  522.764259] uhci_hcd 0000:00:1a.0: System wakeup disabled by ACPI
Nov 27 03:55:32 localhost vmunix: [  522.764280] uhci_hcd 0000:00:1a.1: System wakeup disabled by ACPI
Nov 27 03:55:32 localhost vmunix: [  522.764311] uhci_hcd 0000:00:1a.2: System wakeup disabled by ACPI
Nov 27 03:55:32 localhost vmunix: [  522.764399] uhci_hcd 0000:00:1d.0: System wakeup disabled by ACPI
Nov 27 03:55:32 localhost vmunix: [  522.764417] uhci_hcd 0000:00:1d.1: System wakeup disabled by ACPI
Nov 27 03:55:31 localhost wpa_passphrase: Libgcrypt warning: missing initialization - please fix the application
Nov 27 03:55:32 localhost vmunix: [  522.764462] uhci_hcd 0000:00:1d.2: System wakeup disabled by ACPI
Nov 27 03:55:32 localhost vmunix: [  522.784095] ehci-pci 0000:00:1a.7: System wakeup disabled by ACPI
Nov 27 03:55:32 localhost vmunix: [  522.784213] ehci-pci 0000:00:1d.7: System wakeup disabled by ACPI
Nov 27 03:55:32 localhost vmunix: [  522.804146] PM: noirq resume of devices complete after 40.020 msecs
Nov 27 03:55:32 localhost vmunix: [  522.948325] PM: early resume of devices complete after 0.192 msecs
Nov 27 03:55:32 localhost vmunix: [  522.951736] usb usb3: root hub lost power or was reset
Nov 27 03:55:33 localhost vmunix: [  522.951781] usb usb4: root hub lost power or was reset
Nov 27 03:55:33 localhost vmunix: [  522.951829] usb usb5: root hub lost power or was reset
Nov 27 03:55:33 localhost vmunix: [  522.951978] usb usb6: root hub lost power or was reset
Nov 27 03:55:33 localhost vmunix: [  522.952022] usb usb7: root hub lost power or was reset
Nov 27 03:55:33 localhost vmunix: [  522.952074] usb usb8: root hub lost power or was reset
Nov 27 03:55:33 localhost vmunix: [  522.952302] rtc_cmos 00:03: System wakeup disabled by ACPI
Nov 27 03:55:33 localhost vmunix: [  522.953755] sd 0:0:0:0: [sda] Starting disk
Nov 27 03:55:33 localhost vmunix: [  523.266287] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
Nov 27 03:55:33 localhost vmunix: [  523.266309] ata2: SATA link down (SStatus 0 SControl 300)
Nov 27 03:55:31 localhost wpa_supplicant: Libgcrypt warning: missing initialization - please fix the application
Nov 27 03:55:33 localhost vmunix: [  523.268604] ata1.00: configured for UDMA/100
Nov 27 03:55:33 localhost vmunix: [  526.350902] PM: resume of devices complete after 3402.574 msecs
Nov 27 03:55:33 localhost vmunix: [  526.354584] Restarting tasks ... done.
Nov 27 03:55:33 localhost vmunix: [  526.373722] video LNXVIDEO:00: Restoring backlight state
Nov 27 03:55:33 localhost vmunix: [  526.568433] wlp2s0: authenticate with 30:b5:c2:3b:1d:0e
Nov 27 03:55:33 localhost vmunix: [  526.581545] wlp2s0: send auth to 30:b5:c2:3b:1d:0e (try 1/3)
Nov 27 03:55:33 localhost vmunix: [  526.583736] wlp2s0: authenticated
Nov 27 03:55:33 localhost vmunix: [  526.588037] wlp2s0: associate with 30:b5:c2:3b:1d:0e (try 1/3)
Nov 27 03:55:33 localhost vmunix: [  526.596109] wlp2s0: RX AssocResp from 30:b5:c2:3b:1d:0e (capab=0x431 status=0 aid=2)
Nov 27 03:55:33 localhost vmunix: [  526.596243] wlp2s0: associated
Nov 27 03:55:33 localhost vmunix: [  526.596270] IPv6: ADDRCONF(NETDEV_CHANGE): wlp2s0: link becomes ready
Nov 27 03:55:32 localhost dhclient: Internet Systems Consortium DHCP Client 4.3.5
Nov 27 03:55:33 localhost vmunix: [  527.750063] psmouse serio1: trackpoint: IBM TrackPoint firmware: 0x0e, buttons: 3/3
Nov 27 03:55:33 localhost vmunix: [  527.769206] input: TPPS/2 IBM TrackPoint as /devices/platform/i8042/serio1/input/input24

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable


ludo@HIDDEN (Ludovic Court=C3=A8s) writes:

> Hello,
>
> Nikolay Merinov <nikolay.merinov@HIDDEN> skribis:
>
>> I use GuixSD on libreboot x200. Issue was checked with linux-libre kerne=
ls 4.1,
>> 4.8, 4.10; with libreboot 2015-01-26, 2015-05-18, 2016-09-07; with and
>> without "resume=3D/dev/sda2" option (my swap partition on /dev/sda2).
>>
>> I can't resume neither from suspend to ram nor from suspend to disk.
>>
>> I start hibernation with "echo disk > /sys/power/state" command. On
>> next boot image does not restored. I can see that image was saved:
>>
>>     # swapon /dev/sda2
>>     swapon: /dev/sda2: software suspend data detected. Rewriting the swa=
p signature.
>
> Hibernation is not supported yet in GuixSD, unless you applied this
> patch:
>
>   https://lists.gnu.org/archive/html/guix-devel/2016-08/msg00962.html
>
> If you want to try it out, feedback is welcome!  Note that Mark did
> mention that it=E2=80=99s risky, but that it worked in their tests.
>
> Thanks,
> Ludo=E2=80=99.

--=-=-=--




Information forwarded to bug-guix@HIDDEN:
bug#25031; Package guix. Full text available.

Message received at 25031 <at> debbugs.gnu.org:


Received: (at 25031) by debbugs.gnu.org; 26 Nov 2016 21:33:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 26 16:33:55 2016
Received: from localhost ([127.0.0.1]:42692 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cAkbb-0003nC-AK
	for submit <at> debbugs.gnu.org; Sat, 26 Nov 2016 16:33:55 -0500
Received: from eggs.gnu.org ([208.118.235.92]:44763)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1cAkbZ-0003mz-Rx
 for 25031 <at> debbugs.gnu.org; Sat, 26 Nov 2016 16:33:54 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ludo@HIDDEN>) id 1cAkbR-0004Dj-Mj
 for 25031 <at> debbugs.gnu.org; Sat, 26 Nov 2016 16:33:48 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45642)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1cAkbR-0004Df-J9; Sat, 26 Nov 2016 16:33:45 -0500
Received: from reverse-83.fdn.fr ([80.67.176.83]:57726 helo=pluto)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1cAkbQ-00014r-VT; Sat, 26 Nov 2016 16:33:45 -0500
From: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
To: Nikolay Merinov <nikolay.merinov@HIDDEN>
Subject: Re: bug#25031: Recovery from sleep/hibernate is broken
References: <87twavjes8.fsf@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 6 Frimaire an 225 de la =?utf-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-unknown-linux-gnu
Date: Sat, 26 Nov 2016 22:33:43 +0100
In-Reply-To: <87twavjes8.fsf@HIDDEN> (Nikolay Merinov's message of
 "Sat, 26 Nov 2016 04:55:19 +0500")
Message-ID: <87twaulydk.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -8.0 (--------)
X-Debbugs-Envelope-To: 25031
Cc: 25031 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -8.0 (--------)

Hello,

Nikolay Merinov <nikolay.merinov@HIDDEN> skribis:

> I use GuixSD on libreboot x200. Issue was checked with linux-libre kernel=
s 4.1,
> 4.8, 4.10; with libreboot 2015-01-26, 2015-05-18, 2016-09-07; with and
> without "resume=3D/dev/sda2" option (my swap partition on /dev/sda2).
>
> I can't resume neither from suspend to ram nor from suspend to disk.
>
> I start hibernation with "echo disk > /sys/power/state" command. On next =
boot image does not restored. I can see that image was saved:
>
>     # swapon /dev/sda2
>     swapon: /dev/sda2: software suspend data detected. Rewriting the swap=
 signature.

Hibernation is not supported yet in GuixSD, unless you applied this
patch:

  https://lists.gnu.org/archive/html/guix-devel/2016-08/msg00962.html

If you want to try it out, feedback is welcome!  Note that Mark did
mention that it=E2=80=99s risky, but that it worked in their tests.

Thanks,
Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#25031; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 25 Nov 2016 23:55:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 25 18:55:44 2016
Received: from localhost ([127.0.0.1]:41888 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cAQLI-0002Hn-Bf
	for submit <at> debbugs.gnu.org; Fri, 25 Nov 2016 18:55:44 -0500
Received: from eggs.gnu.org ([208.118.235.92]:54302)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <nikolay.d.merinov@HIDDEN>) id 1cAQLG-0002Ha-NH
 for submit <at> debbugs.gnu.org; Fri, 25 Nov 2016 18:55:43 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <nikolay.d.merinov@HIDDEN>) id 1cAQLA-0004Jh-HZ
 for submit <at> debbugs.gnu.org; Fri, 25 Nov 2016 18:55:37 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:49596)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <nikolay.d.merinov@HIDDEN>)
 id 1cAQLA-0004JN-AW
 for submit <at> debbugs.gnu.org; Fri, 25 Nov 2016 18:55:36 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:45270)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <nikolay.d.merinov@HIDDEN>) id 1cAQL8-00048Z-Vi
 for bug-guix@HIDDEN; Fri, 25 Nov 2016 18:55:36 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <nikolay.d.merinov@HIDDEN>) id 1cAQL3-0004Em-V1
 for bug-guix@HIDDEN; Fri, 25 Nov 2016 18:55:35 -0500
Received: from mail-lf0-x236.google.com ([2a00:1450:4010:c07::236]:35824)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <nikolay.d.merinov@HIDDEN>)
 id 1cAQL3-0004DW-Mz
 for bug-guix@HIDDEN; Fri, 25 Nov 2016 18:55:29 -0500
Received: by mail-lf0-x236.google.com with SMTP id b14so59778217lfg.2
 for <bug-guix@HIDDEN>; Fri, 25 Nov 2016 15:55:29 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=sender:from:to:subject:date:message-id:user-agent:mime-version;
 bh=iFOLKg+iGTxUvRGbwwSiSBj2HPdslMiQc7pJiOUft/U=;
 b=JOwHV7yew7kzFcou2AhxM8KJ3BHD8u6/X3m8U3ltH97BoJ6APnrwpiNxPK3wiAyNWJ
 SFhox/qtqUTx7ypojovegazTVpX1O+cgCyjEy8JrMeTMS5+HN8uO29Zd+ps+47Q85RLd
 6mf4ULpl4YwdfGkS4tODQ8dUcSlKmXA/XNsxH8nT7OnLH20iR4YY1nUi3Pod9+E2tIX+
 JeS691thIgUvWrSfUmAsIuSB0sI61T8e6+Mqhl4uLJTwsYOdU5MvEbG1At/XZPMPAz1l
 1IWZ6gjRilYksFRZJvahjlR7GLUx3CIxVXIFIuEXeUkGqN/LX13LD2q29gDrZih/o33e
 0D0Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:sender:from:to:subject:date:message-id
 :user-agent:mime-version;
 bh=iFOLKg+iGTxUvRGbwwSiSBj2HPdslMiQc7pJiOUft/U=;
 b=bu375eVkr3GEnKzooCl70UyPUcw282aJ6YjLybDPf4CW2RQ9g7CkV7Im9pkQGvVHzL
 4TRa8YDPed0ef6j/Aq42cUcPusVGaU4IB1t6HgEYdZ2yL1BEH7e9RxbllvBEWiQd+89J
 zcUWiNiT8Gpr5Lzc4opwGW5WKurNNEKhW4cx7BiDQex1PELUktgT3Xh6ey3d9PWHBwcu
 KHWquQR7eCDSXzYgR2P167UxRAtrZiuK6SzQm0/YLpQC2dc9Xst44yReTioi/R6c//k7
 QzFGCOQW6ef+0TUipy7Y7wjECKbExKaZls5wsAXpAfdTt50HRH+xXUV9hX80CqR4wOF+
 xJqQ==
X-Gm-Message-State: AKaTC03rlJCYuf3Ieyj87TzDUvjt1gQE3l08iFkBgbjLF1iIP/cnovKPADxHO4RApw53FQ==
X-Received: by 10.25.92.131 with SMTP id u3mr4448104lfi.15.1480118127645;
 Fri, 25 Nov 2016 15:55:27 -0800 (PST)
Received: from libremnd (116700782.convex.ru. [82.193.152.190])
 by smtp.gmail.com with ESMTPSA id m16sm9961143lfj.24.2016.11.25.15.55.26
 for <bug-guix@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Fri, 25 Nov 2016 15:55:27 -0800 (PST)
From: Nikolay Merinov <nikolay.merinov@HIDDEN>
To: bug-guix@HIDDEN
Subject: Recovery from sleep/hibernate is broken
Date: Sat, 26 Nov 2016 04:55:19 +0500
Message-ID: <87twavjes8.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

Hi,

I exepience issue similar to discussed in next thread
https://lists.gnu.org/archive/html/bug-guix/2016-07/msg00087.html
My laptop can't wake afterr sleep and hibernate.

I use GuixSD on libreboot x200. Issue was checked with linux-libre kernels 4.1,
4.8, 4.10; with libreboot 2015-01-26, 2015-05-18, 2016-09-07; with and
without "resume=/dev/sda2" option (my swap partition on /dev/sda2).

I can't resume neither from suspend to ram nor from suspend to disk.

I start hibernation with "echo disk > /sys/power/state" command. On next boot image does not restored. I can see that image was saved:

    # swapon /dev/sda2
    swapon: /dev/sda2: software suspend data detected. Rewriting the swap signature.

In boot log I can see next message:

[    0.610581] PM: Checking hibernation image partition /dev/sda2
[    0.610598] PM: Hibernation image not present or could not be loaded.
...
[    1.063943] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.108500]  sda: sda1 sda2 sda3
[    1.109780] sd 0:0:0:0: [sda] Attached SCSI disk

Looks like PM try to find hibernation image before attaching hard
drive.

Full boot log with linux-libre 4.10 and libreboot 2016-09-07 after hibernation attached.

Where can be root of issue? libreboot code, linux-libre code or GuixSD itself? 

Regards,
Nikolay





Acknowledgement sent to Nikolay Merinov <nikolay.merinov@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#25031; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 11 Jan 2017 22:15:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.