You are not logged in.

#1 2021-10-08 00:53:41

Nan123
Member
Registered: 2021-01-24
Posts: 83

Poor performance with non-free Nvidia drivers.[KDE Compositor Issue]

Hi,
I have found yet another issue with the Nvidia drivers, I am totally up to date and have found quite an annoying issue. Multitasking does not work well, Opening Firefox in a discord call breaks the audio, or opening programs while playing video on youtube will drop frames. I've been testing and concluded the problem was with the nvidia blob.

I tested with nouveau and no such issue is happening. Someone on Reddit in the thread I posted said they had the same issue too, I was able to confirm Nvidia was the culprit. Is this a known issue? Is there a fix available? This is quite annoying lol.

I will help in any way I can. Thanks.

Specs:
Ryzen 2600X
16GB RAM @ 3033Mhz
RTX 2070
WD NvMe SSD

Last edited by Nan123 (2021-10-31 22:52:29)

Offline

#2 2021-10-08 07:26:28

seth
Member
Registered: 2012-09-03
Posts: 51,064

Re: Poor performance with non-free Nvidia drivers.[KDE Compositor Issue]

Offline

#3 2021-10-30 22:55:45

Nan123
Member
Registered: 2021-01-24
Posts: 83

Re: Poor performance with non-free Nvidia drivers.[KDE Compositor Issue]

Offline

#4 2021-10-31 06:36:56

seth
Member
Registered: 2012-09-03
Posts: 51,064

Re: Poor performance with non-free Nvidia drivers.[KDE Compositor Issue]

That's not the xorg log, from its contents, check /var/log/Xorg.0.log and since it looks like this is GDM(?) please just post the entire system journal (also in case this is actually a wayland session)

sudo journalctl -b

Offline

#5 2021-10-31 07:04:10

Nan123
Member
Registered: 2021-01-24
Posts: 83

Re: Poor performance with non-free Nvidia drivers.[KDE Compositor Issue]

seth wrote:

That's not the xorg log, from its contents, check /var/log/Xorg.0.log and since it looks like this is GDM(?) please just post the entire system journal (also in case this is actually a wayland session)

sudo journalctl -b

I was using wayland a little bit earlier, strange, I pulled that log from that location, here is my journal
https://pastebin.com/FZvr9nVM

Offline

#6 2021-10-31 07:26:11

seth
Member
Registered: 2012-09-03
Posts: 51,064

Re: Poor performance with non-free Nvidia drivers.[KDE Compositor Issue]

SDDM doesn't store the xorg log in the journal, => post the /var/log/Xorg.0.log

Do you also get the symptoms when
a) suspending teh KWin compositor (Shift+Alt+F12)
b) starting processes out of a konsole (not the plasma runner w/ the bouncy icon thing)
?

Offline

#7 2021-10-31 07:33:24

Nan123
Member
Registered: 2021-01-24
Posts: 83

Re: Poor performance with non-free Nvidia drivers.[KDE Compositor Issue]

seth wrote:

SDDM doesn't store the xorg log in the journal, => post the /var/log/Xorg.0.log

Do you also get the symptoms when
a) suspending teh KWin compositor (Shift+Alt+F12)
b) starting processes out of a konsole (not the plasma runner w/ the bouncy icon thing)
?

Appers to still happen even with starting with konsole, It does NOT happen with the compositor disabled though. This has actually been an issue on every distro I've tried with a few DE's though.
Here is the xorg log:
https://pastebin.com/yckWKrQ6

Offline

#8 2021-10-31 07:37:11

seth
Member
Registered: 2012-09-03
Posts: 51,064

Re: Poor performance with non-free Nvidia drivers.[KDE Compositor Issue]

qdbus org.kde.KWin /Kwin supportInformation # w/ the compositor enabled

Offline

#9 2021-10-31 07:39:47

Nan123
Member
Registered: 2021-01-24
Posts: 83

Re: Poor performance with non-free Nvidia drivers.[KDE Compositor Issue]

