Contribute
Register

[GUIDE] HP DV6 7040tx (Clover)

Status
Not open for further replies.
Joined
Dec 2, 2014
Messages
70
Motherboard
Hp DV6 7040tx
CPU
i7 3610QM
Graphics
HD 4000 + 630M
[GUIDE] HP DV6 7xxx (Clover)

I would like to post a guide for those who are newbies. There are tons of guides explain the same concepts. But, I would post guides in detail so that this will be useful for Newbies to follow easily.

Before I start, I would like to thank RehabMan for his kind wonderful help.

Note: I'll update this guide whenever I resolve new issues.

Before you begin:
I'm posting all the solutions that I used and tested in my Laptop: HP DV6 7040tx. You should be able to use this guide without any modifications if you own a DV6 7xxx series Laptop :)

Installation:
There is no need for a separate guide. There is a wonderful guide by RehabMan. Follow [GUIDE] Booting the OS X installer on LAPTOPS with Clover UEFI guide for installing.

Tools required:
  1. Get MaciASL from here
  2. KextBeast from here

Configuring your MaciASL:

  1. Open MaciASL
  2. Goto Preferences
  3. Click on Sources tab
  4. Click on + sign and add Laptop Patches under name and http://raw.github.com/RehabMan/Laptop-DSDT-Patch/master under URL
  5. Again click on + sign and add Brightness Fix under name and http://raw.github.com/RehabMan/OS-X-ACPI-Debug/master under URL
  6. Close the window

Important points to remember while editing DSDT:
  • When you open MaciASL, if the title shows System DSDT, it means it's your Native DSDT (Original DSDT)
  • If your title shows Pre-Edited DSDT, it means it's your DSDT with applied patches
  • Whenever you apply patches to your DSDT or SSDT, save the DSDT to /EFI/Clover/ACPI/Patched/. Name should be as DSDT.aml, SSDT.aml, SSDT-1.aml, ...
  • Every time you patch your DSDT, you need to restart your system to load that corresponding DSDT/SSDT.
  • You should compile DSDT/SSDTs without any errors for your patch to work correctly.
  • While saving your compiled DSDT/SSDTs you should select ACPI Machine Language Binary under the file format

To mount EFI folder:

Type this in the terminal:
Code:
mkdir /Volumes/efi
sudo mount -t msdos /dev/disk0s1 /Volumes/efi

Tested solutions:

1. Battery Status:

Original Guide:
http://www.tonymacx86.com/yosemite-laptop-support/116102-guide-how-patch-dsdt-working-battery-status.html


  1. Place this kext on your desktop: https://github.com/RehabMan/OS-X-ACPI-Battery-Driver
  2. Open KextBeast and drag and drop the downloaded kext
  3. Now, open MaciASL
  4. Click on Patch and on the left side, under the tab Laptop Patches you should find [bat] HP DV7-7xxx/DV6-7xxx
  5. Click on Apply
  6. Save the DSDT in /EFI/Clover/ACPI/Patched/ and restart

If you come up with your own patch, do share to add it up to the repo :)


2. Brightness Fix:
This installs a brightness bar in Sys prefs > Displays:
  1. Install: https://github.com/RehabMan/OS-X-ACPI-Backlight
  2. Open MaciAsl and click on patch
  3. You should be able to see a patch under Laptop Patches with the name [igpu] Rename GFX0 to IGPU
  4. Apply this patch to DSDT and to all SSDTs that contain GFX0 (Search all the SSDTs)
  5. Now apply Brightness Fix (3000/4000) to the DSDT or SSDT that contains the definition for Device IGPU (search for 'Device (IGPU)')
  6. Place the DSDT/SSDTs in the /EFI/Clover/ACPI/Patched/ and name accordingly and restart
  7. Now you should see a working Brightness bar in Sys prefs > Displays :)

To map the brightness to your keyboard keys (Read carefully. A little tricky):
This step assumes that you are using RehabMan's VoodooPS2Controller


  1. Install the kext: https://github.com/RehabMan/OS-X-ACPI-Debug
  2. Open MaciASL and click on patch
  3. Apply "Add DSDT Debug Methods" and "Instrument EC Queries" that are under Brightness Fix.
  4. Save the DSDT to /EFI/Clover/ACPI/Patched/ and restart
  5. Look in system.log in the Console.app as you press the key corresponding to brightness to determine which _Qxx methods handle the keys
  6. Then patch DSDT:

