Contribute
Register

[Guide] HP ProBook/EliteBook/Zbook using Clover UEFI hotpatch

RehabMan

Moderator
Joined
May 3, 2012
Messages
188,867
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
Hey,

Yesterday i installed Mojave in my HP ProBook 4540s.
What is not working:
• Battery indicator showing wrong percentage (98% - when "Battery is charged")
• Fn keys not working properly (Fn key mapped to window logo key, brightness adjustment)
• Sensors not working - HWMonitor not showing CPU and other sensors
• Sleep has some issues - when i closing lid for the first time osx goes to sleep after ~5 sec but when i try this again - pc stays awake. When using "Sleep" from menu - osx goes to sleep after 15s delay (i think this is normal because my MBP 2016 behaves same)

RehabMan, what files i need to atach here ?

No "Problem Reporting" files attached.
Read FAQ, "Problem Reporting" again. Carefully. Attach all requested files/output.
https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/
Use the gen_debug.sh tool mentioned in the FAQ, that way it is less likely you'll omit something.

Note: The guide does not install the FakeSMC sensors by default (they are inefficient). You can install them manually, or use the provided script in tools:
Code:
./tools/install_sensors.sh

The 15 sec delay for sleep is per Apple design. Also, any assertions (check with pmset -g assertions) must be clear.

You will need to describe "Fn keys not working properly" more clearly.
 
Joined
Dec 11, 2011
Messages
167
Motherboard
HP ProBook 4440s-Clover
CPU
i5-3360M
Graphics
HD 4000, 1366x768
Classic Mac
  1. iMac
  2. Power Mac
Mobile Phone
  1. Android
  2. iOS
So I updated my master (been on master this whole time) and noticed 3 files removed from the tools subfolder that your scripts are still utilizing. I did the usual git pull first, then I downloaded all the kexts with ./download.sh next, then when I ran ./install_downloads.sh and that's when the errors started. I'm not uploading PR files as that will require a reboot and I want verification that these errors haven't broken my stable install.
Code:
 kexts/SATA-unsupported.kext/Contents/Info.plist    |  87 ++++++
 .../Contents/Info.plist                            |  46 +++
 make_acpi.sh                                       |  71 ++---
 make_config.sh                                     | 244 +++++++--------
 makefile                                           | 290 ++++++++---------
 makefile.d                                         |  78 ++---
 mount_efi.sh                                       |  88 +-----
 patch_hda.sh                                       | 256 ---------------
 print_version.sh                                   |   9 -
 tools/binpatch                                     | Bin 9332 -> 0 bytes
 tools/tag                                          | Bin 45076 -> 0 bytes
 tools/zlib                                         |  80 -----
Code:
Creating AppleHDA_ProBook.kext..../tools/_hda_subs.sh: line 39: ./tools/zlib: No such file or directory
Cannot parse a NULL or zero-length data
Error Reading File: /tmp/rm_Platforms.plist
Cannot parse a NULL or zero-length data
Error Reading File: /tmp/rm_Platforms.plist
./tools/_hda_subs.sh: line 48: ./tools/zlib: No such file or directory
./tools/_hda_subs.sh: line 48: ./tools/zlib: No such file or directory
./tools/_hda_subs.sh: line 48: ./tools/zlib: No such file or directory
./tools/_hda_subs.sh: line 48: ./tools/zlib: No such file or directory
./tools/_hda_subs.sh: line 48: ./tools/zlib: No such file or directory
./tools/_hda_subs.sh: line 48: ./tools/zlib: No such file or directory
./tools/_hda_subs.sh: line 48: ./tools/zlib: No such file or directory
./tools/_hda_subs.sh: line 48: ./tools/zlib: No such file or directory
./tools/_hda_subs.sh: line 48: ./tools/zlib: No such file or directory
./tools/_hda_subs.sh: line 48: ./tools/zlib: No such file or directory
./tools/_hda_subs.sh: line 48: ./tools/zlib: No such file or directory
./tools/_hda_subs.sh: line 48: ./tools/zlib: No such file or directory
 Done.

Creating AppleHDA_ProBook_Resources (zml.zlib files)..../tools/_hda_subs.sh: line 92: ./tools/zlib: No such file or directory
Cannot parse a NULL or zero-length data
Error Reading File: /tmp/rm_Platforms.plist
Cannot parse a NULL or zero-length data
Error Reading File: /tmp/rm_Platforms.plist
./tools/_hda_subs.sh: line 102: ./tools/zlib: No such file or directory
./tools/_hda_subs.sh: line 102: ./tools/zlib: No such file or directory
./tools/_hda_subs.sh: line 102: ./tools/zlib: No such file or directory
./tools/_hda_subs.sh: line 102: ./tools/zlib: No such file or directory
./tools/_hda_subs.sh: line 102: ./tools/zlib: No such file or directory
./tools/_hda_subs.sh: line 102: ./tools/zlib: No such file or directory
./tools/_hda_subs.sh: line 102: ./tools/zlib: No such file or directory
./tools/_hda_subs.sh: line 102: ./tools/zlib: No such file or directory
./tools/_hda_subs.sh: line 102: ./tools/zlib: No such file or directory
./tools/_hda_subs.sh: line 102: ./tools/zlib: No such file or directory
./tools/_hda_subs.sh: line 102: ./tools/zlib: No such file or directory
./tools/_hda_subs.sh: line 102: ./tools/zlib: No such file or directory
 Done
