Skip to content

Turn off a display and fully remove it from the display layout with the option of turning a connected display back on ("Disconnect Display", "Connect Display"). #1396

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

Closed
waydabber opened this issue Jan 26, 2023 · 13 comments
Assignees
Labels
display connection Display connection management done All tasks are completed enhancement New feature or request released Released
Milestone

Comments

@waydabber
Copy link
Owner

It is possible (albeit somewhat risky) to fully turn off a display and remove it from the display layout. In this case the external display will go to sleep, the internal display will enter a mode that is similar to clamshell mode.

The feature should not be enabled by default but after the appropriate warning the user could enable it to replace the "Hide Display" functionality.

Special care needed for iMac displays or when only one display is present so the user is not left in a state when no display is available.

@waydabber waydabber added enhancement New feature or request in progress Implementing labels Jan 26, 2023
@waydabber
Copy link
Owner Author

The app should take care to attempt to turn displays back on on app exit.

@waydabber waydabber changed the title Turn off a display and fully remove it from the display layout ("Turn Off Display") Turn off a display and fully remove it from the display layout ("Turn Off Display") with the option of turning a connected display back on "Turn On Display". Jan 26, 2023
@waydabber waydabber changed the title Turn off a display and fully remove it from the display layout ("Turn Off Display") with the option of turning a connected display back on "Turn On Display". Turn off a display and fully remove it from the display layout with the option of turning a connected display back on ("Disconnect Display", "Connect Display"). Jan 26, 2023
@waydabber waydabber self-assigned this Jan 26, 2023
@waydabber waydabber added the internal pre-release Enable internal pre-releases under Settings/Applications/Updates label Jan 26, 2023
@waydabber waydabber added this to the TBD milestone Jan 26, 2023
@waydabber
Copy link
Owner Author

waydabber commented Jan 26, 2023

This will be a Pro feature.

@waydabber waydabber added done All tasks are completed and removed in progress Implementing labels Jan 26, 2023
@waydabber waydabber modified the milestones: TBD, v1.3.15 Jan 26, 2023
@waydabber
Copy link
Owner Author

Screenshot 2023-01-26 at 22 50 04

@waydabber
Copy link
Owner Author

The feature and related settings can be enabled/disabled here:

Screenshot 2023-01-27 at 19 45 26

@waydabber waydabber added the display connection Display connection management label Jan 27, 2023
@KrzysztofPrzygoda
Copy link

What about native ON/OFF slider?

turn-off-on-2

@waydabber
Copy link
Owner Author

Well, the screenshot in the post is not final, I want to redo the header a bit and put a power button there (I don't think the chevron is actually needed there since it is obvious whether the block is open or not). Want to make it compact and easily accessible. I'll add an option to change the nature of the power button - whether it should invoke DDC power, DDC backlight or connect/disconnect.

But this is a vague plan, first I want to make the functionality right as this feature is turning out to be rather complicated if I want to do it right and safe.

@KrzysztofPrzygoda
Copy link

Right, I like your plan.

@waydabber waydabber modified the milestones: v1.3.15, TBD Jan 28, 2023
@waydabber waydabber added pre-release available Released as beta version and removed internal pre-release Enable internal pre-releases under Settings/Applications/Updates labels Jan 29, 2023
@KrzysztofPrzygoda
Copy link

Works like a charm! Many thanks @waydabber!

One exception: Disconnect reconnected displays upon wake option doesn't seem to work at all in my case.
I'm disconnecting one display and waiting for it to go to sleep. Then choosing Apple > Sleep and waiting for all other displays to go to sleep ("No signal" message > power off). Then waking up MacBook after several seconds and all monitors wakes up reconnected.

@waydabber waydabber added released Released and removed pre-release available Released as beta version labels Feb 7, 2023
@lgarron
Copy link

lgarron commented Dec 9, 2024

Well, the screenshot in the post is not final, I want to redo the header a bit and put a power button there (I don't think the chevron is actually needed there since it is obvious whether the block is open or not). Want to make it compact and easily accessible. I'll add an option to change the nature of the power button - whether it should invoke DDC power, DDC backlight or connect/disconnect.

Is there documentation on how this should look now?

I'm trying to disconnect a physical plugged-in monitor while screen sharing (since it cannot be set to the native resolution of the screen sharing client). However, even with a paid Pro activation and looking through all advanced options I can find, I can't figure out how to get an on/off or connect/disconnect button to appear for that physical monitor in the menu.

@waydabber
Copy link
Owner Author

There should be a toggle in the header of the display in the app menu. It should be somewhat obvious (see the app's screenshot on the main GitHub page). Do you have that?

@lgarron
Copy link

lgarron commented Dec 9, 2024

There should be a toggle in the header of the display in the app menu. It should be somewhat obvious (see the app's screenshot on the main GitHub page). Do you have that?

Yeah, unfortunately there's no toggle and I haven't found any what to get it to show. It's just showing for the virtual monitor. 😔

clipboard

@waydabber
Copy link
Owner Author

Oh yes, the toggle does not appear if it is the sole real display (otherwise you'll end up having no display at all). You can turn this protection off under Settings/Displays/Overview/Connection management settings/Allow disconnecting all connected displays.

@lgarron
Copy link

lgarron commented Dec 9, 2024

Oh yes, the toggle does not appear if it is the sole real display (otherwise you'll end up having no display at all). You can turn this protection off under Settings/Displays/Overview/Connection management settings/Allow disconnecting all connected displays.

oooooh, thanks! 🤩

Turns out I needed to set:

  • Allow disconnecting all connected displays → on
  • Auto-connect all displays when no connected displays left → off

This makes it soooooo much more practical for me to use screen sharing under certain situations. 😻

I seem to have issues reconnecting the display (it sometimes disappears from the menu, and physically reconnecting it leaves it ignored), but "Connect all Displays" in the menu fixes it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
display connection Display connection management done All tasks are completed enhancement New feature or request released Released
Projects
None yet
Development

No branches or pull requests

3 participants