Bug 252452 - Screen is black when resume from S3(suspend) on Lenovo T61
Summary: Screen is black when resume from S3(suspend) on Lenovo T61
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: hal
Version: 5.1
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: ---
: ---
Assignee: David Zeuthen
QA Contact: desktop-bugs@redhat.com
URL:
Whiteboard:
Depends On:
Blocks: 246139 410251 418031 442332
TreeView+ depends on / blocked
 
Reported: 2007-08-16 03:29 UTC by Jane Lv
Modified: 2018-10-19 22:25 UTC (History)
7 users (show)

Fixed In Version: RHBA-2008-0476
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-05-21 17:30:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Output of "lshal" on a test Lenovo T61. (111.27 KB, text/plain)
2007-11-05 15:01 UTC, Navid Sheikhol-Eslami
no flags Details
lshal output for this machine (119.02 KB, text/plain)
2007-12-13 10:40 UTC, austin
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2008:0476 0 normal SHIPPED_LIVE hal bug fix update 2008-05-20 14:20:50 UTC

Description Jane Lv 2007-08-16 03:29:04 UTC
Description of problem:
I tested the S3 suspend/resume on Lenovo T61 laptop (Intel Santa Rosa paltform)
with RHEL5.1-snapshot-1 x86_64 kernel.  The screen is in black when resuming 
from S3 suspend, while the system is alive and can be remotely logged in.



Version-Release number of selected component (if applicable):


How reproducible:
The way I was using to perform S3 suspend/resume is,append "acpi_sleep=s3_bios"
to linux boot parameter, use "pm-suspend" to suspend. It results in black 
screen when resuming.  But if I use "echo 'mem'> /sys/power/state" to suspend, 
resume is OK.


Steps to Reproduce:
1.
2.
3.
  
Actual results:
Resume results in black screen.

Expected results:
Resume can be successful.

Additional info:

Comment 1 bibo,mao 2007-08-23 06:59:11 UTC
I encounter similar problem, only that there is no "acpi_sleep=s3_bios"
parameter. My system works in init 3 level without X, screen is back when
resuming from ram by this command.
# pm-suspend 
But s2ram works well if adding one parameter
# pm-suspend --quirk-vbe-post

Jane, 
  can you try command "pm-suspend --quirk-s3-bios" if kernel parameter is added?

Comment 2 RHEL Program Management 2007-10-16 03:48:24 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 3 Navid Sheikhol-Eslami 2007-11-05 15:01:04 UTC
Created attachment 248231 [details]
Output of "lshal" on a test Lenovo T61.

The latest hal-0.5.8.1-26.el5 is using the following rule to activate the quirk
for T61's:

      <match key="system.hardware.version" string="766314G">

However, as shown in the attached "lshal" output, in my test hardware the
correct rule should be:

      <match key="system.hardware.version" prefix_ncase="ThinkPad T61">

Which does indeed correctly activate power_management.quirk.s3_bios on this
hardware.

-- Navid

Comment 5 Ben Levenson 2007-11-22 00:11:55 UTC
+ qa_ack for rhel-5.2

