Difference between revisions of "Talk:Problems with ACPI suspend-to-ram"

From ThinkWiki
Jump to: navigation, search
Line 40: Line 40:
 
----
 
----
 
Yay, that did it. Also, I'm not sure which option it is, but one of the options in hibernate (either <code>EnableVbetool</code>, <code>VbetoolPost</code>, <code>RestoreVCSAData</code>, or <code>RestoreVbeStateFrom</code>, or all of them) causes the framebuffer to freak out again. Disabling them, and enabling that s3_mode makes it all work again. (Debian Sid, 2.6.17, T60). Putting this in the article, I guess.
 
Yay, that did it. Also, I'm not sure which option it is, but one of the options in hibernate (either <code>EnableVbetool</code>, <code>VbetoolPost</code>, <code>RestoreVCSAData</code>, or <code>RestoreVbeStateFrom</code>, or all of them) causes the framebuffer to freak out again. Disabling them, and enabling that s3_mode makes it all work again. (Debian Sid, 2.6.17, T60). Putting this in the article, I guess.
 +
 
--[[User:Deason|Deason]]
 
--[[User:Deason|Deason]]
 
----
 
----
Line 46: Line 47:
 
BTW, the problem with the chvt also happens sometimes, when switching without suspend (just with a crtl-alt 1 or a chvt 1): I get corrupted video with big grey and black boxes on my screen, and everything is dead, i.e. I can't switch out of that state, either using crtl-alt 7 or even killing X (crtl-alt-backspace). I hope this was related to the frame buffer (that;s what pointed me to this post in the first place), and thus hope the vga=0 will do me good.
 
BTW, the problem with the chvt also happens sometimes, when switching without suspend (just with a crtl-alt 1 or a chvt 1): I get corrupted video with big grey and black boxes on my screen, and everything is dead, i.e. I can't switch out of that state, either using crtl-alt 7 or even killing X (crtl-alt-backspace). I hope this was related to the frame buffer (that;s what pointed me to this post in the first place), and thus hope the vga=0 will do me good.
 
