OCJvanDijk / Brightness-Sync

Synchronize the brightness of your built-in display with your LG UltraFine display(s)
MIT License
152 stars 17 forks source link

Not working on LG 27UL850 #31

Closed dacrypt closed 3 years ago

dacrypt commented 3 years ago

Hi,

First, great tool. I hope I can make it work for me. Unfortunately after installing it from the pkg provided, it doesn't seem to work at all on a MBPr 16'Big Sur + LG 27UL850

How can I debug it and maybe help you out with more info? I'm not a macos dev, but might be able to help with some simple code.

Thanks!

dacrypt commented 3 years ago

Furthermore, it shows the status "Deactivated". Is it not compatible or something?

dacrypt commented 3 years ago

Found incompatible display: LG HDR 4K

default 14:24:02.879559-0500    runningboardd   Acquiring assertion targeting [app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378] from originator [daemon<com.apple.coreservices.launchservicesd>:105] with description <RBSAssertionDescriptor| "uielement:14378" ID:168-105-88072 target:14378 attributes:[
    <RBSDomainAttribute| domain:"com.apple.launchservicesd" name:"RoleUserInteractive" sourceEnvironment:"(null)">
    ]>
default 14:24:02.879920-0500    runningboardd   Assertion 168-105-88072 (target:[app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378]) will be created as active
default 14:24:02.880022-0500    runningboardd   Finished acquiring assertion 168-105-88071 (target:[app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378])
default 14:24:02.880963-0500    runningboardd   Acquiring assertion targeting [app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378] from originator [daemon<com.apple.coreservices.appleevents(55)>:311] with description <RBSAssertionDescriptor| "AE/Brightness Sync.app" ID:168-311-88073 target:14378 attributes:[
    <RBSDomainAttribute| domain:"com.apple.launchservicesd" name:"LSNotification" sourceEnvironment:"(null)">
    ]>
default 14:24:02.881139-0500    runningboardd   Assertion 168-311-88073 (target:[app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378]) will be created as active
default 14:24:02.881397-0500    runningboardd   Finished acquiring assertion 168-105-88072 (target:[app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378])
default 14:24:02.881805-0500    runningboardd   Invalidating assertion 168-105-88071 (target:[app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378]) from originator [daemon<com.apple.coreservices.launchservicesd>:105]
default 14:24:02.881836-0500    runningboardd   Calculated state for app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>: running-active (role: UserInteractive)
default 14:24:02.881876-0500    runningboardd   [app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378] Ignoring jetsam update because this process is not memory-managed
default 14:24:02.881995-0500    runningboardd   [app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378] Ignoring suspend because this process is not lifecycle managed
default 14:24:02.882029-0500    runningboardd   [app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378] Ignoring GPU update because this process is not GPU managed
default 14:24:02.882283-0500    runningboardd   [app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378] Skipping AppNap state - not lifecycle managed
default 14:24:02.882447-0500    runningboardd   Finished acquiring assertion 168-311-88073 (target:[app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378])
default 14:24:02.909147-0500    Brightness Sync CHECKIN: pid=14378
default 14:24:02.916904-0500    launchservicesd CHECKIN:0x0-0x7b47b4 14378 dev.vandijk.Brightness-Sync
default 14:24:02.917090-0500    Brightness Sync CHECKEDIN: pid=14378 asn=0x0-0x7b47b4 foreground=0
default 14:24:02.917406-0500    loginwindow -[ApplicationManager checkInAppContext:eventData:] | ApplicationManager: Checked in app : Brightness Sync
default 14:24:02.920145-0500    tccd    AUTHREQ_ATTRIBUTION: msgID=14378.1, attribution={requesting={identifier=dev.vandijk.Brightness-Sync, pid=14378, auid=501, euid=501, binary_path=/Applications/Brightness Sync.app/Contents/MacOS/Brightness Sync}, },
default 14:24:02.922012-0500    tccd    AUTHREQ_SUBJECT: msgID=14378.1, subject=dev.vandijk.Brightness-Sync,
default 14:24:02.923736-0500    tccd    AUTHREQ_ATTRIBUTION: msgID=135.2091, attribution={accessing={identifier=dev.vandijk.Brightness-Sync, pid=14378, auid=501, euid=501, binary_path=/Applications/Brightness Sync.app/Contents/MacOS/Brightness Sync}, requesting={identifier=com.apple.WindowServer, pid=135, auid=88, euid=88, binary_path=/System/Library/PrivateFrameworks/SkyLight.framework/Versions/A/Resources/WindowServer}, },
default 14:24:02.923784-0500    tccd    requestor: identifier=com.apple.WindowServer, pid=135, auid=88, euid=88, binary_path=/System/Library/PrivateFrameworks/SkyLight.framework/Versions/A/Resources/WindowServer is checking access for accessor identifier=dev.vandijk.Brightness-Sync, pid=14378, auid=501, euid=501, binary_path=/Applications/Brightness Sync.app/Contents/MacOS/Brightness Sync
default 14:24:02.927133-0500    tccd    AUTHREQ_SUBJECT: msgID=135.2091, subject=dev.vandijk.Brightness-Sync,
default 14:24:02.935374-0500    Brightness Sync Received configuration update from daemon (initial)
default 14:24:02.936167-0500    Brightness Sync FRONTLOGGING: version 1
default 14:24:02.936202-0500    Brightness Sync Registered, pid=14378 ASN=0x0,0x7b47b4
default 14:24:02.937728-0500    Brightness Sync BringForward: pid=14378 asn=0x0-0x7b47b4 bringForward=0 foreground=0 uiElement=1 launchedByLS=1 modifiersCount=1 allDisabled=0
default 14:24:02.937773-0500    Brightness Sync BringFrontModifier: pid=14378 asn=0x0-0x7b47b4 Modifier 0 hideAfter=0 hideOthers=0 dontMakeFrontmost=0 mouseDown=0/0 seed=0/0
default 14:24:02.938446-0500    Brightness Sync Current system appearance, (HLTB: 1), (SLS: 0)
default 14:24:02.945024-0500    Brightness Sync Post-registration system appearance: (HLTB: 1)
default 14:24:02.992680-0500    distnoted   register name: com.apple.xctest.FakeForceTouchDevice object: dev.vandijk.Brightness-Sync token: 1a00000013 pid: 14378
default 14:24:03.001148-0500    Brightness Sync NSApp cache appearance:
-NSRequiresAquaSystemAppearance: 0
-appearance: (null)
-effectiveAppearance: <NSCompositeAppearance: 0x600000410480
 (
    "<NSAquaAppearance: 0x600000410380>",
    "<NSSystemAppearance: 0x600000409c80>"
)>
default 14:24:03.004117-0500    distnoted   register name: com.apple.nsquiet_safe_quit_give_reason object: dev.vandijk.Brightness-Sync token: 1c00000023 pid: 14378
default 14:24:03.023551-0500    runningboardd   Acquiring assertion targeting [app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378] from originator [daemon<com.apple.WindowServer(88)>:135] with description <RBSAssertionDescriptor| "FUSBProcessWindowState: occluded" ID:168-135-88074 target:14378 attributes:[
    <RBSDomainAttribute| domain:"com.apple.fuseboard" name:"Occluded" sourceEnvironment:"(null)">,
    <RBSAcquisitionCompletionAttribute| policy:AfterApplication>
    ]>