Comment 6 LiuHui 2007-11-22 09:53:00 UTC
(In reply to comment #3)
> Created an attachment (id=248231) [edit]
> Output of "lshal" on a test Lenovo T61.
> 
> The latest hal-0.5.8.1-26.el5 is using the following rule to activate the quirk
> for T61's:
> 
>       <match key="system.hardware.version" string="766314G">
> 
> However, as shown in the attached "lshal" output, in my test hardware the
> correct rule should be:
> 
>       <match key="system.hardware.version" prefix_ncase="ThinkPad T61">
> 
> Which does indeed correctly activate power_management.quirk.s3_bios on this
> hardware.
> 
> -- Navid
Will hal-0.5.8.1-26.el5 be included in rhel-5.2? If so, I think we can verify
this bug after rhel-5.2 is released. If we should verify this bug now, where can
I find hal-0.5.8.1-26.el5?


Comment 7 Geoff Gustafson 2007-12-06 18:52:30 UTC
Hui, you can just ask me for stuff like that. I've been authorized to send you
the package, so I will do so.


Comment 9 austin 2007-12-13 10:40:58 UTC
Created attachment 287311 [details]
lshal output for this machine

Comment 10 austin 2007-12-13 10:42:52 UTC
I had tried the latest hal-0.5.8.1-26.el5. But this issue didn't been fixed 
yet.
When append kernel parameter: 
acpi_sleep=s3_bios, "echo 'mem'> /sys/power/state" can suspend and resume 
successfully, but both pm-suspend and 'suspend' button in 'system' menu will 
lead to failure of resume.

If don't append acpi_sleep=s3_bios to kernel parameter, 'pm-suspend --quirk-s3-
bios ' can resume well, but both pm-suspend and 'suspend' button in 'system' 
menu will lead to failure of resume.


Comment 11 Jan Wildeboer 2007-12-22 13:36:10 UTC
This works:

In /usr/share/hal/fdi/information/10freedesktop/20-video-quirk-pm-el5-lenovo.fdi

add:

      <!-- X61 -->
      <match key="system.hardware.product" prefix="7674">
        <merge key="power_management.quirk.s3_bios" type="bool">true</merge>
        <merge key="power_management.quirk.s3_mode" type="bool">true</merge>
      </match>

Resume now works. But sometimes the wireless card is not working.

ifup eth1 and service NetworkManager restart are my current workaround.

Jan

Comment 12 Lubomir Kundrak 2007-12-22 13:46:28 UTC
What's the rationale behind using numerical product number prefixes such as
7674, 7575, ... and not textural values of system.product or
system.hardware.version? There is a really huge and growing number of the
numerical versions (consult IBM website) and we pretty much lost track of most
IBM ThinkPad hardware I've seen. Is that the different video hardware, or
something like that? Is there a good way to prevent the quirk databasae from
being obsoleted as quickly as it currently happens?

Comment 14 David Zeuthen 2008-01-02 20:00:19 UTC
I've added these two entries

      <!-- X61 (https://bugzilla.redhat.com/show_bug.cgi?id=252452#c11) -->
      <match key="system.hardware.product" prefix="7674">
        <merge key="power_management.quirk.s3_bios" type="bool">true</merge>
        <merge key="power_management.quirk.s3_mode" type="bool">true</merge>
      </match>
      <!-- T61 (https://bugzilla.redhat.com/show_bug.cgi?id=252452#c10) -->
      <match key="system.hardware.product" prefix="7658">
        <merge key="power_management.quirk.s3_bios" type="bool">true</merge>
        <merge key="power_management.quirk.s3_mode" type="bool">true</merge>
      </match>

* Wed Jan 02 2008 David Zeuthen <davidz> - 0.5.8.1-31%{?dist}
- Add some more	quirks
- Resolves: #252452


Comment 15 Lubomir Kundrak 2008-01-02 20:10:49 UTC
David: My T61 has system.hardware.product = '6464Y1R' (intel graphic chip), has
the same problem and same fix (with different numbers) work. Why don't we do a
match for system.product or system.hardware.version?

Comment 16 David Zeuthen 2008-01-02 20:22:03 UTC
(In reply to comment #15)
> David: My T61 has system.hardware.product = '6464Y1R' (intel graphic chip), has
> the same problem and same fix (with different numbers) work. Why don't we do a
> match for system.product or system.hardware.version?

Simply because keying of the product name is not precise enough. See the hal ml
archives for details.

Comment 17 austin 2008-01-03 02:04:04 UTC
(In reply to comment #14)
> I've added these two entries
>       <!-- X61 (https://bugzilla.redhat.com/show_bug.cgi?id=252452#c11) -->
>       <match key="system.hardware.product" prefix="7674">
>         <merge key="power_management.quirk.s3_bios" type="bool">true</merge>
>         <merge key="power_management.quirk.s3_mode" type="bool">true</merge>
>       </match>
>       <!-- T61 (https://bugzilla.redhat.com/show_bug.cgi?id=252452#c10) -->
>       <match key="system.hardware.product" prefix="7658">
>         <merge key="power_management.quirk.s3_bios" type="bool">true</merge>
>         <merge key="power_management.quirk.s3_mode" type="bool">true</merge>
>       </match>
> * Wed Jan 02 2008 David Zeuthen <davidz> - 0.5.8.1-31%{?dist}
> - Add some more	quirks
> - Resolves: #252452

David, for my type (7658), it should be fixed in hal 0.5.8.1-31? Where can I 
get this package for verifying? Thanks.

Comment 18 Geoff Gustafson 2008-01-11 18:42:21 UTC
I provided -32 packages to Austin for testing.

Comment 19 austin 2008-01-14 04:51:48 UTC
I used the latest hal package hal-0.5.8.1-32.el5.x86_64.rpm and hal-gnome-
0.5.8.1-32.el5.x86_64.rpm, it still doesn't wotk (After I use 'suspend' button 
from menu to suspend the system, and after resume, the screen is balck yet.)

After checking lshal (you can get it also from above comments#9), it seemd the 
product type should be "7658CTO" rather than "7658". After revise the string 
in /usr/share/hal/fdi/information/10freedesktop/20-video-quirk-pm-el5-
lenovo.fdi from "7658" to "7658CTO", the s3 can work normally now. 

Thanks!

Comment 20 David Zeuthen 2008-01-17 19:06:35 UTC
(In reply to comment #19)
> I used the latest hal package hal-0.5.8.1-32.el5.x86_64.rpm and hal-gnome-
> 0.5.8.1-32.el5.x86_64.rpm, it still doesn't wotk (After I use 'suspend' button 
> from menu to suspend the system, and after resume, the screen is balck yet.)
> 
> After checking lshal (you can get it also from above comments#9), it seemd the 
> product type should be "7658CTO" rather than "7658". After revise the string 
> in /usr/share/hal/fdi/information/10freedesktop/20-video-quirk-pm-el5-
> lenovo.fdi from "7658" to "7658CTO", the s3 can work normally now. 
> 
> Thanks!

I've updated this in hal-0.5.8.1-33.el5.

Comment 25 austin 2008-04-09 08:01:18 UTC
Another T61 has the same issue, product type is:7661W1P
Add the related entry in /usr/share/hal/fdi/information/10freedesktop/20-video-
quirk-pm-el5-lenovo.fdi, it was fixed also. 
If possible, maybe you can add 7661CTO in hal also.
Thanks.

Comment 28 David Zeuthen 2008-04-10 18:46:27 UTC
So this is what we want to add?

     <-- https://bugzilla.redhat.com/show_bug.cgi?id=252452#c24 -->
     <match key="system.hardware.product" prefix="6463WFX">
       <merge key="power_management.quirk.s3_bios" type="bool">true</merge>
       <merge key="power_management.quirk.s3_mode" type="bool">true</merge>
     </match>

     <-- https://bugzilla.redhat.com/show_bug.cgi?id=252452#c25 -->
     <match key="system.hardware.product" prefix="7661W1P">
       <merge key="power_management.quirk.s3_bios" type="bool">true</merge>
       <merge key="power_management.quirk.s3_mode" type="bool">true</merge>
     </match>

     <-- https://bugzilla.redhat.com/show_bug.cgi?id=252452#c26 -->
     <match key="system.hardware.product" prefix="8895Y13">
       <merge key="power_management.quirk.s3_bios" type="bool">true</merge>
       <merge key="power_management.quirk.s3_mode" type="bool">true</merge>
     </match>


Comment 29 Zack Cerza 2008-04-10 20:08:57 UTC
That looks right, yes.

Comment 30 David Zeuthen 2008-04-10 22:40:00 UTC
In hal-0.5.8.1-35.el5

Comment 31 Marko Karg 2008-04-11 09:00:50 UTC
Guys,

customer just added an product type that also should be included (it's a Lenovo
x61):

7673Y2U


Comment 32 David Zeuthen 2008-04-11 14:53:59 UTC
(In reply to comment #31)
> Guys,
> 
> customer just added an product type that also should be included (it's a Lenovo
> x61):
> 
> 7673Y2U
> 

It's a little bit late in the game for this. Please file a new bug for this (and
get the appropriate exceptions from PM).

Comment 35 errata-xmlrpc 2008-05-21 17:30:16 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2008-0476.html



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