Contribute
Register

Mapping ACPI controlled keys and adb keys for VoodooPS2Controller

Status
Not open for further replies.
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").
Thanks a lot.

It seems like I am confused at first stage. I wrote many RMDT.P1("XXX") in my LGPA method, which is the method for FX keys. But after I press F7, there's no clear message for me to trace the specific line of DSDT. (The output message is at above.) Also, there's no ACPIDebug output for F6. I don't know what to do next now.
 

Attachments

  • DSDT.aml
    146.4 KB · Views: 141
Thanks a lot.

It seems like I am confused at first stage. I wrote many RMDT.P1("XXX") in my LGPA method, which is the method for FX keys. But after I press F7, there's no clear message for me to trace the specific line of DSDT. (The output message is at above.) Also, there's no ACPIDebug output for F6. I don't know what to do next now.

DSDT is not patched to spoof a particular version of Windows when running "Darwin".
See OS Check Fix patches as per guide:
https://www.tonymacx86.com/threads/guide-patching-laptop-dsdt-ssdts.152573/
 
DSDT is not patched to spoof a particular version of Windows when running "Darwin".
See OS Check Fix patches as per guide:
https://www.tonymacx86.com/threads/guide-patching-laptop-dsdt-ssdts.152573/
Thanks for reply. I meet some new problems during the mapping.
I record the log result when I debug my PS2 code.(using origin Debug version of VoodooPS2Controller)
Code:
//Win
e05b=3a down
e05b=3a up

//F6
e05b=3a down
19=23 down
19=23 up
e05b=3a up

//F8
e05b=3a down
f=30 down
f=30 up
e05b=3a up
What should I do with those combinations?
I want to map F6 to video mirror and F8 to PrtScn, but I can't find their origin PS2 codes.
 
Last edited:
Thanks for reply. I meet some new problems during the mapping.
I record the log result when I debug my PS2 code.(using origin Debug version of VoodooPS2Controller)
Code:
//Win
e05b=3a down
e05b=3a up

//F6
e05b=3a down
19=23 down
19=23 up
e05b=3a up

//F8
e05b=3a down
f=30 down
f=30 up
e05b=3a up
What should I do with those combinations?
I want to map F6 to video mirror and F8 to PrtScn, but I can't find their origin PS2 codes.

Your keys are likely handled in ACPI.
Read here:
https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/
 
@RehabMan Hi, thank you for giving so many great advice to me.

In Notify(\_SB.PCI0.LPCB.PS2K, 0x0405), where does the value 0x0405 come from?

And I want to implement mirror key and PrtScrn key, where should I get the corresponding code for each key? My laptop’s keys are handled in ACPI.
 
In Notify(\_SB.PCI0.LPCB.PS2K, 0x0405), where does the value 0x0405 come from?

It's a combination of a make/brake code and a PS/2 scan code. The 0x04 sends make/brake for extended PS/2 codes as mentioned here and 05 is from e0 05 the default Dell "brightness down" key. That (e0 05) in turn maps to the Apple F14 key which handles the "Decrease Brightness" function by default.

And I want to implement mirror key and PrtScrn key, where should I get the corresponding code for each key?

The Voodoo PS2 kext maps the print screen key to the Apple F13 by default. You could open the Keyboard settings under System Preferences and go to Shortcuts/Screen Shots and try changing the assigned keys. Click on the current assignment and hit the Print Screen key. Otherwise you may need to use a custom mapping described here. The video mirror function might not work from my experience.

My laptop’s keys are handled in ACPI.

See the Brightness Keys section of the old laptop backlight patching guide.
 
Status
Not open for further replies.
Back
Top