Frogging-Family / nvidia-all

Nvidia driver latest to 396 series AIO installer
808 stars 71 forks source link

[Wayland] Windows Render Without Borders and Desktop UI is Tiny #50

Open ThisNekoGuy opened 3 years ago

ThisNekoGuy commented 3 years ago

Desktop Environment: KDE Plasma 5.22.3 GPU: RTX 2080 Ti Driver Version: 470.57.02 ("stable")

For some reason, I ended up with really weird rendering issues, despite the fact that 470 was supposed to be the driver release that brings proper Wayland support?

In Discord's case, it just refused to open properly entirely, even with the config suggested by the Arch Wiki

These screenshots were taken when I had the environment variable QT_QPA_PLATFORM set to "xcb;wayland", as per the Arch Wiki for suggests for Plasma, but these issues were still present with it set to just "wayland"

why-wayland horrific-wayland wayland-discord-madness

I also had SDDM set to run the session under Wayland:

sudo nano /etc/sddm.conf

[General]
DisplayServer=wayland
EnableHiDPI=true
Tk-Glitch commented 3 years ago

I have faced none of those issues on that driver + kwin wayland on a 980ti and 1440p display. I was using a simpler setup than you are though, with only KWIN_DRM_USE_EGL_STREAMS=1 set in an early boot script.

QT_QPA_PLATFORM was unset, and sddm was left default, just selecting the wayland session from the drop down menu.

ThisNekoGuy commented 3 years ago

I reduced my environment variables and configuration to be that and the defaults and I still have the same result :/

Also, changing the Plasma compositor settings or app window borders causes the screen to irrecoverably turn black until a reboot

ThisNekoGuy commented 3 years ago

@Tk-Glitch It also seemed to lower my max available framerate from 60hz to 30hz for some reason:

wayland-30fps

I also had the scale set to 200% back on Xorg but I take it it's trying to enforce HiDPI but is doing it wrong because I'm at an uncommon resolution or something? (3840x2160) Just a guess but Idk

As for the QT window title borders, could it be that they need to be compiled with Wayland support or something?

Tk-Glitch commented 3 years ago

Maybe? I know that some themes don't work or lead to huge issues on wayland, but your 30Hz lock looks totally unrelated. I don't have a 4k display to test, but I cannot reproduce any of your issues on my end with a 1440p display (DP) and a 1080p 120Hz display (DVI). Still on that 980Ti as I have no newer Nvidia GPU at hand.

ThisNekoGuy commented 3 years ago

Ah, I didn't mention that I'm using a TV with HDMI, by the way; but Idk if that would impact it :/