Assuming _Q1D is brightness down, and _Q1C is up.
Code:
into method label _Q1D replace_content
begin
// Brightness Down\n
    Notify(\_SB.PCI0.LPCB.PS2M, 0x0205)\n
    Notify(\_SB.PCI0.LPCB.PS2M, 0x0285)\n
end;
into method label _Q1C replace_content
begin
// Brightness Up\n
    Notify(\_SB.PCI0.LPCB.PS2M, 0x0206)\n
    Notify(\_SB.PCI0.LPCB.PS2M, 0x0286)\n
end;

Change the variable _Q1D/_Q1C as per the log.

7. Try compiling and check if it generates errors
8. If it does, then change the PS2M to PS2x according to the one found in your DSDT
9. Save and place the compiled DSDT to /EFI/Clover/ACPI/Patched/ and restart
10. Now you should see that you have your corresponding keys to change your brightness :)

Note:
RehabMan said:
You should notify the object that corresponds to the keyboard device. PS2M is usually the built-in trackpad. It works to Notify that object as it all funnels through VoodooPS2Controller.ApplePS2Controller, but that may not be the case in the future.

Also, if you're not using my VoodooPS2, you can use ACPIKeyboard.kext: https://github.com/RehabMan/OS-X-ACPI-Keyboard

3. USB 3.0:

This is quite a straight forward solution.
  1. Download the kext: https://github.com/RehabMan/OS-X-Generic-USB3
  2. Place this kext inside: /EFI/Clover/kexts/Other (Do not use KextBeast or any kext installers)
  3. Restart your machine and check your USB 3.0 :)

4. Audio:
My audio codec is IDT 92HD91Bxx [111d:76e0]

You can also use a generic kext: http://sourceforge.net/projects/voodoohda/

I'll teach you how to patch AppleHDA.


  1. Download this script https://github.com/RehabMan/HP-Envy-DSDT-Patch/blob/master/patch_hda.sh
  2. Run it as ./patch_hda.sh
  3. It'll generate a kext: AppleHDA_IDT76e0_Envy.kext
  4. Then apply "Audio Layout 12" and "IRQ Fix" patches from Laptop Patches
  5. Install it to S/L/E using iKext
  6. Copy this config.plist: View attachment config.plist.zip (Note: If you have an already patched config.plist, add only item 4 and item 5 from here under KernelAndKextPatches -> KextsToPatch
  7. Make sure you have AppleHDA.kext in S/L/E (Untouched)
  8. Reboot
  9. Fix Permissions and Rebuild Cache
  10. Restart
  11. Boom! Check your sound :)


5. Native CPU power management:



  1. Run this script: https://github.com/Piker-Alpha/ssdtPRGen.sh
  2. patch AppleIntelCPUPowerManagement can be patched on the fly with config.plist/KernelAndKextPatches/AsusAICPUPM=true
  3. Change config.plist/KernelAndKextPatches/KernelLapic=true
  4. Generated SSDT should be placed at /EFI/CLOVER/ACPI/patched/SSDT.aml
  5. Generate SMBIOS for your CPU and place it in config.plist/SMBIOS. Use the Clover Configurator to generate one
  6. Drop all OEM SSDTs by changing config.plist/ACPI/SSDT/DropOem=true
  7. Original AppleACPIPlatform.kext
  8. There should be no NullCPUPowerManagement.kext

6.Turning off Discrete Nvidia for heat reduction and increase Battery Performance:



  1. In SSDT-1, find the method Method (_INI)
  2. Then add the following:
Code:
Method (_INI, 0, NotSerialized)
        {
            Store (Zero, \_SB.PCI0.PEG0.PEGP._ADR)
// added code follows
External(\_SB.PCI0.PEG0.PEGP._OFF, MethodObj)
_OFF()
        }

3. Place the SSDT-1 in /EFI/Clover/ACPI/Patched/SSDT-1.aml
4. Reboot
5. Open DPCIManager and see whether there is Nvidia listed or not (Shouldn't be there)


Work under progress:
You tell me more issues. Will find a work aroudn :)


Attached DSDT and SSDT:

Check the attached DSDT for fixed Battery Status + Brightness + Key Control + Audio. (Rename to DSDT.aml)
The attached SSDT-3 is for Brightness. (Should be combined with the DSDT) (Rename to SSDT-3.aml)

You are welcome to post feedbacks.

SilleBille
 

Attachments

  • Brightness SSDT-3.zip
    3.6 KB · Views: 290
  • Brt+Batt+Keybrig+audio DSDT.zip
    35.2 KB · Views: 274
  • SSDT-1.aml.zip
    3.2 KB · Views: 251
  • ssdt.aml.zip
    995 bytes · Views: 193
...
Assuming _Q1D is brightness down, and _Q1C is up.
Code:
into method label _Q1D replace_content
begin
// Brightness Down\n
    Notify(\_SB.PCI0.LPCB.PS2M, 0x0205)\n
    Notify(\_SB.PCI0.LPCB.PS2M, 0x0285)\n
end;
into method label _Q1C replace_content
begin
// Brightness Up\n
    Notify(\_SB.PCI0.LPCB.PS2M, 0x0206)\n
    Notify(\_SB.PCI0.LPCB.PS2M, 0x0286)\n
end;

Change the variable _Q1D/_Q1C as per the log.

7. Try compiling and check if it generates errors
8. If it does, then change the PS2M to PS2x according to the one found in your DSDT

You should notify the object that corresponds to the keyboard device. PS2M is usually the built-in trackpad. It works to Notify that object as it all funnels through VoodooPS2Controller.ApplePS2Controller, but that may not be the case in the future.

Also, if you're not using my VoodooPS2, you can use ACPIKeyboard.kext: https://github.com/RehabMan/OS-X-ACPI-Keyboard
 
Used this guide to get my hp pavilion dv6-7031tx insyde bios ver F.13 boot uefi(no legacy) up n running.

El Capitan 10.11.1, clover 3330,
cpu i5 3320 2.6ghz, 1x 8gb ram ,
hd 4000,(nvidia gt 630m 2gb not in use)

removed DVD drive and put HDD in a caddy as boot drive.

removed oem wifi/bt combo half card brcm1051 and with a bit of trimming
retrofitted a genuine airport extreme Atheros 9280 card from my dead iMac 2010 in its place,
wifi now works great

no audio yet as crashes with voodoohda 2.8.8.

a few more tweaks should see it running sweet.

been trying on n off to get this particular lappy running os x for a couple years now with no success till now.

cheers to OP sillebille 4 the heads up.
 
Last edited:

audio now working used voodoohda 2.8.6 installed from multibeast for el capitan..
went to library/extensions copied the installed voodoohda kext ,
mounted efi partition and copy kext to clover/kexts/other..then deleted it from library/extensions..
reboot..now i get audio input outputs available..but no sound still apparently !

heres what got me...when i had been trying to get audio working i used the volume up/down slider
to check if i hear clicking when adjusting vol ..its my most basic audio test method,but nothing was heard..
in el capitan i see in system preferences/sound sound effects tab..there is now a check box
for "play feedback when volume is changed" its unchecked by default ?.. i tick it and presto working ...
in previous builds i was using os x upto mavericks and this is enabled by default.
i didn't realise this had changed from yosemite >

what led to this discovery was when i emptied the trash and heard the trash noise...
i hadn't even tried to play a audio file to test sound as i figure if slider sound doesn't work,
then audio is cactus..there you go i learn something everyday..

sweet.
 
Last edited:
Hi i can't get audio to work i have tried to patch Applehda but i always fails. I have also tried to get audio to work with dsdt but fails. My audio codec is 92hd91bxx. Can somebody please help me.
 
I want to mapping the brightness to your keyboard keys. I have followed every step as tutorial says. But I got some issues:
When I press the button for brightness up, the bright go up and also the sound is muted
And when I press the button for brightness down it goes up.
Maybe have I to use other codes in the Notify?
 
Status
Not open for further replies.
Back
Top