You are not logged in.

#1 2022-11-15 08:08:20

nurali
Member
Registered: 2022-11-14
Posts: 44

nVIDIA is not working well on laptop with kde[SOLVED]

Hey everyone
I have a laptop which is Lenovo Legion R 7000 2020 with AMD R7-4800H CPU and GeForce GTX1650(tu117m) GPU.(CPU has Core Graphics card too,called Vega7)
There are a selections in bios like "switchable graphics" and "Discrete graphics",and I selected "Discrete graphics" to block the Core Graphics card,I thought that Discrete graphic card is much better than Core Graphics card.
Then I installed the ArchLinux as wiki told me to do,installed the KDE plasma for my DE,then I found the problem
Everytime I launch a new program,I will see a bad start animation,it starts quick,and it stops suddenly,then the process is done,I will see the program running
Seems like only the CPU is working, and the graphics card is not rendering animation at all.nvidia X-settings is the only program which can start with very smooth animation.
I adjusted everything I could,like in the X-settings,kde's systemsettings,just not helpful,I installed gentoo,and the problem is still there.(Now I installed Windows,it is working fine.....LOL)
Does anyone have any clue about this?

Last edited by nurali (2022-11-16 06:23:43)

Offline

#2 2022-11-15 08:28:23

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,206

Re: nVIDIA is not working well on laptop with kde[SOLVED]

There's no information here, are you launching a xorg or a wayland session? Is your setup working correctly in general? Post

pacman -Qs nvidia
glxinfo -B
sudo journalctl -b
cat /var/log/Xorg.0.log

https://wiki.archlinux.org/title/List_o … n_services

Offline

#3 2022-11-15 08:40:30

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,782

Re: nVIDIA is not working well on laptop with kde[SOLVED]

Also

qdbus org.kde.KWin /KWin supportInformation

Offline

#4 2022-11-15 10:18:40

nurali
Member
Registered: 2022-11-14
Posts: 44

Re: nVIDIA is not working well on laptop with kde[SOLVED]

Sorry for taking your time,I launched kde with xorg session,the setup is not working about animation(systemsettings=>Display and Monitor=>compositor)

```
pacman -Qs nvidia
local/egl-wayland 2:1.1.11-2
    EGLStream-based Wayland external platform
local/lib32-nvidia-utils 520.56.06-1
    NVIDIA drivers utilities (32-bit)
local/lib32-opencl-nvidia 520.56.06-1
    OpenCL implemention for NVIDIA (32-bit)
local/libvdpau 1.5-1
    Nvidia VDPAU library
local/libxnvctrl 520.56.06-1
    NVIDIA NV-CONTROL X extension
local/nvidia 520.56.06-10
    NVIDIA drivers for linux
local/nvidia-settings 520.56.06-1
    Tool for configuring the NVIDIA graphics driver
local/nvidia-utils 520.56.06-2
    NVIDIA drivers utilities
local/opencl-nvidia 520.56.06-2
    OpenCL implemention for NVIDIA
```

V1del wrote:

There's no information here, are you launching a xorg or a wayland session? Is your setup working correctly in general? Post

pacman -Qs nvidia
glxinfo -B
sudo journalctl -b
cat /var/log/Xorg.0.log

https://wiki.archlinux.org/title/List_o … n_services

Offline

#5 2022-11-15 10:20:40

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,206

Re: nVIDIA is not working well on laptop with kde[SOLVED]

Please see the link for how you can easily post all of the outputs asked for to a pastebin. If you intend to use code tags don't use markdown but bbcode which would be [ code ] [ /code ] without the spaces between the brackets.

Offline

#6 2022-11-15 10:26:47

nurali
Member
Registered: 2022-11-14
Posts: 44

Re: nVIDIA is not working well on laptop with kde[SOLVED]

Thanks for reminding and helping,I've never send a post here before,and my mother tongue is not English,but I'll try....

V1del wrote:

Please see the link for how you can easily post all of the outputs asked for to a pastebin. If you intend to use code tags don't use markdown but bbcode which would be [ code ] [ /code ] without the spaces between the brackets.

Offline

#7 2022-11-15 10:46:37

nurali
Member
Registered: 2022-11-14
Posts: 44

Re: nVIDIA is not working well on laptop with kde[SOLVED]

Here are the files,please check:
http://0x0.st/oIqM.txt
http://0x0.st/oIqu.txt
http://0x0.st/oIqS.txt

