Bug 512177

Summary: Solus- X11- nvidia: if I play any video the consumption of CPU and GPU resources increases very abnormally
Product: [Plasma] kwin Reporter: Eifu <fifu7fi>
Component: platform-x11-standaloneAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: major CC: fifu7fi
Priority: NOR Keywords: efficiency-and-performance, X11-only
Version First Reported In: 6.5.2   
Target Milestone: ---   
Platform: Solus   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: btop-CPU-GPU usage

Description Eifu 2025-11-16 09:47:15 UTC
Created attachment 186837 [details]
btop-CPU-GPU usage

SUMMARY
The system use too mace resurce of cpu and gpu for anytings, but in particular for video on x11

STEPS TO REPRODUCE
1. Start PC 
2. In the splash screen choose Plasma X11 (instead of wayland) 
3. Open dolphyn 
4 Choose a video file (but it also works with audio files to a lesser extent). 
5 Open it with a video player, such as mpv 
6 The nootebook fans start

OBSERVED RESULT
The nootebook fans start.
the output of top passa da
```
 PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                                                                       
   3364 fab       20   0 1552828 549100 317160 S   9,3   3,4  18:29.55 kwin_x11                                                                                      
   3240 fab       20   0   24,9g 413024 343116 R   9,0   2,5   8:39.81 Xorg                                                                                          
```
a
```   
    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                                                                       
  16349 fab       20   0 2941836 406624 268392 S 243,9   2,5   0:57.64 mpv                                                                                           
   3364 fab       20   0 1569260 565120 333160 S 137,2   3,5  20:06.39 kwin_x11                                                                                      
   3240 fab       20   0   24,9g 443820 372260 R  74,4   2,7   9:29.85 Xorg                                                                                          
```

EXPECTED RESULT
to play video with a normal  usage of resurce

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Solus/ 6.5.2
KDE Plasma Version: 6.5.2
KDE Frameworks Version: 6.19.0
Qt Version: 6.9.3
Kernel:6.16.12.323.current(64bit)

ADDITIONAL INFORMATION
I attach btop while I watch a video on YouTube with Firefox.

