BetterDisplay icon indicating copy to clipboard operation
BetterDisplay copied to clipboard

Auto-detect monitor's input and disable the screen for the rest

Open xyoun opened this issue 1 year ago • 1 comments

Hi, thanks for the great app!

I have an external monitor supports 2 inputs. usb-c and DP. I always connect usb-c to my laptop and DP to my Mac Mini. When I use Mac Mini, I want to keep my laptop attached to usb-c for charging, but I wanted the monitor to be off, so I can still use my laptop using its native-screen, no content showing in my external monitor.

I'm currently able to achieve it by toggling this when I don't want it, but is there a way to auto detect if the current display signal is usb-c or not, if not, disable the screen. Image

xyoun avatar May 19 '25 01:05 xyoun

If the display can report the current input with DDC read, you can create a script that continuously polls the display about the current input and enable/disable the display based on the result. I am not sure how well it would work in the practice though and this will certainly require some tinkering and experimentation.

https://github.com/waydabber/BetterDisplay/wiki

waydabber avatar May 19 '25 08:05 waydabber