Contribute
Register

Brightness Keys Control | Card Reader

Status
Not open for further replies.
Brightness UP key pressed = Jul 6 20:04:29 hackintgemhacks kernel[0]: ApplePS2Keyboard: sending key e02b=80 down

Brightness DOWN key pressed = Jul 6 20:04:30 hackintgemhacks kernel[0]: ApplePS2Keyboard: sending key e02b=80 down
 
Brightness UP key pressed = Jul 6 20:04:29 hackintgemhacks kernel[0]: ApplePS2Keyboard: sending key e02b=80 down

Brightness DOWN key pressed = Jul 6 20:04:30 hackintgemhacks kernel[0]: ApplePS2Keyboard: sending key e02b=80 down

They send the same code, so you'll need to use ACPI.

See: https://github.com/RehabMan/OS-X-ACPI-Debug
Apply: "Add DSDT Debug Methods"
Apply: "Instrument EC Queries"

Report back with output in system.log when you press the keys.
 
They send the same code, so you'll need to use ACPI.

See: https://github.com/RehabMan/OS-X-ACPI-Debug
Apply: "Add DSDT Debug Methods"
Apply: "Instrument EC Queries"

Report back with output in system.log when you press the keys.

After applying TO DSDT
system.log code:
Brightness UP key pressed: Jul 7 10:36:55 hackintgemhacks kernel[0]: ACPIDebug: "EC _Q11 enter" Jul 7 10:36:55 hackintgemhacks kernel[0]: ACPIDebug: "EC _Q11 exit"

Brightness Down key pressed: Jul 7 10:40:05 hackintgemhacks kernel[0]: ACPIDebug: "EC _Q10 enter"
Jul 7 10:40:05 hackintgemhacks kernel[0]: ACPIDebug: "EC _Q10 exit"
 
After applying TO DSDT
system.log code:
Brightness UP key pressed: Jul 7 10:36:55 hackintgemhacks kernel[0]: ACPIDebug: "EC _Q11 enter" Jul 7 10:36:55 hackintgemhacks kernel[0]: ACPIDebug: "EC _Q11 exit"

Brightness Down key pressed: Jul 7 10:40:05 hackintgemhacks kernel[0]: ACPIDebug: "EC _Q10 enter"
Jul 7 10:40:05 hackintgemhacks kernel[0]: ACPIDebug: "EC _Q10 exit"

Please post your DSDT, and I'll write a patch for it.
 
Here is my DSDT as attachment:

Please put comments on the patches that you will put so that in the future i will do it myself :)
 

Attachments

  • DSDT.aml
    52 KB · Views: 136
Here is my DSDT as attachment:

Please put comments on the patches that you will put so that in the future i will do it myself :)

Patch for brightness control keys:
Code:
into method label _Q10 replace_content
begin
// Brightness Down\n
    Notify(\_SB.PCI0.LPCB.PS2K, 0x0205)\n
    Notify(\_SB.PCI0.LPCB.PS2K, 0x0285)\n
end;
into method label _Q11 replace_content
begin
// Brightness Up\n
    Notify(\_SB.PCI0.LPCB.PS2K, 0x0206)\n
    Notify(\_SB.PCI0.LPCB.PS2K, 0x0286)\n
end;
 
Thank You Rehabman, the patch worked perfectly like charm. :clap:

Now my hackintosh is near perfect (89% hackintosh), I want to know how to enable 3 finger swipe (i want to use it to switch between workspaces) using your VoodooPS2 kext :mrgreen:.

--EDIT--
2 more and maybe my hackintosh will be fully hackintoshed
First, is it possible for my built-in card reader to work, do I need a kext or a patch in DSDT?
Secondly, my VGA does not work(but HDMI with sound works), but I usually use VGA. there is no signal sent when vga cable is connected..
 

Attachments

  • Screen Shot 2014-07-07 at 6.34.24 pm.png
    Screen Shot 2014-07-07 at 6.34.24 pm.png
    380.7 KB · Views: 184
Thank You Rehabman, the patch worked perfectly like charm. :clap:

Now my hackintosh is near perfect (89% hackintosh), I want to know how to enable 3 finger swipe (i want to use it to switch between workspaces) using your VoodooPS2 kext :mrgreen:.

