[SOLVED] Enable NVIDIA and wayland after clean installation

Hi. I just wonder what I am doing wrong. I have notebook with integrated graphics and NVIDIA graphic card. I make clean installation of Endeavour there with Gnome desktop, + zen kernels. When installation is finished, GDM gives me two options for login session - Gnome (wayland) and Gnome on XORG. I login to wayland, edit /etc/default/grub to add ibt=off nvidia_drm.modeset=1 parameters and run grub-mkconfig -o /boot/grub/grub.cfg. Then I install nvidia-dkms package and reboot the system. Now GDM does not give me any options regarding login session and when I login, it is XORG session. Is there a way to make this work with wayland as well? What am I doing wrong or what other steps I need to do? Thanks :slight_smile:

1 Like

Have a look at the following thread and see if the solution there would work for you as well:

2 Likes

It did help. I knew and forgot about that gdm.rules, didn’t know about kms-modifiers. Now I have my choice back and I can run wayland session. One more thing now is that when I start any new application (chrome for example), it is not run on nvidia card. When I run chrome and then see nvidia-smi, there is this:

[rstasta@endeavouros ~]$ nvidia-smi 
Thu Jun 15 11:17:12 2023       
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 530.41.03              Driver Version: 530.41.03    CUDA Version: 12.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  NVIDIA GeForce RTX 3070 L...    Off| 00000000:01:00.0  On |                  N/A |
| N/A   43C    P8               19W /  N/A|     53MiB /  8192MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
                                                                                         
+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A      1265      G   /usr/bin/gnome-shell                          2MiB |
+---------------------------------------------------------------------------------------+

I need to prime-run chrome to appear there:

[rstasta@endeavouros ~]$ nvidia-smi 
Thu Jun 15 11:18:03 2023       
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 530.41.03              Driver Version: 530.41.03    CUDA Version: 12.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  NVIDIA GeForce RTX 3070 L...    Off| 00000000:01:00.0  On |                  N/A |
| N/A   44C    P8               19W /  N/A|     98MiB /  8192MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
                                                                                         
+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A      1265      G   /usr/bin/gnome-shell                          2MiB |
|    0   N/A  N/A      3782      G   ...8807981,15028081713584423743,262144       44MiB |
+---------------------------------------------------------------------------------------+

Is there a way to enforce any new window/software/whatever to run on nvidia card?

I am not an Nvidia user so I couldn’t help you with that.

Since your original issue stated in OP is resolved, I suggest to mark the post giving you the solution as such and then open a new thread for the new inquiry with a proper heading to attract proper attention.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.