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

Enabling Screens that are Off #126

Open cburgdorfer opened 1 year ago

cburgdorfer commented 1 year ago

Great tool, thanks for building displayplacer!

In your documentation you say:

If you disable a screen, you may need to unplug/replug it to bring it back. However, on some setups, you can re-enable it with displayplacer "id: enabled:true"

Do you have more information on "some setups" ? I'm trying to automatically switch off screens at the end of the day and switch them back on in the morning. Switching off works like a treat - great! But then, I can't seem to turn them on anymore. But perhaps I can implement a different setup somehow?

idvorkin commented 8 months ago

Any insights on this - right now I can't get my laptop screen back on :(

cburgdorfer commented 8 months ago

At the end i just used caffeinate and pmutils

brettinternet commented 6 months ago

@cburgdorfer How do caffeinate and pmutils solve this?

cburgdorfer commented 6 months ago

@brettinternet you can use the caffeinate command in the command line to wake the machine up/prevent it from going to sleep. And then the pmset displaysleepnow to make the screen(s) to go to sleep.

brettinternet commented 6 months ago

Thank you @cburgdorfer, I see what you mean now. I use this sleep the monitors briefly to allow another input to take control of one of the monitors.

pmset displaysleepnow
sleep 3
caffeinate -u
realav commented 2 months ago

I also want to archive this, but displayplacer "id:<id> enabled:true is not working for the built-in display of my M1 MacBook after disabling it using displayplacer "id:<id> enabled:false.