HDMI output not detected on wayland, but works on X11 (nvidia)

Hello, I’ve had this issue for months and have tried searching and trying different things but have had no luck, hope someone here might be able to help.

I’ve been using Wayland and it’s worked great, except for not being able to use external monitors.

The internal screen works fine on both X11 and wayland.
But the HDMI port is only visible when running X11 – xrandr only lists the HDMI entry in X11, not wayland.

A few posts say that modeset=1 should be set for nvidia, but doing so (with grub or modprobe conf) doesn’t let it reach the login screen.

When modset is set, the boot log (shown when removing quiet splash) gets stuck on “Terminate plymouth boot screen”.

Nothing looks like an error, so not even sure where to start debugging this.

regular GPU usage works fine:

❯ glxinfo | grep vendor
server glx vendor string: SGI
client glx vendor string: Mesa Project and SGI
OpenGL vendor string: Intel

❯ prime-run glxinfo | grep vendor
server glx vendor string: NVIDIA Corporation
client glx vendor string: NVIDIA Corporation
OpenGL vendor string: NVIDIA Corporation

full inxi -zv8: http://0x0.st/8QOU.txt

❯ inxi -G
Graphics:
  Device-1: Intel TigerLake-H GT1 [UHD Graphics] driver: i915 v: kernel
  Device-2: NVIDIA GA107M [GeForce RTX 3050 Mobile] driver: nvidia
    v: 550.144.03
  Device-3: Chicony HD User Facing driver: uvcvideo type: USB
  Display: x11 server: X.Org v: 21.1.16 with: Xwayland v: 24.1.6 driver: X:
    loaded: modesetting,nvidia unloaded: nouveau dri: iris gpu: i915
    resolution: 1920x1080~144Hz
  API: EGL v: 1.5 drivers: iris,kms_swrast,nvidia
    platforms: gbm,x11,surfaceless,device
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: intel mesa v: 24.3.4-arch1.1
    renderer: Mesa Intel UHD Graphics (TGL GT1)
  API: Vulkan v: 1.4.304 drivers: N/A surfaces: xcb,xlib
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor gpu: nvidia-settings,nvidia-smi
    wl: wayland-info x11: xdpyinfo, xprop, xrandr
❯ mhwd -li -l
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
     video-modesetting            2020.01.13                true            PCI
           video-linux            2024.05.06                true            PCI
video-hybrid-intel-nvidia-prime            2023.03.23               false            PCI


Warning: No installed USB configs!
> 0000:01:00.0 (0300:10de:25a5) Display controller nVidia Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime            2023.03.23               false            PCI
video-hybrid-intel-nvidia-470xx-prime            2023.03.23               false            PCI
          video-nvidia            2024.05.03               false            PCI
    video-nvidia-470xx            2023.03.23               false            PCI
           video-linux            2024.05.06                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI


> 0000:00:02.0 (0300:8086:9a68) Display controller Intel Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime            2023.03.23               false            PCI
video-hybrid-intel-nvidia-470xx-prime            2023.03.23               false            PCI
           video-linux            2024.05.06                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI
1 Like

I have the same issue, first i thought it was my hardware, but using wayland seems to be the problem.

Do you test it with the nouveau driver?

Yup, no luck with nouveau

Simply put, xrandr does not work on Wayland.

An alternative is to use wlr-randr:

sudo pacman -S wlr-randr

Note that there may be subtle differences between xrandr and wlr-randr; it is therefore advisable to check the manual (man wlr-randr).

I should mention I’ve never used wlr-randr and cannot offer much beyond that it exists. It’s actually quite rare by today’s standards that user-defined resolutions are needed. The device itself usually specifies possible resolutions via EDID (Extended Display Identification Data).

Regards.

1 Like

WOW. Okay, been stuck on this for months and when nothing worked, the latest stable update that included nvidia 550 → 570 just got displays working!

No change to any config, didn’t need modeset=1, etc. Just works like magic.

@JPS you might want to try updating.

@soundofthunder sorry missed replying to your message. I don’t know about wlr-randr, but as of now, xrandr shows HDMI for me:

❯ xrandr --listmonitors
Monitors: 2
 0: +*eDP-1 1920/344x1080/193+0+0  eDP-1
 1: +HDMI-A-1 1920/527x1080/296+1920+0  HDMI-A-1

Now, you do.

Yes, xrandr works without issue on X11.

1 Like

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