Contribute
Register

[Guide] HP Elite X2 1012 G1 / G2, Clover UEFI, VirtualSMC, Hot Patch

Status
Not open for further replies.
thanks for sharing alougth it's for G2, most work for my G1.
for now 90% works fine but there is two problems if any solution or suggestion would be great.
1. the mute button is gray and the Volume +/-(which are unber power button) DO NOT work.
2. touchpad NOT work when wake up

attach my clover files please help me, Thanks a lot.
View attachment 448948

If your volume keys aren't working, that is related to your BIOS version. HP has changed the structure of the volume methods a couple different times. You'll have to dump your SSDTs and change the methods to match your bios.

As for the trackpad, it happens to me occasionally as well and I'm not quite sure why just yet. Normally you can simply detach and reattach the keyboard to get it working again.
 
@jhax01 I have followed your guide and everything for me is working but touchscreen support. I had a quick question before looking into it further. You wrote:



then



At this point, are you saying ALL kexts need to be put in /L/E/ ?

It's more reliable to have all your kexts installed to /L/E and leave just what you need to boot in Clover with the "detect" flag set. At a minimum though, if you want you want the benefits of the Alps kext you will need to install VoodooI2C / VoodooI2CHID and AlpsT4USB to /L/E.
 
If your volume keys aren't working, that is related to your BIOS version. HP has changed the structure of the volume methods a couple different times. You'll have to dump your SSDTs and change the methods to match your bios.

As for the trackpad, it happens to me occasionally as well and I'm not quite sure why just yet. Normally you can simply detach and reattach the keyboard to get it working again.
I found u posted the link for volume hard key probelm.

so I followed your method,but still no working.
I compared the SSDT files

If (\_SB.PCI0.LPCB.EC.GBNT (\_SB.PCI0.LPCB.EC.VBPS, 0x02))

the red one is different, so I changed rebuild cache(I do know if it's matter) reboot, but not working.

mine is Elite X2 G1, and the bios verson is 1.44, just dump the DSDT/SSDT file in Ubuntu. the Q30 method is in the SSDT9.DSL, best regards for G1 users.
 

Attachments

  • dsdt-output-bake.zip
    223.3 KB · Views: 95
@jhax01 Thanks for your response. Maybe you can shine a light on this problem. I have everything working, except the touchscreen. Also the trackpad is giving a similar issue to the one below:

Screenshot 2020-02-09 at 21.09.30.png


I have tried both VoodooI2C on the page one thread, as well as the latest. If I look at the kextstat, I can see that it is loaded. Do you have any idea what I can do?
 

Attachments

  • clover.zip
    4.5 MB · Views: 78
  • kextstat.txt
    22.8 KB · Views: 56
  • LE.zip
    5.9 MB · Views: 115
Last edited:
Are you sure you have completely followed the guide on p1? No offense, but for me it worked out. My steps:

- just for dual boot: (installed Win10, expanded EFI partion to 200 MB)
- repartition USB drive 1 partition, MOS journaled, GUID partition scheme
- created Mojave installer with createinstallmedia...
- installed Clover (switched to EFI) to USB stick
- used Clover Configurator for mounting EFI partion of USB stick
- deleted all content of Clover folder on EFI partion
- copied all files from OP clover zip to the Clover folder
- edited config.plist in Clover folder with Clover Configurator --> setup ID, Serial, Bord Serial, saved
- booted from stick, installed OSX (1 reboot has to be catched with USB stick)
- booted OSX with the help of the USB stick
- installed Clover to hard drive
-带有Clover Configurator的硬盘驱动器EFI分区
-将EFI分区三叶草文件夹中的所有内容替换为EFI分区U盘中的内容
-仅用于双重引导:(引导Win10,使用BootIceX64将Clover设置为第一个引导项)

从那时起,OSX可以正常启动,一切正常(尽管仍然必须更换wifi卡)
[/引用]
你好,您的笔记本电脑是g1还是g2?如果g1,please send efi,thank you
 
@jhax01 Thanks for your response. Maybe you can shine a light on this problem. I have everything working, except the touchscreen. Also the trackpad is giving a similar issue to the one below:

View attachment 449061

I have tried both VoodooI2C on the page one thread, as well as the latest. If I look at the kextstat, I can see that it is loaded. Do you have any idea what I can do?

VoodooI2CHID is not loaded, most likely because instead of VoodooI2C, you have a VodooI2C personality loaded, not sure what you have going on there. Delete the VoodooI2C kexts you have and download the latest version of VoodooI2C and VoodooI2CHID from github, install them to /L/E and rebuild your cache.
 
VoodooI2CHID is not loaded, most likely because instead of VoodooI2C, you have a VodooI2C personality loaded, not sure what you have going on there. Delete the VoodooI2C kexts you have and download the latest version of VoodooI2C and VoodooI2CHID from github, install them to /L/E and rebuild your cache.


Hi. Still no luck getting the touchscreen to work. I have updated to the latest version of clover, and VoodooI2C. I am on Mojave 10.14.6 and am using the original wificard. I am waiting for the DW1560 in the mail. I do not know if this has any affect on it.
 
Hi. Still no luck getting the touchscreen to work. I have updated to the latest version of clover, and VoodooI2C. I am on Mojave 10.14.6 and am using the original wificard. I am waiting for the DW1560 in the mail. I do not know if this has any affect on it.

The wifi card doesn't matter. There's a small mistake somewhere, post your full troubleshooting files.
 
The HP Elite X2 1012 G2 — Still the best tablet macOS experience IMO (The next gen Elite X2 1013 G3 has soldered Wifi! Boo! Dell has a couple good options but their screens are low res and the build quality isn't quite as nice). Anyway, hot patching makes things easy to replicate so here’s the abbreviated guide…

Hardware Considerations
As always, the WiFi needs to be replaced. The Dell DW1560 is really the only choice that makes sense. The DW1830 physically won’t fit and while the DW1820a *can* be made to work, it’s not worth the effort or the potential compatibility problems down the road (it takes a kext from a previous version of OS X to get it going). It’s also best to replace the NVMe drive with a plain old SATA SSD. The battery life hit you take by using the NVMe drive isn’t worth any speed benefit you may get. Let’s face it, if you need that sort of speed, then you probably need more CPU than is available in this package.

BIOS setup
Update to the latest (as of this writing, 1.25 rev A for the G2 / 1.32 for the G1). Be sure to disable secure boot so you can install, disable fastboot and up the DVMT to 64MB. Other than that, the settings don’t matter a ton. I disable all the cameras / fingerprint sensor / sd card reader, etc, since they aren’t functional in macOS and they will consume some battery power otherwise.

USB Prep
Download the latest Mojave (10.14.4 as of now) and use the createinstall media method to create your installer. When installing clover to your USB, make sure to use v4920 or greater and select UEFI. Then simply replace the Clover folder with the one attached to this post. In the config.plist, adjust the ig-platform-id and Apple model to suit your specific device, G1 or G2 (I suggest MacBook9,1 / 00001e19 for the G1 and MacBookPro14,1 / 00001659 for the G2). It’s also probably a good idea to sort out the serial number and MLB at this time as well. Clover Configurator makes it simple to find a good serial number, once you have it use it in the MLB section as well and add 5 random hex characters / numbers to the end. Regardless, to minimize the chance of any issues with your Apple ID / iMessage, it is best not to connect to any networks until you’ve sorted out any post install issues. Also, add back the dart=0 boot flag if you kept Virtualization enabled in the BIOS. And lastly, if you have the G1, use the separately attached SSDT-UIAC instead of the one in the Clover zip.

Installation
If you swapped out your SSD, then after the install USB boots up, simply format / partition the SSD however you like. Bear in mind that if you plan to dual / triple boot, only use OS X partition types for now or otherwise you will end up with a hybrid disk and you won’t be able to install any other OS’s later on. If you plan to keep the stock drive, chances are the boot partition is too small. Starting fresh is probably best, but macOS’s Disk Utility doesn’t cope well with erasing it. However, you can use the Terminal and ‘dd’ to overwrite it. This will wreck the stock Windows installation so back up whatever you had on there and reinstall after you install macOS if you intend to dual boot.

Post Install
Not much to do here, install Clover to the internal drive (selecting UEFI again) and copy over the included Clover folder. Seems the best technique is to install all the kexts to /Library/Extensions/ and leave everything *but* VoodooI2C/VoodooI2CHID/AlpsT4USB in /CLOVER/kexts/Other/; then set 'Inject Kexts' to 'Detect' in the config.plist. Rebuild the kextcache and reboot. You'll get the benefit of booting with the kernel cache, but will still be able to boot via kext injection if something goes wrong with the cache as well as update without issue.

Oddities
There are some boot flags in the config that help with Bluetooth wake from sleep. USB-C hot plug works like a champ, but shows up as an express card icon in the menu bar. I just acquired a TB3 to displayport device and can confirm that with the current config, you can insert a TB3 device and it will work. However, you will get a kernel panic on unplug. This is expected behavior as a real mac has the TB3 controller powered at all times and the OS KPs when it is powered down unexpectedly. To avoid this simply shutdown your tablet before unplugging the TB3 device. And of course, still no pressure with the stylus. We still collect the data, but Apple removed the bits that passed it to the OS back in Sierra and every attempt I've made to get it back have failed. Gotta go back to 10.11 if you need the pressure to work and since we are hot patching, the Clover folder will very likely work.

Future Items
I may look into hibernation at some point. I also have a couple different WWAN cards on the way and will update with any findings.

*** Edit 5/1/19 -- Recompiled the Bluetooth kext to include the fix outlined here -- https://www.tonymacx86.com/threads/guide-how-to-fix-bcm94352z-dw1560-bt-lost-after-sleep.276501/
On my machine, this also eliminates the boot glitch completely for some reason.

*** Edit 5/3/19 -- After more testing it seems that the wake from sleep issue happens regardless of which combo you use FakeSMC/ACPIBatteryManager or VirtualSMC/SMCBattery. It also appears to be USB related, possibly because the charge port is USB 3.1 / TB3.

*** Edit 5/7/19 -- The issue with charge state seems to have been due to incompatible BIOS settings that lingered after the BIOS upgrade (very likely hidden settings). If you have any of those issues, then reset your BIOS to factory defaults and set it up from scratch.

*** Edit 5/18/19 -- I ported the Linux driver for our vendor defined Alps touchpad to allow native multitouch using VoodooI2C's MT2 engine. The AlpsT4USB.kext must be placed in /Library/Extensions along with the latest VoodooI2C / VoodooI2CHID (as of now v2.1.6). It will not work injected from Clover. It's added to the zip in this post but source and release here - https://github.com/blankmac/AlpsT4USB/releases It should also work for the Elite X2 1012 G1 but it's only been tested on the G2.

*** Edit 5/23/19 -- Changed the audio layout from 3 to 21 to fix the headphone jack on the G2.

*** Edit 6/14/19 -- Update AlpsT4USB.kext to latest.
The HP Elite X2 1012 G2 — Still the best tablet macOS experience IMO (The next gen Elite X2 1013 G3 has soldered Wifi! Boo! Dell has a couple good options but their screens are low res and the build quality isn't quite as nice). Anyway, hot patching makes things easy to replicate so here’s the abbreviated guide…

Hardware Considerations
As always, the WiFi needs to be replaced. The Dell DW1560 is really the only choice that makes sense. The DW1830 physically won’t fit and while the DW1820a *can* be made to work, it’s not worth the effort or the potential compatibility problems down the road (it takes a kext from a previous version of OS X to get it going). It’s also best to replace the NVMe drive with a plain old SATA SSD. The battery life hit you take by using the NVMe drive isn’t worth any speed benefit you may get. Let’s face it, if you need that sort of speed, then you probably need more CPU than is available in this package.

BIOS setup
Update to the latest (as of this writing, 1.25 rev A for the G2 / 1.32 for the G1). Be sure to disable secure boot so you can install, disable fastboot and up the DVMT to 64MB. Other than that, the settings don’t matter a ton. I disable all the cameras / fingerprint sensor / sd card reader, etc, since they aren’t functional in macOS and they will consume some battery power otherwise.

USB Prep
Download the latest Mojave (10.14.4 as of now) and use the createinstall media method to create your installer. When installing clover to your USB, make sure to use v4920 or greater and select UEFI. Then simply replace the Clover folder with the one attached to this post. In the config.plist, adjust the ig-platform-id and Apple model to suit your specific device, G1 or G2 (I suggest MacBook9,1 / 00001e19 for the G1 and MacBookPro14,1 / 00001659 for the G2). It’s also probably a good idea to sort out the serial number and MLB at this time as well. Clover Configurator makes it simple to find a good serial number, once you have it use it in the MLB section as well and add 5 random hex characters / numbers to the end. Regardless, to minimize the chance of any issues with your Apple ID / iMessage, it is best not to connect to any networks until you’ve sorted out any post install issues. Also, add back the dart=0 boot flag if you kept Virtualization enabled in the BIOS. And lastly, if you have the G1, use the separately attached SSDT-UIAC instead of the one in the Clover zip.

Installation
If you swapped out your SSD, then after the install USB boots up, simply format / partition the SSD however you like. Bear in mind that if you plan to dual / triple boot, only use OS X partition types for now or otherwise you will end up with a hybrid disk and you won’t be able to install any other OS’s later on. If you plan to keep the stock drive, chances are the boot partition is too small. Starting fresh is probably best, but macOS’s Disk Utility doesn’t cope well with erasing it. However, you can use the Terminal and ‘dd’ to overwrite it. This will wreck the stock Windows installation so back up whatever you had on there and reinstall after you install macOS if you intend to dual boot.

Post Install
Not much to do here, install Clover to the internal drive (selecting UEFI again) and copy over the included Clover folder. Seems the best technique is to install all the kexts to /Library/Extensions/ and leave everything *but* VoodooI2C/VoodooI2CHID/AlpsT4USB in /CLOVER/kexts/Other/; then set 'Inject Kexts' to 'Detect' in the config.plist. Rebuild the kextcache and reboot. You'll get the benefit of booting with the kernel cache, but will still be able to boot via kext injection if something goes wrong with the cache as well as update without issue.

Oddities
There are some boot flags in the config that help with Bluetooth wake from sleep. USB-C hot plug works like a champ, but shows up as an express card icon in the menu bar. I just acquired a TB3 to displayport device and can confirm that with the current config, you can insert a TB3 device and it will work. However, you will get a kernel panic on unplug. This is expected behavior as a real mac has the TB3 controller powered at all times and the OS KPs when it is powered down unexpectedly. To avoid this simply shutdown your tablet before unplugging the TB3 device. And of course, still no pressure with the stylus. We still collect the data, but Apple removed the bits that passed it to the OS back in Sierra and every attempt I've made to get it back have failed. Gotta go back to 10.11 if you need the pressure to work and since we are hot patching, the Clover folder will very likely work.

Future Items
I may look into hibernation at some point. I also have a couple different WWAN cards on the way and will update with any findings.

*** Edit 5/1/19 -- Recompiled the Bluetooth kext to include the fix outlined here -- https://www.tonymacx86.com/threads/guide-how-to-fix-bcm94352z-dw1560-bt-lost-after-sleep.276501/
On my machine, this also eliminates the boot glitch completely for some reason.

*** Edit 5/3/19 -- After more testing it seems that the wake from sleep issue happens regardless of which combo you use FakeSMC/ACPIBatteryManager or VirtualSMC/SMCBattery. It also appears to be USB related, possibly because the charge port is USB 3.1 / TB3.

*** Edit 5/7/19 -- The issue with charge state seems to have been due to incompatible BIOS settings that lingered after the BIOS upgrade (very likely hidden settings). If you have any of those issues, then reset your BIOS to factory defaults and set it up from scratch.

*** Edit 5/18/19 -- I ported the Linux driver for our vendor defined Alps touchpad to allow native multitouch using VoodooI2C's MT2 engine. The AlpsT4USB.kext must be placed in /Library/Extensions along with the latest VoodooI2C / VoodooI2CHID (as of now v2.1.6). It will not work injected from Clover. It's added to the zip in this post but source and release here - https://github.com/blankmac/AlpsT4USB/releases It should also work for the Elite X2 1012 G1 but it's only been tested on the G2.

*** Edit 5/23/19 -- Changed the audio layout from 3 to 21 to fix the headphone jack on the G2.

*** Edit 6/14/19 -- Update AlpsT4USB.kext to latest.
I have HP Folio 1040 G2 i5-5300. Can I install hackintosh?
 
@jhax01 What are troubleshooting files? What do you need from me?
 
Status
Not open for further replies.
Back
Top