```
nvidia-smi
Thu Nov 13 20:03:17 2025
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 570.190                Driver Version: 570.190        CUDA Version: 12.8     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce GTX 1650        Off |   00000000:01:00.0  On |                  N/A |
| N/A   48C    P0             20W /   50W |     491MiB /   4096MiB |     19%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI              PID   Type   Process name                        GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A            3280      G   /usr/lib64/xorg-server/Xorg             252MiB |
|    0   N/A  N/A            6458      G   /usr/lib64/firefox/firefox              204MiB |
+-----------------------------------------------------------------------------------------+
 ~ $ lsmod | grep nvidia_drm
nvidia_drm            122880  9
nvidia_modeset       1765376  6 nvidia_drm
nvidia              96940032  107 nvidia_uvm,nvidia_drm,nvidia_modeset
drm_ttm_helper         12288  3 drm_vram_helper,vboxvideo,nvidia_drm
drm_client_lib         20480  3 vboxvideo,nvidia_drm,i915
drm_kms_helper        188416  7 drm_vram_helper,drm_display_helper,vboxvideo,drm_ttm_helper,nvidia_drm,drm_client_lib,i915
drm                   655360  21 i2c_hid,drm_kms_helper,drm_vram_helper,drm_display_helper,nvidia,vboxvideo,drm_buddy,drm_ttm_helper,nvidia_drm,drm_client_lib,i915,ttm
 ~ $ glxinfo | grep "OpenGL renderer string"
pci id for fd 4: 10de:1f91, driver (null)
pci id for fd 5: 10de:1f91, driver (null)
kmsro: driver missing
glx: failed to create dri3 screen
failed to load driver: nvidia-drm
OpenGL renderer string: llvmpipe (LLVM 19.1.6, 256 bits)

 ~ $  dmesg | grep -i "nvidia"
[    0.000000] Command line: initrd=\EFI\com.solus-project\initrd-com.solus-project.current.6.16.12-323 initrd=\EFI\com.solus-project\initrd-com.solus-project.current.6.16.12-323.nvidia initrd=\EFI\com.solus-project\freestanding-com.solus-project.nvidia-firmware root=UUID=f82b367a-80d0-460a-aa9b-95517939cb55 rd.luks.uuid=b7d292fd-ca00-4876-aa18-a742fd8deeda rd.vconsole.keymap=it quiet splash rw nvidia-drm.modeset=1 resume=UUID=5e7c7d83-9fef-4a1f-ab99-2e995d8744f6
[    0.031874] Kernel command line: initrd=\EFI\com.solus-project\initrd-com.solus-project.current.6.16.12-323 initrd=\EFI\com.solus-project\initrd-com.solus-project.current.6.16.12-323.nvidia initrd=\EFI\com.solus-project\freestanding-com.solus-project.nvidia-firmware root=UUID=f82b367a-80d0-460a-aa9b-95517939cb55 rd.luks.uuid=b7d292fd-ca00-4876-aa18-a742fd8deeda rd.vconsole.keymap=it quiet splash rw nvidia-drm.modeset=1 resume=UUID=5e7c7d83-9fef-4a1f-ab99-2e995d8744f6
[    2.176745] nvidia: loading out-of-tree module taints kernel.
[    2.176751] nvidia: module license 'NVIDIA' taints kernel.
[    2.176755] nvidia: module license taints kernel.
[    2.615127] nvidia-nvlink: Nvlink Core is being initialized, major device number 238
[    2.616192] nvidia 0000:01:00.0: enabling device (0106 -> 0107)
[    2.616353] nvidia 0000:01:00.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=none:owns=none
[    2.660821] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  570.190  Fri Aug 29 16:47:46 UTC 2025
[    2.677448] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  570.190  Fri Aug 29 16:18:24 UTC 2025
[    2.679867] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
[    2.680279] nvidia 0000:01:00.0: Direct firmware load for nvidia/570.190/gsp_tu10x.bin failed with error -2
[    3.372013] [drm] Initialized nvidia-drm 0.0.0 for 0000:01:00.0 on minor 1
[    3.436780] nvidia 0000:01:00.0: [drm] fb1: nvidia-drmdrmfb frame buffer device
[   13.665791] nvidia_uvm: module uses symbols nvUvmInterfaceDisableAccessCntr from proprietary module nvidia, inheriting taint.
[   13.820228] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card2/input15
[   13.820723] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card2/input16
[   13.822641] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card2/input17
[   13.822933] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card2/input18

$ inxi -b
System:
  Host: fdb Kernel: 6.16.12-323.current arch: x86_64 bits: 64
  Desktop: KDE Plasma v: 6.5.2 Distro: Solus 4.7 endurance
Machine:
  Type: Laptop System: HP product: HP Pavilion Gaming Laptop 15-dk0xxx
    v: Type1ProductConfigId serial: <superuser required>
  Mobo: HP model: 85FC v: 42.34 serial: <superuser required> UEFI: Insyde
    v: F.13 date: 09/04/2019
Battery:
  ID-1: BAT1 charge: 45.2 Wh (100%) condition: 45.2/52.5 Wh (86.2%)
CPU:
  Info: 6-core Intel Core i7-9750H [MT MCP] speed (MHz): avg: 967
    min/max: 800/4500
Graphics:
  Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] driver: i915 v: kernel
  Device-2: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q] driver: nvidia
    v: 570.190
  Device-3: Lite-On HP Wide Vision HD Camera driver: uvcvideo type: USB
  Display: x11 server: X.Org v: 21.1.20 with: Xwayland v: 24.1.9 driver: X:
    loaded: modesetting unloaded: fbdev,vesa dri: iris,nouveau
    gpu: i915,nvidia,nvidia-nvswitch resolution: 1: 3840x2160~60Hz
    2: 1920x1080~60Hz
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: mesa v: 25.2.6
    renderer: llvmpipe (LLVM 19.1.6 256 bits)
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor gpu: nvidia-settings,nvidia-smi
    wl: wayland-info x11: xdpyinfo, xprop, xrandr
Network:
  Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    driver: r8169
  Device-2: Realtek RTL8822BE 802.11a/b/g/n/ac WiFi adapter
    driver: rtw88_8822be
Drives:
  Local Storage: total: 1.84 TiB used: 1.47 TiB (80.0%)
Info:
  Memory: total: 16 GiB available: 15.46 GiB used: 4.89 GiB (31.7%)
  Processes: 318 Uptime: 46m Shell: Bash inxi: 3.3.39
```
Comment 1 Eifu 2025-11-16 09:53:02 UTC
I don't know, it makes me think that the initial splashscreen is managed by wayland and then when switching to plasma x-11, which in Solus doesn't have optimus, it has to use only nvidia without using the intell iGPU the system will break (because wayland instead somehow manages both GPUs), but it's just a non-technical hypothesis.
Comment 2 Eifu 2025-11-16 10:31:13 UTC
Maybe I was wrong about Optimus... I don't know:
 xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x1b7 cap: 0x1, Source Output crtcs: 4 outputs: 3 associated providers: 1 name:NVIDIA-0
Provider 1: id: 0x204 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 3 associated providers: 1 name:modesetting
Comment 3 Eifu 2025-11-20 19:27:19 UTC
CPU-GPU usage returns to normal by deactivating kwin