Contribute
Register

Mapping ACPI controlled keys and adb keys for VoodooPS2Controller

Status
Not open for further replies.
Joined
Oct 31, 2014
Messages
14
Motherboard
HP Pavilion 14 v066BR
CPU
i7-4510U @ 2.0GHz
Graphics
Intel HD Graphics 4400
Mac
  1. MacBook Pro
Mobile Phone
  1. 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

  • MappingSSDT-DSDT.zip
    61.6 KB · Views: 249
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.
 
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

  • SSDT-8.dsl
    7.5 KB · Views: 217
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.
 
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.
 
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).
 
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, 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...
 
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

  • DSDT.aml
    146.4 KB · Views: 270
  • Trouble Shooting.zip
    5.8 MB · Views: 252
Last edited:
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").
 
Status
Not open for further replies.
Back
Top