How to make Wayland work with nvidia

I am using Fedora 36 on my Thinkpad. I have all the nvidia drivers installed and they work on Xorg, but it doesn’t seem to work with Wayland. When I check About in Settings, It says Mesa Intel® UHD Graphics (TGL GT1) / Mesa Intel® UHD Graphics (TGL GT1) in the Graphics section. Could I get some help making it work?

1 Like

Can you please give more infos as:

inxi -Fzx in terminal and post the output as </> Preformatted text here.

The nvidia GPU by default (especially with wayland) only controls the external monitor while the IGP controls the internal screen.

If you want the nvidia card to function all the time, or even to have control of the internal screen it may be necessary to follow the steps here, including the copy of the nvidia.conf file in step #8. You do not need to edit that file if you do not want to make the nvidia GPU primary and active 100% of the time.

It doesn’t work with Wayland, this manual is for Xorg.

True, but you do have the option to use xorg even if you don’t want to do so.

Wayland is still not 100% while xorg is stable and just works. The nvidia drivers did not work with wayland at all until about the time F35 was released (just one fedora version past) with nvidia driver version 495 as the first to be available with wayland.

I would like to link to an other topic to show that even ubuntu turns back to x11 using nvidia.

https://discussion.fedoraproject.org/t/fedora-silverblue-cant-share-screen-in-google-meet-zoom-or-my-own-rtc-platform-anymore/76579/3

System:
  Kernel: 5.18.6-200.fc36.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.37-27.fc36 Desktop: GNOME v: 42.2
    Distro: Fedora release 36 (Thirty Six)
Machine:
  Type: Laptop System: LENOVO product: 20Y5S00400
    v: ThinkPad X1 Extreme Gen 4i serial: <superuser required>
  Mobo: LENOVO model: 20Y5S00400 v: SDK0J40697 WIN
    serial: <superuser required> UEFI: LENOVO v: N40ET34W (1.16 )
    date: 04/08/2022
Battery:
  ID-1: BAT0 charge: 91.0 Wh (99.0%) condition: 91.9/90.1 Wh (102.0%)
    volts: 17.6 min: 15.5 model: SMP 5B11B79217 status: full
CPU:
  Info: 8-core model: 11th Gen Intel Core i7-11800H bits: 64 type: MT MCP
    arch: Tiger Lake rev: 1 cache: L1: 640 KiB L2: 10 MiB L3: 24 MiB
  Speed (MHz): avg: 1159 high: 1821 min/max: 800/4600 cores: 1: 1209
    2: 1360 3: 1821 4: 955 5: 1130 6: 1190 7: 1214 8: 1130 9: 800 10: 1171
    11: 1172 12: 1365 13: 794 14: 1102 15: 982 16: 1162 bogomips: 73728
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel TigerLake-H GT1 [UHD Graphics] vendor: Lenovo driver: i915
    v: kernel bus-ID: 00:02.0
  Device-2: NVIDIA GA107M [GeForce RTX 3050 Ti Mobile] vendor: Lenovo
    driver: nvidia v: 510.68.02 arch: Ampere bus-ID: 01:00.0
  Device-3: IMC Networks Integrated RGB Camera type: USB driver: uvcvideo
    bus-ID: 3-8:3
  Display: x11 server: X.Org v: 1.20.14 with: Xwayland v: 22.1.2 driver: X:
    loaded: modesetting,nvidia unloaded: fbdev,nouveau,vesa gpu: i915
    resolution: 2560x1600~60Hz
  OpenGL: renderer: Mesa Intel UHD Graphics (TGL GT1) v: 4.6 Mesa 22.1.2
    direct render: Yes
Audio:
  Device-1: Intel Tiger Lake-H HD Audio vendor: Lenovo
    driver: sof-audio-pci-intel-tgl bus-ID: 00:1f.3
  Device-2: NVIDIA vendor: Lenovo driver: snd_hda_intel v: kernel
    bus-ID: 01:00.1
  Sound Server-1: ALSA v: k5.18.6-200.fc36.x86_64 running: yes
  Sound Server-2: PulseAudio v: 15.0 running: no
  Sound Server-3: PipeWire v: 0.3.52 running: yes
Network:
  Device-1: Intel Wi-Fi 6 AX210/AX211/AX411 160MHz driver: iwlwifi v: kernel
    bus-ID: 09:00.0
  IF: wlp9s0 state: up mac: <filter>
  Device-2: Realtek RTL8153 Gigabit Ethernet Adapter type: USB
    driver: r8152 bus-ID: 3-1.4:8
  IF: enp0s20f0u1u4 state: up speed: 100 Mbps duplex: full mac: <filter>
Bluetooth:
  Device-1: Intel AX210 Bluetooth type: USB driver: btusb v: 0.8
    bus-ID: 3-14:6
  Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends
Drives:
  Local Storage: total: 476.94 GiB used: 169.38 GiB (35.5%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: MZVL2512HCJQ-00BL7
    size: 476.94 GiB temp: 42.9 C
Partition:
  ID-1: / size: 253.94 GiB used: 169.05 GiB (66.6%) fs: btrfs
    dev: /dev/nvme0n1p8
  ID-2: /boot size: 973.4 MiB used: 274.3 MiB (28.2%) fs: ext4
    dev: /dev/nvme0n1p7
  ID-3: /boot/efi size: 256 MiB used: 64.9 MiB (25.3%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-4: /home size: 253.94 GiB used: 169.05 GiB (66.6%) fs: btrfs
    dev: /dev/nvme0n1p8
Swap:
  ID-1: swap-1 type: partition size: 2 GiB used: 0 KiB (0.0%)
    dev: /dev/nvme0n1p4
  ID-2: swap-2 type: zram size: 8 GiB used: 3.2 MiB (0.0%) dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 47.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 624 Uptime: 19m Memory: 15.25 GiB used: 6.95 GiB (45.6%)
  Init: systemd runlevel: 5 Compilers: gcc: 12.1.1 Packages: 51
  note: see --pkg Shell: fish v: 3.5.0 inxi: 3.3.16

I thought that it didn’t recognize the card at all, but I found that the graphics card does work for things I tell it to open with the discrete graphics card. Thanks for the help. :slight_smile:

1 Like