Configure it in SysPrefs->Keybaord->Keyboard shortcuts. Do the swipe instead of pressing keys...

--EDIT--
2 more and maybe my hackintosh will be fully hackintoshed
First, is it possible for my built-in card reader to work, do I need a kext or a patch in DSDT?
Secondly, my VGA does not work(but HDMI with sound works), but I usually use VGA. there is no signal sent when vga cable is connected..

What card reader is in the laptop?

You might try the standard VGA patch for HD3000:
Code:
perl -pi -e 's|\x01\x02\x04\x00\x10\x07\x00\x00\x10\x07\x00\x00\x05\x03\x00\x00\x02\x00\x00\x00\x30\x00\x00\x00\x02\x05\x00\x00\x00\x04\x00\x00\x07\x00\x00\x00\x03\x04\x00\x00\x00\x04\x00\x00\x09\x00\x00\x00\x04\x06\x00\x00\x00\x04\x00\x00\x09\x00\x00\x00|\x01\x02\x03\x00\x10\x07\x00\x00\x10\x07\x00\x00\x06\x02\x00\x00\x00\x01\x00\x00\x09\x00\x00\x00\x05\x03\x00\x00\x02\x00\x00\x00\x30\x00\x00\x00\x04\x06\x00\x00\x00\x08\x00\x00\x09\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00|g' ./patched/AppleIntelSNBGraphicsFB.kext/Contents/MacOS/AppleIntelSNBGraphicsFB
 
Configure it in SysPrefs->Keybaord->Keyboard shortcuts. Do the swipe instead of pressing keys...



What card reader is in the laptop?

You might try the standard VGA patch for HD3000:
Code:
perl -pi -e 's|\x01\x02\x04\x00\x10\x07\x00\x00\x10\x07\x00\x00\x05\x03\x00\x00\x02\x00\x00\x00\x30\x00\x00\x00\x02\x05\x00\x00\x00\x04\x00\x00\x07\x00\x00\x00\x03\x04\x00\x00\x00\x04\x00\x00\x09\x00\x00\x00\x04\x06\x00\x00\x00\x04\x00\x00\x09\x00\x00\x00|\x01\x02\x03\x00\x10\x07\x00\x00\x10\x07\x00\x00\x06\x02\x00\x00\x00\x01\x00\x00\x09\x00\x00\x00\x05\x03\x00\x00\x02\x00\x00\x00\x30\x00\x00\x00\x04\x06\x00\x00\x00\x08\x00\x00\x09\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00|g' ./patched/AppleIntelSNBGraphicsFB.kext/Contents/MacOS/AppleIntelSNBGraphicsFB

Finger Swipe works :p
How to patch the VGA? Terminal? (if terminal nothing happens)
My card reader is 'Realtek PCIE CardReader'
 
Finger Swipe works :p
How to patch the VGA? Terminal? (if terminal nothing happens)
My card reader is 'Realtek PCIE CardReader'

The patch is a perl script to be executed in Terminal. Best to patch a copy of the kext then install via Kext Wizard.

eg...
Code:
cd ~/Desktop
mkdir backup
cp -R /System/Library/Extensions/AppleIntelSNBGraphicsFB.kext ./backup
mkdir patched
cp -R /System/Library/Extensions/AppleIntelSNBGraphicsFB.kext ./patched
perl -pi -e 's|\x01\x02\x04\x00\x10\x07\x00\x00\x10\x07\x00\x00\x05\x03\x00\x00\x02\x00\x00\x00\x30\x00\x00\x00\x02\x05\x00\x00\x00\x04\x00\x00\x07\x00\x00\x00\x03\x04\x00\x00\x00\x04\x00\x00\x09\x00\x00\x00\x04\x06\x00\x00\x00\x04\x00\x00\x09\x00\x00\x00|\x01\x02\x03\x00\x10\x07\x00\x00\x10\x07\x00\x00\x06\x02\x00\x00\x00\x01\x00\x00\x09\x00\x00\x00\x05\x03\x00\x00\x02\x00\x00\x00\x30\x00\x00\x00\x04\x06\x00\x00\x00\x08\x00\x00\x09\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00|g' ./patched/AppleIntelSNBGraphicsFB.kext/Contents/MacOS/AppleIntelSNBGraphicsFB

Card reader is probably not supported...
 
Status
Not open for further replies.
Back
Top