sudowork / fix_m1_rgb

Script that attempts to force M1 macs into RGB mode when used with monitors that are defaulting to YPbPr.
132 stars 10 forks source link

Error: No LinkDescription found in display config. Try rotating your display from Display settings to generate the field in the plist. #9

Open gryphtl opened 2 years ago

gryphtl commented 2 years ago

@sudowork thank you for this lovely attempt.

Unfortunately, it seems this issue persists.

MacOC 12.0.1 M1 Pro 14" Display DELL S2721Q

I've rotated the monitor, run code in the terminal, restart, and the monitor stays in YPbPr, with the only RGB option showing the magenta wash as others have described.

The script results follow, showing the same error as above:

[USER REDACT] ~ % python3 ~/Downloads/fix_m1_rgb.py [2021-12-22 17:24:04 WARNING] This script has not fully been tested on OS X 12 Monterey. Do you want to continue? [yN] y [2021-12-22 17:24:29 INFO] Looking for preferences in: /Library/Preferences/com.apple.windowserver.displays.plist /Users/hal-9001/Library/Preferences/com.apple.windowserver.displays.plist [2021-12-22 17:24:29 INFO] Found /Library/Preferences/com.apple.windowserver.displays.plist. [2021-12-22 17:24:29 INFO] Backing up file /Library/Preferences/com.apple.windowserver.displays.plist -> /Library/Preferences/com.apple.windowserver.displays.plist.bak.1640211869 Password: /Library/Preferences/com.apple.windowserver.displays.plist -> /Library/Preferences/com.apple.windowserver.displays.plist.bak.1640211869 [2021-12-22 17:24:39 INFO] Fixing /Library/Preferences/com.apple.windowserver.displays.plist [2021-12-22 17:24:39 INFO] Skipping /Library/Preferences/com.apple.windowserver.displays.plist. No LinkDescription found in display config. Try rotating your display from Display settings to generate the field in the plist. [2021-12-22 17:24:39 INFO] Found ByHost preferences at /Users/hal-9001/Library/Preferences/ByHost/com.apple.windowserver.displays.6A723102-96D2-556B-8BBC-361AD165BF52.plist - removing [2021-12-22 17:24:39 INFO] Backing up file /Users/hal-9001/Library/Preferences/ByHost/com.apple.windowserver.displays.6A723102-96D2-556B-8BBC-361AD165BF52.plist -> /Users/hal-9001/Library/Preferences/ByHost/com.apple.windowserver.displays.6A723102-96D2-556B-8BBC-361AD165BF52.plist.bak.1640211879 /Users/hal-9001/Library/Preferences/ByHost/com.apple.windowserver.displays.6A723102-96D2-556B-8BBC-361AD165BF52.plist -> /Users/hal-9001/Library/Preferences/ByHost/com.apple.windowserver.displays.6A723102-96D2-556B-8BBC-361AD165BF52.plist.bak.1640211879 [2021-12-22 17:24:39 INFO] Removing file /Users/hal-9001/Library/Preferences/ByHost/com.apple.windowserver.displays.6A723102-96D2-556B-8BBC-361AD165BF52.plist /Users/hal-9001/Library/Preferences/ByHost/com.apple.windowserver.displays.6A723102-96D2-556B-8BBC-361AD165BF52.plist

sarabveer commented 2 years ago

With the Dell S2721Q, if you use a DisplayPort cable and set the Refresh Rate in System Preferences to Variable, the monitor shows RGB instead of YPbPr.

MacOS 12.1 MacBook Pro M1 Pro 8-core 14" DELL S2721Q