-
Open the terminal in macOS
After entering this command, press the Enter key.
bash -c "$(curl -fsSL https://raw.githubusercontent.com/xzhih/one-key-hidpi/master/hidpi.sh]]"
If you see curl: (28) Failed to connect..., we cannot install via command, we can install by downloading the installation package.
-
Download the installation package
- Download from GitHub: https://github.com/xzhih/one-key-hidpi
- Download from CSDN: https://download.csdn.net/download/network_dream/90273442
-
After downloading, unzip and install,
-
Double-click hidpi.command
-
If it shows unable to open, go to Mac's settings → Privacy & Security → Open anyway.
-
Installation
-
Enter 1, press the Enter key
-
Enter 3, press the Enter key, and input your Mac's startup password.
-
Here, choose the refresh rate of your monitor. Since I am using a 2K monitor, I chose the fourth option. If you see [Process completed], it means the installation was successful.
-
-
-
Restart the Mac computer.
-
Compare before and after installation, open Settings → Resolution. The left side shows the settings before installation, and the right side shows the settings after installation. Choose a suitable one on the right; I use 1680x945 (HIDPI), which looks more comfortable overall.
Problem: Unable to find the monitor, automatically exits?#
Here I record the reason:
The problematic options were as follows (unfortunately, I did not take a screenshot when the issue occurred):
Resolution only had two options: 1920 x 1080, 1280 x 720
Color profile: display
Refresh rate: 60Hz, 50Hz
Below is the screenshot after fixing:
I connected the Mac mini M4 to the display via an HDMI cable, and the display accidentally lost power. When I restarted the display, this issue appeared.
I suspected it was a problem with the HiDPI installation package, and after a lot of troubleshooting, I couldn't resolve it.
Finally, I unplugged the HDMI cable from the display and plugged it back in, and miraculously, it returned to normal.
I seriously suspect that there might be an issue with the HDMI cable; I bought it online, claiming to support 8k, but the connector feels loose and seems to have poor contact.
I tried to reproduce this issue again by repeatedly unplugging and plugging the HDMI cable, but the problem did not occur again.