-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Failed to parse WindowServer's preferences #92
Comments
Same issue here on Mac Mini M1 2020, MacOS Big Sur 11.1. I'm not a native development expert, but for me, it looks like the reason for this is this hardcoded string in there: Line 50 in 72c1f34
wich either should be a system variable, or, if no system variable exists, it should search check which macos version is being used and then decide which path it should take. I will try to build it my own and if it works, I post the results in here. |
Is this fixable without a new release version? |
It seems to be not only the filename. It seems that com.apple.windowserver.displays.plist doesn't contain the structure/values required by the function. There is no DisplayID or IODisplayLocation in my file. |
In line with what you said, @detlefs, I symlinked the plist file to the old path and now I'm getting this error:
So it looks like the problem is deeper...a bit beyond me... |
Seems to be a sub-issue of #86 |
I think I'm gonna rip this stuff out. FWIW, the 1st part of it (file finding) works on my Catalina -> Big Sur MacBook, which doesn't have the .displays.plist file being mentioned. |
Same here on m1 Air running Monterey. Tried to create a symlink, to no avail:
|
FWIW, this works fine on my 2018 intel mac mini, which has the com.apple.windowserver.plist file. ddcctl -d 1 It does not work on my mini M2 Pro, which has the com.apple.windowserver.displays.plist file. ddcctl -d 1 |
Same error here, mac book pro 13 m1: ddcctl -d 1
|
Same here... M3 with Sonoma 14.3
|
Any ETAs for fixing this? It seems like ddcctl doesn't work with ARM chips |
I created a symlink by running the following: sudo ln -s /Library/Preferences/com.apple.windowserver.displays.plist /Library/Preferences/com.apple.windowserver.plist However, now I get this:
|
denisidoro, I got the same kind of error. I assume the new file has a different format than the old one. |
M1 Max with Sonoma 14.4 user here. Fresh installed this app and throws the following error:
I think thats because I don't have
It seems its hardcoded here: Line 48 in 06c7ab6
Ran the following command:
Then I hit:
This also results panic: (As @denisidoro pointed out above)
I found some example data to replace my own file but just don't wanted to mess the configs: https://forums.macrumors.com/threads/m1-mac-external-display-fuzzy-fonts-colors-ypbpr-vs-rgb.2276345/page-28?post=30550735#post-30550735 Is there any other place to get /cc @kfix |
@Dentrax I have the exact same issue. Have you found a solution? |
@Contraboi sorry, unfortunately haven't. So I've switched to https://github.com/waydabber/m1ddc - works like a charm, no issues at all. |
@Dentrax, I too have switched to m1ddc. Now I can swap my 3 monitors from Mac to PC inputs with a single Automator script containing the following 3 commands: m1ddc display 1 set input 15 I had to experiment to get the inputs right. Run m1ddc with no args to get the man page, and run it with the args "display list detailed" to get some helpful details. The display number is the one in the brackets, not the "Display ID:" in the table. |
Running the tool I get the following output:
I'm using a M1 Mac mini with macOS Big Sur (11.1)
I downloaded the latest release of the tool.
I couldn't find a file
/Library/Preferences/com.apple.windowserver.plist
on my system, but a file/Library/Preferences/com.apple.windowserver.displays.plist
.Maybe the name was changed for Big Sur?
Running it with -h option, I get the following result:
The text was updated successfully, but these errors were encountered: