Tue Oct 3 12:44:43 2023
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.113.01 Driver Version: 535.113.01 CUDA Version: 12.2 |
|-----------------------------------------+----------------------+----------------------+
| 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 RTX 3050 ... Off | 00000000:01:00.0 Off | N/A |
| N/A 40C P8 6W / 60W | 28MiB / 4096MiB | 0% Default |
| | | N/A |
+-----------------------------------------+----------------------+----------------------+
+---------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| 0 N/A N/A 1048 G /usr/lib/xorg/Xorg 24MiB |
+---------------------------------------------------------------------------------------+
KWIN_DRM_DEVICES
Can be set to explicitly tell kwin_wayland which GPU(s) to use. The format is a colon-separated list, like this: /dev/dri/card1:/dev/dri/card0
. As the card*
file order is not stable, using the symlinks in /dev/dri/by-path
is also supported, like this: KWIN_DRM_DEVICES="/dev/dri/by-path/pci-0000\:03\:00.0-card:/dev/dri/by-path/pci-0000\:59\:00.0-card"
(note that the colons in the file name are escaped with \
).
The first device in the list will be used by KWin and most apps for rendering.
lsd@lsd-Crawler-E25:/dev/dri/by-path$ ls
pci-0000:01:00.0-card pci-0000:01:00.0-render pci-0000:06:00.0-card pci-0000:06:00.0-render
lsd@lsd-Crawler-E25:/dev/dri/by-path$
lsd@lsd-Crawler-E25:/dev/dri/by-path$
lsd@lsd-Crawler-E25:/dev/dri/by-path$
1 is nvidia in my case , 6 is amd
so my /etc/environment should look like this, without Hash sign (#) otherwise it will crash
lsd@lsd-Crawler-E25:/dev/dri/by-path$ cat /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"
#KWIN_DRM_DEVICES="/dev/dri/by-path/pci-0000\:01\:00.0-card:/dev/dri/by-path/pci-0000\:06\:00.0-card"
lsd@lsd-Crawler-E25:/dev/dri/by-path$
Any ideas how to debug/ trace your own stuff?
Generating by nvidia-xconfig xorg file doesnt help, removing it doesnt change anything.
side thread
475114 – Make fully KDE to run on dedicated card
nvidia-bug-report.log (1.0 MB)