Contribute
Register

Mapping ACPI controlled keys and adb keys for VoodooPS2Controller

Joined
Oct 31, 2014
Messages
14
Motherboard
HP Pavilion 14 v066BR
CPU
i7-4510U @ 2.0GHz
Graphics
Intel HD Graphics 4400
Mac
MacBook Pro
Mobile Phone
Android
Hello , I'm working on my hackintosh implementing key mapping for voodoops2controller. I have trouble understanding, how can I do F4 = mirror video and F12 = Airplane mode? As for adb keys to F1 = mission control, alt gr = alt gr and print screen(not working). I appreciate the help or tip.

ACPI Debug/EC queries:
- F4 = _Q0D
- F12 = _Q15
 

Attachments

RehabMan

Moderator
Joined
May 3, 2012
Messages
191,259
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
Hello , I'm working on my hackintosh implementing key mapping for voodoops2controller. I have trouble understanding, how can I do F4 = mirror video and F12 = Airplane mode? As for adb keys to F1 = mission control, alt gr = alt gr and print screen(not working). I appreciate the help or tip.

ACPI Debug/EC queries:
- F4 = _Q0D
- F12 = _Q15
You would need to have your _Q0D and _Q15 methods use Notify to generate a PS2 code that is then mapped to an ADB code.
 
Joined
Oct 31, 2014
Messages
14
Motherboard
HP Pavilion 14 v066BR
CPU
i7-4510U @ 2.0GHz
Graphics
Intel HD Graphics 4400
Mac
MacBook Pro
Mobile Phone
Android
I managed to implement the Mirror video searching in their repositories. I did not understand how to get the numbers 0x205 / 0x285. I am having trouble activating the print screen key and Airplane mode key. Is there any tutorial or information to help? thanks support.

Output of debug print screen:
Jun 25 03:41:48 MacBook-Pro-de-Marcos kernel[0]: ApplePS2Keyboard: sending key e037=0, 0=69 down
Jun 25 03:41:48 MacBook-Pro-de-Marcos kernel[0]: ApplePS2Keyboard: sending key e037=0, 0=69 up
 

Attachments

RehabMan

Moderator
Joined
May 3, 2012
Messages
191,259
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
I managed to implement the Mirror video searching in their repositories. I did not understand how to get the numbers 0x205 / 0x285. I am having trouble activating the print screen key and Airplane mode key. Is there any tutorial or information to help? thanks support.

Output of debug print screen:
Jun 25 03:41:48 MacBook-Pro-de-Marcos kernel[0]: ApplePS2Keyboard: sending key e037=0, 0=69 down
Jun 25 03:41:48 MacBook-Pro-de-Marcos kernel[0]: ApplePS2Keyboard: sending key e037=0, 0=69 up
You need to debug your EC queries with ACPIDebug.kext. Then you can send the PS2 codes from the EC query methods with Notify.

Note: 0x02xx (with separate make/break) are deprecated in favor of 0x04xx which requires only one Notify and sends both make/break.
 
Joined
Oct 31, 2014
Messages
14
Motherboard
HP Pavilion 14 v066BR
CPU
i7-4510U @ 2.0GHz
Graphics
Intel HD Graphics 4400
Mac
MacBook Pro
Mobile Phone
Android
Hello. I have tried to operate the print screen button , but without success. I did tests for ps2 code and adb code . I Tried
"e037=e037", "0=e037"; "e037=69", "0=69"; "e037=69"; "0=80", but without success.
Would you help me? The print screen button has two exits in debug log: e037 and 0.
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
191,259
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
Hello. I have tried to operate the print screen button , but without success. I did tests for ps2 code and adb code . I Tried
"e037=e037", "0=e037"; "e037=69", "0=69"; "e037=69"; "0=80", but without success.
Would you help me? The print screen button has two exits in debug log: e037 and 0.
PrtSc is a special case within the keyboard driver in my kext. The e037 code is always assigned to trackpad enable/disable.

If you want PrtSc to be assigned to something else, you must re-assign at the PS2 level ("Custom PS2 Map"). I do this in my u430 repo in order to assign PrtSc to the "rubber band" screen capture function (by assigning e037 to a new PS2 code, which eventually maps to F15, which I then assign in SysPrefs->Keyboard->Keyboard shortcuts to my desired screen capture function).
 
Joined
Oct 31, 2014
Messages
14
Motherboard
HP Pavilion 14 v066BR
CPU
i7-4510U @ 2.0GHz
Graphics
Intel HD Graphics 4400
Mac
MacBook Pro
Mobile Phone
Android
Rehabman, print screen works now. I finish my hp hackbook. I think now he is based 95% in yours repo. Thanks per support and great kexts, patches and others. Thank you man.
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
191,259
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
Rehabman, print screen works now. I finish my hp hackbook. I think now he is based 95% in yours repo. Thanks per support and great kexts, patches and others. Thank you man.
Enjoy...
 
