Trouble Switching Between Nvidia and AMD Graphics

About a month ago, I open a topic about how to use one system on both a computer with Nvidia Graphic Card and a computer with AMD Integrated Graphic Card.
Huge thanks to @megavolt for solving the previous problems.

However, after a month of usage, I discovered that there`s still something incorrect.

  • The desktop environment (KDE Plasma) is often stuck tore
  • Steam Proton is not working (failed to run any game, but I can do so if I only install Nvidia Drivers)
  • i can successfully run osu! smoothly with wine, but not Proton (that`s wired)

When I run nvidia-smi, it shows

| NVIDIA-SMI 470.141.03   Driver Version: 470.141.03   CUDA Version: 11.4     |
| 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 ...  Off  | 00000000:08:00.0 N/A |                  N/A |
| 42%   43C    P8    N/A /  N/A |    843MiB /  1966MiB |     N/A      Default |
|                               |                      |                  N/A |
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|  No running processes found                                                 |

Something must went wrong, right?

Could you guys help me again? Thanks a lot!!!

When I try to run basemark, it shows:

Gtk-Message: 09:45:37.971: Failed to load module "appmenu-gtk-module"
(node:26980) electron: The default of contextIsolation is deprecated and will be changing from false to true in a future release of Electron.  See for more information
(Use `basemarkgpu --trace-warnings ...` to show where the warning was created)
[26980:1013/] GPU process isn't usable. Goodbye.