-
Notifications
You must be signed in to change notification settings - Fork 160
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
Screen flickering #7
Comments
Do you fix it in kernel? |
It’s very difficult. I’ve been looking but I can’t find anything. The workaround is the best I can come up with right now. |
same issue after wakeup, on dell p2715q 3840 x 2160 |
With workaround? |
Just 1.4.1 , is there any progress?thx:) |
What about Inject EDID? @osy86 |
I have not tried, please let me know if you try. |
it is not working. and how do fix preview image? |
You're referring to #18 ? |
Just chiming in to relay my configuration and confirm that I'm seeing severe flickering on one of my monitors at any resolution when HiDPI is enabled: HVK So far I've tried two cables - a mDP to DP cable, and a USB-C to USB-C cable. Both experience flickering that makes the system more or less unusable. Thank you for all your hard work getting us this far! |
I've got 24k AOC U2879G6 screens. when use 1 screen and set HIDPI to 19201080,everything works fine. When I plug into the 2rd screen, all the 2 screens flickering, whatever HIDPI setting. Then I plug out the 2rd screen, everything become normal again without rebooting or log out. |
and no flicker happened when both screen are orignal 4K definition. |
delete whatevergreen changes nothing,still flickering |
Have you ever tried to output 3 screens, like 2 via DP(or USB-C since ultimately it uses DP) and 1 via HDMI (you can connect both HDMI and DP to one of your display if possible). |
I have the same issue:
I am using two USB-C to DP adapters (one for 4K, one for 2K) and one DP port (second 2K). I found that using the HDMI port for the 4K display, and using both DP ports for each of the 2K displays, did not change the above behavior. On a separate note, I found that using the HDMI port for the 4K display caused my windows to re-arrange on display wake up (not necessarily computer wake up). This hasn't happened so far when using two USB-C DP adapters and the DP port. Perhaps a lag in the AMD card initializing the HDMI chipset? Do they use a discrete IC that performs a DP > HDMI signal conversion like some of the other NUCs? Happy to perform other tests, and any hacks the legendary @osy86 might come up with! |
Adding a 3rd display fixes the headache inducing flicker I was experiencing with a 2nd display... Building on @Yrp said in #212 (that bug should probably be a dupe of this):
The displays I'm using are:
The resolutions of the displays doesn't seem to matter, the 4K w/ the 720p had flickering going from 1 to 2 displays. I might be able to hook up a 4th display to the second HDMI, if knowing that behaviour would be helpful. Haven't tried with any screens sleeping. There are HDMI and DP Dummy (ghost) display adapter plugs that can be used to fake a screen which could be an inexpensive hardware workaround (~$2 on ebay from China) |
Your summary is very good! |
I've now done some additional testing with 4 displays. The displays I'm using are:
This seems to confirm the flickering effects only occur when a second display is added and clear after adding a 3rd or more displays until the number of active displays falls back to 1 and rises to 2 again. |
In my case, mirroring displays can cause consistent flickering... |
@KrisCris interesting... My 2K display is rotated 90 degrees. I wonder if that has an effect (certainly the mirrored resolution is lower) |
I have noticed with single 4k monitor usage, I see sometimes see very occasional glitches like once every minute or two, this isn't consistent. I tend to notice it when I have google chrome up with something with a white background; I think because it's most obvious to my eyes. I usually power up my other two displays to workaround the issue. On a side note, I was also able to observe a strange occurrence where by my primary 4k display and tertiary 720p displays would not wake up... This was after 5 days + 20 hours of uptime... Rather, when I had them powered on my secondary display would glitch out hard until I shut the other two displays off. The machine eventually kernel panic'd (your machine has crashed OSX screen). Prior to it's crashing I was able to capture the |
@KrisCris I ran some benchmarks before and after SLForceFPS. Both geekbench 4 and 5. CPU and OpenCL benchmarks. I computed the percent difference between before and after. GB4 GPU: 2.25808601 % GB5 GPU: 5.18569413 % The fact that some of the results show a gain in performance after enabling SLForceFPS means that it's probably within the margin of error. I think running two benchmarks one after the other will result in something like that. Anyways, on my machine it doesn't seem like SLForceFPS has any real performance impact. Do you see the same results? |
To summarize:
This is as good as we are going to get without help from Apple/AMD so I will close the issue for now. |
macOS Big Sur fixed the issue! I no longer see flashes/flickering with LG 4K (DP) or LG 5K UltraFine (TB3). No workaround needed. #308 |
That's good news! Does it work with all scaling options? |
I haven’t tested all of them but the ones that gave me issues before no longer had issues. |
OK, can't wait to test it out after its release! Btw, is there a guide for installing Big Sur for HacMini? I heard it's kinda troublesome right now. |
Not yet but the easiest way is to install Mojave on a new partition and upgrade to Big Sur. |
Thanks for the information! I'll give it a try after I finished my work :) |
I'm on Catalina, Macmini8,1 with a 4k monitor and it started after the monitor awakes from sleep. My workaround was to change down the Hertz on the same resolution and that seem to stop Chrome from flickering the screen - it was driving me crazy. |
Plug the wireless keyboard receiver into the front blue USB port, which seems to reduce the flickering. |
@bughunt8 could you explain what you did in more details? |
Big Sur is still flickering |
@9ft did you install the screen flickering workaround? I'm on OSX 11.0.1 w/ Intel iGPU drivers and screen flicker workaround and the flickering problem is gone for me (4k and 2k dual screen); I was able to shutoff my 3rd 720p screen that I needed to stop the flickering before. The only thing I would say is video performance sucks a little bit, twitch streams and youtube videos experience a little bit of tearing sometimes; 4k/60 HEVC video I recorded stalls out during playback (same video works fine on an iGPU MBP2020)... I'm thinking to try switching to the AMD drivers to see if they help with that. Oh and left side window edge has a line 10 px in, but it doesn't bother me. |
I'll have to eat my words, seems the problem has returned for me. I got it after wake up after trying to install 2.14. I don't know if 2.14 actually applied or not, I turned on the verbose boot setting, but I got the usual status bar on boot; so I'm not really sure. 😢 |
Thanks to you all for all the discussion above, me myself ran into the same problem recently, unfortunately the work around provided by dear osy caused severe performance suffering on my HaCMini. Luckily, I happened to notice that if I plugin three or more screens, and then unplug them all except two(4K&1080P), both left two screens stop flickering. Is it possible that we fake one or more visual screen every time macOS boots and then remove the visual ones to fix flickering problem? @osy Thanks for your noticing and looking forward to your words, wish you happy day😁 |
I tried that before (make a fake disconnect and reconnect) and it wasn’t reliable. |
Well, that is a sad news for me, thank u all the same~ |
Running Monterey, 4k display HDMI output and also flickers after resume from display sleep. Changing resolution fixes the issue so also @osy's workaround works. |
* Revert "fix boot stuck on Monterey 12.1+ for brcm wifi card" This reverts commit 240c0f5. * Use boot-arg instead of DSDT to "fix boot stuck on Monterey 12.1+ for brcm wifi card" DSDT will cause unexpected behavior on my test machine * add brcmfx boot-args for Monterey 12.1+ for brcm card
A type-c to hdmi cable will work. |
Using Hackintool to customize the resolution can solve the problem of screen flickering when using dual screens. Customize the resolution you want to use by multiplying by 0.9 |
Probably an AMD framebuffer issue. Only appears if resolution is set to 2560x1440.
Workaround
One workaround is to always reset the resolution on display wakeup. We can use the
displayplacer
andsleepwatcher
utilities to do this automatically after every display wakeup.brew install sleepwatcher
displayplacer list
and get a string with all your displays, order, etc~/Library/LaunchAgents/de.bernhard-baehr.sleepwatcher-displayfix.plist
with the template belowlaunchctl load ~/Library/LaunchAgents/de.bernhard-baehr.sleepwatcher-displayfix.plist
Replace the two
displayplacer
argument strings with your own custom string. The difference between the two instances is that first we set the res to a higher oneres:3008x1692
and then to what we wantres:2560x1440
. Thesleep 10
prevents any issues trying to set the resolution before the display turns on.The text was updated successfully, but these errors were encountered: