Contribute
Register

[GUIDE] HP DV6 7040tx (Clover)

Joined
Dec 3, 2014
Messages
72
Motherboard
Hp DV6 7040tx
CPU
Intel core i7 3610QM
Graphics
Intel HD 4000 + Nvidia 630M 2GB
Mac
Classic Mac
Mobile Phone
[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

RehabMan

Moderator
Joined
May 3, 2012
Messages
192,090
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
...
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
 
Joined
Apr 2, 2011
Messages
11
Motherboard
775,1156,1366.1155
CPU
various intel
Graphics
amd,nvidia,intel
Mac
iMac, MacBook, MacBook Air, MacBook Pro, Mac Pro
Classic Mac
iMac, Power Mac
Mobile Phone
Android, iOS, Other
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:
Joined
Apr 2, 2011
Messages
11
Motherboard
775,1156,1366.1155
CPU
various intel
Graphics
amd,nvidia,intel
Mac
iMac, MacBook, MacBook Air, MacBook Pro, Mac Pro
Classic Mac
iMac, Power Mac
Mobile Phone
Android, iOS, Other
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:
Joined
Jun 13, 2015
Messages
13
CPU
i7-3630QM
Graphics
HD 4000 + GT 630m
Mac
MacBook Pro, Mac mini
Classic Mac
iBook, Power Mac
Mobile Phone
Android, iOS
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.
 
Joined
Dec 8, 2015
Messages
13
Motherboard
HP Envy DV6 7377er (Clover UEFI)
CPU
i7 3630qm/HM77
Graphics
HD4000/Nvidia 650m(Optimus), 1920x1080
Hi, everyone! I have HP Envy DV6 7377er (i7 3630qm, 650m, 12gb RAM), and i've picked up my battery status by following this guide, thank you guys!!! I have the same audio codec IDT 92HD91Bxx, and my patched AppleHDA works, but i can't use my 3,5 mm jack, only laptop speakers. After searching the solution of this problem, i've found that it is a kind of audio nodes (?) problem, but i still don't know how to fix it. Help me please, someone.
 
Joined
Dec 8, 2015
Messages
13
Motherboard
HP Envy DV6 7377er (Clover UEFI)
CPU
i7 3630qm/HM77
Graphics
HD4000/Nvidia 650m(Optimus), 1920x1080
Ok guys, things go fairy well. I've found that with vanilla AppleHDA, but after patching DSDT of battery using this guide, my audio works 100%, both speakers and 3,5 mm jack. Hell yeah!!! Apple magic =)
 
Last edited:

RehabMan

Moderator
Joined
May 3, 2012
Messages
192,090
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
Ok guys, things go fairy well. I've found that with vanilla AppleHDA, but after patching DSDT of battery using this guide, my audio works 100%, both speakers and 3,5 mm jack. Hell yeah!!! Apple magic =)
No... vanilla AppleHDA does not support your codec.
 
Top