seth wrote:
qdbus org.kde.KWin /Kwin supportInformation # w/ the compositor enabled

???
https://pastebin.com/zqhZnTYz

EDIT:
qdbus org.kde.KWin /KWin org.kde.KWin.supportInformation:
https://pastebin.com/GMPbtsyW

ONE MORE EDIT:
I am also having an issue with the shutdown taking a while and they may be interlinked? I have a seperate thread you replied to:
https://bbs.archlinux.org/viewtopic.php?id=270834

Last edited by Nan123 (2021-10-31 07:51:05)

Offline

#10 2021-10-31 07:57:45

seth
Member
Registered: 2012-09-03
Posts: 51,064

Re: Poor performance with non-free Nvidia drivers.[KDE Compositor Issue]

Sorry, typo'd… hmm

Let's cut this a bit and try to
- use the "regular" breeze deocration and
- disable the effects
   * blur
   * contrast
   * startupfeedback

Offline

#11 2021-10-31 08:05:03

Nan123
Member
Registered: 2021-01-24
Posts: 83

Re: Poor performance with non-free Nvidia drivers.[KDE Compositor Issue]

seth wrote:

Sorry, typo'd… hmm

Let's cut this a bit and try to
- use the "regular" breeze deocration and
- disable the effects
   * blur
   * contrast
   * startupfeedback

I'm not sure how to disable startup feedback, but everything else is done and the issue pursists.

Offline

#12 2021-10-31 14:46:15

seth
Member
Registered: 2012-09-03
Posts: 51,064

Re: Poor performance with non-free Nvidia drivers.[KDE Compositor Issue]

See the thread I linked in your other thread - kwin seems to throw a tantrum when shutting down from the session - does this not happen w/ the nouveau driver (or compositing disabled)?
Does it still happen w/ the breeze decoration? (iirc it was somewhat QML related)

See whether the issue remains w/
- all effects disabled
- only one output/monitor
- both monitors at 60Hz

Offline

#13 2021-10-31 21:26:21

Nan123
Member
Registered: 2021-01-24
Posts: 83

Re: Poor performance with non-free Nvidia drivers.[KDE Compositor Issue]

seth wrote:

See the thread I linked in your other thread - kwin seems to throw a tantrum when shutting down from the session - does this not happen w/ the nouveau driver (or compositing disabled)?
Does it still happen w/ the breeze decoration? (iirc it was somewhat QML related)

See whether the issue remains w/
- all effects disabled
- only one output/monitor
- both monitors at 60Hz

The issue happens pretty rarely, so I'll get back to you on that, the issue still happens with effects disabled, one display and both on 60Hz.

Offline

#14 2021-11-01 07:04:43

seth
Member
Registered: 2012-09-03
Posts: 51,064

Re: Poor performance with non-free Nvidia drivers.[KDE Compositor Issue]

https://bbs.archlinux.org/viewtopic.php … 2#p2000522

Edit: please try to globally "export KWIN_USE_BUFFER_AGE=0"

Last edited by seth (2021-11-01 08:42:01)

Offline

#15 2021-11-01 21:14:46

Nan123
Member
Registered: 2021-01-24
Posts: 83

Re: Poor performance with non-free Nvidia drivers.[KDE Compositor Issue]

seth wrote:

https://bbs.archlinux.org/viewtopic.php … 2#p2000522

Edit: please try to globally "export KWIN_USE_BUFFER_AGE=0"

Just run that command? Didn't seem to change anything.

Offline

#16 2021-11-01 21:15:50

seth
Member
Registered: 2012-09-03
Posts: 51,064

Re: Poor performance with non-free Nvidia drivers.[KDE Compositor Issue]

Offline

#17 2021-11-01 21:28:57

Nan123
Member
Registered: 2021-01-24
Posts: 83

Re: Poor performance with non-free Nvidia drivers.[KDE Compositor Issue]

seth wrote:

So just add that command to /etc/profile?

Offline

#18 2021-11-01 21:30:29

seth
Member
Registered: 2012-09-03
Posts: 51,064

Re: Poor performance with non-free Nvidia drivers.[KDE Compositor Issue]

Typically you'd rather use a drop-in in /etc/profile.d, but essentially yes.
You'll have to at least re-login afterwards to pick up the environment.

Edit: you may want to read the entire wiki page, environment variables are an important and basic concept in POSIX systems.

Last edited by seth (2021-11-01 21:31:12)

Offline

#19 2021-11-01 21:33:08

Nan123
Member
Registered: 2021-01-24
Posts: 83

Re: Poor performance with non-free Nvidia drivers.[KDE Compositor Issue]

seth wrote:

Typically you'd rather use a drop-in in /etc/profile.d, but essentially yes.
You'll have to at least re-login afterwards to pick up the environment.

Edit: you may want to read the entire wiki page, environment variables are an important and basic concept in POSIX systems.

Add a sh script in profile.d? Sorry, ENV variables is one thing I never really understood lol. Reading the page now.

Offline

#20 2021-11-01 21:35:04

seth
Member
Registered: 2012-09-03
Posts: 51,064

Re: Poor performance with non-free Nvidia drivers.[KDE Compositor Issue]

Add a sh script in profile.d?

Yes, they're sourced by the default /etc/profile (which is sourced by your session)

You can then "echo $KWIN_USE_BUFFER_AGE" in a konsole to see whether it has been picked up.

Offline

#21 2021-11-01 21:40:23

Nan123
Member
Registered: 2021-01-24
Posts: 83

Re: Poor performance with non-free Nvidia drivers.[KDE Compositor Issue]

seth wrote:

Add a sh script in profile.d?

Yes, they're sourced by the default /etc/profile (which is sourced by your session)

You can then "echo $KWIN_USE_BUFFER_AGE" in a konsole to see whether it has been picked up.

Echoing it gives no output, as it did before. Did I do something wrong?

Offline

#22 2021-11-01 21:45:31

seth
Member
Registered: 2012-09-03
Posts: 51,064

Re: Poor performance with non-free Nvidia drivers.[KDE Compositor Issue]

Apparently.
Post the file you created (including its name, it has to end ".sh") and "grep profile.d /etc/profile"

Again: you'll have to at least log out and back in to pick up those changes.

Offline

#23 2021-11-01 21:49:51

Nan123
Member
Registered: 2021-01-24
Posts: 83

Re: Poor performance with non-free Nvidia drivers.[KDE Compositor Issue]

seth wrote:

Apparently.
Post the file you created (including its name, it has to end ".sh") and "grep profile.d /etc/profile"

Again: you'll have to at least log out and back in to pick up those changes.

kwinfix.sh:

#!/bin/sh

export KWIN_USE_BUFFER_AGE=0

grep profile.d /etc/profile:

# This function API is accessible to scripts in /etc/profile.d
# Load profiles from /etc/profile.d
if test -d /etc/profile.d/; then
        for profile in /etc/profile.d/*.sh; do

I hope I didn't do something really stupid, and yes I restarted.

Offline

#24 2021-11-01 21:57:19

seth
Member
Registered: 2012-09-03
Posts: 51,064

Re: Poor performance with non-free Nvidia drivers.[KDE Compositor Issue]

It looks ok… "kwinfix.sh" is "/etc/profile.d/kwinfix.sh"?

Plasma also sources scripts from ~/.config/plasma-workspace/env/  … so you could put a copy of the file there…

Offline

#25 2021-11-01 22:02:12

Nan123
Member
Registered: 2021-01-24
Posts: 83

Re: Poor performance with non-free Nvidia drivers.[KDE Compositor Issue]

seth wrote:

It looks ok… "kwinfix.sh" is "/etc/profile.d/kwinfix.sh"?

Plasma also sources scripts from ~/.config/plasma-workspace/env/  … so you could put a copy of the file there…

copying the script there worked, is that supposed to fix it? I don't notice a change.

Offline

Board footer

Powered by FluxBB