displayplacer: Broken on M1 due to deprecation by Apple
You can build M1 version:
- download zip of this repo https://github.com/jakehilborn/displayplacer/archive/refs/heads/master.zip
cd displayplacer-mastermake- ignore the warning
BUT, it’s still broken with a different error at runtime.
When I try to rotate my external display:
(ipc/send) invalid destination port, code: 0x10000003
Though listing and changing resolution of internal display still works OK.
It seems Apple has truly discontinued some technology that this and other similar apps rely on.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 21 (5 by maintainers)
@gingerbeardman @varenc Since my problem with displayplacer is fixed by using contextual ids, I wanted to thank you for your help and your time! Sorry that I highjacked your thread about a compiling issue!
I’m using a M1 Pro Macbook Pro and while displayplacer works to list the config, it cannot apply it when my external displays are out of order. No errors are given on terminal, and not change is made. Here’s the command:
/opt/homebrew/bin/displayplacer "id:37D8832A-2D66-02CA-B9F7-8F30A301B230 res:1512x982 hz:120 color_depth:8 scaling:on origin:(0,0) degree:0" "id:382DB9ED-880B-4CBE-BA09-93FA2E8558D7 res:1920x1080 hz:75 color_depth:8 scaling:off origin:(1512,-98) degree:0" "id:6297311A-1D4F-48F8-9361-537D0D23A54C res:1920x1080 hz:75 color_depth:8 scaling:off origin:(-1920,-98) degree:0"@jakehilborn yep, displayplacer:v1.3.0 works on my m1-setup with mirror/unmirror. thanks for the release btw.
I’ve tried every way possible, it just doesn’t work on the M1 and M2 processors;
@gingerbeardman sorry, it kinda does. The problem is that the initial ordering by macOS (be it from pluging the cables in a certain order or waking from sleep) is 50% of the time in the good order (physical ordering match logical ordering) and 50% of the time the ordering of the external monitors are swapped. Even if I change the cables order, the outcome is the same, even if the initial ordering is reversed.
Using displayplacer with the contextual screen ids managed to reorder the screens after a sleeping test, but the app windows were still swapped (which I guess there’s no fix?)
Thanks for the good reply @varenc , I will test all those points tomorrow when I’m back at the office.
Yes, it’s macOS that randomly reorder my screens and that’s why I wanted to use displayplacer, to correct this behaviour. Both screens are the same brand & model, I guess that’s why macOS is confused.
I’ll definitely try the ‘Contextual screen ids’, thanks for the suggestion.
If displayplacer is not the right tool, do you know any tools that can “fix” the screens to physical displays?
@gingerbeardman it doesn’t matter so much what I can do or what I can’t: your issue description is lacking what you can’t do.
I do not understand your issue at the moment. On my M1-Pro + Ventura, displayplacer works.