When I have some applications open, one I can name is GNOME Document Viewer (since I’ve been using it a bit to read), switching workspaces is laggy (Ctrl+Alt+Left/Right). I have a decently beefy computer and CPU and memory usage is still very low with these applications open. I should note that I have a 2 external monitors on top of the internal display, so a total of 3 monitor outputs, and I’m running a NVIDIA GPU, with the driver linux510-nvidia. Is there anything I can do to remove this lag?
What settings are you running? Animations and what monitors change with the workspaces? Is it all animations or is it more noticeable when changing workspaces and opening overview (Super + S)?
Some people in this reddit thread had a similar issue when their CPU-frequency was too low. Do you have tlp or something similar enabled? Do you observe the same issue when power is connected and when running from battery?
Hey, thanks for the response. I have default animations, I haven’t changed anything. I don’t notice any lag when opening overview, just when switching workspaces. I’m getting the lag with cpu turbo enabled as well.
I am running tlp. I’ve been plugged while getting the lag, same thing if I’m on battery.
One thing I do notice is if I disconnect my external monitors, I don’t see any lag (it’s very smooth) on the internal display when switching workspaces with the same applications open.
I’m getting the lag with cpu turbo enabled as well.
I am running tlp. I’ve been plugged while getting the lag, same thing if I’m on battery.
That means it’s probably not the CPU frequency issue then.
One thing I do notice is if I disconnect my external monitors, I don’t see any lag (it’s very smooth) on the internal display when switching workspaces with the same applications open.
Okay, that is interesting. Could you try changing some workspace and animation settings with different amounts of monitors connected to see what changes? I remember having some laggy behaviour when using dynamic workspaces. I then switched from dynamic workspaces to static workspaces for another reason, but it stopped being laggy, so I didn’t think any more of it.
Using Tweaks -> Workspaces try changing between dynamic and static workspaces and maybe also display handling and animations to see if it makes a difference. If you have the time you could also try with different amounts of monitors connected.
The lag persists even with one external monitor connected, regardless of which monitor I’m using. Same behavior whether I use static or dynamic workspaces.
I don’t notice any lag/delay with animations turned off, but I don’t think it’d be a final solution for me because I like having animations turned on, and my computer should be capable of running with animations on.
Maybe this is a NVIDIA issue? I’ll test later tonight running with integrated/hybrid graphics, with a single external monitor. Maybe this could narrow things down.
I’ve had that issue while I was using Pop!_OS too. Also switching to Intel was a good option to fix that mostly but not for multiple screens and it doesn’t work on Manjaro.
Hmm, I have no idea what could be causing that behaviour other than driver issues then.
I havn’t been running Nvidia on Linux in a long time, so I am not familiar with how that works. Did you find any differences trying out different drivers?