Bug 5746 - bad S3 state detection
Summary: bad S3 state detection
Status: REJECTED INVALID
Alias: None
Product: ACPI
Classification: Unclassified
Component: ACPICA-Core (show other bugs)
Hardware: i386 Linux
: P2 low
Assignee: acpi_aml-interpreter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-14 22:21 UTC by Pavel Kysilka
Modified: 2006-09-28 13:21 UTC (History)
0 users

See Also:
Kernel Version: 2.6.15-rc1
Subsystem:
Regression: ---
Bisected commit-id:


Attachments

Description Pavel Kysilka 2005-12-14 22:21:09 UTC
Most recent kernel where this bug did not occur: 
Distribution: Debian testing
Hardware Environment: Intel D865GBF motherboard, P4 2.6.Ghz
Software Environment: acpid,pm-tools
Problem Description: ACPI parser do not detect S3 state

I have Intel D865GBF motherboard.
url: http://www.intel.com/design/motherbd/bf/bf_documentation.htm

Kernel do not detect S3 sleep capability.

Nov  8 05:02:37 prog3 kernel: ACPI: (supports S0 S1 S4 S5) 


I look in the dsdt table and recompile it. No error and no warnings.
See bug #5602 for more info.

------------------------------

^@^H\_S0_^R
^D
^@
^@
^@
^@ ^VSS1_^H\_S1_^R
^D
^A
^@
^@
^@ ^VSS3_^H\S3__^R

         ^^^^^^^^^^^^^

^D
^E
^@
^@
^@ ^VSS4_^H\_S4_^R
^D
^F
^@
^@
^@^H\_S5_^R

--------- dsdt.dat ---------------------

I look in the acpi_source:
/usr/src/linux-2.6.15-rc1/drivers/acpi/utilities$ vim utglobal.c

const char *acpi_gbl_sleep_state_names[ACPI_S_STATE_COUNT] = {
        "\\_S0_",
        "\\_S1_",
        "\\_S2_",
        "\\_S3_",

      ^^^^^^^^^^^^^^^^^

        "\\_S4_",
        "\\_S5_"
};

------------ dsdt.dsl ----------------------

      
    If (SS3)
    {
        Name (\S3, Package (0x04)

    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

        {
            0x05, 
            0x00,
            0x00,
            0x00
        })
    }   

    If (SS4)
    {   
        Name (\_S4, Package (0x04)
        {
            0x06,
            0x00,
            0x00,
            0x00
        })
    }




--------------------------------------------

DSDT table and more information are there:

url: http://bugme.osdl.org/show_bug.cgi?id=5602 

I am not acpi and kernel programmer. I only look, how parser works.


Steps to reproduce: Boot the PC.
Comment 1 Pavel Machek 2005-12-15 10:40:01 UTC
What makes you think your machine supports acpi s3?
Comment 2 Pavel Kysilka 2005-12-16 02:06:03 UTC
Motherboard support S3 sleep state.

Technicall documentation of motherboard:

http://developer.intel.com/design/motherbd/bf/bf_inst.htm#9.0


Practically I make this patch:

prog3:/usr/src/linux-2.6.15-rc5# diff -Nrub
drivers/acpi/utilities/utglobal.c.orig drivers/acpi/utilities/utglobal.c 
--- drivers/acpi/utilities/utglobal.c.orig      2005-12-16 11:03:53.000000000 +0100
+++ drivers/acpi/utilities/utglobal.c   2005-12-16 09:48:40.000000000 +0100
@@ -168,7 +168,7 @@
        "\\_S0_",
        "\\_S1_",
        "\\_S2_",
-       "\\_S3_",
+       "\\S3__",
        "\\_S4_",
        "\\_S5_"
 };

and it works with error.

echo mem > /sys/power/state  

--> PC is suspended.

I push key and pc wakes. I see blank screen. I must restart PC.
I will be looking in next days for any suspend script (modules unload and etc.)
and i will be sendind more info.
Comment 3 Pavel Kysilka 2005-12-17 06:24:58 UTC
Problem resolved. My fault, but expirience.

I changed in BIOS this settings:

Power->ACPI->ACPI Suspend State: S1 --> S3

and there is difference with dsdt table:

prog3:~/acpi_changes# diff -Nru dsdt.dsl ../acpi_table/dsdt.dsl 
--- dsdt.dsl    2005-12-17 15:24:59.000000000 +0100
+++ ../acpi_table/dsdt.dsl      2005-12-14 16:05:59.000000000 +0100
@@ -2,7 +2,7 @@
  * Intel ACPI Component Architecture
  * AML Disassembler version 20051117
  *
- * Disassembly of dsdt.dat, Sat Dec 17 15:24:59 2005
+ * Disassembly of dsdt.dat, Wed Dec 14 16:05:59 2005
  */
 DefinitionBlock ("DSDT.aml", "DSDT", 1, "INTEL ", "D865GBF ", 0x00000001)
 {
@@ -4612,7 +4612,7 @@
 
     If (SS3)
     {
-        Name (\_S3, Package (0x04)
+        Name (\S3, Package (0x04)
         {
             0x05, 
             0x00, 


ACPI now report S3 support.

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