Contribute
Register

Brightness keys F2 and F3 don't work, but the slider in Monitor changes brightness

Status
Not open for further replies.
Joined
Jan 31, 2014
Messages
14
Motherboard
HP Envy 15 j-101el -Clover
CPU
i7-4700MQ
Graphics
HD 4600 + GT 740M, 1366x768
Mobile Phone
  1. Android
Hello!

Finally I got more or less everything working, except the function keys F2 and F3 for brightness change.
I have a working slider in System Preferences/Monitor, but the function keys don't react when I press them. Is there a way to enable these keys?

I have a HP Envy 15 j-101el with Mavericks 10.9.2 installed.

I'm using a patched AppleBacklight.kext


Thanks in advance!
 
Hello!

Finally I got more or less everything working, except the function keys F2 and F3 for brightness change.
I have a working slider in System Preferences/Monitor, but the function keys don't react when I press them. Is there a way to enable these keys?

I have a HP Envy 15 j-101el with Mavericks 10.9.2 installed.

I'm using a patched AppleBacklight.kext


Thanks in advance!

Not a desktop. Moved to laptop support...

You probably need DSDT patches, but no idea without hardware details...

Please provide complete details in your profile/signature
(Profile/Settings link in upper right corner of this site)

System: manufacturer/model + bootloader(Clover/Chameleon/Chimera)
CPU: detailed CPU model + motherboard chipset
Graphics: all graphics devices + laptop internal screen resolution

For example, typical Ivy laptop:
System: HP ProBook 4540s (Clover)
CPU: i5-3320m/HM76
Graphics: HD4000, 1366x768

Use CPU-Z on Windows to find CPU (Core iX-xxx) and motherboard chipset (HMxx), and graphics capabilities. For a laptop, these details are important and affect critical installation procedures.
 
I'm sorry. Now I updated my profile.

I'm using Clover v3050.

I successfully created all my DSDT.aml and SSDT-X.aml from UBUNTU -> iasl. Corrected the errors.

I patched the DSDT.aml and SSDT-x.aml for brightness fix (basic) and Haswell.

And other patches for IGPU, Audio, USB, ...

I deactivated successfully the Nvidia card patching the dsdt.aml and ssdt-x.aml

I have QE/CI fully working with HD4600 in Mavericks 10.9.2

Audio is working.

Battery is working.

Hibernate is working.

Volume Up/Down/Deactivate are working.

Wifi/Bluetooth is not working (RTL3290 is not supported)
I have to change the card.

I got everything working except the function keys F2 and F3. The slider in System Preferences/Displays changes the brightness.

Could it be that it has to be with a wrong version of VoodooPS2Controller.kext? I'm using Version 1.8.13


Have a nice weekend! :)
 
...
I got everything working except the function keys F2 and F3. The slider in System Preferences/Displays changes the brightness.

Could it be that it has to be with a wrong version of VoodooPS2Controller.kext? I'm using Version 1.8.13

Most likely your keys are handled via ACPI. And you likely need the same patches as I wrote for my Haswell Envy 15. See here for details: https://github.com/RehabMan/HP-Envy-DSDT-Patch

But here is the generic procedure...

As far as getting brightness buttons working, first use the debug VoodooPS2Controller to see if they generate PS2 codes or not (probably not). Monitor system.log with Console.app while you press each key. If they generate a ps2 code, see custom keyboard mapping via Info.plist: https://github.com/RehabMan/OS-X-Voodoo-PS2-Controller/wiki/How-to-Use-Custom-Keyboard-Mapping

If no ps2 codes in system.log, then they are likely handled via ACPI. See here: https://github.com/RehabMan/OS-X-ACPI-Debug, install the kext, apply "Add DSDT Debug Methods" and "Instrument EC Queries". Look in system.log as you press the key to determine which _Qxx methods handle the keys.

Then patch DSDT:

Assuming _Q10 is brightness down, and _Q11 is up.
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;

Note: If you're not using my ps2 driver, and your keys are handled via ACPI, use ACPIKeyboard: https://github.com/RehabMan/OS-X-ACPI-Keyboard
 
Thank you very much for the efforts! I will try it in the next time.

Greetings from Italy!
 
Thank you very very much RehabMan! Now it seems that everything works as it should. Your keyboard patch did the trick.

I attached my CLOVER (v3050) configuration, patched and unpatched DSLs and the kexts I used.
So, if somebody has the same laptop - HP Envy 15 j-101el and Mavericks 10.9.2, maybe it could be useful.


Ciaooo! :thumbup:
 

Attachments

  • HP Envy 15 j-101el OSX 10.9.2.zip
    5.3 MB · Views: 121
Thank you very very much RehabMan! Now it seems that everything works as it should. Your keyboard patch did the trick.

I attached my CLOVER (v3050) configuration, patched and unlatched DSLs and the kexts I used.
So, if somebody has the same laptop - HP Envy 15 j-101el and Mavericks 10.9.2, maybe it could be useful.


Ciaooo! :thumbup:

It is best to describe where you found all the kexts, the patches you used to create the patched DSDT/SSDTs, and the general process for installation.

No one can use final patched DSDT/SSDTs but you...
 
[SOLVED]*Brightness keys F2 and F3 don't work, but the slider in Monitor changes brightness

For the F2, F3 keys problem I used the keyboard.txt patch that I found here:
https://github.com/RehabMan/HP-Envy-DSDT-Patch/tree/master/patches

I applied it in MaciASL opening the DSDT.dsl and I copy/pasted the content of keyboard.txt in the Patch Text window. Then I compiled it to dsdt.aml.

At the moment I'm using the ACPIBacklight.kext, but I think it could also work with the patched AppleBacklight.kext

The kexts:
Unfortunately I don't remember where I've found them all. I used google to search for every piece of hardware.

The DSL files:
I copied from Ubuntu (Ubuntu Live USB) all the ACPI tables from the folder /sys/firmware/acpi/tables, as with AIDA64 on Windows the tables were incomplete.

Then i copied DSDT, SSDT1, SSDT2, ..., SSDT6, dynamic/SSDT7, dynamic/SSDT8, dynamic/SSDT9 in a folder, added to all files the .aml extension and disassembled them with the iasl (RehabMan) command in terminal (iasl -da -dl *.aml).

The hard part was to correct the errors from the DSL files. DSDT.dsl, SSDT-1.dsl and SSDT-4.dsl had a lot of compiling errors.

The DSDT and SSDT patches I used mainly from:
http://raw.github.com/RehabMan/Laptop-DSDT-Patch/master
https://github.com/RehabMan/HP-Envy-DSDT-Patch/

I configured Clover with the Clover Configurator.
 
...
At the moment I'm using the ACPIBacklight.kext, but I think it could also work with the patched AppleBacklight.kext

Best result is with ACPIBacklight.kext. There are still some unresolved issues with patching AppleBacklight.kext (also best to use an injector or patched EDID instead of patching kext).
 
Ok thank you for the information! Sorry to bother you again. Now I noticed one error, which is not very important for me, but it would be gorgeous to resolve it. The HP truevision webcam is not working. Do you know where I could look to find the origin of this issue? I have no clue...
 
Status
Not open for further replies.
Back
Top