You are not logged in.

#1 2010-12-12 20:15:56

foobarch
Member
Registered: 2009-10-13
Posts: 66

[solved] Supend broken since dri upates.

Today I applied these updates:

[2010-12-12 17:42] upgraded libdrm (2.4.22-1 -> 2.4.22-3)
[2010-12-12 17:42] upgraded libgl (7.9-1 -> 7.9.0.git20101207-2)
[2010-12-12 17:42] upgraded ati-dri (7.9-1 -> 7.9.0.git20101207-2)
[2010-12-12 17:42] upgraded intel-dri (7.9-1 -> 7.9.0.git20101207-2)
[2010-12-12 17:42] upgraded mesa (7.9-1 -> 7.9.0.git20101207-2)
[2010-12-12 20:41] upgraded gtk-engine-murrine (0.98.1.1-1 -> 0.98.1.1-2)

Now, both s2ram and s2disk doesn't work anymore. When I try, it starts suspending / hibernating and looks quite like it's working properly and then it resumes again.. So, it looks like the system doesn't power off but resumes immediately.

sudo s2ram
Switching from vt7 to vt1
fbcon fb0 state 1
s2ram_do: Input/output error
fbcon fb0 state 0
switching back to vt7

Notice the error above. This it what kernel.log says:

Dec 12 21:11:49 localhost kernel: PM: Syncing filesystems ... done.
Dec 12 21:11:49 localhost kernel: PM: Preparing system for mem sleep
Dec 12 21:11:49 localhost kernel: Freezing user space processes ... (elapsed 0.01 seconds) done.
Dec 12 21:11:49 localhost kernel: Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
Dec 12 21:11:49 localhost kernel: PM: Entering mem sleep
Dec 12 21:11:49 localhost kernel: Suspending console(s) (use no_console_suspend to debug)
Dec 12 21:11:49 localhost kernel: sd 0:0:0:0: [sda] Synchronizing SCSI cache
Dec 12 21:11:49 localhost kernel: sd 0:0:0:0: [sda] Stopping disk
Dec 12 21:11:49 localhost kernel: tpm_tis 00:0a: tpm_transmit: tpm_send: error -5
Dec 12 21:11:49 localhost kernel: legacy_suspend(): pnp_bus_suspend+0x0/0xa0 returns -5
Dec 12 21:11:49 localhost kernel: PM: Device 00:0a failed to suspend: error -5
Dec 12 21:11:49 localhost kernel: PM: Some devices failed to suspend
Dec 12 21:11:49 localhost kernel: sd 0:0:0:0: [sda] Starting disk
Dec 12 21:11:49 localhost kernel: PM: resume of devices complete after 1237.975 msecs
Dec 12 21:11:49 localhost kernel: PM: Finishing wakeup.
Dec 12 21:11:49 localhost kernel: Restarting tasks ... done.
Dec 12 21:11:49 localhost kernel: video LNXVIDEO:00: Restoring backlight state

Do you have any ideas on how to solve the issue?

Thank you.

Last edited by foobarch (2010-12-14 01:33:42)

Offline

#2 2010-12-13 14:05:07

foobarch
Member
Registered: 2009-10-13
Posts: 66

Re: [solved] Supend broken since dri upates.

Oh, I just realized there was a kernel update on Saturday:

[2010-12-11 15:36] upgraded kernel26 (2.6.36.1-3 -> 2.6.36.2-1)

So, I guess this causes the trouble..

Update:

Probably the same problem, 2.6.37 rc1 though: http://www.serverphorums.com/read.php?12,224256

Last edited by foobarch (2010-12-13 14:47:15)

Offline

#3 2010-12-13 19:20:32

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Re: [solved] Supend broken since dri upates.

Let me guess, you have a lenovo?
Is this related: http://linux.derkeiler.com/Mailing-List … 12527.html ?


Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd

Offline

#4 2010-12-14 01:32:51

foobarch
Member
Registered: 2009-10-13
Posts: 66

Re: [solved] Supend broken since dri upates.

modprobe tpm_tis itpm=1

"fixed" it.. Thank you!

Offline

#5 2010-12-14 23:58:11

ojw
Member
Registered: 2010-12-14
Posts: 4

Re: [solved] Supend broken since dri upates.

I'm having the same problem, but "modprobe tpm_tis itpm=1" doesn't help.  I have a Thinkpad x200s, so maybe it's the same problem referenced in the mailing list?  I didn't see a solution there, so maybe it's an open issue.  I've also tried turning off my usb ports in the bios since googling suggested that there might be a usb issue, but that didn't help either.  Has anyone had and fixed a similar problem, or is there somewhere else I should be looking?

