banner
CLCK

CLCK

🇨🇳 | 17 y.o. high school student | OI | WebDEV | Basic Photography | Telegram/Twitter/Mastodon...: @CLCK0622 | Feel free to follow me!
telegram
twitter
github
bilibili
zhihu
mastodon
www.clckblog.space

Common Tools and Commands for Hackintosh

Reprinted from Vistopia Forum.

Thanks to the original author!

Tools#

OCAT provides a management channel for some OpenCore-based modifications, you can consider these OpenCore derivatives as a special development version of OpenCore. The procedure is as follows.

  1. Switch to the OpenCore development version through the "Edit" menu.
  2. In "Upgrade OC and Kexts UI," select "Import" another OpenCore derivative.
  3. Sync OC and save the configuration file.

Install the dependencies required for codecgraph brew install graphviz

aml Classification#

SSDT-PNLF.aml Backlight Brightness Control Patch
SSDT-XOSI.aml Operating System Method Patch, Missing Boot Card SSDT-Fn.aml fn Brightness Key

kext Driver Classification Summary#

Note: This section classifies the purposes of Hackintosh drivers, some drivers may conflict when enabled simultaneously, please pay attention.

References

Common Commands#

  • Check Your Hardware Model
system_profiler SPHardwareDataType | grep 'Model Identifier'
  • Installation of Older macOS Prompt "This copy of the 'Install macOS xxx' application is damaged and cannot be used to install macOS"

Generally, this is because the lower version was released too early, and Apple actually recommends installing the latest version, as Apple has not updated the certificate date. (For example: macOS 10.13 was released in 2017, but now it is already 2019. This will report the error. Modify the system date and then install (it is recommended to change the time to one week after the system release date).
For example, macOS Big Sur 11.2.2 was released around 2021/03/02, so change the system date to March 3rd. For example, to change the system time to 2021/03/04, enter the following content date 030400002021.00)

# Open the terminal command tool and enter the command to modify the time:
date monthdayhourminyear.second

# - Install Mojave 2018 System
date 122014102017.30

# - Install Catalina 2019
# - Catalina 10.15.7 was released around 2020.9.23
date 092300002020.00

# - Install Big Sur 2020
date 122014102019.30

# - Install Monterey 2021
# - Monterey 12.4 was released on 2022.04.20
date 042100002022.00
  • Installation Cannot Continue Because the Installer is Damaged, Re-download the Installer and Try Again

There are generally two reasons

One is that the installation image was not done well, the solution is to find a new installation image and re-burn the USB drive.

Another possibility is related to the verification server time during installation with Apple, which is less likely.

  • SIP Settings
Unlock SIP in recovery mode

# Check SIP Status
$ csrutil status
System Integrity Protection status: enable/disabled.

Note: If it is enable, it means SIP is on;
      If it is disabled, it means SIP is off, i.e., SIP is unlocked.

Shut down and restart, enter the OpenCore boot selection interface, enter recovery mode, open Tools -> Terminal; execute the following commands
    csrutil disable
    csrutil authenticated-root disable
  • Check Loaded Kexts Status
kextstat | grep -E "AppleHDA|Lilu"

kextstat | grep -v "com.apple"                      Show drivers loaded except for Apple

kextstat | grep -v "com.apple" | grep -v "Energy"   View loaded unofficial drivers

ioreg -l | grep layout-id View injected id value
  • Temporarily Clear Update Mark
# Temporarily clear system update mark
defaults write com.apple.systempreferences AttentionPrefBundleIDs 0
Killall Dock

# Clear update mark (numeric badge)
defaults write com.apple.appstored.plist BadgeCount 0
Killall Dock

# Solve the background SoftwareUpdateNotificationManager for updates. Not only prohibit updates but also erase the red update badge.

sudo mount -uw /
cd /System/Library/PrivateFrameworks/SoftwareUpdate.framework/Versions/A/Resources/SoftwareUpdateNotificationManager.app/Contents/MacOS/
sudo chmod 600 ./SoftwareUpdateNotificationManager

sudo softwareupdate --ignore "macOS Catalina"
sudo softwareupdate --ignore "macOS Big Sur"
defaults write com.apple.systempreferences AttentionPrefBundleIDs 0;killall Dock

# Restore Command:
sudo mount -uw /
sudo chmod 777 /System/Library/PrivateFrameworks/SoftwareUpdate.framework/Versions/A/Resources/SoftwareUpdateNotificationManager.app/Contents/MacOS/SoftwareUpdateNotificationManager

defaults write com.apple.systempreferences AttentionPrefBundleIDs 0;killall Dock

# View update content
softwareupdate --list

# You need to restore the system update prompt, run in terminal
softwareupdate --reset-ignored
  • Launchpad Can Also Set the Number of Columns and Width of Applications, Use the Following Commands:
# Set the number of columns to 9
defaults write com.apple.dock springboard-columns -int 9

# Set the number of rows to 6
defaults write com.apple.dock springboard-rows -int 6

# Restart Dock to take effect
killall Dock

# Restore default number of columns and rows
defaults write com.apple.dock springboard-rows Default
defaults write com.apple.dock springboard-columns Default

# Restart Dock to take effect
killall Dock
  • Microsoft AutoUpdate Method 1: Set Permissions to Not Accessible
cd /Library/Application\ Support/Microsoft/MAU2.0
sudo chmod 000 Microsoft\ AutoUpdate.app

Method 2: Delete (Simply delete it)

  1. Open Finder
  2. Press the keyboard shortcut: command (⌘) +⇧+G, or from the top menu, select Go, Go to Folder
  3. In the pop-up dialog, enter the path:
    /Library/Application Support/Microsoft/
    
  4. You can directly delete the folder "MAU2.0", or if you are not sure, click on the folder "MAU2.0" and delete "Microsoft AutoUpdate.app".
  • Allow Installation of Software from the Internet Settings
# Open the terminal and enter the following code:
sudo spctl --master-disable
  • Root Directory Read-Only After macOS Upgrade to 12.0.1, Prompt "Read-only file system"

Error Resolution Method: (No longer applicable to 12.0.1)!!!
Disable SIP Command Line Execute csrutil disable

Correct Resolution Method:

sudo vim /etc/synthetic.conf

Add a line record (if there are two columns, use tab to separate, note that space separation is invalid), then restart.

data Users/xxx/data
  • Disable Backup Speed Limit

Mac finds it particularly slow during the first backup, which is because Mac limits the backup speed to avoid affecting normal use.

After verification, we can enter:

# Disable speed limit
sudo sysctl debug.lowpri_throttle_enabled=0

# After backup is complete, you can enable speed limit
sudo sysctl debug.lowpri_throttle_enabled=1

Because the backup content after the first backup will be much less, low-speed mode is sufficient.

Wallpapers#

Online Testing Tools#

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.