Trouble with Wayland and Nvidia drivers

Hi everybody.

I’m having trouble with the nvidia drivers when using wayland. I’ve followed every step in the install guides, for some reason when generating the initramfs via the dracut-rebuild command it doesn’t use the conf file for the nvidia drivers. The Nvidia Card does work when using X11 but when using Wayland, i’m able to use the nvidia card via optimus commands but is not the main graphics card.

Please post the hardware output. You can post the url to this command.

inxi -Faz | eos-sendlog

https://0x0.st/HGSl.txt

Are you using optimus manager to switch to the Nvidia card? Currently it’s rendering on Intel.

Edit: Nvidia drivers are installed

API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: intel mesa v: 23.3.3-arch1.1
    glx-v: 1.4 direct-render: yes renderer: Mesa Intel UHD Graphics 620 (WHL
    GT2) device-ID: 8086:3ea0 memory: 7.43 GiB unified: yes display-ID: :0.0

Edit: Are there any settings in the UEFI bios to set either Hybrid mode or dedicated or integrated?

Yes, I’m using envy control and is in Nvidia Mode, it keeps rendering on Intel when in Wayland, and no, there is no additional uefi settings. I used to have a manjaro install and wayland+nvidia worked.

The only thing i can suggest is try removing envy control. Then i would revert to nouveau open source driver and reboot with

nvidia-inst -n

Reboot and check if nouveau shows with

inxi -Ga

Then reinstall the nvidia drivers with

nvidia-inst

Reboot and check nvidia with

inxi -Ga

Then reinstall envy control and check if it made any difference.

Graphics:
  Device-1: Intel WhiskeyLake-U GT2 [UHD Graphics 620] vendor: ASUSTeK
    driver: i915 v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20
    ports: active: eDP-1 empty: HDMI-A-1 bus-ID: 00:02.0 chip-ID: 8086:3ea0
    class-ID: 0300
  Device-2: NVIDIA GP108M [GeForce MX230] vendor: ASUSTeK driver: nvidia
    v: 545.29.06 alternate: nouveau,nvidia_drm non-free: 545.xx+ status: current
    (as of 2023-10; EOL~2026-12-xx) arch: Pascal code: GP10x
    process: TSMC 16nm built: 2016-2021 pcie: gen: 1 speed: 2.5 GT/s lanes: 4
    link-max: gen: 3 speed: 8 GT/s bus-ID: 02:00.0 chip-ID: 10de:1d11
    class-ID: 0302
  Device-3: IMC Networks USB2.0 VGA UVC WebCam driver: uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-5:4 chip-ID: 13d3:5a11
    class-ID: 0e02
  Display: wayland server: X.org v: 1.21.1.11 with: Xwayland v: 23.2.4
    compositor: gnome-shell v: 45.3 driver: X: loaded: modesetting,nvidia
    dri: iris gpu: i915 display-ID: 0
  Monitor-1: eDP-1 model: ChiMei InnoLux 0x15e6 built: 2016 res: 1366x768
    dpi: 101 gamma: 1.2 size: 344x193mm (13.54x7.6") diag: 394mm (15.5")
    ratio: 16:9 modes: 1366x768
  API: EGL v: 1.5 hw: drv: intel iris drv: nvidia platforms: device: 0
    drv: nvidia device: 2 drv: iris device: 3 drv: swrast gbm: drv: nvidia
    surfaceless: drv: nvidia wayland: drv: iris x11: drv: iris
    inactive: device-1
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: intel mesa v: 23.3.3-arch1.1
    glx-v: 1.4 direct-render: yes renderer: Mesa Intel UHD Graphics 620 (WHL
    GT2) device-ID: 8086:3ea0 memory: 7.43 GiB unified: yes display-ID: :0.0
  API: Vulkan v: 1.3.274 layers: 5 device: 0 type: discrete-gpu
    name: NVIDIA GeForce MX230 driver: nvidia v: 545.29.06 device-ID: 10de:1d11
    surfaces: xcb,xlib,wayland

Is this after command to revert to nouveau?

nvidia-inst -n

Edit: The output shows the nvidia drivers are installed and would be running on them if using the dedicated gpu.

Yes, is after the revert. But the Nvidia gpu is not the main running.

You have to switch to the nvidia with envy control or some other method.

That’s the issue. I’ve already changed to nvidia with envy control, when in wayland doesn’t work the nvidia GPU as main. In X11 it does.

Have you tried another method of switching to dedicated gpu such as optimus-manager? Instead of envy-control?

Edit: I am using nvidia with Wayland on Kde but it’s a desktop not a hybrid laptop.

Optimus Manager doesn’t work on wayland. The issue is not the gpu switching at it does work on x11


The switch just doesn’t work on wayland. In a Wayland session the main gpu never changes to Nvidia. Is available to use, but is never the main.

Not sure as i don’t use any hybrid laptops and they all seem to work differently.

@Slaythrax
What setting are there in the Bios under graphics configuration?