Bug 5474 - IBM Thinkpad R50e S3 resume - video issue
Summary: IBM Thinkpad R50e S3 resume - video issue
Status: REJECTED INVALID
Alias: None
Product: ACPI
Classification: Unclassified
Component: Power-Sleep-Wake (show other bugs)
Hardware: i386 Linux
: P2 high
Assignee: Shaohua
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-20 09:10 UTC by Faris Xiao
Modified: 2005-10-23 18:22 UTC (History)
1 user (show)

See Also:
Kernel Version: 2.6.13.4
Subsystem:
Regression: ---
Bisected commit-id:


Attachments
acpidump output (142.58 KB, text/plain)
2005-10-20 09:15 UTC, Faris Xiao
Details
dmesg -s40000 (13.42 KB, text/plain)
2005-10-20 09:16 UTC, Faris Xiao
Details
dmidecode output (11.45 KB, text/plain)
2005-10-20 09:16 UTC, Faris Xiao
Details
lspci -vv (9.20 KB, text/plain)
2005-10-20 09:17 UTC, Faris Xiao
Details
cat /proc/interrupts (508 bytes, text/plain)
2005-10-20 09:18 UTC, Faris Xiao
Details
the dmesg output from the remote machine (15.11 KB, text/plain)
2005-10-21 02:58 UTC, Faris Xiao
Details

Description Faris Xiao 2005-10-20 09:10:40 UTC
Most recent kernel where this bug did not occur:2.6.13.4
Distribution:Debian testing
Hardware Environment:IBM Thinkpad R50e 1834LC4
Software Environment:ACPI: Subsystem revision 20050902
Problem Description:

echo mem > /sys/power/state

The machine can sleep,but It can't resume.
The notebook totally freezes.The only way to recover it is to pressing the power
button to halt the machine.

Steps to reproduce:
echo mem > /sys/power/state
Comment 1 Faris Xiao 2005-10-20 09:15:24 UTC
Created attachment 6344 [details]
acpidump output
Comment 2 Faris Xiao 2005-10-20 09:16:18 UTC
Created attachment 6345 [details]
dmesg -s40000
Comment 3 Faris Xiao 2005-10-20 09:16:55 UTC
Created attachment 6346 [details]
dmidecode output
Comment 4 Faris Xiao 2005-10-20 09:17:48 UTC
Created attachment 6347 [details]
lspci -vv
Comment 5 Faris Xiao 2005-10-20 09:18:32 UTC
Created attachment 6348 [details]
cat /proc/interrupts
Comment 6 Faris Xiao 2005-10-20 09:25:38 UTC
Sorry!
My former report:

"Most recent kernel where this bug did not occur:2.6.13.4"

is error.This bug always take place.
Comment 7 Shaohua 2005-10-20 18:23:22 UTC
Any chance you can try the latest kernel like 2.6.14-rc4?
Can you remotely access the system after resume? or can you see the num lock 
led or caps lock led working?
Comment 8 Faris Xiao 2005-10-20 22:20:41 UTC
I had juse test the kernel 2.6.14-rc5

The following is my test step:
1.coming into  single runlevel, 

init 1

2.start sshd

3.use rmmod to delete the most kernel modules that don't use.

The lsmod output before the sleep:
Module                  Size  Used by
intel_agp              20380  1
agpgart                28104  1 intel_agp
usbcore               105344  1
e100                   33664  0
mii                     4608  1 e100
ext3                  117000  2
jbd                    52756  1 ext3
mbcache                 8196  1 ext3
ide_generic             1152  0 [permanent]
generic                 4100  0 [permanent]


4.echo mem > /sys/power/state

5.press Fn key to resume.

The result:
remotely access the system:OK
num lock led working:OK
caps lock led working:OK.

The LCD only display the one line at top:

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

I can't do anything more on this machine.

The bug still exist.
Comment 9 Shaohua 2005-10-20 22:27:42 UTC
>remotely access the system:OK
Can you get the dmesg remotely?
So your system actually resumed and you can access it after resume, but you 
just don't see anything in LCD?
Comment 10 Faris Xiao 2005-10-21 02:57:57 UTC
>remotely access the system:OK
Can you get the dmesg remotely?
Yes.Please see the attachment dmesg40000new.

So your system actually resumed and you can access it after resume, but you just
don't see anything in LCD?
Yes.
Comment 11 Faris Xiao 2005-10-21 02:58:48 UTC
Created attachment 6353 [details]
the dmesg output from the remote machine
Comment 12 Faris Xiao 2005-10-21 23:38:43 UTC
This bug is resolved by the following artical.

http://nshmyrev.narod.ru/ibm/ibm_r50e.html

Perhaps it is not a ACPI bug.Sorry!


Configuring acpi

ACPI mostly works. Moreover, with recent kernel ibm-acpi driver is automatically
loaded and provide access to light and some buttons. I am not using them though :)

Much more improtant function is suspend to RAM. To get it working you need to do
the following (make sure that you have acpid running)

Add vberestore option to i810 config section, note that there is no need to
disable 3d with DRI.

Section "Device"
	Identifier  "Videocard0"
	Driver      "i810"
	VendorName  "Videocard vendor"
	BoardName   "Intel 852"
	Option      "VBERestore" "true"
EndSection

Create /etc/acpi/events/lid.conf

event=button[/]lid
action=/etc/acpi/actions/sleep.sh

Create /etc/acpi/events/sleep.conf

event=button[/]sleep
action=/etc/acpi/actions/sleep.sh

Create /etc/acpi/actions/sleep.sh and give execution access rights to it.

#!/bin/bash

/bin/sync

/sbin/rmmod uhci-hcd
/sbin/rmmod ehci-hcd

/usr/bin/chvt 1

#logger "s3test: saving video state and PCI config space."
cat /proc/bus/pci/00/02.0 > /var/cache/video.config

#logger "s3test: entering state"
echo -n mem > /sys/power/state
#logger "s3test: back from state"

#logger "s3test: restoring PCI config space and video state."
cat /var/cache/video.config > /proc/bus/pci/00/02.0

#logger "s3test: removing temporary files."
rm -rf /var/cache/video.config

/usr/bin/chvt 7

/sbin/modprobe uhci-hcd
/sbin/modprobe ehci-hcd

#logger "s3test: success!"

After that you can reboot and try to press Fn + F4 to test sleep mode.
Comment 13 Shaohua 2005-10-23 18:22:55 UTC
Change the title. From your report, it's the video issue.

Note You need to log in before you can comment on or make changes to this bug.