jakehilborn / displayplacer

macOS command line utility to configure multi-display resolutions and arrangements. Essentially XRandR for macOS.
MIT License
3.74k stars 134 forks source link

disabled screen can't be enabled again; missing from device tree #109

Open ghost opened 1 year ago

ghost commented 1 year ago

following up from https://news.ycombinator.com/item?id=34496697

I have tested the current head, and I have one remark.

It looks like disabling the screen works as advertised. It actually works better than expected, because the monitor goes into auto-select and picks the right input. But also, the display can't ever be enabled again, you must hotplug it for it to show up again. It goes entirely missing from System Information too.

CGSConfigureDisplayEnabled also seems to be missing from Apple documentation.

chrisgoddard commented 1 year ago

Having the same issue here. Documentation says that it disables monitor and removes it from OS list but would it be possible/preferable to disable but still retain the list so that it can be re-enabled. I'm not a C developer but from the code it would seem like when listing current profile you could never get enabled:false

jakehilborn commented 1 year ago

I'm seeing the same behavior on my M2 laptop. I've updated the docs to reflect that some machines require unplugging/replugging to reenable.

LanYunDev commented 1 year ago

+1

yusrmuttaqien commented 7 months ago

+1