Note that this problem with garbled video when switching to vt 1 also happens with fedora 7 (I'm using ubuntu feisty as my base system), every single time.
 
Note that this problem with garbled video when switching to vt 1 also happens with fedora 7 (I'm using ubuntu feisty as my base system), every single time.
 +
 
--[[User:frigaut|frigaut]] 4:54, 10 June 2007 (Chilean time)
 
--[[User:frigaut|frigaut]] 4:54, 10 June 2007 (Chilean time)
 
----
 
----

Revision as of 21:58, 10 June 2007

After a few resumes with my T43, I get "big green boxes" on my consoles tty1 and tty2. tyy3 to tty6 stays completly black (there should be login prompt). But X still working fine.

This is a minor issue, but anyone with the same problem and a fix/workaround?

--Defiant 13:40, 02 Jun 2006 (CEST)


I have a similar issue on my T60. It seems like the problem is with the framebuffer; that the card is attempting to use the lowest resolution possible when I have the framebuffer set much higher, but that's just my intuition. I'm using hibernate with both EnableVbetool and VbetoolPost set to yes.

An interesting thing is that if I manually call hibernate from an xterm inside X, I get no negative effects. It even fixes the console "big green boxes" if I previously suspended not in X. Also, on resume I see the following messages on the xterm (all previous output is cleared):

 Allocated buffer at 0x11010 (base is 0x0)
 ES: 0x1101 EBX: 0x0000
 Calling INT 0x15 (F000: 5E79)
  EAX is 0x1005F08
 Calling INT 0x15 (F000: 5E79)
  EAX is 0x1005F08
 Calling INT 0x15 (F000: 5E79)
  EAX is 0x5F08
 Calling INT 0x15 (F000: 5E79)
  EAX is 0x5F08
 Calling INT 0x15 (F000: 5E79)
  EAX is 0x45F08
 Function not supported

Any ideas?

-- Deason 05:39, 14 July 2006 (CEST)


Just to update/confirm: suspend to RAM only works if I have X running, and I switch to the console running X after resuming. Editing the ACPI sleep script to switch to vt 7 before switching back to the original console seems to work fine, though. It just means that I can't suspend to RAM if I'm not running X. (Putting a check for that in the ACPI sleep script would also be a good idea.) I've tried using EnableVbetool, VbetoolPost, RestoreVCSAData, and RestoreVbeStateFrom from hiberante, but none seem to solve this without switching to X.

-- Deason 21:48, 16 July 2006 (CEST)


Yes it's the vga framebuffer freaking out at you. Try adding acpi_sleep=s3_bios,s3_mode kernel option to /boot/grub/menu.lst

The s3_mode part fixed the green boxes for me. (debian testing, kernel 2.6.16, TP x41)

--Ladoga 06:46, 5 August 2006 (CEST)


Yay, that did it. Also, I'm not sure which option it is, but one of the options in hibernate (either EnableVbetool, VbetoolPost, RestoreVCSAData, or RestoreVbeStateFrom, or all of them) causes the framebuffer to freak out again. Disabling them, and enabling that s3_mode makes it all work again. (Debian Sid, 2.6.17, T60). Putting this in the article, I guess.

--Deason


I had the same problem with the "big green boxes" (except mine were not only green, but many colors :-). I added the acpi=s3_bios,s3_mode to the kernel boot parameters, and suspend with s2ram -f -a 1 (although I'm not sure that if one uses s2ram, the kernel parameters are relevant?). Anyway, the -a 1 in s2ram made things a little better, but I still had issues with big green boxes once in a while. It was critical, because sometimes, suspend would get stuck right after switching to vt1, and would require a hard power cycle, after which the machine would behave weirdly (X gets really slow, e.g. 45 seconds to bring up a gnome-terminal). I have now tried to add vga=0 (no frame buffer) and use s2ram -f -a 3. Seems to work for now. I will update after more suspend cycles. BTW, the problem with the chvt also happens sometimes, when switching without suspend (just with a crtl-alt 1 or a chvt 1): I get corrupted video with big grey and black boxes on my screen, and everything is dead, i.e. I can't switch out of that state, either using crtl-alt 7 or even killing X (crtl-alt-backspace). I hope this was related to the frame buffer (that;s what pointed me to this post in the first place), and thus hope the vga=0 will do me good. Note that this problem with garbled video when switching to vt 1 also happens with fedora 7 (I'm using ubuntu feisty as my base system), every single time.

--frigaut 4:54, 10 June 2007 (Chilean time)


Intermittent lock-up on resume with X31

I have an X31 running 2.6.16 (Debian). I'm running Debian patches, with the addition of ieee80211 1.1.14 and ipw2200 1.1.13

Suspend/resume generally works first time, but locks up during resume after a few cycles. Usually the sleep light stays flashing.

A possibly related symptom is that on a few occasions, I've had the wireless connectivity work for a few seconds after resume, and then fail (though this could be fixed by # ifdown eth1; rmmod ipw2200; modprobe ipw2200; ifup eth1).

I've tried the following boot options to no avail: ec_intr=0; nolapic; nolapic noapic

--Malcolm 06:42, 1 September 2006 (CEST)

I've had no more lock-ups since my last post (knock on wood) i.e. about 20 suspend/resume cycles.

Nothing has changed in my config, but I've been manually doing a

# sync

before each suspend, according to the theory that race conditions etc. will be less likely to be tickled if I reduce the interrupt load while ACPI does its work.

Incidentally, it turns out that I was running the equivalent of nolapic all along; dmesg output says:

Local APIC disabled by BIOS -- you can enable it with "lapic"

--Malcolm 10:11, 21 September 2006 (CEST)

Two lock-ups since my last post: after 30 cycles and after 10.

It loooks like this is kernel bug #5555

--Malcolm 00:04, 3 October 2006 (CEST)

Since my last post, I upgraded to Debian stock 2.6.18 kernel. This version includes ACPI 20060707.

I've had one lock-up on resume. Current uptime is 36 days.

--Malcolm 09:17, 6 February 2007 (CET)

Three lock-ups since my last post. Looks like this kernel is no improvement on the others I've tried.

--Malcolm 12:30, 11 February 2007 (CET)

Unable to resume R40e after suspend-to-RAM

Suspend-To-RAM works fine, but after going to sleep, the laptop (R40e) can't be woken up. It doesn't respond to anything, the battery has to be removed in order to reset it. I tried many different setups, but the problem persists. Any ideas, please?


T60p Docking While Suspended

My T60p exhibits the problem where if I dock it while it's asleep, it shuts off. Has anyone gotten a response from Lenovo about this problem? Is there a fix? I'm getting tired of waking up my laptop before docking it.

--Sridhar 17:50, 2 January 2007 (CET)

Using HDAPS as a module causes a crash on resume with the Linux kernel 2.6.19 (X41)

Does this hapen with the stock hdaps module from the kernel.org sources, or with the one from tp-smapi?

--Zhenech 14:18, 12 January 2007 (CET)