Code:
This script requires superuser access...
Installing tools...
installing _downloads/tools/RehabMan-MaciASL-2018-0507/MaciASL.app to /Applications
Password:
sudo: /Users/michael/Projects/probook.git/tools/tag: command not found
installing _downloads/tools/RehabMan-patchmatic-2018-0507/patchmatic to /usr/local/bin
sudo: /Users/michael/Projects/probook.git/tools/tag: command not found
installing _downloads/tools/iasl/iasl to /usr/local/bin
sudo: /Users/michael/Projects/probook.git/tools/tag: command not found
Installing kexts...
installing _downloads/kexts/RehabMan-Atheros-2015-0624/Release/IOath3kfrmwr.kext to /Library/Extensions
sudo: /Users/michael/Projects/probook.git/tools/tag: command not found
installing _downloads/kexts/RehabMan-Battery-2018-0915/Release/ACPIBatteryManager.kext to /Library/Extensions
sudo: /Users/michael/Projects/probook.git/tools/tag: command not found
installing _downloads/kexts/RehabMan-BrcmPatchRAM-2018-0505/Release/BrcmFirmwareRepo.kext to /Library/Extensions
sudo: /Users/michael/Projects/probook.git/tools/tag: command not found
installing _downloads/kexts/RehabMan-BrcmPatchRAM-2018-0505/Release/BrcmNonPatchRAM.kext to /Library/Extensions
sudo: /Users/michael/Projects/probook.git/tools/tag: command not found
installing _downloads/kexts/RehabMan-BrcmPatchRAM-2018-0505/Release/BrcmNonPatchRAM2.kext to /Library/Extensions
sudo: /Users/michael/Projects/probook.git/tools/tag: command not found
installing _downloads/kexts/RehabMan-BrcmPatchRAM-2018-0505/Release/BrcmPatchRAM2.kext to /Library/Extensions
sudo: /Users/michael/Projects/probook.git/tools/tag: command not found
installing _downloads/kexts/RehabMan-CodecCommander-2017-0501/Release/CodecCommander.kext to /Library/Extensions
sudo: /Users/michael/Projects/probook.git/tools/tag: command not found
installing _downloads/kexts/RehabMan-FakePCIID-2018-0919/Release/FakePCIID.kext to /Library/Extensions
sudo: /Users/michael/Projects/probook.git/tools/tag: command not found
installing _downloads/kexts/RehabMan-FakePCIID-2018-0919/Release/FakePCIID_Intel_HDMI_Audio.kext to /Library/Extensions
sudo: /Users/michael/Projects/probook.git/tools/tag: command not found
installing _downloads/kexts/RehabMan-FakePCIID-2018-0919/Release/FakePCIID_XHCIMux.kext to /Library/Extensions
sudo: /Users/michael/Projects/probook.git/tools/tag: command not found
installing _downloads/kexts/RehabMan-FakeSMC-2018-0915/FakeSMC.kext to /Library/Extensions
sudo: /Users/michael/Projects/probook.git/tools/tag: command not found
installing _downloads/kexts/RehabMan-FakeSMC-2018-0915/HWMonitor.app to /Applications
sudo: /Users/michael/Projects/probook.git/tools/tag: command not found
installing _downloads/kexts/RehabMan-IntelMausiEthernet-v2-2018-0424/Release/IntelMausiEthernet.kext to /Library/Extensions
sudo: /Users/michael/Projects/probook.git/tools/tag: command not found
installing _downloads/kexts/RehabMan-Poller-2015-1230/Release/ACPIPoller.kext to /Library/Extensions
sudo: /Users/michael/Projects/probook.git/tools/tag: command not found
installing _downloads/kexts/RehabMan-Realtek-Network-v2-2017-0322/Release/RealtekRTL8111.kext to /Library/Extensions
sudo: /Users/michael/Projects/probook.git/tools/tag: command not found
installing _downloads/kexts/RehabMan-USBInjectAll-2018-0822/Release/USBInjectAll.kext to /Library/Extensions
sudo: /Users/michael/Projects/probook.git/tools/tag: command not found
installing _downloads/kexts/RehabMan-Voodoo-2018-0922/Release/VoodooPS2Controller.kext to /Library/Extensions
sudo: /Users/michael/Projects/probook.git/tools/tag: command not found
installing _downloads/kexts/acidanthera-AirportBrcmFixup/AirportBrcmFixup.kext to /Library/Extensions
sudo: /Users/michael/Projects/probook.git/tools/tag: command not found
installing _downloads/kexts/acidanthera-BT4LEContiunityFixup/BT4LEContiunityFixup.kext to /Library/Extensions
sudo: /Users/michael/Projects/probook.git/tools/tag: command not found
installing _downloads/kexts/acidanthera-Lilu/Lilu.kext to /Library/Extensions
sudo: /Users/michael/Projects/probook.git/tools/tag: command not found
installing _downloads/kexts/acidanthera-WhateverGreen/WhateverGreen.kext to /Library/Extensions
sudo: /Users/michael/Projects/probook.git/tools/tag: command not found
installing _downloads/kexts/RehabMan-BrcmPatchRAM-2018-0505/Release/BrcmPatchRAM2.kext to /Library/Extensions
sudo: /Users/michael/Projects/probook.git/tools/tag: command not found
installing _downloads/kexts/RehabMan-BrcmPatchRAM-2018-0505/Release/BrcmNonPatchRAM2.kext to /Library/Extensions
sudo: /Users/michael/Projects/probook.git/tools/tag: command not found
installing _downloads/kexts/RehabMan-FakePCIID-2018-0919/Release/FakePCIID.kext to /Library/Extensions
sudo: /Users/michael/Projects/probook.git/tools/tag: command not found
installing _downloads/kexts/RehabMan-FakePCIID-2018-0919/Release/FakePCIID_XHCIMux.kext to /Library/Extensions
sudo: /Users/michael/Projects/probook.git/tools/tag: command not found
installing _downloads/kexts/RehabMan-FakePCIID-2018-0919/Release/FakePCIID.kext to /Library/Extensions
sudo: /Users/michael/Projects/probook.git/tools/tag: command not found
installing _downloads/kexts/RehabMan-FakePCIID-2018-0919/Release/FakePCIID_Intel_HDMI_Audio.kext to /Library/Extensions
sudo: /Users/michael/Projects/probook.git/tools/tag: command not found
installing kexts/AppleBacklightInjector.kext to /Library/Extensions
sudo: /Users/michael/Projects/probook.git/tools/tag: command not found
installing kexts/SATA-unsupported.kext to /Library/Extensions
sudo: /Users/michael/Projects/probook.git/tools/tag: command not found
installing kexts/XHCI-300-series-injector.kext to /Library/Extensions
sudo: /Users/michael/Projects/probook.git/tools/tag: command not found
installing kexts/HSSDBlockStorage.kext to /Library/Extensions
sudo: /Users/michael/Projects/probook.git/tools/tag: command not found
installing kexts/JMB38X.kext to /Library/Extensions
sudo: /Users/michael/Projects/probook.git/tools/tag: command not found
installing kexts/JMicronATA.kext to /Library/Extensions
sudo: /Users/michael/Projects/probook.git/tools/tag: command not found
installing kexts/ProBookAtheros.kext to /Library/Extensions
sudo: /Users/michael/Projects/probook.git/tools/tag: command not found
Creating AppleHDA_ProBook_Resources (zml.zlib files)...tools/_hda_subs.sh: line 92: tools/zlib: No such file or directory
Cannot parse a NULL or zero-length data
Error Reading File: /tmp/rm_Platforms.plist
Cannot parse a NULL or zero-length data
Error Reading File: /tmp/rm_Platforms.plist
tools/_hda_subs.sh: line 102: tools/zlib: No such file or directory
tools/_hda_subs.sh: line 102: tools/zlib: No such file or directory
tools/_hda_subs.sh: line 102: tools/zlib: No such file or directory
tools/_hda_subs.sh: line 102: tools/zlib: No such file or directory
tools/_hda_subs.sh: line 102: tools/zlib: No such file or directory
tools/_hda_subs.sh: line 102: tools/zlib: No such file or directory
tools/_hda_subs.sh: line 102: tools/zlib: No such file or directory
tools/_hda_subs.sh: line 102: tools/zlib: No such file or directory
tools/_hda_subs.sh: line 102: tools/zlib: No such file or directory
tools/_hda_subs.sh: line 102: tools/zlib: No such file or directory
tools/_hda_subs.sh: line 102: tools/zlib: No such file or directory
tools/_hda_subs.sh: line 102: tools/zlib: No such file or directory
 Done
