feat(macOS): libdispalydevice integration#5338
Conversation
|
Apologies, but I merged a change a little while ago that causes conflicts with this one. |
ede0ab1 to
b733db8
Compare
|
No worries, should merge cleanly now. |
Co-authored-by: Dave Lane <42013603+ReenigneArcher@users.noreply.github.com>
6c46fdc to
5700431
Compare
|
Bundle ReportBundle size has no change ✅ |
| #endif | ||
| } | ||
|
|
||
| std::unique_ptr<DisplayPowerInterface> make_display_power() { |
There was a problem hiding this comment.
Wasn't this added for Windows as well?
Also, found this which should maybe replaced with the new library code?
Sunshine/src/platform/windows/display_base.cpp
Lines 241 to 248 in 9f645a9
There was a problem hiding this comment.
Yeah that's what I meant in part when I said I could make a power management pass after the interface-factories. Technically it could have been a part of this PR, but I did not want it out of control, touching multiple OSes. A note regarding it is also in the body text of the PR: it's definitely not forgotten about, it just felt out of scope.
There was a problem hiding this comment.
Obviously, I have a reading problem today. Thanks for the clarification!
There was a problem hiding this comment.
Maybe just throw a couple TODO comments in? (Sonar will complain about the TODOs, but I'll bypass it)
❌ 2 Tests Failed:
View the top 2 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
|
Everything going red is on libdisplaydevice. devices.emplace_back(device_id, display_name, friendly_name, edid, info); rely on C++20 parenthesized aggregate initialization through The cleanest fix is to go back to libdisplaydevice and undo the SONAR fix that caused this by changing the affected Before I do that though... does this sound like the best course of action to you too? |
That sounds fine, maybe we should add an older macOS runner to the libdisplaydevice build/test matrix as well. I think there's a few other things going on as well.
I didn't check every failure though, this was only a spot check. |



Description
This is a follow-up from last week's libdisplaydevice work: macOS integration in Sunshine.
macOS now uses libdisplaydevice for display enumeration as well as applying/reverting changes.
I also removed the patch that kept the display awake; Sunshine now relies on the new libdisplaydevice functionality to do the same. Note that while libdisplaydevice gained the ability to wake displays on Windows, this PR does not take advantage of it; the scope was kept to macOS.
I had to bump the libdisplaydevice submodule.
Screenshot
Issues Fixed or Closed
Roadmap Issues
Type of Change
Checklist
AI Usage