Fedora 40 on Lenovo P50 Laptop not finding HDMI connected external display

Hi there,

I am running fedora 40 on a Lenovo P50 laptop and now connected an external display over the HDMI port. However, the only thing the display shows is “no signal” and I can not see it in the Display configuration UI.

I searched here a bit and found a thread about a similar problem with fedora 38 where it was recommended to use the rpmfusion packages for nvidia. I tried my best to understand and apply the recommendations there, but to no avail.

Could someone please help me out?

I am using the latest firmware update for the P50, version 11.8.93.4323, I was able to find.
I checked monitor and cable on a non-Linux machine, they are ok.

Cheers,
Azhai

Some details:

[xxx@yyy ~]# inxi -Fzxx
System:
  Kernel: 6.8.10-300.fc40.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.41-37.fc40
  Console: pty pts/2 wm: kwin_wayland DM: SDDM Distro: Fedora Linux 40 (KDE
    Plasma)
Machine:
  Type: Laptop System: LENOVO product: 20EQS20D00 v: ThinkPad P50
    serial: <filter> Chassis: type: 10 serial: <filter>
  Mobo: LENOVO model: 20EQS20D00 serial: <filter>
    part-nu: LENOVO_MT_20EQ_BU_Think_FM_ThinkPad P50 UEFI: LENOVO
    v: N1EETA1W (1.74 ) date: 11/07/2023
Battery:
  ID-1: BAT0 charge: 81.1 Wh (99.3%) condition: 81.7/90.0 Wh (90.8%)
    volts: 12.7 min: 11.2 model: SMP 00NY493 serial: <filter>
    status: not charging
  Device-1: hidpp_battery_0 model: Logitech M720 Triathlon Multi-Device
    Mouse serial: <filter> charge: 55% (should be ignored) status: discharging