Offline

#6 2010-12-15 15:35:46

foobarch
Member
Registered: 2009-10-13
Posts: 66

Re: [solved] Supend broken since dri upates.

You unload the module before reloading it?

Maybe you can show us what's in your kernel.log when you try to suspend.. It doesn't have to be an usb device.

Offline

#7 2010-12-15 16:43:36

zeltak
Member
From: New England
Registered: 2010-08-07
Posts: 168

Re: [solved] Supend broken since dri upates.

Hi

i have a x200 and having the same issues. here is the relevant kernel log:

    Dec 15 11:38:32 localhost kernel: PM: Syncing filesystems ... done.
    Dec 15 11:38:32 localhost kernel: PM: Preparing system for mem sleep
    Dec 15 11:38:32 localhost kernel: Freezing user space processes ... (elapsed 0.01 seconds) done.
    Dec 15 11:38:32 localhost kernel: Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
    Dec 15 11:38:32 localhost kernel: PM: Entering mem sleep
    Dec 15 11:38:32 localhost kernel: Suspending console(s) (use no_console_suspend to debug)
    Dec 15 11:38:32 localhost kernel: sd 0:0:0:0: [sda] Synchronizing SCSI cache
    Dec 15 11:38:32 localhost kernel: sd 0:0:0:0: [sda] Stopping disk
    Dec 15 11:38:32 localhost kernel: tpm_tis 00:0a: tpm_transmit: tpm_send: error -5
    Dec 15 11:38:32 localhost kernel: legacy_suspend(): pnp_bus_suspend+0x0/0xa0 returns -5
    Dec 15 11:38:32 localhost kernel: PM: Device 00:0a failed to suspend: error -5
    Dec 15 11:38:32 localhost kernel: PM: Some devices failed to suspend
    Dec 15 11:38:32 localhost kernel: sd 0:0:0:0: [sda] Starting disk
    Dec 15 11:38:32 localhost kernel: PM: resume of devices complete after 606.211 msecs
    Dec 15 11:38:32 localhost kernel: IBM TrackPoint firmware: 0x0e, buttons: 3/3
    Dec 15 11:38:32 localhost kernel: input: TPPS/2 IBM TrackPoint as /devices/platform/i8042/serio1/input/input20
    Dec 15 11:38:32 localhost kernel: PM: Finishing wakeup.
    Dec 15 11:38:32 localhost kernel: Restarting tasks ... done.
    Dec 15 11:38:32 localhost kernel: video LNXVIDEO:00: Restoring backlight state

thx

zeltak

Offline

#8 2010-12-15 17:03:07

fmjrey
Member
Registered: 2009-08-19
Posts: 13

Re: [solved] Supend broken since dri upates.

Slightly related, maybe I should start a new thread, let me know:

Looks like another side effect of this dri update is that my external monitor is turned off when closing the lid of my laptop.
Was working fine before.
Any suggestion?

Here's my log:
[2010-12-13 10:55] upgraded dhcpcd (5.2.8-1 -> 5.2.9-1)
[2010-12-13 10:55] upgraded docbook-xsl (1.76.0-3 -> 1.76.1-1)
[2010-12-13 10:55] upgraded fluidsynth (1.1.3-1 -> 1.1.3-2)
[2010-12-13 10:55] upgraded libdrm (2.4.22-1 -> 2.4.22-3)
[2010-12-13 10:55] upgraded libgl (7.9-1 -> 7.9.0.git20101207-2)
[2010-12-13 10:55] upgraded intel-dri (7.9-1 -> 7.9.0.git20101207-2)
[2010-12-13 10:55] upgraded mesa (7.9-1 -> 7.9.0.git20101207-2)
[2010-12-13 10:55] upgraded procinfo-ng (2.0.304-1 -> 2.0.304-2)
[2010-12-13 10:55] upgraded python-beautifulsoup (3.0.8.1-1 -> 3.2.0-1)
[2010-12-13 10:55] upgraded zlib (1.2.5-2 -> 1.2.5-3)

Offline

#9 2010-12-15 21:54:53

ojw
Member
Registered: 2010-12-14
Posts: 4

Re: [solved] Supend broken since dri upates.

Foobarch and all other contributors, if I ever meet you I'm buying you a drink.  I was too stupid/uneducated to first -r it.  Problem fixed.

Offline

#10 2010-12-15 23:03:48

