Jump to content

[GUIDE] HP G6-1256ek OS X 10.11.6 (AMD 6470M)


Nonta72
 Share

1 post in this topic

Recommended Posts

hackintosh_header.png HACKINTOSH ON A HP PAVILION G6

When you spend too much time on Internet or behind a computer, you get bored quickly! So, you're mostly tempted to try new stuffs just to get rid of the boredom. Some play games, some watch movies, some listen to music etc. But all these can become boring too! Hackintosh is one of the interesting activities that will help you get rid of this. It's literally "Hacking Macintosh". Hence, Hackintosh. For most people, it's called install Mac on PC. I'm not sure whether this is or not accurate. But I guess it kind of makes sense somehow.

Anyway, I've been in the Hackintosh community since 2012. Started with a Pentium P6200 Acer laptop and kept on learning and learning. I have no programming skills (AT ALL). So, I just copy paste the codes when needed and hope they work. If not, then ask Google! That's right. Few weeks back I got a cheap second hand HP Laptop (currently broke af) for about $130. It's the HP G6 Notebook. One week after I got it, I started getting bored because I've been using Windows 10 on other laptops since July 2015. I tried Ubuntu, but that's just for Android stuff. I decided to install Hackintosh to it. It was pretty easy I believe. I started with 10.9 and I'm now on 10.12. The HDD is 640GB. So I had enough space. So, I created two OS X partitions. Installed 10.9 on one. Fixed most problems on it. Downloaded 10.10 from App Store and installed it on the other HDD. And then I fixed that one too. Since 10.10 had been fixed, there was no need of keeping 10.9. So, I went ahead and had removed it and installed 10.11 to that partition. Now 10.11 is my favorite OS and I use it daily.

 

Disclaimer

 

Before you start, you accept that:

  • I take no responsibility if anything wrong happens to you or your laptop such as constant overheat, broken screen, you get fired because you couldn't get to Windows and finish your work etc.
  • You're responsible if OS X installer formats your whole HDD and you loose all your files
  • Your Laptop, your choice, your responsibility.

 

Specifications

 

 

  • Intel ® Core i3-2330M @ 2.2 GHz (Sandy Bridge)
  • Intel ® HD Graphics 3000 & AMD Radeon HD 6470M 1GB DDR3 VRAM
  • 6GB DDR3 1600Mhz RAM
  • 640GB HDD 5400 rpm
  • Atheros AR5B195 Combo Wi-Fi Card (Laptop came with Broadcom BCM94313, had to replace it)
  • IDT 92HD81B1X5 sound card with SRS Premium Sound (SRS is now part of DTS Studio Sound)
  • HP Webcam-101
  • 4 USB 2.0 Ports
  • Realtek RTL8105E Fast Ethernet
  • Realtek RTS5209 Card Reader

 

What is working

 

 

  • Intel Core i3 processor
  • Intel HD 3000 (OOB)
  • AMD Radeon HD 6470M
  • HP Webcam
  • Atheros AR9285 Wi-Fi card
  • Atheros AR0311 Bluetooth 3.0
  • Realtek RTL8105E
  • Brightness with slider
  • Keyboard with special functions (brightness up/down, volume up/down, media keys on iTunes)
  • IDT Sound Card
  • Sleep and wake

 

