Patchwork [rfc,seabios,1/3] wakeup: kbd & mouse

login
register
mail settings
Submitter Gerd Hoffmann
Date July 17, 2012, 12:31 p.m.
Message ID <1342528262-11548-2-git-send-email-kraxel@redhat.com>
Download mbox | patch
Permalink /patch/171419/
State New
Headers show

Comments

Gerd Hoffmann - July 17, 2012, 12:31 p.m.
Windup gpe bits 0x08 (keyboard) and 0x09 (mouse) for s3 wakeup.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 src/acpi-dsdt.dsl |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

Patch

diff --git a/src/acpi-dsdt.dsl b/src/acpi-dsdt.dsl
index 2060686..93d0b3d 100644
--- a/src/acpi-dsdt.dsl
+++ b/src/acpi-dsdt.dsl
@@ -372,6 +372,11 @@  DefinitionBlock (
                     })
                     Return (TMP)
                 }
+                /* Power Resources for Wake */
+                Name(_PRW, Package(2) {
+                    0x08,  // GPE bit
+                    0x03,  // S3
+                })
             }
 
 	    /* PS/2 mouse */
@@ -391,6 +396,11 @@  DefinitionBlock (
                     })
                     Return (TMP)
                 }
+                /* Power Resources for Wake */
+                Name(_PRW, Package(2) {
+                    0x09,  // GPE bit
+                    0x03,  // S3
+                })
             }
 
 	    /* PS/2 floppy controller */
@@ -775,9 +785,11 @@  DefinitionBlock (
             Return(0x01)
         }
         Method(_L08) {
+            Notify(\_SB.PCI0.ISA.KBD, 0x80)
             Return(0x01)
         }
         Method(_L09) {
+            Notify(\_SB.PCI0.ISA.MOU, 0x80)
             Return(0x01)
         }
         Method(_L0A) {