Contribute
Register

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

Status
Not open for further replies.
first thanks for you EFI sharing, most work fine for last version macOS 10.15.2 with Clover, and the bios is 1.44, but when i updated the bios, switch Clover to Opencore and updated OS to 10.15.5.

here is some problems:
1. battery is not working.
2. sleeping not working.

here is my speces:
HP 1012 G1
HP bios version: 1.48 (latest)
Model name: MacBook
Model ID: MacBook9,1
CPU: Dual-Core Intel Core m7
RAM: 8G
HDD: 1T
OS version: macOS 10.15.5 (19F96)
Opencore: v0.5.8 (latest for now)

1. battery is dead, as the attach
截屏2020-05-31 11.19.02.png


the status is always 0%, I compared the patch file nothing too much differences, and I created my own battery fix still not working.

2. sleeping not work.
when cover up, the screen turns black, it doesn't sleep, when cover down, I have to press FN + sun icon to turn the screen on.

would someone help me?

OC.zip contains all the apci patch files, kexts and config file.
dsdt_bios_01.48.zip is the orignal dsdt files in Bios 1.48(alougth mine is G1 but i think it's close to G2)
 

Attachments

  • OC.zip
    5.6 MB · Views: 231
  • dsdt_bios_01.48.zip
    154.4 KB · Views: 119
Last edited:
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

I've been working on a way to get pressure sensitivity working again in Sierra. I have something that's working on my machine (a G1). I am, however, running Sierra (I haven't gotten around upgrading). I am curious if my solution works for newer MacOS versions and G2, so I'm including the modified Kext and relevant files for those who want to test it out.

Some technical info:
I exfiltrate the data from kernel-space to user-space via the IORegistry. A launchAgent process (I'm calling it an IOManager, similar to Wacom's IOManager process) needs to be installed in order to tap into the events and patch the relevant mouse events with the exfiltrated data. Note: I don't know if G2 supports tilt or pen rotation so those properties aren't hooked up in the IOManager currently. Also note: I compiled the Kexts with the 10.12 SDK, I'm unsure if that will be ok for later MacOS versions.


Here's a gif of it in action (excuse the slight lag and delay, screenrecording while using sketchbook did not play nicely); performance is actually smooth when you're not screenrecording.
PressureTest.gif
 

Attachments

  • VoodooI2C_pressureSupport.zip
    265 KB · Views: 192
Last edited:
I've been working on a way to get pressure sensitivity working again in Sierra. I have something that's working on my machine (a G1). I am, however, running Sierra (I haven't gotten around upgrading). I am curious if my solution works for newer MacOS versions and G2, so I'm including the modified Kext and relevant files for those who want to test it out.

Some technical info:
I exfiltrate the data from kernel-space to user-space via the IORegistry. A launchAgent process (I'm calling it an IOManager, similar to Wacom's IOManager process) needs to be installed in order to tap into the events and patch the relevant mouse events with the exfiltrated data. Note: I don't know if G2 supports tilt or pen rotation so those properties aren't hooked up in the IOManager currently. Also note: I compiled the Kexts with the 10.12 SDK, I'm unsure if that will be ok for later MacOS versions.


Here's a gif of it in action (excuse the slight lag and delay, screenrecording while using sketchbook did not play nicely); performance is actually smooth when you're not screenrecording.
View attachment 474716


Can you link your source code? No offense but you have one post and are asking people to install binaries.
 
For those running the VirtualSMC suite, I added cycle count support to SSDT-BAT. Was made with my G1's ACPI in mind but should be universal for both G1s and G2s(both binary and source with additional info):


One thing left battery wise is temperature implementation but that will be for another day.

Slightly unrelated note: My TPL0 device gets into a bad state sometimes on boot and so the touchscreen won't work. Already attempted the XPS0/XPS3 reroutes but still unsuccessful, reboots between Mojave and Catalina fixes it but it's more of a hack than anything else. If anyone has good resources on fixing this to share, I would greatly appreciate it
 

specifically this branch:


Haven't had a chance to test it yet but have been looking through your code a bit. I doubt the others would want to incorporate a userland fix for stylus pressure but you should submit a PR with your fix for #317.
 
Hi there,

My hp elite x2 1013 G3 should arrive at Tuesday and I plan to hackintosh ;)
1) Should I install Mojave or go straight to Catalina?
2) How should I create the installation media? Should I use UniiBeast or create "plain" instalation USB and then install clover?
3) Which version of Clover/UniBeast should I use? Does it depend on the os version?
4) Should I set the model id to MacBookPro9,1? The dev is based on i5-8250 with 8GB ram.
 
Hi there,

My hp elite x2 1013 G3 should arrive at Tuesday and I plan to hackintosh ;)
1) Should I install Mojave or go straight to Catalina?
2) How should I create the installation media? Should I use UniiBeast or create "plain" instalation USB and then install clover?
3) Which version of Clover/UniBeast should I use? Does it depend on the os version?
4) Should I set the model id to MacBookPro9,1? The dev is based on i5-8250 with 8GB ram.

Hi mate,

I think I am probably the only G3 owner on here.

Before you can install OS X I think you will have to swap the SSD out, it just crashed during install with the stock drive for me.

1, I use Catalina as it has better compatibility for Intel Bluetooth and WIFI which is essential on a G3.
2, I am using Opencore, I was having load of issues in Clover getting everything to work.
3 Use Vanilla method to create the installer
4, Mine is set to MacBook Pro 15.4 Don't know if it makes a major difference.

Here's some extra information for you.

Firstly feel free to do this from scratch yourself in Clover but here's my experience...

I was using Clover but was having difficulty with a few things. Anyway when I was researching I read a thread by some guy who had his Elitebook setup with Opencore, I tried his EFI and everything apart from the touchpad worked. I added the WIFI/Bluetooth Kexts which work fine but you have to use terminal to start the WIFI. I think the USBs just need patching correctly to get the touchpad working but I have been too busy to fix this. really I need to go through his EFI and clean it which I will get round to soon.

So everything works perfectly apart from -
- WIFI needs to be initialised in Terminal, works great though even Airplay (No Airdrop)
- Bluetooth connects with my audio devices but not my mouse or the Stylus (The stylus still works without BT)
- Wake up from sleep works 90% of the time(Need to investigate further)
- Touchpad doesn't work

I've been using it daily as a tablet and it's great, I also tested a lot of video production packages on it which are all stable and work surprisingly well considering the hardware. Opencore is great too, it boots super fast like a real Mac.

Anyway I have attached the EFI for you. You will need to get the AppleIntelWIFI.kext but DO NOT install is in the EFI or S/L it runs from your desktop(Or any other folder) with a terminal command.
 

Attachments

  • EFI.zip
    26.1 MB · Views: 155
Last edited:
Thank you for sharing!
 
Cool no worries let me know how you get on with it and if you manage to fix anything that I have not got round to yet.

I think Wake up from sleep is just the display by the way, the actual tablet does wake up every time.
 
Status
Not open for further replies.
Back
Top