-
Notifications
You must be signed in to change notification settings - Fork 797
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
Not working after sleep mode #530
Comments
After sleep there is an approx. 5 seconds waiting period until all devices are safely resumed. During this time all DDC communications are blocked. After this period the app reloads the display configuration and then enables operation. During this time the brightness and volume OSD will have a lock symbol when you try to use the keyboard to control the display. Are you sure that you are not trying to use the app within this approx. 5 seconds of safety time? |
I understand that but it does not work even after 10 seconds or 1 minute. I have to restart it. |
Well, this is obviously not good then. :) Could you try the following (whithout restarting the app):
Also please can you send me the screenshot of the Displays tab when it works, and after sleep when it doesn't work? After sleep if you try to use the brightness keys what happens? Do you see the macOS brightness OSD changing or do you see a lock symbol? Thank you! |
Also, you might want to try to change the DDC read polling mode to 'None' - as the issue might be related that after sleep, the app receives erroneus information from the display about supported control ranges and that's why controls look disabled. Setting this option to 'None' will disable this functionality and allow a default control range. (Note: you'll have to enable Advanced under General for these options) |
Thanks for your feedback. I will try it out and get back to you when I have more information on it. Cheers, |
Hi, I was thinking about the one that is visible on my screenshot above.
Sorry for the overwhelming amount of things to try. :) |
I will try it out :) Display tab: I have the same settings as you. Haha, no problem! |
Ok. But please look at the Displays tab when the application is in the state when it can't control the display. Also, in this mode you can try disabling Hardware control and also try opening/closing the lid to force a reconfiguration. |
Same Problem here with LG 32UN880 Display and MacBook Air (M1). Sometimes it work after sleep, sometimes I have to restart the app. Maybe its possible to "restart the service" of the app after sleep?! But I will try the DDC read polling later... |
Hi, there is no service to talk of actually. I'd need to know these details to understand things better:
Thank you very much for your help! |
I set the ddc to "none" and reconnected the Macbook a few times, put it into sleep and can't provoke the misbehavior. But I try the next couple days to reproduce the bug - hopefully the ddc setting was the fix and the problem is gone. so far, MonitorControl is one of the most essential tools for the MacBook! Thanks a lot... you`re awesome! EDIT: Error come back after long sleep period. I captured a video... I will upload it tomorrow.... |
Hi @dimitrij2k thank you! There is a five seconds delay after sleep to let everything settle and the display wake up properly (displays with slower firmares or CCFL backlights take a lot of time waking up). Probably there should be some advanced settings to have the ability to fine tune things:
|
@waydabber thank you, for your help. Even after a longer Period of waiting, the Control don't work. I created a Video, to show the misbehavior. What I found out:
The last Scenario is shown in the Video: https://youtu.be/gSTKxvRyGno All the Questions will be replied soon... UPDATE 2 Second try. Put the Macbook into sleep (cable connected) and after 15/20min it was there again.
If you connect/disconnect the display - does it solve the problem? |
Thank you! I think after a longer sleep the 5 seconds of expected recovery period might not be enough for some setups. Thank you for your diligence regarding the other questions, hopefully those answers will help to further narrow down the problem. |
There are others with a similar issue: https://github.com/MonitorControl/MonitorControl/discussions/525#discussioncomment-1242581 |
Unfortunately I have a lot to do in my job, so I can't complete the "bug hunting". But open the lid and close it again seems (in the couple few days) to eliminate the problem. So it don't need to restart the app, to fix the problem. Very interesting! But I will answer all of your questions. hopefully this weekend! |
Thanks, @waydabber for looking into this I also seem to be running into the described behavior/issue.
So far, can confirm restarting the app, or opening/closing the lid re-enables brightness control after it's stuck following a long sleep. Will also try to help you answer more of the debug questions from my setup... just waiting for it to get stuck again :) |
Thank you for the info!
It would be great if I could get the answers for the unknowns. The issue might be that after a long sleep simply a longer wait period is needed until the app reconfigures the display but other factors might be involved as well. Btw. how long it takes from initiating wake to the desktop to appear normally with your setup after a long sleep? |
'Interesting... brightness is not changing via software, and it actually seems like "Control method: Software" isn't working in any condition for this external display.' For this to work you also need to have 'Enable software dimming if required' enabled in General. This is now enabled by default but if you had an earlier beta it might be disabled due to settings saved. Can you check if this option is enabled? Thank you! |
You're right. I had an earlier beta and 'Enable software dimming [...]' was off. After taking care of that, brightness is now changing. |
I didn't mean this to be a workaround, just mentioned the fact that probably this is the problem with that. Opening/closing the lid or reconnecting the display both forces MC to redetect displays. The fact that this solves the problem probably means that for some reason MC does not properly detects the service port for the display after a long sleep as it might not be available yet (or maybe for some reason the service port changes). I'll have to look into this issue and try to replicate it. |
Yep, I walked that back shortly :) -- edited my previous comment after realizing that software dimming is literally just darkening colors. |
You mentioned "maybe for some reason the service port changes", any way I can help you check this? |
I tried to make more tests today, but i cant get my Macbook run into the bug. I wanted to reproduce it, but it worked every time! Since i opened once the macbook while the bug comes up, it works now every time. I reboot a couple times my machine, but not run into the bug. Strange… but i will male more tests the next days… |
Hi all, I experienced this problem myself as well today so at least I know what we are talking about. Problem is I can't seem to induce it again, especially in a controlled environment (so I can debug the code), but I'll try. :) |
Ok, I was able to reproduce the issue reliably and was able to debug it. The issue is that there are some instances when the display configuration changes with regards to the service port that the app uses to communicate with the display on Apple Silicon but macOS does not send a reconfiguration event so the app is trying to communicate using an outdated service port. This seems to happens whenever during sleep the display looses power or enters a deep sleep so the link between the mac and the display is severed, but the display cable remains attached during sleep. I'll change the sobering logic (this happens after sleep) so the app always does a display reconfiguration no matter what. |
Here is an unsigned test build that should fix this issue if somebody would like to try it out. This requires you to click 'Open Anyway' in Preferences/Security. The source of this build is here - if you don't trust in unsigned builds and want to build it yourself. Thank you! |
- Fixed not working after sleep mode for some on Apple Silicon Not working after sleep mode #530 - Fixed some LG and Samsung displays having problems with Mute (improved 'Enable Mute DDC command') - LG Monitor: have to unmute manually after muting #170 - Fixed app not working with multiple identical monitors on Intel - App does not work with multiple identical monitors #49 - Added 'Safe Mode' option - pressing the Shift key during startup resets preferences and disables DDC read. - Upon first start if DDC is unreadable, default brightness/volume/contrast values are now set to a sensible 75% instead of 0% - DDC write commands are issued twice on Intel (as it already was on Arm64) to improve stability on some setups. - Make sure DDC communications don't happen in parallel when both slider menu and keyboard is used (this might have caused problems with some docks with multiple display outputs). - Fixed volume control feedback audio (clicking sound) during key repeat (it should play on keyup only as this is the macOS standard). - Fixed duplication of volume control feedback audio if there are multiple external displays and 'Change... for all screens' is enabled. - Internal DDC library for Intel (based on the work of reitermarkus)
Before opening the issue, have you...?
Describe the bug
Hi there,
it’s perfect and works totally fine with the new Huawei MateView.
The only issue I have once in a while: Sometimes after my MacBook was in sleep the app is not working / responding.
Both, the function keys for brightness and sliders do not work anymore. After closing and opening the app again, everything works fine.
Anyone knows why this issue can occur?
Cheers
Dennis
Steps to reproduce
Occurs randomly
Expected behavior
This bug occurs randomly. Most of the time it works like magic.
Anything else?
No response
Environment Information (please complete the following information)
The text was updated successfully, but these errors were encountered: