Contribute
Register

How to wake on any keypress instead of power button press?

Status
Not open for further replies.
Joined
Aug 3, 2014
Messages
101
Motherboard
Thinkpad T440p
CPU
i7-4710MQ (replaced stock i5)
Graphics
HD4600
Mac
  1. MacBook
  2. MacBook Pro
Classic Mac
  1. Power Mac
  2. PowerBook
Mobile Phone
  1. Android
  2. Other
I have a number of laptops with wonky power buttons: you have to push them several times before anything happens, whether starting the system or waking it from sleep. For some strange reason, Linux sometimes needs a power button press to wake and other times just pressing a key will cause wake. In Sierra, nothing happens when you press a key with the system asleep, you have to press the power button.

Is there a way to change a DSDT method (Perhaps PWR, PWRB?) so that I can wake the system from pressing any keyboard key?

Code:
kextstat|grep -y acpiplat
   13    2 0xffffff7f84192000 0x60000    0x60000    com.apple.driver.AppleACPIPlatform (5.0) 65E05472-6AE7-3308-8CC8-FA6CB0DB2AEE <12 11 7 6 5 4 3 1>
kextstat|grep -y appleintelcpu
kextstat|grep -y applelpc
kextstat|grep -y applehda
   98    1 0xffffff7f83e49000 0x1d000    0x1d000    com.apple.driver.AppleHDAController (276.26) D0953002-6091-376F-8E0F-33B65F42CEF9 <97 96 77 12 7 6 5 4 3 1>
  121    0 0xffffff7f83fcb000 0xb4000    0xb4000    com.apple.driver.AppleHDA (276.26) 7611D43E-12FE-3228-A6D3-9C99A5D030CC <120 99 98 97 96 77 6 5 4 3 1>
Code:
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext AppleBacklightInjector.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext VoodooPS2Trackpad.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext VoodooPS2Mouse.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext VoodooPS2Keyboard.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext VoodooPS2Controller.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext SATA-100-series-unsupported.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext Lilu.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext IntelGraphicsFixup.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakePCIID.kext
kext-dev-mode allowing invalid signature -67013 0xFFFFFFFFFFFEFA3B for kext AppleMobileDevice.kext
kext-dev-mode allowing invalid signature -67030 0xFFFFFFFFFFFEFA2A for kext AppleHDAHardwareConfigDriver.kext
kext-dev-mode allowing invalid signature -67061 0xFFFFFFFFFFFEFA0B for kext AppleHDA.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext ACPIBatteryManager.kext
KernelCache ID: B7132912E78906D73CF2E4AC20042E7B
[/code
 

Attachments

  • ioreg.zip
    579.9 KB · Views: 82
  • RehabMan.zip
    43.4 KB · Views: 60
  • CLOVER.zip
    1.7 MB · Views: 68
I have a number of laptops with wonky power buttons: you have to push them several times before anything happens, whether starting the system or waking it from sleep. For some strange reason, Linux sometimes needs a power button press to wake and other times just pressing a key will cause wake. In Sierra, nothing happens when you press a key with the system asleep, you have to press the power button.

Is there a way to change a DSDT method (Perhaps PWR, PWRB?) so that I can wake the system from pressing any keyboard key?

Code:
kextstat|grep -y acpiplat
   13    2 0xffffff7f84192000 0x60000    0x60000    com.apple.driver.AppleACPIPlatform (5.0) 65E05472-6AE7-3308-8CC8-FA6CB0DB2AEE <12 11 7 6 5 4 3 1>
kextstat|grep -y appleintelcpu
kextstat|grep -y applelpc
kextstat|grep -y applehda
   98    1 0xffffff7f83e49000 0x1d000    0x1d000    com.apple.driver.AppleHDAController (276.26) D0953002-6091-376F-8E0F-33B65F42CEF9 <97 96 77 12 7 6 5 4 3 1>
  121    0 0xffffff7f83fcb000 0xb4000    0xb4000    com.apple.driver.AppleHDA (276.26) 7611D43E-12FE-3228-A6D3-9C99A5D030CC <120 99 98 97 96 77 6 5 4 3 1>
Code:
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext AppleBacklightInjector.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext VoodooPS2Trackpad.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext VoodooPS2Mouse.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext VoodooPS2Keyboard.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext VoodooPS2Controller.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext SATA-100-series-unsupported.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext Lilu.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext IntelGraphicsFixup.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakePCIID.kext
kext-dev-mode allowing invalid signature -67013 0xFFFFFFFFFFFEFA3B for kext AppleMobileDevice.kext
kext-dev-mode allowing invalid signature -67030 0xFFFFFFFFFFFEFA2A for kext AppleHDAHardwareConfigDriver.kext
kext-dev-mode allowing invalid signature -67061 0xFFFFFFFFFFFEFA0B for kext AppleHDA.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext ACPIBatteryManager.kext
KernelCache ID: B7132912E78906D73CF2E4AC20042E7B
[/code

What is the behavior in Windows 10?
 
Don't have Windows 10. It came with Ubuntu installed. I'm currently dual booting (Manjaro and Sierra).

I tried this this in config.plist:

Code:
<dict>
<key>Comment</key>
<string>change _OSI to XOSI, pair with SSDT-XOSI.aml</string>
<key>Find</key>
<data>X09TSQ==</data>
<key>Replace</key>
<data>WE9TSQ==</data>
</dict>

and put SSDT-XOSI.aml (built from https://github.com/RehabMan/OS-X-Clover-Laptop-Config/blob/master/hotpatch/SSDT-XOSI.dsl) in patches. Didn't help, neither built-in nor external USB keyboard causes wake.

It also says in Clover's documentation that this setting under Devices/USB might allow a USB keyboard to cause wake:

Code:
<key>Inject</key>
<true/>
<key>AddClockID</key>
<false/>

USB keyboard typing doesn't wake whether AddClockID is true or false.
 
Status
Not open for further replies.
Back
Top