You are not logged in.

#1 2013-06-20 11:57:36

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

[solved] Resume from hibernation error: Failed to restore -19

Hi there,

I am getting the following message every time I am resuming from hibernation. Resuming still completes successfully. Yet I am curious what this message means:

NlS1Jmr.png

Last edited by orschiro (2013-06-25 21:14:46)

Offline

#2 2013-06-20 14:59:32

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [solved] Resume from hibernation error: Failed to restore -19

That is really not a lot of information to go on.

Offline

#3 2013-06-21 07:53:11

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: [solved] Resume from hibernation error: Failed to restore -19

Unfortunately there is nothing more I can find in journalctl. Are there any other logs I should consider?

Offline

#4 2013-06-25 21:11:03

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: [solved] Resume from hibernation error: Failed to restore -19

I think I have found the solution thanks to a Debian bug report. This error was related to the tpm_tis and tpm modules not being properly unloaded before hibernation.

These modules are required by the device listed in the error as 00:0a:

[orschiro@thinkpad ~]$ dmesg | grep 00:0a
[    0.377877] pnp 00:0a: Plug and Play ACPI device, IDs PNP0c31 (active)
[   10.746742] tpm_tis 00:0a: 1.2 TPM (device-id 0x1020, rev-id 6)
[   10.746751] tpm_tis 00:0a: Intel iTPM workaround enabled
[   10.866734] tpm_tis 00:0a: TPM is disabled/deactivated (0x6)

So, in an essence I created the following systemd related script that is triggered before and after hibernation:

[orschiro@thinkpad ~]$ cat /usr/lib/systemd/system-sleep/tpm.sh
#!/bin/sh
case $1/$2 in
  pre/*)
    echo "Going to $2..."
    modprobe -r tpm
    modprobe -r tpm_tis
    ;;
  post/*)
    echo "Waking up from $2..."
    modprobe tpm
    modprobe tpm_tis
    ;;
esac
#  chmod a+x /usr/lib/systemd/system-sleep/tpm.sh 

Offline

Board footer

Powered by FluxBB