[Guide] How to dual-boot Windows with OSX on a HP Pavilion DM4-1250ca (also preserves Windows data)
This may work for other earlier DM4 laptops that have Arrandale 1st generation i3/i5/i7 CPUs too, that have graphical glitches upon entering the OSX installer.
* QE/CI (accelerated) Graphics
* USB ports
* DVD Drive
* Internal temperature monitors
* Battery display
* SD card port
* Mini PCI-E Wi-fi card (lost mine)
* 8 GB USB Thumb drive or higher for the OSX Distro
* 1 GB USB Thumb drive for MultiBeast
* USB Mouse (only for part of setup)
* USB Keyboard (same)
* Ethernet connection
* MacPwn-generated distro of El Capitan
* Files to make the distro MBR-installable (link in guide)
* Working config.plist (link in guide)
* Kext Wizard
* Intel HD Graphics QE/CI drivers (link in guide)
* Laptop keyboard / touchpad drivers (link in guide)
* VoodooHDA 2.8.8
Now for the guide.
1. Go to the BIOS Advanced menu by pressing F10 and A at the same time repeatedly when you see the HP logo. The timing window for this is pretty small. From there, go to Advanced > Chipset Configuration, and disable VT-d.
2. In Windows, make sure there is enough free room to install OSX (at least 40GB.)
3. Get into an admin mode command prompt (for Win 10, right click the window icon and choose Command Prompt (Admin).
4. Type diskpart, then list disk, and then "select disk #", where 0 is the hard drive you want to install OSX on.
5. Type "list partition", and take note of the number. Then, type "create partition primary size=x id=af", where "size=x" is the size in megabytes you want your drive to be. "id=af" sets the partition to HFS+, so the OSX installer can see it, and so it won't need the whole drive to install OSX.
6. Type "select partition #", where # is one more than the number you noted, type "active", then "exit".
7. Type diskmgmt.msc, right-click the partition you made and choose "Change Drive Letter and Paths". Give it a drive letter for later.
8. Download the latest MultiBeast on a spare thumb drive.
9. Get a MacPwn-generated distro of El Capitan, like one named "El Pwn Version.dmg"
10. Burn it to a thumbdrive with TransMac, by right-clicking the thumb drive and choosing "Restore with Disk Image".
11. Once the image is burned, then load the thumb drive up in TransMac, go to System/Library/Extensions/ and rename AppleIntelHDGraphicsFB.kext to AppleIntelHDGraphicsFB.old (right click to rename.) This allows the installer to be visible without graphical glitches.
12. You'll have to replace the thumb drive's /EFI/Clover/config.plist with the one attached .
13. Google "El Capitan MBR Patch" and follow the first link to make OSX MBR bootable (involves replacing two files on the drive.)
14. Boot to the distro with boot argument cpus=1 -v, then plug in the mouse and keyboard. You should be able to install the OS.
15. Keep the USB drive in, and don't load the distro you have just installed, since as soon as you get to the desktop, the screen will glitch out. Time to boot back to Windows and rename some files with ParagonHFS to fix that.
16. Once you're in Windows, install ParagonHFS (TransMac doesn't work for this, file permission issues) and open your OSX partition (not your thumb drive partition), go to System/Library/Extensions/, delete AppleIntelHDGraphics.kext and AppleIntelHDGraphicsFB.kext and you should be able to boot properly to OSX, from the thumb drive's bootloader.
17. During the OSX setup, at the "How Do You Connect?" screen, choose "My computer does not connect to the Internet", we'll set up access later.
18. In the OSX desktop, run MultiBeast go to Drivers > Network, and choose RealtekRTL8111 v2.0.0, Misc > FakeSMC v6.18, FakeSMC Plugins, FakeSMC HWMonitor, NullCPUPowerManagement, and Bootloaders > Clover Legacy bootloader, then choose Build. This will enable ethernet, some internal temperature monitors, and install the Clover bootloader. Now, before you reboot, change your OSX drive's /EFI/Clover/config.plist with my working one attached, and copy the kexts from your installer thumb drive's /EFI/Clover/kexts/Other/ folder into your OSX drive's empty /EFI/Clover/kexts/Other/folder.
19. Download Kext Wizard and the kext for your laptop keyboard/touchpad at (google OSX Voodoo PS2 Controller, first hit). Be sure to follow the directions on this page. May want to copy org.rehabman.voodoo.driver.Daemon.plist and VoodooPS2Daemon to your desktop, then type "cd Desktop" in Terminal, for the command that copies them to the right places. Also may want to enable tap-click from Launchpad > System Preferences > Trackpad.
20. Before updating the video drivers, grab the El Capitan 10.11.6 update from the App store, which will require a reboot and cause your OSX desktop to be a glitchy screen again. Boot to Windows, go to the OSX drive's System/Library/Extensions/ folder, and delete AppleIntelHDGraphics.kext, AppleIntelHDGraphicsFB.kext, AppleIntelHDGraphicsGA.plugin, AppleIntelHDGraphicsGLDriver.bundle, and AppleIntelHDGraphicsVADriver.bundle, then boot back to OSX.
21. The proper, QE/CI-enabled video drivers can be found at (Google "1st generation intel hd graphics qe/ci", first hit). First, do a command-f search for Natit.zip, then grab that, then command-f search for "Watch", to be near the blue banner that reads "Enable Quartz Extreme with Core Image (QE/CI)". Scroll down a little further to "Intel HD Graphics QE/CI Download" link. Click through, download and open the 10.11.6 file.
22. Once open, move AppleIntelHDGraphics.kext, AppleIntelHDGraphicsGA.plugin, AppleIntelHDGraphicsGLDriver.bundle and AppleIntelHDGraphicsVADriver.bundle to the desktop. Then, in the open Intel HD Graphics QECI 10.11.6 folder, go to Select Framebuffer > SingleLink > Normal > LCD+VGA > LCD+VGA LW1, then move AppleIntelHDGraphicsFB.kext to the desktop. Now open Natit.zip and put Natit.kext on the desktop. Install the six files with Kext Wizard.
23. You may want to turn off Display sleep in System Preferences > Energy Saver, since sleep is broken, the display turns on without a backlight.
24. For audio, install VoodooHDA 2.8.8. I couldn't install it through MultiBeast so I downloaded it separately, works fine.
You should have a smooth video experience now. The setup can handle 60 FPS Youtube videos nicely, but detailed 3d graphics are a bit much for its 288 MB of VRAM.
Sorry about the lack of links, there's a spam filter.