When I turn on a TV connected to HDMI, it does not show in list of displays unless I restart

Hello. I’m using Fedora 40 with KDE on Wayland, and Nvidia 4090 Graphics.

Here is my system info from inxi -Fzxx:

System:
  Kernel: 6.9.4-200.fc40.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.41-37.fc40
  Desktop: KDE Plasma v: 6.1.0 tk: Qt v: N/A wm: kwin_wayland dm: SDDM
    Distro: Fedora Linux 40 (KDE Plasma)
Machine:
  Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
  Mobo: ASUSTeK model: ROG STRIX X670E-E GAMING WIFI v: Rev 1.xx
    serial: <superuser required> part-nu: SKU UEFI: American Megatrends v: 1905
    date: 02/05/2024
Battery:
  Device-1: hidpp_battery_0 model: Logitech Wireless Keyboard ERGO K860
    serial: <filter> charge: 100% (should be ignored) status: discharging
  Device-2: hidpp_battery_1 model: Logitech Wireless Mouse MX Master 3
    serial: <filter> charge: 55% (should be ignored) status: discharging
CPU:
  Info: 16-core model: AMD Ryzen 9 7950X bits: 64 type: MT MCP arch: Zen 4
    rev: 2 cache: L1: 1024 KiB L2: 16 MiB L3: 64 MiB
  Speed (MHz): avg: 1416 high: 4043 min/max: 400/5881 cores: 1: 400 2: 400
    3: 400 4: 400 5: 3737 6: 400 7: 3536 8: 400 9: 400 10: 3427 11: 3711 12: 400
    13: 400 14: 4043 15: 400 16: 3601 17: 400 18: 3600 19: 400 20: 400 21: 400
    22: 400 23: 400 24: 400 25: 400 26: 400 27: 3761 28: 3600 29: 3524 30: 400
    31: 400 32: 400 bogomips: 288007
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: NVIDIA AD102 [GeForce RTX 4090] vendor: Gigabyte driver: nvidia
    v: 550.90.07 arch: Lovelace pcie: speed: 16 GT/s lanes: 16 ports:
    active: none off: DP-2,DP-3 empty: DP-4,HDMI-A-2 bus-ID: 01:00.0
    chip-ID: 10de:2684
  Device-2: AMD Raphael vendor: ASUSTeK driver: amdgpu v: kernel
    arch: RDNA-2 pcie: speed: 16 GT/s lanes: 16 ports: active: none
    empty: DP-1,HDMI-A-1,Writeback-1 bus-ID: 12:00.0 chip-ID: 1002:164e
    temp: 50.0 C
  Device-3: Logitech Logitech Webcam C925e driver: snd-usb-audio,uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 1-4:3 chip-ID: 046d:085b
  Display: wayland server: X.org v: 1.20.14 with: Xwayland v: 24.1.0
    compositor: kwin_wayland driver: N/A d-rect: 4752x2330 display-ID: 0
  Monitor-1: DP-2 pos: top-right res: 1680x1050 size: N/A
  Monitor-2: DP-3 pos: bottom-l res: 3072x1280 size: N/A
  API: EGL v: 1.5 platforms: device: 0 drv: nvidia device: 1 drv: radeonsi
    device: 3 drv: swrast surfaceless: drv: nvidia wayland: drv: nvidia x11:
    drv: zink inactive: gbm,device-2
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 550.90.07
    glx-v: 1.4 direct-render: yes renderer: NVIDIA GeForce RTX 4090/PCIe/SSE2
    display-ID: :0.0
  API: Vulkan v: 1.3.283 surfaces: xcb,xlib,wayland device: 0
    type: discrete-gpu driver: N/A device-ID: 10de:2684 device: 1
    type: integrated-gpu driver: N/A device-ID: 1002:164e device: 2 type: cpu
    driver: N/A device-ID: 10005:0000
Audio:
  Device-1: NVIDIA AD102 High Definition Audio vendor: Gigabyte
    driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 01:00.1 chip-ID: 10de:22ba
  Device-2: AMD Rembrandt Radeon High Definition Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 12:00.1 chip-ID: 1002:1640
  Device-3: Audient EVO4 driver: snd-usb-audio type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 bus-ID: 1-2.1:4 chip-ID: 2708:0006
  Device-4: Shure MV5 driver: hid-generic,snd-usb-audio,usbhid type: USB
    rev: 2.0 speed: 12 Mb/s lanes: 1 bus-ID: 1-2.3:5 chip-ID: 14ed:1000
  Device-5: Logitech Logitech Webcam C925e driver: snd-usb-audio,uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 1-4:3 chip-ID: 046d:085b
  Device-6: ASUSTek USB Audio driver: hid-generic,snd-usb-audio,usbhid
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 3-6:3 chip-ID: 0b05:1a52
  Device-7: Sony WH-1000XM3 [Wireless Noise-Canceling Headphones]
    driver: hid-generic,usbhid type: USB rev: 2.0 speed: 12 Mb/s lanes: 1
    bus-ID: 5-2:3 chip-ID: 054c:0cd3
  API: ALSA v: k6.9.4-200.fc40.x86_64 status: kernel-api
  Server-1: PipeWire v: 1.0.7 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin
