Skip to content
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

Set Apple XDR Display Reference Mode (aka Preset) via Shifty #110

Open
edgariscoding opened this issue Oct 29, 2021 · 3 comments
Open

Set Apple XDR Display Reference Mode (aka Preset) via Shifty #110

edgariscoding opened this issue Oct 29, 2021 · 3 comments

Comments

@edgariscoding
Copy link

edgariscoding commented Oct 29, 2021

Apple XDR Displays like the Liquid Retina Display XDR in the new MacBook Pros and the Pro Display XDR offer the ability to set a display reference mode (also known as preset) from the control center or from within system preferences > displays.

These presets are custom tailored for specific workflows, there's a preset for photography (P3-D65), there's one for cinema, one for design & print, etc and you can even make your own.

Enabling a preset automatically disables Night Shift, True Tone, Auto Brightness, and sets the brightness to the value specified in the preset.

It would be awesome if Shifty could set the current preset based on the application in use, such as Lightroom or Photoshop.

https://support.apple.com/en-us/HT210435

https://support.apple.com/guide/mac-help/create-custom-reference-modes-mchl50ecf3c4/mac

@thompsonate
Copy link
Owner

Interesting, I didn't know about this feature!

Unfortunately I don't have an XDR monitor to test it on. If you or someone else would like to take a crack at this feature, I think it'd make a great addition to Shifty!

@edgariscoding
Copy link
Author

I was actually just researching it! I’m a junior .NET developer and I’m just now taking an intro to Swift course so I’m not super familiar with Swift projects. I cloned the repo and was looking through the code, I’m gonna have to set some time aside this weekend to understand all the logic.

Do you happen to have any advice on where to find the relevant macOS developer documentation on how to change the display reference mode? I’m looking through the Apple Developer docs but I don’t see anything related to it.

In case anyone else wants to take a stab at it and need someone to test, I can certainly do so.

@thompsonate
Copy link
Owner

That would be the tricky part. Maybe it's the same API that does color profiles? ColorSync, I think.

If not, I wouldn't be surprised if the API for this is private. That doesn't mean it's impossible though. The Night Shift API is private too and we use a custom header (CBBlueLightClient.h) to call it. The main problem is actually figuring out what to call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants