Contribute
Register

[solved] how to remap brightness control keys to Fn+Up and Fn+Down?

vyg

Joined
Oct 26, 2017
Messages
4
Motherboard
Lenovo G470-Chameleon
CPU
i5-2450M/HW65
Graphics
HD 3000, 1366x768
Got it. _Q11 is dimmer and _Q12 is brighter. Thanks, RehabMan.
What do "0x0205" "0x0285" "0x0206" "0x0286" mean ? Do they differ from machine to machine ? I used the patch on my Lenovo G470, but it didn't work. I have determined that _Q11 is dimmer and _Q12 is brighter on my machine as well.
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
188,161
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
What do "0x0205" "0x0285" "0x0206" "0x0286" mean ?

They correlate to PS2 make/break keycodes (e005/e085/e006/e086).
Note that it is better to use the "one shot" codes (0x0405/0x0406). The one shot codes allow for both make/break to be sent with a single Notify.


Do they differ from machine to machine ?

Not really.

I used the patch on my Lenovo G470, but it didn't work. I have determined that _Q11 is dimmer and _Q12 is brighter on my machine as well.

No "Problem Reporting" files attached.
Read FAQ, "Problem Reporting" again. Carefully. Attach all requested files/output.
https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/
 

vyg

Joined
Oct 26, 2017
Messages
4
Motherboard
Lenovo G470-Chameleon
CPU
i5-2450M/HW65
Graphics
HD 3000, 1366x768
They correlate to PS2 make/break keycodes (e005/e085/e006/e086).
Note that it is better to use the "one shot" codes (0x0405/0x0406). The one shot codes allow for both make/break to be sent with a single Notify.




Not really.



No "Problem Reporting" files attached.
Read FAQ, "Problem Reporting" again. Carefully. Attach all requested files/output.
https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/
Thanks for your reply. Now I have tried to use your ACPIKeyboard.kext and patch the DSDT refered to your README in https://github.com/RehabMan/OS-X-ACPI-Keyboard , it works well!
 
Joined
Jun 19, 2018
Messages
92
Motherboard
Lenovo thinkpad w530
CPU
Mobile QuadCore Intel Core i7 3920XM 3100 MHz Ivy Bridge-MB
Graphics
NVIDIA Quadro K2000M / Intel HD Graphics 4000 - 2 GB DDR3 SDRAM
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS
ACPI shows _Q14 brighter _Q15 dimmer but when I patch the DSDT file and I reboot, _Q14 is OK, brighter but _Q14 is brighter too and shows "mute sound" for an instant.

My code:

into method label _Q15 replace_content
begin
// Brightness Down\n
Notify (KBD, 0x0406)\n

end;
into method label _Q14 replace_content
begin
// Brightness Up\n
Notify (KBD, 0x0405)\n
end;
 

Attachments

  • debug_26329 clover.zip
    4.2 MB · Views: 161

RehabMan

Moderator
Joined
May 3, 2012
Messages
188,161
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
ACPI shows _Q14 brighter _Q15 dimmer but when I patch the DSDT file and I reboot, _Q14 is OK, brighter but _Q14 is brighter too and shows "mute sound" for an instant.

My code:

into method label _Q15 replace_content
begin
// Brightness Down\n
Notify (KBD, 0x0406)\n

end;
into method label _Q14 replace_content
begin
// Brightness Up\n
Notify (KBD, 0x0405)\n
end;

You should try patching _OSI for Win8 instead of Win7.
 
Joined
Jun 19, 2018
Messages
92
Motherboard
Lenovo thinkpad w530
CPU
Mobile QuadCore Intel Core i7 3920XM 3100 MHz Ivy Bridge-MB
Graphics
NVIDIA Quadro K2000M / Intel HD Graphics 4000 - 2 GB DDR3 SDRAM
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS
Joined
Jun 19, 2018
Messages
92
Motherboard
Lenovo thinkpad w530
CPU
Mobile QuadCore Intel Core i7 3920XM 3100 MHz Ivy Bridge-MB
Graphics
NVIDIA Quadro K2000M / Intel HD Graphics 4000 - 2 GB DDR3 SDRAM
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS

Attachments

  • debug_24327.zip
    1.7 MB · Views: 151
Joined
Jun 19, 2018
Messages
92
Motherboard
Lenovo thinkpad w530
CPU
Mobile QuadCore Intel Core i7 3920XM 3100 MHz Ivy Bridge-MB
Graphics
NVIDIA Quadro K2000M / Intel HD Graphics 4000 - 2 GB DDR3 SDRAM
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS
Use debug VoodooPS2Controller.kext and ACPIDebug.kext (with proper instrumentation of _Qxx methods) to debug.
I don't know why but it works!!

- I installed VoodooPS2Controller.kext and ACPIDebug.kext (with proper instrumentation of _Qxx methods) to debug.
- Reboot and the keys worked but inverted. I mean, Q_14 dimmer and Q_15 brighter.
- Checked the log in terminal and Q_14 still being brighter and Q_15 still being dimmer althougt them work inverted.
- I patched my DSDT changing Q_14 for Q_15 and withouht Qxx methods and DSDT debug methods.
- I deleted VoodooPS2Controller.kext (debug) and ACPIDebug.kext.
- I installed VoodooPS2Controller.kext (release).
- Reboot and VOILA! Working!
 

Attachments

  • debug_89.zip
    1.7 MB · Views: 152

RehabMan

Moderator
Joined
May 3, 2012
Messages
188,161
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
I don't know why but it works!!

- I installed VoodooPS2Controller.kext and ACPIDebug.kext (with proper instrumentation of _Qxx methods) to debug.
- Reboot and the keys worked but inverted. I mean, Q_14 dimmer and Q_15 brighter.
- Checked the log in terminal and Q_14 still being brighter and Q_15 still being dimmer althougt them work inverted.
- I patched my DSDT changing Q_14 for Q_15 and withouht Qxx methods and DSDT debug methods.
- I deleted VoodooPS2Controller.kext (debug) and ACPIDebug.kext.
- I installed VoodooPS2Controller.kext (release).
- Reboot and VOILA! Working!

Marked solved.
 
Top