I've been using ddcctl on my Display with MacBook Pro 2018 (Intel) - worked perfectly, I'm addicted to it.
Now I've replaced my laptop with a MacBook Pro 2021 (M1), installed ddctl via homebrew but unfortunately it does not work anymore - same display, same cable, just different laptop.
$ ddcctl -d 1 -c 1
D: CGDisplay C1BE29A5-BFC9-4EDA-82B0-1E638BB772F7 dispID(#3) (1920x1080 0°) HiDPI
D: CGDisplay A6A4A5E4-6D41-4340-843E-FD4361382A24 dispID(#2) (1440x900 0°) 89.00 DPI
I: found 2 external displays
E: Failed to parse WindowServer's preferences! (/Library/Preferences/com.apple.windowserver.plist)
E: Failed to acquire framebuffer device for display
I can confirm that such a file does not exist:
cat /Library/Preferences/com.apple.windowserver.plist
cat: /Library/Preferences/com.apple.windowserver.plist: No such file or directory
I searched my entire drive with "find" and I haven't found a file with such a name at all. I'm happy to help with testing if you had an idea on how to fix it.