-
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, so 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 the Mac 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.
-
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 am using 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 had only two options: 1920 x 1080, 1280 x 720
Color profile: display
Refresh rate: 60 Hz, 50 Hz
Below is a screenshot after fixing the issue:
I connected the Mac mini M4 to the display using an HDMI cable, and the monitor accidentally lost power. When I restarted the monitor, this issue appeared.
I suspected it was a problem with the HiDPI installation package and struggled for a long time without resolving it.
Finally, I unplugged the HDMI cable from the monitor and plugged it back in, and miraculously, it returned to normal.
I seriously suspect that there might be an issue with the HDMI cable. The HDMI cable was purchased online and claimed 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 issue did not occur again.