Skip to contentSkip to conversation

Call for help: list of machines with working S3

DISCUSSION Maximilian Engelhardt 2 participants 6 messages Mar 17, 2005 – Apr 1, 2005 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 43 lines · Pavel Machek

Hi!

Stefan provided me initial list of machines where S3 works (including video). If you have machine that is not on the list, please send me a diff. If you have eMachines... I'd like you to try playing with vbetool (it worked for me), and if it works for you supplying right model numbers.

								Pavel


		Video issues with S3 resume
		~~~~~~~~~~~~~~~~~~~~~~~~~~~
		  2003-2005, Pavel Machek

During S3 resume, hardware needs to be reinitialized. For most devices, this is easy, and kernel driver knows how to do it. Unfortunately there's one exception: video card. Those are usually initialized by BIOS, and kernel does not have enough information to boot video card. (Kernel usually does not even contain video card driver -- vesafb and vgacon are widely used).

This is not problem for swsusp, because during swsusp resume, BIOS is run normally so video card is normally initialized. S3 has absolutely no change to work with SMP/HT. Be sure it to turn it off before testing (swsusp should work ok, OTOH).

There are few types of systems where video works after S3 resume:

(1) systems where video state is preserved over S3.

(2) systems where it is possible to call video bios during S3 resume. Unfortunately, it is not correct to call video BIOS at that point, but it happens to work on some machines. Use acpi_sleep=s3_bios.

(3) systems that initialize video card into vga text mode and where BIOS works well enough to be able to set video mode. Use acpi_sleep=s3_mode on these.

(4) on some systems s3_bios kicks video into text mode, and acpi_sleep=s3_bios,s3_mode is needed.

Quoted 8 lines

(5) radeon systems, where X can soft-boot your video card. You'll need patched X, and plain text console (no vesafb or radeonfb), see
http://www.doesi.gmxhome.de/linux/tm800s3/s3.html.

(6) other radeon systems, where vbetool is enough to bring system back to life. Do vbetool vbestate save > /tmp/delme; echo 3 > /proc/acpi/sleep; vbetool post; vbetool vbestate restore < /tmp/delme; setfont <whatever>, and your video should work.

Tried all this on my Laptop but nothing seems to work for me. I do "echo 3 > /proc/acpi/sleep" and the systems seems to go into S3. When I press some key to wake it up again it powers up but I get nothing than a black screen. It's not only the video card that's not working, because the only thing it reacts to is Sysrq (without screen of course). One additional thing I found is that in this state the HDD led keeps lighting all the time untill I reboot my system. After rebooting I couldn't find anything interesting in my logs.

Is there any way I could get S3 working on my laptop?

some data:
Acer Travel Mate 661lci
Gentoo Base System version 1.6.10
kernel 2.6.11

I did all this testing with a minimal kernel that only had the absolutely necessary drivers.

Thanks for help,
Maxi

#2 lore raw
Quoted 18 lines · Maximilian Engelhardt
Quoted 4 lines · Pavel Machek
		Video issues with S3 resume
		~~~~~~~~~~~~~~~~~~~~~~~~~~~
		  2003-2005, Pavel Machek

Tried all this on my Laptop but nothing seems to work for me. I do "echo 3 > /proc/acpi/sleep" and the systems seems to go into S3. When I press some key to wake it up again it powers up but I get nothing than a black screen. It's not only the video card that's not working, because the only thing it reacts to is Sysrq (without screen of course). One additional thing I found is that in this state the HDD led keeps lighting all the time untill I reboot my system. After rebooting I couldn't find anything interesting in my logs.

Is there any way I could get S3 working on my laptop?

Quoted 7 lines

some data:
Acer Travel Mate 661lci
Gentoo Base System version 1.6.10
kernel 2.6.11

I did all this testing with a minimal kernel that only had the absolutely necessary drivers.

It happens exactly the same on my laptop, sony vaio whose configuration is

