Skip to content

Commit

Permalink
fix lid sleep problem for HP ProBook series (ignore spurious e0e5); a…
Browse files Browse the repository at this point in the history
…dd SSDT-HPFixLidSleep.dsl for others; bump version 1.8.29
  • Loading branch information
RehabMan committed Nov 30, 2017
1 parent d81722c commit 26e6766
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 6 deletions.
4 changes: 2 additions & 2 deletions SSDT-Disable_DynamicEWMode.dsl
@@ -1,7 +1,7 @@
DefinitionBlock ("", "SSDT", 2, "hack", "ps2", 0)
{
External(_SB.PCI0.LPCB.PS2K, DeviceObj)
Scope (_SB.PCI0.LPCB.PS2K)
Scope(_SB.PCI0.LPCB.PS2K)
{
// overrides for VoodooPS2 configuration...
Name(RMCF, Package()
Expand All @@ -13,4 +13,4 @@ DefinitionBlock ("", "SSDT", 2, "hack", "ps2", 0)
})
}
}
//EOF
//EOF
4 changes: 2 additions & 2 deletions SSDT-Enable_DynamicEWMode.dsl
@@ -1,7 +1,7 @@
DefinitionBlock ("", "SSDT", 2, "hack", "ps2", 0)
{
External(_SB.PCI0.LPCB.PS2K, DeviceObj)
Scope (_SB.PCI0.LPCB.PS2K)
Scope(_SB.PCI0.LPCB.PS2K)
{
// overrides for VoodooPS2 configuration...
Name(RMCF, Package()
Expand All @@ -13,4 +13,4 @@ DefinitionBlock ("", "SSDT", 2, "hack", "ps2", 0)
})
}
}
//EOF
//EOF
23 changes: 23 additions & 0 deletions SSDT-HP-FixLidSleep.dsl
@@ -0,0 +1,23 @@
// SSDT-HP-FixLidSleep.dsl
// Fix for LID sleep on certain HP computers.
// Make sure you verify _SB.PCI0.LPCB.PS2K ACPI path.
DefinitionBlock ("", "SSDT", 2, "hack", "ps2", 0)
{
External(_SB.PCI0.LPCB.PS2K, DeviceObj)
Scope(_SB.PCI0.LPCB.PS2K)
{
// overrides for VoodooPS2 configuration...
Name(RMCF, Package()
{
"Keyboard", Package()
{
"Custom PS2 Map", Package()
{
Package(){},
"e005=0", // nullify ps2 code 'e0 05' to prevent keygen at lid close
},
},
})
}
}
//EOF
23 changes: 23 additions & 0 deletions SSDT-PrtSc-F13.dsl
@@ -0,0 +1,23 @@
// This sample shows how to remap the PrtSc key to F13
// F13, for example, could then be mapped to one of the image capture functions
// via SysPrefs->Keyboard->Shortcuts
DefinitionBlock ("", "SSDT", 2, "hack", "ps2", 0)
{
External(_SB.PCI0.LPCB.PS2K, DeviceObj)
Scope(_SB.PCI0.LPCB.PS2K)
{
// overrides for VoodooPS2 configuration...
Name(RMCF, Package()
{
"Keyboard", Package()
{
"Custom PS2 Map", Package()
{
Package(){},
"e037=64", // PrtSc=F13
},
},
})
}
}
//EOF
12 changes: 10 additions & 2 deletions VoodooPS2Controller.xcodeproj/project.pbxproj
Expand Up @@ -42,6 +42,8 @@
84EB0AE516F0AD9600016108 /* ApplePS2MouseDevice.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 84833FA0161B627D00845294 /* ApplePS2MouseDevice.cpp */; };
84F424E3161B59E500777765 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 84F424C3161B593D00777765 /* Cocoa.framework */; };
84F424E4161B59E500777765 /* PreferencePanes.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 84F424C5161B593D00777765 /* PreferencePanes.framework */; };
ED1C95C61F9B88EF00CAFCA3 /* SSDT-PrtSc-F13.dsl in Resources */ = {isa = PBXBuildFile; fileRef = ED1C95C51F9B88EF00CAFCA3 /* SSDT-PrtSc-F13.dsl */; };
EDD970FE1FD0B826004CCFFD /* SSDT-HP-FixLidSleep.dsl in Resources */ = {isa = PBXBuildFile; fileRef = EDD970FD1FD0B826004CCFFD /* SSDT-HP-FixLidSleep.dsl */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
Expand Down Expand Up @@ -111,9 +113,11 @@
84F424D4161B593D00777765 /* VoodooPS2synapticsPane.tiff */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = VoodooPS2synapticsPane.tiff; sourceTree = "<group>"; };
84F424E2161B59E500777765 /* VoodooPS2synapticsPane.prefPane */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = VoodooPS2synapticsPane.prefPane; sourceTree = BUILT_PRODUCTS_DIR; };
84F424FB161B5A4900777765 /* synapticsconfigload */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = synapticsconfigload; sourceTree = BUILT_PRODUCTS_DIR; };
ED1C95C51F9B88EF00CAFCA3 /* SSDT-PrtSc-F13.dsl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "SSDT-PrtSc-F13.dsl"; sourceTree = "<group>"; };
ED5759741D44FBA50069DF9F /* SSDT-KEY-DELL-WN09.dsl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "SSDT-KEY-DELL-WN09.dsl"; sourceTree = "<group>"; };
ED7E45DF1CFB35EE00ED2FB8 /* SSDT-Enable_DynamicEWMode.dsl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "SSDT-Enable_DynamicEWMode.dsl"; sourceTree = "<group>"; };
ED7E45E01CFB35EE00ED2FB8 /* SSDT-Disable_DynamicEWMode.dsl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "SSDT-Disable_DynamicEWMode.dsl"; sourceTree = "<group>"; };
EDD970FD1FD0B826004CCFFD /* SSDT-HP-FixLidSleep.dsl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "SSDT-HP-FixLidSleep.dsl"; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -183,6 +187,8 @@
ED7E45DF1CFB35EE00ED2FB8 /* SSDT-Enable_DynamicEWMode.dsl */,
ED7E45E01CFB35EE00ED2FB8 /* SSDT-Disable_DynamicEWMode.dsl */,
ED5759741D44FBA50069DF9F /* SSDT-KEY-DELL-WN09.dsl */,
ED1C95C51F9B88EF00CAFCA3 /* SSDT-PrtSc-F13.dsl */,
EDD970FD1FD0B826004CCFFD /* SSDT-HP-FixLidSleep.dsl */,
84833FC0161B636900845294 /* Common */,
84167818161B55B2002C60E6 /* VoodooPS2Controller */,
8416782E161B5613002C60E6 /* VoodooPS2Keyboard */,
Expand Down Expand Up @@ -596,6 +602,8 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
ED1C95C61F9B88EF00CAFCA3 /* SSDT-PrtSc-F13.dsl in Resources */,
EDD970FE1FD0B826004CCFFD /* SSDT-HP-FixLidSleep.dsl in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -811,7 +819,7 @@
GCC_WARN_UNUSED_VARIABLE = YES;
"LLVM_LTO[arch=x86_64]" = YES;
MACOSX_DEPLOYMENT_TARGET = 10.6;
MODULE_VERSION = 1.8.28;
MODULE_VERSION = 1.8.29;
"OTHER_LDFLAGS[arch=x86_64]" = "-dead_strip";
PRODUCT_NAME = VoodooPS2Controller;
SDKROOT = macosx10.8;
Expand All @@ -836,7 +844,7 @@
GCC_WARN_UNUSED_VARIABLE = YES;
"LLVM_LTO[arch=x86_64]" = YES;
MACOSX_DEPLOYMENT_TARGET = 10.6;
MODULE_VERSION = 1.8.28;
MODULE_VERSION = 1.8.29;
"OTHER_LDFLAGS[arch=x86_64]" = "-dead_strip";
PRODUCT_NAME = VoodooPS2Controller;
SDKROOT = macosx10.8;
Expand Down
8 changes: 8 additions & 0 deletions VoodooPS2Keyboard/VoodooPS2Keyboard-Info.plist
Expand Up @@ -99,6 +99,10 @@
<dict>
<key>SleepPressTime</key>
<integer>3000</integer>
<key>Custom PS2 Map</key>
<array>
<string>e005=0</string>
</array>
<key>Function Keys Standard</key>
<array>
<string>;The following 12 items map Fn+fkeys to Fn+fkeys</string>
Expand Down Expand Up @@ -162,6 +166,10 @@
<dict>
<key>SleepPressTime</key>
<integer>3000</integer>
<key>Custom PS2 Map</key>
<array>
<string>e005=0</string>
</array>
<key>Custom ADB Map</key>
<array>
<string>46=4d;scroll =&gt; Previous-track</string>
Expand Down

0 comments on commit 26e6766

Please sign in to comment.