default 14:24:03.023653-0500    runningboardd   Assertion 168-135-88074 (target:[app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378]) will be created as active
default 14:24:03.024019-0500    runningboardd   [app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378] Ignoring jetsam update because this process is not memory-managed
default 14:24:03.024019-0500    runningboardd   Calculated state for app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>: running-active (role: UserInteractive)
default 14:24:03.024039-0500    runningboardd   [app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378] Ignoring suspend because this process is not lifecycle managed
default 14:24:03.024059-0500    runningboardd   [app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378] Ignoring GPU update because this process is not GPU managed
default 14:24:03.024282-0500    runningboardd   [app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378] Skipping AppNap state - not lifecycle managed
default 14:24:03.024487-0500    runningboardd   Finished acquiring assertion 168-135-88074 (target:[app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378])
default 14:24:03.024842-0500    runningboardd   Invalidating assertion 168-135-88074 (target:[app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378]) from originator [daemon<com.apple.WindowServer(88)>:135]
default 14:24:03.059465-0500    Brightness Sync Registering for test daemon availability notify post.
default 14:24:03.059632-0500    Brightness Sync notify_get_state check indicated test daemon not ready.
default 14:24:03.065222-0500    Brightness Sync SignalReady: pid=14378 asn=0x0-0x7b47b4
default 14:24:03.065710-0500    Brightness Sync SIGNAL: pid=14378 asn=0x0x-0x8079284
default 14:24:03.075216-0500    runningboardd   Acquiring assertion targeting [app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378] from originator [daemon<com.apple.WindowServer(88)>:135] with description <RBSAssertionDescriptor| "FUSBProcessWindowState: occluded" ID:168-135-88075 target:14378 attributes:[
    <RBSDomainAttribute| domain:"com.apple.fuseboard" name:"Occluded" sourceEnvironment:"(null)">,
    <RBSAcquisitionCompletionAttribute| policy:AfterApplication>
    ]>
default 14:24:03.075314-0500    runningboardd   Assertion 168-135-88075 (target:[app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378]) will be created as active
default 14:24:03.075690-0500    tccd    -[TCCDAccessIdentity staticCode]: static code for: identifier dev.vandijk.Brightness-Sync, type: 0: 0x7f93f2475570 at /Applications/Brightness Sync.app
default 14:24:03.075829-0500    runningboardd   Finished acquiring assertion 168-135-88075 (target:[app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378])
default 14:24:03.084779-0500    runningboardd   Acquiring assertion targeting [app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378] from originator [daemon<com.apple.WindowServer(88)>:135] with description <RBSAssertionDescriptor| "FUSBProcessWindowState: visible" ID:168-135-88076 target:14378 attributes:[
    <RBSDomainAttribute| domain:"com.apple.fuseboard" name:"Visible" sourceEnvironment:"(null)">,
    <RBSAcquisitionCompletionAttribute| policy:AfterApplication>
    ]>