V1del wrote:

Please see the link for how you can easily post all of the outputs asked for to a pastebin. If you intend to use code tags don't use markdown but bbcode which would be [ code ] [ /code ] without the spaces between the brackets.

Offline

#8 2022-11-15 10:57:40

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,206

Re: nVIDIA is not working well on laptop with kde[SOLVED]

Generally everything looks like it works correctly (also post the output seth asked for) maybe elaborate, what is your actual problem, is there a long delay between a window appearing? Is there any problem during actual and active usage?

Offline

#9 2022-11-15 11:19:33

nurali
Member
Registered: 2022-11-14
Posts: 44

Re: nVIDIA is not working well on laptop with kde[SOLVED]

I don't know how to describe this,but here are the screen recording(about 4 mb) and the output that Seth asked,you can see if I open the NVIDIA X server settings,the animation will be very fluent,smooth,but to other programs,the animation becomes incoherent
Please check:
http://0x0.st/oIqF.mkv
http://0x0.st/oIqh.txt

V1del wrote:

Generally everything looks like it works correctly (also post the output seth asked for) maybe elaborate, what is your actual problem, is there a long delay between a window appearing? Is there any problem during actual and active usage?

Offline

#10 2022-11-15 11:24:44

nurali
Member
Registered: 2022-11-14
Posts: 44

Re: nVIDIA is not working well on laptop with kde[SOLVED]

Oh yes,there is another thing,if I use the Core Graphic card instead of this n-card(mean block the nvidia graphic card by not installing the firmware),this problem will gone,I've tested it on Gentoo and Arch......Once the n-card comes back,the problem will appear again

V1del wrote:

Generally everything looks like it works correctly (also post the output seth asked for) maybe elaborate, what is your actual problem, is there a long delay between a window appearing? Is there any problem during actual and active usage?

Offline

#11 2022-11-15 11:26:49

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,206

Re: nVIDIA is not working well on laptop with kde[SOLVED]

That really isn't an issue per se and dependant on what the actual program is doing. Systemsettings in particular is very modular and needs to load and render quite a few plugins dynamically and the UI will likely be QML which is going to be interpreted instead of native widgets. There's not much you can inherently do about this and this has nothing to do with nvidia.

Is it "gone" gone (as in doesn't happen anymore) or just not as pronounced (if you look closely you'll still see it - I still see the latter)? One thing I'd generally reccommend here if this kind of desktop smoothness is your goal is to enable TripleBuffer on the nvidia driver e.g. /etc/x11/xorg.conf.d/20-nvidiatriplebuffer.conf:

Section "OutputClass"
     Identifier "nvidia"
     MatchDriver "nvidia-drm"
     Driver "nvidia"
     Option "TripleBuffer" "on"
EndSection

Also potential difference, you are starting a Xorg session on the integrated card as well right?

Last edited by V1del (2022-11-15 11:32:40)

Offline

#12 2022-11-15 11:36:24

nurali
Member
Registered: 2022-11-14
Posts: 44

Re: nVIDIA is not working well on laptop with kde[SOLVED]

emmmm.....ok,actually not just the systemsetting has this problem,I had an old laptop once,with i5-6200u and gtx940mx,kde worked smooth on that computer,so I thought it is about nVidia.Thanks for explaining:D

V1del wrote:

That really isn't an issue per se and dependant on what the actual program is doing. Systemsettings in particular is very modular and needs to load and render quite a few plugins dynamically and the UI will likely be QML which is going to be interpreted instead of native widgets. There's not much you can inherently do about this and this has nothing to do with nvidia.

Offline

#13 2022-11-15 13:04:06

nurali
Member
Registered: 2022-11-14
Posts: 44

Re: nVIDIA is not working well on laptop with kde[SOLVED]

The "gone" means what this animation frame dropping problem does not happen again after I switched to Vega7(gpu card of cpu),it(animation frame dropping) did not happen even I enable two gpu cards(Discrete card and integrated card) in the same time,it just happens when I switch to 1650(when only 1650 enabled)
I enabled them both now,smoth animation is back,thanks for the advice,I'll try that: D and yes,I am always starting Xorg session,I don't much like wayland to be honest

V1del wrote:

That really isn't an issue per se and dependant on what the actual program is doing. Systemsettings in particular is very modular and needs to load and render quite a few plugins dynamically and the UI will likely be QML which is going to be interpreted instead of native widgets. There's not much you can inherently do about this and this has nothing to do with nvidia.

