Summary: | After update to 5.26.4 second screen rating on WAYLAND is like 60hz :( | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | shinjii |
Component: | platform-drm | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED WORKSFORME | ||
Severity: | major | CC: | aleixpol, nate, notmart, xaver.hugl |
Priority: | NOR | ||
Version: | 5.26.4 | ||
Target Milestone: | 5 | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: |
DRM_INFO
DRM_INFO 5.26.2 |
Description
shinjii
2022-12-02 16:27:46 UTC
I don't know if it's KWin or something with Wayland or what so I don't know which product I have to set in details of this bug :P It looks like sometimes for few seconds on Main Screen refreshing rate is also changing to lower (from 144hz) and after few seconds it's again 144.... I don't know why and when? It's not my CPU or something... I have good hardware (i7 10750H, 32gb DDR4, NVME) Before update it worked perfectly. If you need any more details just tell me what to do and how :P Please attach the output of drm_info (https://gitlab.freedesktop.org/emersion/drm_info) Created attachment 154286 [details]
DRM_INFO
Here you go, drm_info
I see, it's falling back to CPU copy to make it work on the secondary GPU, which is it pretty slow. You should be able to verify that by looking at the CPU usage: when you put a video on the external monitor, it'll go up. I'm not sure how this could be cause by this update though; there's no commits related to multi gpu in 5.26.4 that weren't also in 5.26.3, and NVidia has never supported the fast path that KWin uses to make multi-gpu work well. Did you maybe also change the boot GPU somewhere? NVidia as primary and Intel as secondary should be fast, only the reverse will be slow. (In reply to Zamundaaa from comment #6) > I see, it's falling back to CPU copy to make it work on the secondary GPU, > which is it pretty slow. You should be able to verify that by looking at the > CPU usage: when you put a video on the external monitor, it'll go up. > > I'm not sure how this could be cause by this update though; there's no > commits related to multi gpu in 5.26.4 that weren't also in 5.26.3, and > NVidia has never supported the fast path that KWin uses to make multi-gpu > work well. > > Did you maybe also change the boot GPU somewhere? NVidia as primary and > Intel as secondary should be fast, only the reverse will be slow. I upgraded Fedora 36 to 37 and it worked fine till there was that update 5.26.3 to 5.26.4. To be honest - on fedora 36 it was working like now... only X11 was working fine... but after upgrade to fedora 37 suddenly I checked Wayland and I was working on it for few days until upgrade... now again it's slow as before in F36 :P I didn't change GPU boot etc. That what you're saying about video and CPU - I played it and on main screen and it was 0-1%, after move to second screen now kwin-wayland is 4-6%. It won't be a problem for me because X11 is working fine (refresh rate) but... after upgrade from F36 to F37 something is broken and I can't use it on X11 because icons disappeared and many other weird things happens - because of that X11 is for me not usable, Wayland is usable but that refresh rate on second screen is getting me nervous because that screen has 240hz ;D Can you downgrade KWin to 5.26.3 again and see if that does fix it? If it does, please attach the output of drm_info with 5.26.3 Created attachment 154326 [details]
DRM_INFO 5.26.2
I have only 5.26.2.1-1 in my repos :/ so I did downgrade to that and it's still the same.... I don't know why I don't have now 5.26.3 in repositories.
Are you really certain that you changed no GPU settings? Some NVidia driver setting (performance mode, discrete-only, something in that direction) may change the boot gpu tag, which KWin then picks up on after a reboot.
As a test, you can make KWin always pick the NVidia GPU for rendering by putting
> KWIN_DRM_DEVICES="/dev/dri/card1:/dev/dri/card0"
into /etc/environment
As a downside, the GPU will never fully power down, but if you're plugged in that might be a tradeoff worth it for you.
(In reply to Zamundaaa from comment #10) > Are you really certain that you changed no GPU settings? Some NVidia driver > setting (performance mode, discrete-only, something in that direction) may > change the boot gpu tag, which KWin then picks up on after a reboot. > > As a test, you can make KWin always pick the NVidia GPU for rendering by > putting > > KWIN_DRM_DEVICES="/dev/dri/card1:/dev/dri/card0" > into /etc/environment > As a downside, the GPU will never fully power down, but if you're plugged in > that might be a tradeoff worth it for you. No, I didn't change anything about drivers/gpu settings, just updated packages with dnf update and that's all... 1. KWIN_DRM_DEVICES="/dev/dri/card1:/dev/dri/card0" - not working, after reboot I can't login to KDE Wayland (screen freezes and I have to shut down system with button) - but I can login to X11 and Gnome (Wayland) ;) 2. Why 240hz on my second screen is working on KDE X11 and even on Gnome Wayland ?? I don't get it... what's difference between Gnome Wayland and KDE Wayland?.... Anyone can help? :D One more thing what I see, probably I did it few months ago in that /etc/environment file: "KWIN_X11_REFRESH_RATE=240000 KWIN_X11_NO_SYNC_TO_VBLANK=1" - maybe because of that X11 have 240hz? :D After delete nvidia drivers and install nouveau everything works fine.... That's because Nouveau has full support for dmabuf. Do you want to investigate why KWIN_DRM_DEVICES="/dev/dri/card1:/dev/dri/card0" doesn't work with the proprietary driver? (In reply to Zamundaaa from comment #14) > That's because Nouveau has full support for dmabuf. > Do you want to investigate why > KWIN_DRM_DEVICES="/dev/dri/card1:/dev/dri/card0" doesn't work with the > proprietary driver? Not really... if it's now working good with noveau I don't care about nvidia official drivers :P i'm not playing games on linux etc., just working... so... you know, waste of time :D That's good too, let's close this then Hi again, I bought new laptop which has now nvidia rtx 3060 - so I just put on my old disk with system which has that problem here and I installed nvidia official drivers + kernel from https://asus-linux.org and it's looks like it's working now so I can tell that problem was because of drivers or something around :P |