freebsd / drm-kmod

drm driver for FreeBSD
155 stars 69 forks source link

5.15: Screenflickering on desktop #241

Open ghost opened 1 year ago

ghost commented 1 year ago

Hello,

when i do using only the desktop for browsing, videos etc.. then i do get a flickering, at different intervals.

I can not describe it fully, looks for me more as a little fast flash or something.

Important to know (maybe): This doesnt happen when i do play a game (Using Wine with Vulkan).

FreeBSD Home 14.0-CURRENT FreeBSD 14.0-CURRENT #0 main-n261233-005cca8361a4: Thu Mar 2 08:07:29 UTC 2023 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64

PCI Info

vgapci0@pci0:3:0:0: class=0x030000 rev=0xc5 hdr=0x00 vendor=0x1002 device=0x73df subvendor=0x1043 subdevice=0x05cb vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]' device = 'Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M/6850M XT]' class = display subclass = VGA

DRM KMOD version drm-515-kmod 5.15.25

To Reproduce

Just do normal desktop acitivites.

Note: I do have already tried an other cable, to make sure its not the cable.

Picture of it, its so fast that i am not able to catch it but its the blackish that appears shortly.

picture

evadot commented 1 year ago

Does that happens with drm-510-kmod ? This is typically the kind of issues hard to solve ...

ghost commented 1 year ago

Thank you for your reply.

My card is not supported with drm-510-kmod.

Its an Radeon 6700 XT, maybe could be something wrong on my end since this card was a also a test thing during porting from @dumbbell ?

https://github.com/freebsd/drm-kmod/pull/230#issuecomment-1425998298

ghost commented 1 year ago

Could be an refresh rate issue?

I do have just changed to 60 from 240hz and no flicker so far.

dumbbell commented 1 year ago

Its an Radeon 6700 XT, maybe could be something wrong on my end since this card was a also a test thing during porting from @dumbbell ?

Indeed, I'm using it on a daily basis at work/home without any problems.

dumbbell commented 1 year ago

Could be an refresh rate issue?

I do have just changed to 60 from 240hz and no flicker so far.

Do you mean that it works only when you set the refresh rate to 60 Hz?

ghost commented 1 year ago

Well when i do set to 60hz i get no flickering. This could explain while gaming it doesn't happen aswell. Because i do use FreeSync/ VRR while gaming.

ghost commented 1 year ago

I think I have to apologize, I now have an 1080p 240hz Monitor connected (instead of 1440p) and now there is also no longer flickering.

I do close this issue for now and will reply if i still see anything in a long run etc..

ekhramtsov commented 1 year ago

I had this with 5600G (1002:1638, Green Sardine) and 3840x2160 output in sway, but with https://reviews.freebsd.org/D39628 (not yet in main) it was fixed here.

ghost commented 1 year ago

Hello,

apparently i have to re-open this issue as this seems to be not monitor related.

I do have one from Alienware with 240Hz and 1920x1080 where everything is fine.

I do have one HP (Omen) 240Hz and one Samsung Monitor 144Hz with 2560x1440 where is not everything fine.

I can not reproduce it on 240Hz 1920x1080, 60Hz 2560x1440 I can reproduce it on 240Hz 2560x1440, 144Hz 2560x1440.

So this problem seems to occur when an resolution is used higher than 1080p and high refresh rate?

I do only use x11 btw..

ltning commented 8 months ago

I had the same problem with nvidia on an Apple 6k Studio Display. Was working fine for a long time, then suddenly started glitching and I could never figure out why. Am on AMD GPU now, and all is fine.