http://www.dea.icai.upco.es/romano/linux/vaio-conf/laptop-config.html

Next week is Easter holyday here, I will try to connect my Psion casio as serial terminal and see if I can catch something.

Romano

Signature · 2 lines
Romano Giannetti             -  Univ. Pontificia Comillas (Madrid, Spain)
Electronic Engineer - phone +34 915 422 800 ext 2416  fax +34 915 596 569
#3 lore raw
Quoted 9 lines · Romano Giannetti

It happens exactly the same on my laptop, sony vaio whose configuration is

http://www.dea.icai.upco.es/romano/linux/vaio-conf/laptop-config.html

Next week is Easter holyday here, I will try to connect my Psion casio as serial terminal and see if I can catch something.

Romano

Sorry that I didn't answer earlier , but I didn't have much time the last week. Unfortunately my laptop has a serial port only via docking station that I don't have. So I tried logging via netconsole. This generally worked, but when I try to enter S3 the last thing I get is "PM: Entering state" but the laptop never enters S3, it just hangs there forever. So sadly I couldn't get more information.

If anyone has any idea what else I could do to either fix this problem or get more information about it, please tell me and I'll try :)

Maxi

#4 lore raw
In reply to Romano Giannetti
Quoted 7 lines · Romano Giannetti

It happens exactly the same on my laptop, sony vaio whose configuration is

http://www.dea.icai.upco.es/romano/linux/vaio-conf/laptop-config.html

Next week is Easter holyday here, I will try to connect my Psion casio as serial terminal and see if I can catch something.

I was able to get some logs using CONFIG_LP_CONSOLE (the first time I ever saw "Back to C!"):

Back to C!
PM: Finishing up.
ACPI: PCI interrupt 0000:00:1f.1[A] -> GSI 10 (level,low) -> IRQ 10
MCE: The hardware reports a non fatal, correctable incident occurred on CPU 0.
Bank 1: e200000000000001
hda: task_out_intr: status=0x51 { DriveReady SeekComplete Error }
hda: task_out_intr: error=0x04 { DriveStatusError }
ide: failed opcode was: unknown

keeps on always repeating last three messages until I reboot

Full log:
http://home.daemonizer.de/resume.png

kernel version is 2.6.11
config: http://home.daemonizer.de/config-2.6.11-S3test
dmesg from booting: http://home.daemonizer.de/dmesg-2.6.11-S3test
lspci: http://home.daemonizer.de/lspci
Gentoo Base System version 1.6.10

Hardware:
Acer Travelmate 661lci (centrino)
Intel(R) Pentium(R) M processor 1400MHz

please mail me if you need additional data.

Thanks for help,
Maxi

#5 lore raw
Quoted 30 lines · Maximilian Engelhardt
Quoted 4 lines · Romano Giannetti

It happens exactly the same on my laptop, sony vaio whose configuration is

http://www.dea.icai.upco.es/romano/linux/vaio-conf/laptop-config.html

I was able to get some logs using CONFIG_LP_CONSOLE (the first time I ever saw "Back to C!"):

Back to C!
PM: Finishing up.
ACPI: PCI interrupt 0000:00:1f.1[A] -> GSI 10 (level,low) -> IRQ 10
MCE: The hardware reports a non fatal, correctable incident occurred on CPU 0.
Bank 1: e200000000000001
hda: task_out_intr: status=0x51 { DriveReady SeekComplete Error }
hda: task_out_intr: error=0x04 { DriveStatusError }
ide: failed opcode was: unknown

keeps on always repeating last three messages until I reboot

Full log:
http://home.daemonizer.de/resume.png

kernel version is 2.6.11
config: http://home.daemonizer.de/config-2.6.11-S3test
dmesg from booting: http://home.daemonizer.de/dmesg-2.6.11-S3test
lspci: http://home.daemonizer.de/lspci
Gentoo Base System version 1.6.10

