mirror of
https://github.com/MonitorControl/MonitorControl.git
synced 2026-05-15 14:15:55 -06:00
[GH-ISSUE #872] Fails to intercept bright/dim keys after wake from sleep #546
Labels
No labels
Status: Abandoned
arm64
beta
beta
bug
done
duplicate
enhancement
feedback needed from reporter
in progress
invalid
investigating
known Issue
monitor Issue
pull-request
translation
unable to reproduce
unreleased
x86
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/MonitorControl#546
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @webdeck on GitHub (Jan 3, 2022).
Original GitHub issue: https://github.com/MonitorControl/MonitorControl/issues/872
Before opening the issue, have you...?
Describe the bug
Sometimes when waking from sleep on my M1 Max MacBook Pro, MonitorControl no longer intercepts the brightness keys. I have two LG 5K UltraWide displays connected, and the laptop is in clamshell mode. I have it configured so that the monitor brightness keys adjust both monitors at the same time. When this bug happens, the brightness keys only effect the monitor where the mouse is.
Steps to reproduce
Expected behavior
Brightness key adjusts brightness on both monitors
Anything else?
If I configure custom keys, those always work - it's only the dedicated keys that have this issue.
This appears to be a TCC issue, as if I go to Privacy and disable accessibility, quit the app, enable accessibility, and relaunch the app, it starts working again.
Environment Information (please complete the following information)
@waydabber commented on GitHub (Jan 3, 2022):
Since the Ultrafine 5K display can be controlled natively via macOS, we need to figure out whether when this issue happens, do the control using the native keys are routed through MC or not. Most probably not, but to make sure, please check if the mouse slider is moving as you adjust the brightness with the keyboard or if it moves with some delay. In the latter case MC does not control the display but reads the current brightness and applies to the slider with some delay.
@webdeck commented on GitHub (Jan 7, 2022):
I just had this happen again. The sliders do not update at all when I change brightness with the keyboard brightness keys.
I also see that in preferences it is now showing one of the monitors as DCC instead of Apple, which is incorrect as they are both UltraFine 5ks connected to thunderbolt ports directly (one on left port and one on right port.)

@webdeck commented on GitHub (Jan 7, 2022):
A quit and restart of the app now shows both as Apple again and the slider is updating with a delay.
@webdeck commented on GitHub (Jan 7, 2022):
I see these warnings in the console:
@waydabber commented on GitHub (Jan 7, 2022):
Hi, tccd manages privacy stuff (the only thing this is needed for in case of MonitorControl is access to the media keys on the keyboard). Something seems to be wrong there if this fails after sleep. You might want to try resetting the Security&Privacy settings in macOS by issuing the following commands in Terminal after exiting MonitorControl:
tccutil reset Alldefaults delete me.guillaumeb.MonitorControlThis will both reset the security settings and MonitorControl.
@webdeck commented on GitHub (Jan 8, 2022):
Okay, I first recorded all the permissions I had granted, then reset them and rebooted, and re-granted everything. I will reply if I encounter the issue again.
@waydabber commented on GitHub (Jan 8, 2022):
Thanks for the response. I'll close the issue but feel free to comment if there is still a problem with this!
@webdeck commented on GitHub (Jan 9, 2022):
Sadly, it just happened again. I have to correct my reproduction steps as I don't sleep the computer - all I do is lock it (command-control-Q, followed by escape to turn off the monitors.)
For what it's worth, when this happens, SteerMouse also suffers a similar problem of not being able to send key presses when a mouse button is pressed (e.g. the forward and back commands for Safari.)
@waydabber commented on GitHub (Jan 9, 2022):
Well, if this happens with other apps as well then it is either a macOS issue or you might have some other utilities installed that somehow interfere with tccd. Maybe you can experiment with a vanilla user (or installation?) and see if this happens. Sorry for not having a better idea for this. :)
@webdeck commented on GitHub (Jan 9, 2022):
Yes, this is something strange going on. It gets even stranger - after this happened, rather than rebooting, I locked the screen, waited a few seconds, and unlocked it, and then MonitorControl (and SteerMouse) started working again. So it seems like something isn't unlocking properly sometimes???