waydabber / BetterDisplay

Unlock your displays on your Mac! Flexible HiDPI scaling, XDR/HDR extra brightness, virtual screens, DDC control, extra dimming, PIP/streaming, EDID override and lots more!
https://betterdisplay.pro
20.36k stars 349 forks source link

Virtual Display Device ID changed at every reboot. #3627

Closed JonnyF73 closed 3 hours ago

JonnyF73 commented 3 hours ago

Hello,

Is it possible to have the Device ID for the Virtual display remain persistent through reboots?

This is causing me an issue where I specify the Device ID in an app (Sunshine) for the Virtual display. Upon reboot the Device ID changes and my app will not startup correctly as it cannot find the virtual display which is now using another Device ID.

Thanks,

Jon.

waydabber commented 3 hours ago

I am not sure what device ID the Sunshine app uses. The ID that should be used is the display's UUID (or maybe some of the natural identifiers) which is permanent for the app created virtual screens unless you change the natural identifiers. If it uses the CGDirectDisplayID, then it has a wrong implementation. Maybe you could confirm this with the app's dev.