Quoted 3 lines

Hardware:
Acer Travelmate 661lci (centrino)
Intel(R) Pentium(R) M processor 1400MHz

I tried with serial console. The only thing I get is:

Stopping tasks:
================================================================================|

and nothing more. Well, this was done with the double console, so that I will try again as soon as I have a bit of time with just the serial console on.

But the "external" behaviour for me is like your: it stops, then at restart the HDD led stays on and nothing happen.

Romano

Signature · 2 lines
Romano Giannetti             -  Univ. Pontificia Comillas (Madrid, Spain)
Electronic Engineer - phone +34 915 422 800 ext 2416  fax +34 915 596 569
#6 lore raw
Quoted 3 lines · Romano Giannetti

and nothing more. Well, this was done with the double console, so that I will try again as soon as I have a bit of time with just the serial console on.

Much better now. Configuration, dmesg at boot, etc are at
http://www.dea.icai.upco.es/romano/linux/config-2.6.12-rc1-rg/

I booted the 2.6.12-rc1 kernel above (with the alps resume fix) with the
options: console=ttyS0,115200n8 init=/bin/bash

The full log of the session, if it's interesting to someone, is here:
http://www.dea.icai.upco.es/romano/linux/swsusp/2612rc1-bash.s3.log

The interesting part is here. At suspend I have:

bash-2.05b# echo -n 3 > /proc/acpi/sleep

[4294743.859000] Stopping tasks: ===|

and the laptop goes off with suspend light blinking. Ok. After a 20 sec, I hit the power button and:

[4294759.817000]  evevent-0286: *** Error: No installed handler for fixed
event
[00000002]
[4294759.827000] Restarting tasks... done

bash-2.05b#

I have the prompt back! But the HDD light is fixed on... I tried lsmod:

bash-2.05b# lsmod

Dead. After a bit it says:

[4294828.522000] hda: dma_timer_expiry: dma status == 0x21
[4294838.522000] hda: DMA timeout error
[4294838.526000] hda: dma timeout error: status=0x58 { DriveReady
SeekComplete DataRequest }
[4294838.536000]
[4294838.538000] ide: failed opcode was: unknown
[4294838.546000] hda: task_in_intr: status=0x59 { DriveReady SeekComplete
DataRequest Error }
[4294838.556000] hda: task_in_intr: error=0x04 { DriveStatusError }
[4294838.564000] ide: failed opcode was: unknown

this (with error 0x59 and 0x04) is repeated 3 more times, then:

[4294838.699000] ide0: reset: success

but nothing change, and after a bit:

[4294858.708000] hda: dma_timer_expiry: dma status == 0x21
[4294868.708000] hda: DMA timeout error
[4294868.712000] hda: dma timeout error: status=0x58 { DriveReady
SeekComplete DataRequest }
[4294868.722000]
[4294868.724000] ide: failed opcode was: unknown
[4294868.729000] hda: status error: status=0x58 { DriveReady SeekComplete
DataRequest }
[4294868.738000]
[4294868.740000] ide: failed opcode was: unknown
[4294868.746000] hda: drive not ready for command

(3 more times)

[4294868.862000] ide0: reset: success
[4294888.879000] hda: dma_timer_expiry: dma status == 0x21

...and continuing forever (with error 0x58 as before). In the full log there is a sysrq-m and sysrq-t result, but I do not think it's very important here.

When I decided to stop I hit sysrq-b and:

[4294911.707000] SysRq : Resetting 

The bios (with the "sony" splash) restarted but locked hard, and to resume I had to do the hard poweroff (5 seconds power button down).

Well. I hope this helps someone :-). I will stay with S4 for now.

Romano

Signature · 2 lines
Romano Giannetti             -  Univ. Pontificia Comillas (Madrid, Spain)
Electronic Engineer - phone +34 915 422 800 ext 2416  fax +34 915 596 569