What isn't working or hasn't been tested

 

 

  • Realtek RTS5209 Card Reader (I haven't tested it)
  • HDMI (Haven't tested it)
  • VGA (haven't tested it)

 

Installation

 

 

I am not really here to teach you "How to install" hackintosh on this Laptop. There are plenty of guides on Internet for that. I'm instead here to help you fix it!

For what it is worth, you can go to this thread and install hackintosh on your computer. It's important to follow this specific guide because this Laptop has Legacy BIOS (no UEFI booting supported by the BIOS). 

 

 

 

  Patches used                                                                                                        1. Processor with native power management

 

In order to get the processor working, you ultimately need the following patches. If you have a core i5 processor, you might not need them.

In clover configurator, use these settings:

  • Kernel Lapic
  • Asus AICPUPM

You need the above settings to install OS X. If they don't work; use NullCPUPowerManagement.kext. If that fails too, set CPUS=1 in Clover config.plist.

After installing OS X, you need to generate SSDT for your processor with PikerAlpha's script. It's available on internet.

 

   2. Graphics Acceleration (QE/CI)

 

Intel HD Graphics 3000 works out of the box. You do not need any specific patch or kext to get it working. Just install the OS and boot it. You'll get QE/CI on HD 3000. It's possible to get QE/CI on the AMD Radeon HD 6470M too. You won't need a kext for that because it's already supported by AMD6000Controller.kext (device ID 0x6760). It's the same chip as the AMD 6490M. The 2011 MacBook Pro has an AMD 6490M I believe.

So, to get AMD working. Set/check these in Clover config:

  • Dual Link = 0
  • FB Name = Cattail (or Lotus or Fanwort or Kudzu or Spikerush)
  • VRAM = 1,024
  • Ports = 3 (for Cattail it's 3)
  • Inject ATI = true (check it)
  • Make sure Inject Intel is unchecked
  • Load VBIOS = true (check it, you'll need to put the vbios file in ROM folder, see in attachments).
  • Inject EDID = true (check it)

Now, you need to alter your EDID. For some reasons, I couldn't just use my stock untouched EDID. That kept causing trouble. There is an interesting thread over at InsanelyMac where I got that fixed. Here is the link (click here). Skip to EDID editing section.

After that, save the config and restart your hackintosh. Your AMD should be working. Go to dispays settings and click Arrangement tab and check Mirros displays like below.

Screen-Shot-2017-05-03-at-9.24.23-PM.png

To switch Graphics cards, change to one of the "Built-in Display" in display section of system preferences.

Intel HD 3000 being used:

IntelHD3000.png

Screen-Shot-2017-05-03-at-9.51.53-PM.png

AMD 6470M being used:

AMD.png

Screen-Shot-2017-05-03-at-9.48.46-PM.png

 

 

  3. Sound & Audio

 

To get sound working, you will need a patched AppleHDA.kext and the injection of Layout-ID of the sound card. Remember it is IDT 92HD81B1X5 (device ID 0x7605). I have attached the AppleHDA.kext that I use. Use layout ID 12 with it. You can use Clover injection method, HDAEnabler12.kext (find it on internet) or DSDT patch layout 12. Do not use all or 2 injection methods at the same time. The easiest method is clover injection one. Just go to Devices section of Clover Configurator and type in 12 under "Audio". It's already in my config plist. No matter which injection method you chose, you'll need HPET fix and IRQ fix patches from RehabMan's Laptop Patches to get the patched AppleHDA loading.

 

  4. Wi-Fi & Bluetooth

 

This Laptop has a whitelist BIOS. After some tinkering around with the BIOS, I was able to identify the accepted cards by the BIOS (F.66 BIOS). Currently the accepted cards are:

  • BCM94313
  • AR5B95H (AR9285)
  • AR5B95H (AR5007)
  • Some intel cards
  • Ralink RT3290
  • Realtek 8188CE

 

However, the laptop accepts the AR9285 card only if the SUBSYS is as follow: 3040103C. Mostly, you'll need to rebrand the card to trick the BIOS to think that the inserted card has the correct ID. Follow this thread to achieve that. If it doesn't seem clear enough, please do a google search. There are quite easier guides on internet. I might eventually make one (not sure though). OF COURSE, YOU WILL OBVIOUSLY NEED ANOTHER LAPTOP TO DO THAT BECAUSE YOURS HAS A WHITELIST. Borrow one from a friend, wife, girlfriend or whoever. Fortunately, I have my old Toshiba M100 here (with the full PCIe slot LOL). It was able to accomplish this task.

Now, if your card has been accepted by the BIOS. You need to either use a DSDT patch or an injector kext to get the card working under OS X. For someone who doesn't want to have to patch DSDT, use ToledaARPT.kext or ProBook_Atheros.kext or AtherosWifiInjector.kext. But for better performance, I suggest you use a DSDT. I have attached the DSDT patch that I used. If you want to use it, first, install one of the kext above and boot. If the card is detected, identify your card location in iOREG (type in 168c in search bar). Mine was on RP01. Yours can be on RP02. It depends on the laptop hardwares installed probably. Now, open MaciASL and search for the location you identified in the previous step. Just before the first method of that location, add the ARPT device by copy pasting the code provided in the files below. Here is a video to make this easier for you on YouTube. Note: if you get error after using this patch, apply "Insert DTGP" patch from Source Forge in MacIASL. Remember to put the DSDT.aml file in ACPI/Patched in clover folder. Avoid the kexts over at hackintosh zone website. They cause speed decrease (considerably). You can also fix wifi with "Fix Airport" in Clover Configurator. It didn't work for me but you can try. Remember to remove the injector kext if you use DSDT or Clover method.

At this point, you might face weird problems like no networks after waking the laptop from sleep. In fact, the wifi card wouldn't detect networks if I wake the computer from sleep or if I turn off and on the wifi in settings. To fix that, cover (or remove) the 20th pin on the card with a plastic tape and then place it in the laptop and reboot. There are plenty guides on internet to help you do that. The 20th pin is RADIO_DISABLE pin according to the PIN Configuration datasheet of the AR5B95/AR5B195. It will remove the BIOS ability to deactivate the card in the OS. And NO, removing that doesn't actually bypass the whitelist.

For bluetooth, it works without any patch or kext. But your USB Ports must be working first. You'll need to use a bluetooth injector of your choice to be able to use BT after a wake from sleep. A better way to fix that is to cover or remove the 5th (RADIO_DISABLE but for BT this time). This is only valid for the AR5B195 combo card.

Results:

Wi-Fi Card

Screen-Shot-2017-05-03-at-11.47.50-PM.pn

Bluetooth

Screen-Shot-2017-05-03-at-11.51.38-PM.pn

 

 

  5. Brightness Fix

 

For brightness, you need ACPIBacklight.kext and DSDT patches. The kext is in the attachments below.

DSDT Patches

  • Brightness Fix (HD3000/4000)
  • Rename GFX0 to IGPU
  • Custom brightness keys patch (not included in RehabMan's repo, apply it by clicking on Patch then Open and choose the brightness_keys.txt file and then apply)

  6. Battery

 

Battery indicator requires ACPIBatteryManager.kext and this DSDT Patch:

  • [bat] HP G6 2221ss

  7. Sleep and Wake

 

Sleep works once QE/CI is enabled. But wake from sleep won't work without a patch.

Apply the "RTC fix" patch from RehabMan's repo. You can also use "RTC Fix" in clover configurator. I haven't tried that one. Also you may face instant wake (e.g laptop automatically wakes after few seconds of sleep). To fix it, apply the "6-series USB" and "USB3 _PRW 0x0D (instant wake)" patches. The laptop does not have USB 3.0 ports but this patch still fixes this problem.

 

  8. HP Webcam

 

It's like the bluetooth. It works OOB. But your USB ports have to be fully working first. No patch required. You might want to use the USB-Inject-All.kext to enable all USB ports.

 

  9. Realtek RTL8105E

 

With the kext from this thread, the Ethernet port was detected. I haven't used it however. But it should work.

Results

Screen-Shot-2017-05-03-at-11.51.49-PM.pn

 

 

  10. Keyboard and Trackpad

 

Use VoodooPS2Controller.kext (included in the attachments) to get them working. I assume you already have done that because you can't really use your hackintosh without them and this kext is kind of universal.

 

 

DSDT Patches applied

 

 

RehabMan's ACPI debug repo:

  • Add DSDT debug methods
  • Instrument EC queries

RehabMan's Laptop patches:

Must be applied as follow

  • Remove _DSM methods
  • HP G6 2221ss
  • Rename GFX0 to IGPU
  • Brightness Fix (HD3000/HD4000)
  • HPET Fix
  • IRQ Fix
  • OS Check Fix (Windows 8)
  • RTC Fix
  • 6-series USB
  • USB3 _PRW 0x0D (instant wake)
  • Custom brightness keys patch
  • Custom Wifi patch

Source Forge Repo:

  • Insert DTGP

 

 

 

Attachments

 

All files I used can be found on my github here.

Please download the files as zip or use git clone or github desktop app.

 

 

Bugs

 

 

  • When using the AMD card, you might see artifacts, flickers and other graphics corruptions from time to time. You also will notice that status bar doesn't update when you're using this card. I have no fix yet.
  • When you get the AMD card detected for the first time or have changed the FB name, you'll likely not see the login screen when you reboot. It will just be blurred. To fix it, just type in your password and press Enter. You will be taken to your Desktop. From there, go to Settings and check "Mirror displays".
  • Apparently the performances of the AMD card are actually those of the Intel HD 3000. It makes sense because the AMD card doesn't offer video output on this laptop (can't change video mode in bios). So, the AMD card being used is simply aesthetic.  :P
  • Of course, iMessage doesn't work.

 

Credits & Thanks

 

 

  • Slice
  • AndyV
  • RehabMan
  • grexai926
  • sinetek
  • Mieze
  • nguyenmac
  • PikerA
  • EmlyDinEsh
  • Toleda
  • Anyone else I might have forgotten

  • Like 1
Link to comment
Share on other sites

 Share

×
×
  • Create New...