zeltak
Member
From: New England
Registered: 2010-08-07
Posts: 168

Re: [solved] Supend broken since dri upates.

ojw

can you give some more details on how you fixed it?

thx

zeltak

Offline

#11 2010-12-16 17:16:18

ojw
Member
Registered: 2010-12-14
Posts: 4

Re: [solved] Supend broken since dri upates.

I'm not at home, but if I remember correctly, the following fixed the problem:

modprobe -r tpm_tis
modprobe tpm_tis itpm=1

However, that only works until you reboot.  As a permanent solution, add tpm_tis to the modules array in rc.conf and add "option tpm_tis itpm=1" (I think) to modprobe.conf.  The wikipages should have the correct format if that's not right, but I think it is.

Offline

#12 2010-12-17 17:27:23

zeltak
Member
From: New England
Registered: 2010-08-07
Posts: 168

Re: [solved] Supend broken since dri upates.

hya

well i did add the line to the rc.conf and modprobe.conf but i still cant get sleep to work unless i issue this first:

sudo rmmod tpm_tis


zeltak

Offline

#13 2010-12-17 17:49:45

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Re: [solved] Supend broken since dri upates.

zeltak wrote:

hya

well i did add the line to the rc.conf and modprobe.conf but i still cant get sleep to work unless i issue this first:

sudo rmmod tpm_tis


zeltak

If you use pm-utils, do SUSPEND_MODULES="tpm_tis"
https://wiki.archlinux.org/index.php/Pm … figuration


Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd

Offline

#14 2010-12-17 20:26:39

jwbwater
Member
From: US, Arizona
Registered: 2009-07-22
Posts: 14

Re: [solved] Supend broken since dri upates.

@Leonid.I, foobarch, ojw:
Thanks for the work on this, the modprobe option worked for me too.  I'm using tuxonice now, switched from pm-utils thinking that it was a pm-utils issue and then found this thread while trying to get tuxonice working big_smile

Offline

#15 2010-12-18 01:17:02

zeltak
Member
From: New England
Registered: 2010-08-07
Posts: 168

Re: [solved] Supend broken since dri upates.

thx Leonid.I but that didnt help

so far ive done this:

1) added  tpm_tis to the modules array in rc.conf
2) added "option tpm_tis itpm=1" to modprobe.conf
3)added SUSPEND_MODULES="tpm_tis" to /etc/pm/config.d/module

rebooted but still dosent work.

i get this error:

Switching from vt1 to vt1
fbcon fb0 state 1
fbcon fb0 state 0
switching back to vt1


the ONLY thing that works is if i issue:

sudo rmmod tpm_tis

then suspend works..but its annoying to keep doing it after every reboot

any idea??

thx guys

zeltak

Last edited by zeltak (2010-12-18 01:20:58)

Offline

#16 2010-12-18 13:03:58

count-corrupt
Member
From: Germany
Registered: 2009-02-01
Posts: 112

Re: [solved] Supend broken since dri upates.

zeltak wrote:

thx Leonid.I but that didnt help

so far ive done this:

1) added  tpm_tis to the modules array in rc.conf
2) added "option tpm_tis itpm=1" to modprobe.conf
3)added SUSPEND_MODULES="tpm_tis" to /etc/pm/config.d/module

If you read around, most mailinglists tell you to set the itpm=1 option for tpm, not tpm_tis.
Revert everything you changed so far. Then rmmod tpm, tpm_bios and tpm_tis.

On my system there is no modprobe.conf but a modprobe.conf.d folder instead. If you still have a modprobe.conf, add

options tpm itpm=1

to it. Otherwise create /etc/modprobe.d/tpm.conf and add it there. Notice the plural in options. The way you describe it, you set 'option'.
Then modprobe tpm again. If you 'lsmod | grep tpm' now, there should only be two modules there. Tpm and tpm_bios.

Offline

#17 2010-12-19 13:09:38

zeltak
Member
From: New England
Registered: 2010-08-07
Posts: 168

Re: [solved] Supend broken since dri upates.

cool count-corrupt

works like a charm

thx alot for the help

zeltak

Offline

#18 2011-06-25 18:28:28

zeltak
Member
From: New England
Registered: 2010-08-07
Posts: 168

Re: [solved] Supend broken since dri upates.

Hya

sorry for reopening this issue but the problem is back..suspend stoped working again sad tried all the above solution with no success. is there any info i should be looking for to further diagonse the problem

thx

zeltak

Offline

Board footer

Powered by FluxBB