default 14:24:03.084880-0500    runningboardd   Assertion 168-135-88076 (target:[app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378]) will be created as active
default 14:24:03.085360-0500    runningboardd   Calculated state for app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>: running-active (role: UserInteractive)
default 14:24:03.085530-0500    runningboardd   [app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378] Ignoring jetsam update because this process is not memory-managed
default 14:24:03.085618-0500    runningboardd   [app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378] Ignoring suspend because this process is not lifecycle managed
default 14:24:03.085894-0500    runningboardd   [app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378] Ignoring GPU update because this process is not GPU managed
default 14:24:03.085958-0500    runningboardd   [app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378] Skipping AppNap state - not lifecycle managed
default 14:24:03.086040-0500    runningboardd   Finished acquiring assertion 168-135-88076 (target:[app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378])
default 14:24:03.086296-0500    runningboardd   Invalidating assertion 168-135-88075 (target:[app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378]) from originator [daemon<com.apple.WindowServer(88)>:135]
error   14:24:03.088992-0500    tccd    Prompting policy for hardened runtime; service: kTCCServiceAppleEvents requires entitlement com.apple.security.automation.apple-events but it is missing for accessing={identifier=dev.vandijk.Brightness-Sync, pid=14378, auid=501, euid=501, binary_path=/Applications/Brightness Sync.app/Contents/MacOS/Brightness Sync}, requesting={identifier=com.apple.appleeventsd, pid=311, auid=55, euid=55, binary_path=/System/Library/CoreServices/appleeventsd},
default 14:24:03.112838-0500    Brightness Sync Starting display refresh...
default 14:24:03.113037-0500    Brightness Sync Displays: {(
    69734662,
    459096059
)}
default 14:24:03.113784-0500    Brightness Sync Found incompatible display: Color LCD
default 14:24:03.114034-0500    Brightness Sync Found incompatible display: LG HDR 4K
default 14:24:03.114204-0500    Brightness Sync Deactivated...
default 14:24:03.133682-0500    runningboardd   Calculated state for app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>: running-active (role: UserInteractive)
default 14:24:03.133711-0500    runningboardd   [app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378] Ignoring jetsam update because this process is not memory-managed
default 14:24:03.133812-0500    runningboardd   [app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378] Ignoring suspend because this process is not lifecycle managed
default 14:24:03.133882-0500    runningboardd   [app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378] Ignoring GPU update because this process is not GPU managed
default 14:24:03.133987-0500    runningboardd   [app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378] Skipping AppNap state - not lifecycle managed
default 14:24:08.875016-0500    runningboardd   Assertion did invalidate due to timeout: 168-168-88069 (target:[app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378])
default 14:24:08.875067-0500    runningboardd   Assertion did invalidate due to timeout: 168-311-88073 (target:[app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378])
default 14:24:09.077115-0500    runningboardd   [app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378] Ignoring jetsam update because this process is not memory-managed
default 14:24:09.077124-0500    runningboardd   Calculated state for app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>: running-active (role: UserInteractive)
default 14:24:09.077159-0500    runningboardd   [app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378] Ignoring suspend because this process is not lifecycle managed
default 14:24:09.077198-0500    runningboardd   [app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378] Ignoring GPU update because this process is not GPU managed
default 14:24:09.077315-0500    runningboardd   [app<application.dev.vandijk.Brightness-Sync.14573113.14573119(501)>:14378] Skipping AppNap state - not lifecycle managed
default 14:24:12.976538-0500    Brightness Sync LSExceptions shared instance invalidated for timeout.
OCJvanDijk commented 3 years ago

Hi, The app is only compatible with some very specific models of LG displays sold in cooperation with Apple: the 23” LG UltraFine 4K and 27” 5K displays.

Is the 27UL850 also sold under the UltraFine name? If so, I wasn’t aware of that and should probably clear that up in the readme, as you’re not the first to ask about this (#21, #23).

dacrypt commented 3 years ago

Hi,

I believe it shouldn't be hard to make it compatible with more monitors. I've been using another great app MonitorControl (https://github.com/MonitorControl/MonitorControl) that allows me to set the brightness of both screens at the same time using the brightness key of the mac. It only lacks the feature of reading the brightness level of the mac screen and apply it to the external monitor.

I believe all the LG screen with a "U" on their model number are ultrafine monitors (LG Lineup Explained: https://youtu.be/Q2JlT18Hzv4?t=57).

OCJvanDijk commented 3 years ago

Did you try Lunar? It can sync from your Mac screen to most monitors. This app was created because these UltraFines I’m talking about use a different API than other monitors for brightness and other apps didn’t support them.

I’ll leave this issue open until I clear up the readme regarding supported models.

dacrypt commented 3 years ago

Lunar is exactly whats I was looking for. Thanks!

OCJvanDijk commented 3 years ago

Ok, I added a compatibility section to the readme, closing this now.