Contribute
Register

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

Status
Not open for further replies.
Joined
Dec 3, 2011
Messages
438
Motherboard
HP Elite X2
CPU
i5-7600U
Graphics
HD 620, 2736x1834
Mac
  1. MacBook Pro
  2. Mac Pro
Classic Mac
  1. 128K
  2. 512K
Mobile Phone
  1. iOS
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.
 

Attachments

  • SSDT-UIAC-G1.zip
    919 bytes · Views: 1,308
  • CLOVER.zip
    8.4 MB · Views: 2,396
Last edited:
Thanks for your efforts! I just purchased a G2 i5 for the purpose of transforming this into a Hackintosh and it behaves purrrfectly thanks to your insights. Love this machine!
 
Thanks for your efforts! I just purchased a G2 i5 for the purpose of transforming this into a Hackintosh and it behaves purrrfectly thanks to your insights. Love this machine!

Nice! I'm glad it's working well for you. I finally figured out that the BIOS is the cause of all the issues detailed in the first post. I upgraded from a very old version and apparently there were some incompatibilities in the settings that lingered. If you are experiencing anything weird because of an upgrade, then all it takes is resetting the bios to factory defaults and setting it up from scratch again.
 
Did you manage to get the "Ink" functionality working? I can draw on the screen using a dedicated app like Write, but the floating Ink windows does 'see' me moving the pen (like a mouse) but doesn't register any writing/drawing... Could be my lack of knowledge about this function though.
 
Did you manage to get the "Ink" functionality working? I can draw on the screen using a dedicated app like Write, but the floating Ink windows does 'see' me moving the pen (like a mouse) but doesn't register any writing/drawing... Could be my lack of knowledge about this function though.

No, and unfortunately, I doubt we will be able to get it working. I helped write the touchscreen portion of VoodooI2C and while OS X is aware that a stylus is present from the report descriptor, you can see that it essentially treats the pen as any other finger / mouse input. Apple has systematically removed or crippled tablet related functions from the public APIs since El Capitan.
 
Well so far the 'two finger scroll' is good enough of an improvement over a MacBook so far. Battery life is good. Wish we could enlarge the red, yellow and green window buttons though. Really getting to like this baby!
 
Has anybody got the bluetooth to work yet? It says its turned on, but I go to add a mouse and it doesnt see, well anything bluetooth.

Thanks all.
 
Has anybody got the bluetooth to work yet? It says its turned on, but I go to add a mouse and it doesnt see, well anything bluetooth.

Thanks all.

Toggle it off, then on and see if you can connect. Also, did you install the kexts to /Library/Extensions and remove them from /Clover/Kexts/Other? BrcmFirmwareRepo doesn't work well from Clover.
 
Thank you very much ! It’s a great guide!
 
Hi all, So I have an Elite x2 G1 ( I Know this thread is G2) However I've been able to get Mojave up and running nearly perfect with mostly everything working. However my trackpad is not working. Keyboard works like a charm and so does everything else, even updated to 10.14.5 without an issue. Ive tried the VoodooPS2 kext from your clover zip. however no matter where I place files whether its in S/L/E, L/E or Clover my trackpad still doesn't work. I can see VoodoopS2 loading but nothing any help is greatly appreciated. Thanks
 
Status
Not open for further replies.
Back
Top