So I choose the way from pobrn,
- uninstall video-nvidia
- install video-hybrid-amd-nvidia-prime
- install optimus-manager
- install optimus-manager-qt
- disable xorg graphic configurations (look at the link to the Guide)
- install gdm prime (look at the link to the Guide)
- enable gdm systemctl… (look at the link to the Guide)
- set Wayland to false (look at the link to the Guide)
- control if the systemctl service is running (look at the link to the Guide)
=> systemctl status optimus-manager.service - enable optimus-manager-qt as autostart app
=> So at startup there is the amd gpu choosen.
=> If I want to use a extern monitor or if I need the power of the nvidia gpu I switch via the optimus-manager-qt to the nvidia gpu (after the change to nvidia there is the hybrid icon active. But I checked with << nvidia-smi if the nvidia gpu is active, and thats the case.)
>>> nvidia-smi
Tue Jan 5 09:36:16 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 455.45.01 Driver Version: 455.45.01 CUDA Version: 11.1 |
|-------------------------------+----------------------+----------------------+
| 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 GeForce GTX 1650 Off | 00000000:01:00.0 Off | N/A |
| N/A 44C P8 1W / N/A | 221MiB / 3911MiB | 5% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 8902 G /usr/lib/Xorg 101MiB |
| 0 N/A N/A 8978 G /usr/bin/gnome-shell 24MiB |
| 0 N/A N/A 11353 G ...AAAAAAAA== --shared-files 92MiB |
+-----------------------------------------------------------------------------+
1000 thanks to pobrn!