CPU:
  Info: quad core model: Intel Core i7-6820HQ bits: 64 type: MT MCP
    arch: Skylake-S rev: 3 cache: L1: 256 KiB L2: 1024 KiB L3: 8 MiB
  Speed (MHz): avg: 3121 high: 3588 min/max: 800/3600 cores: 1: 3534 2: 3410
    3: 800 4: 3569 5: 3409 6: 3588 7: 3363 8: 3302 bogomips: 43198
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: NVIDIA GM107GLM [Quadro M2000M] vendor: Lenovo driver: nvidia
    v: 550.78 arch: Maxwell pcie: speed: 5 GT/s lanes: 16 ports: active: none
    off: eDP-1 empty: DP-1,DP-2,DP-3 bus-ID: 01:00.0 chip-ID: 10de:13b0
  Display: server: X.Org v: 24.1 with: Xwayland v: 24.1.0
    compositor: kwin_wayland driver: X: loaded: modesetting unloaded: fbdev,vesa
    dri: iris,nouveau gpu: nvidia,nvidia-nvswitch display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1707x960 s-dpi: 96
  Monitor-1: eDP-1 note: disabled model: Sharp 0x143b res: 1707x960 dpi: 124
    diag: 397mm (15.6")
  API: EGL v: 1.5 platforms: device: 0 drv: nvidia device: 2 drv: swrast
    gbm: drv: nvidia surfaceless: drv: nvidia x11: drv: zink
    inactive: wayland,device-1
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 550.78
    glx-v: 1.4 direct-render: yes renderer: Quadro M2000M/PCIe/SSE2
  API: Vulkan v: 1.3.280 surfaces: xcb,xlib device: 0 type: discrete-gpu
    driver: N/A device-ID: 10de:13b0 device: 1 type: cpu driver: N/A
    device-ID: 10005:0000
Audio:
  Device-1: Intel 100 Series/C230 Series Family HD Audio vendor: Lenovo
    driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a170
  Device-2: NVIDIA GM107 High Definition Audio [GeForce 940MX]
    driver: snd_hda_intel v: kernel pcie: speed: 8 GT/s lanes: 16
    bus-ID: 01:00.1 chip-ID: 10de:0fbc
  API: ALSA v: k6.8.10-300.fc40.x86_64 status: kernel-api
  Server-1: PipeWire v: 1.0.7 status: n/a (root, process) with:
    1: wireplumber status: active 2: pipewire-alsa type: plugin 3: pw-jack
    type: plugin
  Server-2: PulseAudio v: 16.1 status: active (root, process)
    with: pulseaudio-alsa type: plugin
Network:
  Device-1: Intel Ethernet I219-LM vendor: Lenovo driver: e1000e v: kernel
    port: N/A bus-ID: 00:1f.6 chip-ID: 8086:15b7
  IF: enp0s31f6 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: Intel Wireless 8260 driver: iwlwifi v: kernel pcie:
    speed: 2.5 GT/s lanes: 1 bus-ID: 04:00.0 chip-ID: 8086:24f3
  IF: wlp4s0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel Bluetooth wireless interface driver: btusb v: 0.8 type: USB
    rev: 2.0 speed: 12 Mb/s lanes: 1 bus-ID: 1-14:5 chip-ID: 8087:0a2b
  Report: btmgmt ID: hci0 rfk-id: 1 state: up address: <filter> bt-v: 4.2
    lmp-v: 8
Drives:
  Local Storage: total: 476.94 GiB used: 146.59 GiB (30.7%)
  ID-1: /dev/sda vendor: Innovation IT model: SSD M.2 512GB QLC
    size: 476.94 GiB speed: 6.0 Gb/s serial: <filter> temp: 50 C
Partition:
  ID-1: / size: 475.34 GiB used: 146.16 GiB (30.7%) fs: btrfs dev: /dev/dm-0
    mapped: luks-1f5e454c-39f5-42d0-bfcc-74cf63da8466
  ID-2: /boot size: 973.4 MiB used: 408.7 MiB (42.0%) fs: ext4
    dev: /dev/sda2
  ID-3: /boot/efi size: 598.8 MiB used: 28.1 MiB (4.7%) fs: vfat
    dev: /dev/sda1
  ID-4: /home size: 475.34 GiB used: 146.16 GiB (30.7%) fs: btrfs
    dev: /dev/dm-0 mapped: luks-1f5e454c-39f5-42d0-bfcc-74cf63da8466
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 57.0 C pch: 59.5 C mobo: N/A
  Fan Speeds (rpm): fan-1: 3058 fan-2: 3065
Info:
  Memory: total: 16 GiB available: 15.51 GiB used: 4.85 GiB (31.3%)
  Processes: 327 Power: uptime: 47m wakeups: 0 Init: systemd v: 255
    target: graphical (5) default: graphical
  Packages: 53 pm: flatpak pkgs: 39 pm: snap pkgs: 14 Compilers: gcc: 14.1.1
    Shell: Bash v: 5.2.26 running-in: konsole inxi: 3.3.34
[xxx@yyy ~]# dmesg | grep secure
[    0.000000] secureboot: Secure boot disabled
[    0.010479] secureboot: Secure boot disabled
[xxx@yyy ~]# dnf list installed '*nvidia*'
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

Installed Packages
akmod-nvidia.x86_64                               3:550.78-1.fc40         @rpmfusion-nonfree-nvidia-driver
kmod-nvidia-6.8.10-300.fc40.x86_64.x86_64         3:550.78-1.fc40         @@commandline                   
nvidia-gpu-firmware.noarch                        20240513-1.fc40         @updates                        
nvidia-modprobe.x86_64                            3:550.78-1.fc40         @rpmfusion-nonfree-nvidia-driver
nvidia-persistenced.x86_64                        3:550.78-1.fc40         @rpmfusion-nonfree-nvidia-driver
nvidia-settings.x86_64                            3:550.78-1.fc40         @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia.x86_64                        3:550.78-1.fc40         @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda.x86_64                   3:550.78-1.fc40         @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.i686                3:550.78-1.fc40         @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.x86_64              3:550.78-1.fc40         @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-kmodsrc.x86_64                3:550.78-1.fc40         @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.i686                     3:550.78-1.fc40         @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.x86_64                   3:550.78-1.fc40         @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-power.x86_64                  3:550.78-1.fc40         @rpmfusion-nonfree-nvidia-driver
[xxx@yyy ~]# lsmod | grep nvidia
nvidia_drm            131072  71
nvidia_modeset       1605632  18 nvidia_drm
nvidia_uvm           6782976  0
nvidia              60518400  644 nvidia_uvm,nvidia_modeset
video                  77824  2 thinkpad_acpi,nvidia_modeset

Removed audio, bluetooth, f38, flatpak

This is an unusual response. Is your laptop part of a business that manages the employees laptops?

Everything you posted seems to indicate that the nvidia GPU is properly operating.

This line in the inxi output should show either wayland or X11 following the word “Display:” and does not so apparently it was not properly configured during login. Please reboot and log in again to see if that changes.

If it does not then you can rebuild the drivers with

  1. sudo dnf remove kmod-nvidia-6.8.10-300.fc40.x86_64
    then rebuild them with
  2. sudo akmods --force
    wait about 1 minute after step 2 completes then reboot.

Hi, thanks for helping.

No, I think I messed something up there when I tried to set up repositories after I switched to Fedora from trying out RHEL.

It did.

Graphics:
  Device-1: NVIDIA GM107GLM [Quadro M2000M] vendor: Lenovo driver: nvidia
    v: 550.78 arch: Maxwell pcie: speed: 8 GT/s lanes: 16 ports: active: none
    off: eDP-1 empty: DP-1,DP-2,DP-3 bus-ID: 01:00.0 chip-ID: 10de:13b0
  Display: wayland server: X.org v: 1.20.14 with: Xwayland v: 24.1.0
    compositor: kwin_wayland driver: X: loaded: modesetting unloaded: fbdev,vesa
    dri: iris,nouveau gpu: nvidia display-ID: 0
  Monitor-1: eDP-1 res: 1707x960 size: N/A
  API: EGL v: 1.5 platforms: device: 0 drv: nvidia device: 2 drv: swrast
    gbm: drv: nvidia surfaceless: drv: nvidia wayland: drv: nvidia x11:
    drv: zink inactive: device-1
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 550.78
    glx-v: 1.4 direct-render: yes renderer: Quadro M2000M/PCIe/SSE2
    display-ID: :0.0
  API: Vulkan v: 1.3.280 surfaces: xcb,xlib,wayland device: 0
    type: discrete-gpu driver: N/A device-ID: 10de:13b0 device: 1 type: cpu
    driver: N/A device-ID: 10005:0000

But still, “no signal” on the external screen and no second display under Fedora’s “Display Configuration” UI.

I now tried those rebuild instructions anyway and waited until the kmod entry is back:

[xxx@yyy ~]$ dnf list installed '*nvidia*'
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

Installed Packages
akmod-nvidia.x86_64                               3:550.78-1.fc40         @rpmfusion-nonfree-nvidia-driver
kmod-nvidia-6.8.10-300.fc40.x86_64.x86_64         3:550.78-1.fc40         @@commandline                   
nvidia-gpu-firmware.noarch                        20240513-1.fc40         @updates                        
nvidia-modprobe.x86_64                            3:550.78-1.fc40         @rpmfusion-nonfree-nvidia-driver
nvidia-persistenced.x86_64                        3:550.78-1.fc40         @rpmfusion-nonfree-nvidia-driver
nvidia-settings.x86_64                            3:550.78-1.fc40         @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia.x86_64                        3:550.78-1.fc40         @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda.x86_64                   3:550.78-1.fc40         @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.i686                3:550.78-1.fc40         @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.x86_64              3:550.78-1.fc40         @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-kmodsrc.x86_64                3:550.78-1.fc40         @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.i686                     3:550.78-1.fc40         @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.x86_64                   3:550.78-1.fc40         @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-power.x86_64                  3:550.78-1.fc40         @rpmfusion-nonfree-nvidia-driver

I rebooted and now the inxi -Fzxx command again shows

Graphics:
  Device-1: NVIDIA GM107GLM [Quadro M2000M] vendor: Lenovo driver: nvidia
    v: 550.78 arch: Maxwell pcie: speed: 8 GT/s lanes: 16 ports: active: none
    off: eDP-1 empty: DP-1,DP-2,DP-3 bus-ID: 01:00.0 chip-ID: 10de:13b0
  Display: server: X.Org v: 24.1 with: Xwayland v: 24.1.0
    compositor: kwin_wayland driver: X: loaded: modesetting unloaded: fbdev,vesa
    dri: iris,nouveau gpu: nvidia,nvidia-nvswitch display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1707x960 s-dpi: 96
  Monitor-1: eDP-1 note: disabled model: Sharp 0x143b res: 1707x960 dpi: 124
    diag: 397mm (15.6")
  API: EGL v: 1.5 platforms: device: 0 drv: nvidia device: 2 drv: swrast
    gbm: drv: nvidia surfaceless: drv: nvidia x11: drv: zink
    inactive: wayland,device-1
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 550.78
    glx-v: 1.4 direct-render: yes renderer: Quadro M2000M/PCIe/SSE2
  API: Vulkan v: 1.3.280 surfaces: xcb,xlib device: 0 type: discrete-gpu
    driver: N/A device-ID: 10de:13b0 device: 1 type: cpu driver: N/A
    device-ID: 10005:0000

and the status of my external display is still unchanged.

It would appear that you did not do a clean installation of fedora after removing RHEL.
This could be a factor in the issue you are seeing. If you actually did a clean fedora install then it may be the repos you have enabled that provide that message.

Left over files can cause conflicts and problems and the message you see whenever using dnf is troubling to me since it seems obvious that there are still RHEL configs on the system.

The fact that the system does not do a clean reboot and show the wayland DE in use is troubling. I would suggest that you do a new clean install of f40 and don’t add a lot of extra repos. The only ones needed for the nvidia drivers are the 3rd party repos that it prompts to enable during the first boot setup process.

Ok, sounds plausible. However, atm. that interruption would be a bit untimely as it’s not only f40 but all the other stuff I then have to reinstall and set up. I will leave it at the moment with just the laptop screen and do the complete reinstall when I have some days off.

Thank you very much for looking into this and helping out.