Network:
  Device-1: Intel Wi-Fi 6E AX210/AX1675 2x2 [Typhoon Peak] driver: iwlwifi
    v: kernel pcie: speed: 5 GT/s lanes: 1 bus-ID: 09:00.0 chip-ID: 8086:2725
  IF: wlp9s0 state: down mac: <filter>
  Device-2: Realtek RTL8153 Gigabit Ethernet Adapter driver: r8152 type: USB
    rev: 2.1 speed: 480 Mb/s lanes: 1 bus-ID: 3-5.1.1:6 chip-ID: 0bda:8153
  IF: enp16s0u5u1u1 state: down mac: <filter>
  Device-3: Realtek RTL8153 Gigabit Ethernet Adapter driver: r8152 type: USB
    rev: 2.1 speed: 480 Mb/s lanes: 1 bus-ID: 3-5.1.2:7 chip-ID: 0bda:8153
  IF: enp16s0u5u1u2 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-4: Sony WH-1000XM3 [Wireless Noise-Canceling Headphones]
    driver: hid-generic,usbhid type: USB rev: 2.0 speed: 12 Mb/s lanes: 1
    bus-ID: 5-2:3 chip-ID: 054c:0cd3
  IF-ID-1: docker0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel AX210 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 bus-ID: 1-9:6 chip-ID: 8087:0032
  Report: btmgmt ID: hci0 rfk-id: 2 state: up address: <filter> bt-v: 5.3
    lmp-v: 12
Drives:
  Local Storage: total: 4.55 TiB used: 677.04 GiB (14.5%)
  ID-1: /dev/nvme0n1 vendor: Western Digital model: WD BLACK SN850X 1000GB
    size: 931.51 GiB speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 46.9 C
  ID-2: /dev/nvme1n1 vendor: Western Digital model: WD BLACK SN850X 1000GB
    size: 931.51 GiB speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 43.9 C
  ID-3: /dev/sda vendor: Hitachi model: HUA723030ALA640 size: 2.73 TiB
    speed: 6.0 Gb/s serial: <filter>
Partition:
  ID-1: / size: 399.98 GiB used: 343.34 GiB (85.8%) fs: btrfs dev: /dev/dm-0
    mapped: luks-ce42ef51-0cb3-41a1-bbdf-baf289274a95
  ID-2: /boot size: 4.84 GiB used: 617.6 MiB (12.5%) fs: ext4
    dev: /dev/nvme0n1p1
  ID-3: /boot/efi size: 4.99 GiB used: 45.7 MiB (0.9%) fs: vfat
    dev: /dev/nvme0n1p2
Swap:
  ID-1: swap-1 type: partition size: 48 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/nvme0n1p4
  ID-2: swap-2 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 56.2 C mobo: N/A gpu: amdgpu temp: 51.0 C
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 32 GiB note: est. available: 30.55 GiB
    used: 11.13 GiB (36.4%)
  Processes: 685 Power: uptime: 1h 19m wakeups: 1 Init: systemd v: 255
    target: graphical (5) default: graphical
  Packages: pm: flatpak pkgs: 25 Compilers: clang: 18.1.6 gcc: 14.1.1
    Shell: Zsh v: 5.9 running-in: terminator inxi: 3.3.34

My TV (Samsung 4k OLED QN55S92CAF) is connected through an HDMI cable to my Nvidia graphics card. If I start the computer when the TV is off (or resume from sleep), the TV will not be shown in my list of displays, even after turning it on, and even after putting the computer back to sleep and resume. I need to restart the computer.

Is there a command that can do this without restart?

I too, have the TV turned off most of the time so I was facing the same problem. What I did to solve it is to install autorandr, xrandr and arandr. Whenever I want to switch the display to the TV, I turn it on, then start arandr and select it. If I understand correctly, autorandr runs at startup.

Not sure it’s the proper way to do it, but it solved my problem, and could lead you in the right direction.

@josevillani Thank you.

It seems like xrandr is related to X? I’m using Wayland. Are you aware of a solution for Wayland?

Are you aware of a solution for Wayland?

Oh! That’s a problem. Maybe wlr-randr