Is it "gone" gone (as in doesn't happen anymore) or just not as pronounced (if you look closely you'll still see it - I still see the latter)? One thing I'd generally reccommend here if this kind of desktop smoothness is your goal is to enable TripleBuffer on the nvidia driver e.g. /etc/x11/xorg.conf.d/20-nvidiatriplebuffer.conf:

Section "OutputClass"
     Identifier "nvidia"
     MatchDriver "nvidia-drm"
     Driver "nvidia"
     Option "TripleBuffer" "on"
EndSection

Also potential difference, you are starting a Xorg session on the integrated card as well right?

Offline

#14 2022-11-15 14:18:47

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,782

Re: nVIDIA is not working well on laptop with kde[SOLVED]

V1del wrote:

this has nothing to do with nvidia

The nvidia blob is notoriously slow w/ the gl context creation QML heavily relies on.
[Edit: particularily the GL context resizes]
But this isn't fixable by any setting or user.

nurali wrote:

not just the systemsetting has this problem

I bet your right arm that QML is gonna make the difference.
Do you have the problem w/ eg.
- konsole
- kwrite
- xterm (obviously no GL, no QML, no nothing)
- sqriptor (in the AUR - shameless plug, but no QML there)
- glxgears
- mpv
- dolphin
- pcmanfm-qt

Last edited by seth (2022-11-15 14:19:36)

Offline

#15 2022-11-15 14:37:57

nurali
Member
Registered: 2022-11-14
Posts: 44

Re: nVIDIA is not working well on laptop with kde[SOLVED]

I did have problems with some of those applications you listed,but I selected the "switchable graphics" in bios option,installed xf86-video-amdgpu,vulkan-radeon,and now it's doing fluently.I did not install optimus or prime kind of apps for now,I don't sure if it is nessesary.Then I did not really understand  "w\",I am a newbie actually,could you please discribe it?thanks for paying attention
http://0x0.st/oIT2.png

seth wrote:
V1del wrote:

this has nothing to do with nvidia

The nvidia blob is notoriously slow w/ the gl context creation QML heavily relies on.
[Edit: particularily the GL context resizes]
But this isn't fixable by any setting or user.

nurali wrote:

not just the systemsetting has this problem

I bet your right arm that QML is gonna make the difference.
Do you have the problem w/ eg.
- konsole
- kwrite
- xterm (obviously no GL, no QML, no nothing)
- sqriptor (in the AUR - shameless plug, but no QML there)
- glxgears
- mpv
- dolphin
- pcmanfm-qt

Offline

#16 2022-11-15 14:54:16

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,782

Re: nVIDIA is not working well on laptop with kde[SOLVED]

w/o : without
w/ : with

with some of those applications

Namely?

Offline

#17 2022-11-16 02:15:23

nurali
Member
Registered: 2022-11-14
Posts: 44

Re: nVIDIA is not working well on laptop with kde[SOLVED]

ok,I've tried konsole and kwrite,both of them had that problem,I have not install them all until I enable both graphic cards to solve the problem

seth wrote:

w/o : without
w/ : with

with some of those applications

Namely?

Offline

#18 2022-11-16 03:21:35

nurali
Member
Registered: 2022-11-14
Posts: 44

Re: nVIDIA is not working well on laptop with kde[SOLVED]

Solved,I selected swichable graphics in bios,and installd drivers for both of the graphic cards,then I installed bbswitch,optimus manager,set startup mode:auto;battery and external power startup:nvidia;reboot,then it worked very nice,nvidia is working,animation frame dropping is not showing up.
How can I mark this "solved"?Re-edit the title?

nurali wrote:

ok,I've tried konsole and kwrite,both of them had that problem,I have not install them all until I enable both graphic cards to solve the problem

seth wrote:

w/o : without
w/ : with

with some of those applications

Namely?

Offline

#19 2022-11-16 06:21:52

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,171

Re: nVIDIA is not working well on laptop with kde[SOLVED]

Edit your first post and add '[SOLVED]' to the subject.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#20 2022-11-16 06:23:15

nurali
Member
Registered: 2022-11-14
Posts: 44

Re: nVIDIA is not working well on laptop with kde[SOLVED]

OK

cfr wrote:

Edit your first post and add '[SOLVED]' to the subject.

Offline

Board footer

Powered by FluxBB