Joined
Apr 15, 2018
Messages
65
Motherboard
Mi NoteBook Pro 15.6''
CPU
Intel® Core™ i7-8550U
Graphics
Intel UHD Graphics 620, 1920x1080
Mac
MacBook Pro
Mobile Phone
Android
Hi, Rehabman. Thanks for your help on my brightness key. I meet some new troubles on mapping other functions.

I am using latest VoodooPS2Controller from your gitHub. Here are problems I met during mapping hot key:
1. When I press F6(which is supposed to be the mirror key), the prtScn function calls in. Can the prtScn function be mapped to F11? Also, there's no output for ACPIDebug in system.log when I press F6, which is wired.
2. I also want to map Screenshot function to F7, but I got lost in DSDT, can you help have a look on it? I will post my modified DSDT and output message.

This is what I got when I press F7.
Code:
2018-06-24 17:59:57.373730-0700  localhost kernel[0]: (ACPIDebug) <ACPIDebug`org_rehabman_ACPIDebug::PrintTraces()> ACPIDebug: "GPE _L16 enter"
2018-06-24 17:59:57.374088-0700  localhost kernel[0]: (ACPIDebug) <ACPIDebug`org_rehabman_ACPIDebug::PrintTraces()> ACPIDebug: "Local1 = 1"
2018-06-24 17:59:57.374431-0700  localhost kernel[0]: (ACPIDebug) <ACPIDebug`org_rehabman_ACPIDebug::PrintTraces()> ACPIDebug: "Arg0 = P80H"
2018-06-24 17:59:57.398830-0700  localhost kernel[0]: (ACPIDebug) <ACPIDebug`org_rehabman_ACPIDebug::PrintTraces()> ACPIDebug: "Local6 != Ones"
2018-06-24 17:59:57.399184-0700  localhost kernel[0]: (ACPIDebug) <ACPIDebug`org_rehabman_ACPIDebug::PrintTraces()> ACPIDebug: "LEVN = Local1"
2018-06-24 17:59:57.399530-0700  localhost kernel[0]: (ACPIDebug) <ACPIDebug`org_rehabman_ACPIDebug::PrintTraces()> ACPIDebug: "LEVN = Local1"
2018-06-24 17:59:57.399873-0700  localhost kernel[0]: (ACPIDebug) <ACPIDebug`org_rehabman_ACPIDebug::PrintTraces()> ACPIDebug: "GPE _L16 exit"
 

Attachments

Last edited:

RehabMan

Moderator
Joined
May 3, 2012
Messages
191,259
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
Hi, Rehabman. Thanks for your help on my brightness key. I meet some new troubles on mapping other functions.

I am using latest VoodooPS2Controller from your gitHub. Here are problems I met during mapping hot key:
1. When I press F6(which is supposed to be the mirror key), the prtScn function calls in. Can the prtScn function be mapped to F11? Also, there's no output for ACPIDebug in system.log when I press F6, which is wired.
2. I also want to map Screenshot function to F7, but I got lost in DSDT, can you help have a look on it? I will post my modified DSDT and output message.

This is what I got when I press F7.
Code:
2018-06-24 17:59:57.373730-0700  localhost kernel[0]: (ACPIDebug) <ACPIDebug`org_rehabman_ACPIDebug::PrintTraces()> ACPIDebug: "GPE _L16 enter"
2018-06-24 17:59:57.374088-0700  localhost kernel[0]: (ACPIDebug) <ACPIDebug`org_rehabman_ACPIDebug::PrintTraces()> ACPIDebug: "Local1 = 1"
2018-06-24 17:59:57.374431-0700  localhost kernel[0]: (ACPIDebug) <ACPIDebug`org_rehabman_ACPIDebug::PrintTraces()> ACPIDebug: "Arg0 = P80H"
2018-06-24 17:59:57.398830-0700  localhost kernel[0]: (ACPIDebug) <ACPIDebug`org_rehabman_ACPIDebug::PrintTraces()> ACPIDebug: "Local6 != Ones"
2018-06-24 17:59:57.399184-0700  localhost kernel[0]: (ACPIDebug) <ACPIDebug`org_rehabman_ACPIDebug::PrintTraces()> ACPIDebug: "LEVN = Local1"
2018-06-24 17:59:57.399530-0700  localhost kernel[0]: (ACPIDebug) <ACPIDebug`org_rehabman_ACPIDebug::PrintTraces()> ACPIDebug: "LEVN = Local1"
2018-06-24 17:59:57.399873-0700  localhost kernel[0]: (ACPIDebug) <ACPIDebug`org_rehabman_ACPIDebug::PrintTraces()> ACPIDebug: "GPE _L16 exit"
I don't know what you mean by "the prtScn function calls in".
Refer to my u430 repo for ideas on mapping keys.
(hint: use Notify to send a unique PS2 code, then map via "Custom ADB Map").
 
Top