Bug 475114 - Make fully KDE to run on dedicated card
Summary: Make fully KDE to run on dedicated card
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: compositing (other bugs)
Version First Reported In: 5.27.4
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-01 22:35 UTC by penteljapan
Modified: 2023-10-02 23:05 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description penteljapan 2023-10-01 22:35:04 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
Instead of asking on forum i would like to ask directly developers, how to enable fully on SDDM AND KDE itself dedicated card.
https://discuss.kde.org/t/how-to-make-nvidia-the-default-card-on-wayland/5233
***


STEPS TO REPRODUCE
None, since theres no guide or none working.

OBSERVED RESULT
ubuntu tool to swap between driver versions fucks up as always, manually installed direct from nvidia site doesnt work, nvidia-smi dont see anything, or uselessly running xorg. without any other programs which should

EXPECTED RESULT
Run full power on dedicated card let it be used and use its computing power

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Kubuntu 23.04
(available in About System)
KDE Plasma Version:  5.27.4
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
```
lsd@lsd-Crawler-E25:~$ 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/card1:/dev/dri/card0"
#GBM_BACKEND=nvidia-drm
#[D__GLX_VENDOR_LIBRARY_NAME=nvidia
#ENABLE_VKBASALT=1
#LIBVA_DRIVER_NAME=nvidial```
without hashes crashes all
Comment 1 Zamundaaa 2023-10-02 13:43:22 UTC
Please do not set any environment variables like GBM_BACKEND, D__GLX_VENDOR_LIBRARY_NAME or LIBVA_DRIVER_NAME globally, they only cause problems.

KWIN_DRM_DEVICES is all you need to do what you want, and has documentation here: https://invent.kde.org/plasma/kwin/-/wikis/Environment-Variables#kwin_drm_devices
Comment 2 penteljapan 2023-10-02 22:56:24 UTC
doesnt work,  propably nvidia drivers still are fucked even on latest highest number. hard hang after typing password. 
https://www.youtube.com/watch?v=veqdTlb5UYk
lsd@lsd-Crawler-E25:~$ 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"

In my case. 
https://mega.nz/file/m0ohGRiJ#0FbLgII9THQc70VIBy-pcVkNAkehoki_0BSW44qBSKQ
Comment 3 penteljapan 2023-10-02 23:05:30 UTC
https://www.youtube.com/watch?v=FqnWO6R5-EA - hard crash proof