this post was submitted on 09 Apr 2024
314 points (98.8% liked)
Linux
48209 readers
713 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I'm running Endeavour OS (KDE Plasma) and ran into a weird issue with my graphics. It's like windows sometimes flicker and flight with each other, some fullscreen videos won't play and just lock to a gray screen instead (e.g. in Steam, though YouTube is oddly fine), and most 3D games are super choppy and unplayable.
I'm not asking how to fix this, I just want to know how I start troubleshooting! I haven't done anything special with my system, and I think the issue started after a normal pacman update. My GPU is a GeForce GTX 1060.
Any suggestions to get started? I don't even know if the issue is Nvidia drivers, X, window manager, KDE, etc.
EDIT: The problem was Wayland. Fixed by logging in with X11 instead!
Start by checking what windowing system you're using as its a fundamental part of problem solving. It's a little confusing how to do this, the top answer in this Stack exchange thread works well.
If you're running the latest KDE then you've almost certainly been moved to Wayland and that will be the source of your problems. Wayland and Nvidia drivers don't work well together, and KDE have defaulted to Wayland in the latest release. I have had very similar issues to you with the move to wayland and have not been able to fix them - they're too fundamental and depend on updates to wayland and/or Nvidia drivers.
I know you don't want a solution but there isn't one at the moment, so you'd be wasting your time. The solution is to log out, then on the log in screen select Plasma (X11) as your session and log in again.
Personally I have had to abandon KDE as I get a different set of problems in X11. I'm on OpenSuSE Tumbleweed so have little choice inrolling back to the previously functioning version of KDE - I'm using Cinnamon instead and contemplating switching to a different Linux distro, probably OpenSuSE Leap in favour of stability over cutting edge.
Meanwhile I have the latest KDE running on another device with AMD GPU without issue.
In terms of when it'll be fixed, there is a change being made to Wayland which will effect how it and the Nvidia drivers interact (something called Explicit sync). It's just been merged into wayland so presumably will appear downstream in the coming next few months in rolling distributions. There have been articles suggesting this is going to fix most problems but personally I think this is a little brave but fingers crossed.
Oof, yep, that's all it was. I just fired up Elden Ring and it runs great under X11. Thanks a million!
I'd heard Wayland and Nvidia don't play nicely together, but forgot KDE had officially made the switch. I'm sure I approved the install a while back but probably assumed it was all stable and compatible now. Guess that's what I get for not reading the release notes!
Try switching to different versions of your graphics driver and/or kernel. Nvidia cards get really finicky about the version matchups, especially as they age. Try different combinations of the versions that are available via pacman, and maybe it’ll work. You may need to start keeping an eye on updates to your kernel and graphics driver to see if a new update fixes your issue. Welcome to life with an nvidia card. I bought an nvidia card once in 2013. By 2016 I had to start playing this game on upgrades. At one point, the graphics driver was causing kernel panics until I downgraded both and waited a few months. Very happy with AMD.
Thanks, I'll try that. I figured an update would fix it by now (it's been a few weeks) but maybe I do need to roll back.
And yes my other machine has an AMD card. This will be my last one from Nvidia since I've fully switched to Linux.
Look in /var/log/Xorg.0.log for Xorg errors.
Check if OpenGL is okay by running
glxinfo
(from the packagemesa-utils
) and checking in the first few lines for "direct rendering: Yes".Check if Vulkan is okay by running
vulkaninfo
(from the packagevulkan-tools
) and seeing... if it throws errors at you, I guess. There are probably some specific things you could look for but I'm not familiar enough with Vulkan yet.You could
sudo dmesg
and read through looking for problems, but there might be a lot of noise to sift through. I'd start by piping it throughgrep -i nvidia
to look for driver-specific stuff.Might be worth running
nvidia-settings
and poking around to see if anything seems amiss. Not sure what you'd actually be looking for, but yeah.Sometimes switching from
linux
andnvidia
tolinux-lts
andnvidia-lts
can help if the problem is in the kernel or driver. Remember to switch both of these at the same time, since drivers need to match the kernel.You could also try switching from the nvidia drivers to nouveau. Might offer temporary relief and help narrow down where the problem is, at the expense of probably worse performance in heavy games. Ought to be fine for 2D gaming and general desktopping.
Trying a different window manager is always an option. Don't know how much hassle that is when you use a full DE; I've always been the "just grab individual lightweight pieces and slap 'em together" sort so I don't have any real experience with KDE. But yeah. Find out what the right way to change WM is for your system, then try swapping over to Openbox or something minimal like that and see what happens.
Related to WM/DE, it could be an issue with the compositor maybe. Look up whatever KDE's compositor is and see if you can turn it off and run a different one?
This looks super helpful, thanks!
I'm a little nervous about swapping entirely over to nouveau for testing (well, moreso switching back) but I'm sure I can find a guide.
Update: No need, the problem was just Wayland vs X11.