sudo: /Users/michael/Projects/probook.git/tools/tag: command not found
Warning: /AppleInternal/Library/Extensions: No such file or directory
 
Joined
Oct 3, 2013
Messages
168
Motherboard
HP Probook 4340s
CPU
Interl i5 Ivy Bridge
Graphics
Intel hd4000
Mac
Classic Mac
Mobile Phone
  1. Android
@RehabMan fixed the config.plist, like you said, and the installer worked...however now when i reboot, Clover only shows Windows10, the MacOS entries disappeared...


Edit: figured out i needed apfs.efi from Mojave instalation on drivers64UEFI
 
Last edited:

RehabMan

Moderator
Joined
May 3, 2012
Messages
188,867
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
Although you can use AppleALC with the applealc branch, for the 4x40 (and any other laptop using IDT 76d9) require a version of AppleALC.kext that is not released yet (I fixed a bug in it, it has been accepted, but the prebuilt is not on github yet, and I don't know when a build will appear). You would need to build it from sources.

So, your tasks:
...

And...
- build current AppleALC.kext and install it
OR
- switch to the master branch

I have attached a build of AppleALC.kext that contains the fix for IDT 76d9 to post #1.
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
188,867
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
So I updated my master (been on master this whole time) and noticed 3 files removed from the tools subfolder that your scripts are still utilizing. I did the usual git pull first, then I downloaded all the kexts with ./download.sh next, then when I ran ./install_downloads.sh and that's when the errors started.

When you're switching branches like that, you have to fix the tools directory, because git will remove files from tools that used to be in the repo.
Code:
cd ~/Projects/probook.git/tools
git reset --hard origin/master
cd ..
./download.sh
./install_downloads.sh

Or you can simply remove the tools and run ./download.sh again:
Code:
rm -r tools
./download.sh
./install_downloads.sh

I will probably change the scripts to use _tools instead of tools to avoid this problem.
 
Joined
Dec 11, 2011
Messages
167
Motherboard
HP ProBook 4440s-Clover
CPU
i5-3360M
Graphics
HD 4000, 1366x768
Classic Mac
  1. iMac
  2. Power Mac
Mobile Phone
  1. Android
  2. iOS
When you're switching branches like that, you have to fix the tools directory, because git will remove files from tools that used to be in the repo.
Code:
cd ~/Projects/probook.git/tools
git reset --hard origin/master
cd ..
./download.sh
./install_downloads.sh

Or you can simply remove the tools and run ./download.sh again:
Code:
rm -r tools
./download.sh
./install_downloads.sh

I will probably change the scripts to use _tools instead of tools to avoid this problem.
Well, that was weird. Much appreciated, now everything's executing without error! :)
 
Joined
Jan 23, 2017
Messages
30
Motherboard
Notebook: HP ProBook 440 G5
CPU
i5-8250U
Graphics
UHD 620 (1920x1080)
Mac
  1. MacBook Pro
Mobile Phone
  1. Android
  2. iOS
It is already supported.
Note:
Code:
NUC6i7KYK:probook.git rehabman$ ./install_acpi.sh help|grep -y 4x0.*kabylake-r
install_4x0g5_kabylake-r
NUC6i7KYK:probook.git rehabman$ ls -l config|grep -y 4x0.*kabylake-r
-rwxr-xr-x@ 1 rehabman  staff  13787 Sep 25 16:42 config_4x0_G5_Kabylake-R.plist
Thanks I didn't notice that.
Which branch is the right for my laptop? I think trackpad needs the I2C kext, but you saying the i2c branch is lacking in Mojave support.(I want to put Mojave)
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
188,867
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
Thanks I didn't notice that.
Which branch is the right for my laptop? I think trackpad needs the I2C kext, but you saying the i2c branch is lacking in Mojave support.(I want to put Mojave)

I may try to merge I2C later, but not now (two branches is enough to maintain right now).
So, your choice: go with master or applealc (or test both).
 
Joined
Jan 23, 2017
Messages
30
Motherboard
Notebook: HP ProBook 440 G5
CPU
i5-8250U
Graphics
UHD 620 (1920x1080)
Mac
  1. MacBook Pro
Mobile Phone
  1. Android
  2. iOS
I may try to merge I2C later, but not now (two branches is enough to maintain right now).
So, your choice: go with master or applealc (or test both).

Ok, Thank you very much!
 
Top