Monitor not found after disconnect

I’ve found numerous posts with similar issues, although none seem to fit my case. Running Manjaro on a laptop with an external monitor connected through thunderbolt. If I boot with the monitor attached all works as expected, however if I disconnect and reconnect thunderbolt the monitor isn’t found on reconnect (doesn’t show up in ‘Displays’ gui or with xrandr). I’ve tried with various kernels and the issue is the same.

Then, I was following advice from another post and ran sudo inxi --verbosity=8 --filter --width and the monitor came back to life! The fix is only temporary, as long as I leave the terminal window open. What is going on? I guess it might be something to do with permissions, but have no idea how to fix.

Output of sudo inxi --verbosity=8 --filter --width:

System:
  Kernel: 6.12.21-4-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 14.2.1
    clocksource: tsc avail: acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.12-x86_64
    root=UUID=8643e13d-67fa-4e6a-a82c-e45ef5ea0cb9 rw apparmor=1
    security=apparmor udev.log_priority=3
    bootsplash.bootfile=bootsplash-themes/manjaro/bootsplash
    snd_hda_intel.dmic_detect=0
  Desktop: GNOME v: 48.0 tk: GTK v: 3.24.49 wm: gnome-shell
    tools: gsd-screensaver-proxy dm: GDM v: 48.0 Distro: Manjaro base: Arch Linux
Machine:
  Type: Convertible System: HP product: HP Spectre x360 Convertible 13-ap0xxx
    v: N/A serial: <filter> Chassis: type: 31 serial: N/A
  Mobo: HP model: 8514 v: 09.68 serial: <filter> part-nu: 5EQ43EA#ABU
    uuid: 38444335-3534-4433-4c52-524435344435 UEFI: AMI v: F.34 date: 10/08/2019
Battery:
  ID-1: BAT0 charge: 43.4 Wh (93.7%) condition: 46.3/46.3 Wh (100.0%)
    volts: 16.7 min: 15.4 model: HP Primary type: Li-ion serial: N/A
    status: not charging
Memory:
  System RAM: total: 16 GiB available: 15.28 GiB used: 6.12 GiB (40.1%)
    igpu: 64 MiB
  Array-1: capacity: 32 GiB slots: 2 modules: 2 EC: None
    max-module-size: 16 GiB note: est.
  Device-1: Bottom - on board type: DDR4 detail: synchronous size: 8 GiB
    speed: spec: 2667 MT/s actual: 2400 MT/s volts: curr: 1.2 min: 1.2 max: 1.2
    width (bits): data: 64 total: 64 manufacturer: Micron
    part-no: MT40A1G16KNR-075:E serial: N/A
  Device-2: Bottom - on board type: DDR4 detail: synchronous size: 8 GiB
    speed: spec: 2667 MT/s actual: 2400 MT/s volts: curr: 1.2 min: 1.2 max: 1.2
    width (bits): data: 64 total: 64 manufacturer: Micron
    part-no: MT40A1G16KNR-075:E serial: N/A
PCI Slots:
  Slot: 0 type: PCIe status: in use info: J6B2 length: long volts: 3.3
    bus-ID: 00:01.0
CPU:
  Info: model: Intel Core i7-8565U socket: BGA1528 (U3E1) note: check bits: 64
    type: MT MCP arch: Whiskey Lake gen: core 8 level: v3 note: check built: 2018
    process: Intel 14nm family: 6 model-id: 0x8E (142) stepping: 0xB (11)
    microcode: 0xF6
  Topology: cpus: 1x dies: 1 clusters: 4 cores: 4 threads: 8 tpc: 2
    smt: enabled cache: L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB
    desc: 4x256 KiB L3: 8 MiB desc: 1x8 MiB
  Speed (MHz): avg: 3483 min/max: 400/4600 base/boost: 1782/8300 scaling:
    driver: intel_pstate governor: powersave volts: 0.7 V ext-clock: 100 MHz
    cores: 1: 3483 2: 3483 3: 3483 4: 3483 5: 3483 6: 3483 7: 3483 8: 3483
    bogomips: 32012
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat
    arch_capabilities arch_perfmon art avx avx2 bmi1 bmi2 bts clflush
    clflushopt cmov constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64
    dtherm dts epb ept ept_ad erms est f16c flexpriority flush_l1d fma fpu
    fsgsbase fxsr ht hwp hwp_act_window hwp_epp hwp_notify ibpb ibrs ida
    intel_pt invpcid lahf_lm lm mca mce md_clear mmx monitor movbe mpx msr
    mtrr nonstop_tsc nopl nx pae pat pbe pcid pclmulqdq pdcm pdpe1gb pebs pge
    pln pni popcnt pse pse36 pts rdrand rdseed rdtscp rep_good sdbg sep sgx
    smap smep ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm tm2
    tpr_shadow tsc tsc_adjust tsc_deadline_timer vme vmx vnmi vpid x2apic
    xgetbv1 xsave xsavec xsaveopt xsaves xtopology xtpr
  Vulnerabilities:
  Type: gather_data_sampling mitigation: Microcode
  Type: itlb_multihit status: KVM: Split huge pages
  Type: l1tf status: Not affected
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown status: Not affected
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed mitigation: IBRS
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: IBRS; IBPB: conditional; STIBP: conditional;
    RSB filling; PBRSB-eIBRS: Not affected; BHI: Not affected
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel WhiskeyLake-U GT2 [UHD Graphics 620] vendor: Hewlett-Packard
    driver: i915 v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20
    ports: active: DP-4,eDP-1 empty: DP-1,DP-2,DP-5 bus-ID: 00:02.0
    chip-ID: 8086:3ea0 class-ID: 0300
  Device-2: Quanta HP Wide Vision FHD Camera driver: uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-5:2 chip-ID: 0408:5251
    class-ID: 0e02 serial: <filter>
  Display: unspecified server: X.org v: 1.21.1.16 with: Xwayland v: 24.1.6
    compositor: gnome-shell driver: X: loaded: modesetting alternate: fbdev,vesa
    dri: iris gpu: i915 display-ID: :1 screens: 1
  Screen-1: 0 s-res: 3360x1080 s-size: <missing: xdpyinfo>
  Monitor-1: DP-4 mapped: DP-2-8 pos: primary,top-left model: Dell P2422HE
    serial: <filter> built: 2022 res: mode: 1920x1080 hz: 60 scale: 100% (1)
    dpi: 93 gamma: 1.2 chroma: red: x: 0.671 y: 0.325 green: x: 0.310 y: 0.616
    blue: x: 0.145 y: 0.063 white: x: 0.314 y: 0.329
    size: 527x296mm (20.75x11.65") diag: 604mm (23.8") ratio: 16:9
    modes: 1920x1080, 1600x900, 1280x1024, 1152x864, 1280x720, 1024x768,
    800x600, 640x480, 720x400
  Monitor-2: eDP-1 pos: bottom-r model: AU Optronics 0x272b built: 2018 res:
    mode: 1440x810 hz: 60 scale: 100% (1) dpi: 125 gamma: 1.2 chroma: red:
    x: 0.639 y: 0.329 green: x: 0.298 y: 0.600 blue: x: 0.149 y: 0.059 white:
    x: 0.314 y: 0.329 size: 293x165mm (11.54x6.5") diag: 336mm (13.2")
    ratio: 16:9 modes: 3840x2160
  EDID-Warnings: 1: parse_edid: unknown flag 2
  API: OpenGL Message: Unable to show GL data. glxinfo is missing.
  Info: Tools: x11: xprop,xrandr
Audio:
  Device-1: Intel Cannon Point-LP High Definition Audio vendor: Hewlett-Packard
    driver: snd_hda_intel v: kernel alternate: snd_soc_avs,snd_sof_pci_intel_cnl
    bus-ID: 00:1f.3 chip-ID: 8086:9dc8 class-ID: 0401
  Device-2: Texas Instruments PCM2902 Audio Codec
    driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 1.1 speed: 12 Mb/s
    lanes: 1 mode: 1.1 bus-ID: 1-3.5:34 chip-ID: 08bb:2902 class-ID: 0300
  API: ALSA v: k6.12.21-4-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 1.4.1 status: n/a (root, process)
    with: pipewire-media-session status: active tools: pw-cat,pw-cli
  Server-3: PulseAudio v: 17.0-43-g3e2bb status: active (root, process) with:
    1: pulseaudio-alsa type: plugin 2: pulseaudio-jack type: module
    tools: pacat,pactl,pavucontrol
Network:
  Device-1: Intel Cannon Point-LP CNVi [Wireless-AC] driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:9df0 class-ID: 0280
  IF: wlp0s20f3 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: dynamic noprefixroute scope: global
  IP v6: <filter> type: noprefixroute scope: link
  Device-2: Realtek RTL8153 Gigabit Ethernet Adapter driver: r8152 type: USB
    rev: 2.1 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-3.3:33
    chip-ID: 0bda:8153 class-ID: 0000 serial: <filter>
  IF: enp0s20f0u3u3 state: down mac: <filter>
  IF-ID-1: docker0 state: down mac: <filter>
  IP v4: <filter> scope: global broadcast: <filter>
  Info: services: NetworkManager, sshd, systemd-timesyncd, wpa_supplicant
  WAN IP: <filter>
Bluetooth:
  Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) driver: btusb v: 0.8
    type: USB rev: 2.0 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-10:4
    chip-ID: 8087:0aaa class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 0 state: up address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 953.87 GiB used: 850.62 GiB (89.2%)
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Toshiba model: N/A
    size: 953.87 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: AAHA4102 temp: 30.9 C
    scheme: GPT
  SMART: yes health: PASSED on: 1y 322d 18h cycles: 1,900
    read-units: 189,327,206 [96.9 TB] written-units: 103,576,411 [53.0 TB]
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 953.57 GiB size: 937.53 GiB (98.32%)
    used: 850.62 GiB (90.7%) fs: ext4 block-size: 4096 B dev: /dev/nvme0n1p2
    maj-min: 259:2 label: N/A uuid: 8643e13d-67fa-4e6a-a82c-e45ef5ea0cb9
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 280 KiB (0.1%) fs: vfat block-size: 512 B dev: /dev/nvme0n1p1
    maj-min: 259:1 label: N/A uuid: 92FD-2E54
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) zswap: no
  ID-1: swap-1 type: file size: 20 GiB used: 0 KiB (0.0%) priority: -2
    file: /swapfile
Unmounted:
  Message: No unmounted partitions found.
USB:
  Hub-1: 1-0:1 info: hi-speed hub with single TT ports: 12 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Hub-2: 1-3:32 info: Microchip (formerly SMSC) USB2806 Smart Hub ports: 6
    rev: 2.1 speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 0424:2806
    class-ID: 0900
  Device-1: 1-3.2:36 info: MosArt Wireless Keyboard/Mouse
    type: keyboard,mouse driver: hid-generic,usbhid interfaces: 2 rev: 1.1
    speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 power: 100mA
    chip-ID: 062a:4101 class-ID: 0301
  Device-2: 1-3.3:33 info: Realtek RTL8153 Gigabit Ethernet Adapter
    type: Network driver: r8152 interfaces: 1 rev: 2.1
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 power: 200mA
    chip-ID: 0bda:8153 class-ID: 0000 serial: <filter>
  Device-3: 1-3.5:34 info: Texas Instruments PCM2902 Audio Codec
    type: audio,HID driver: hid-generic,snd-usb-audio,usbhid interfaces: 3
    rev: 1.1 speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 power: 100mA
    chip-ID: 08bb:2902 class-ID: 0300
  Device-4: 1-3.6:35 info: Microchip (formerly SMSC) Hub Feature Controller
    type: HID driver: hid-generic,usbhid interfaces: 2 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 0424:284c
    class-ID: 0300
  Device-5: 1-5:2 info: Quanta HP Wide Vision FHD Camera type: video
    driver: uvcvideo interfaces: 4 rev: 2.0 speed: 480 Mb/s (57.2 MiB/s) lanes: 1
    mode: 2.0 power: 500mA chip-ID: 0408:5251 class-ID: 0e02 serial: <filter>
  Device-6: 1-9:3 info: Synaptics type: <vendor specific> driver: N/A
    interfaces: 1 rev: 2.0 speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1
    power: 100mA chip-ID: 06cb:00bb class-ID: ff00 serial: <filter>
  Device-7: 1-10:4 info: Intel Bluetooth 9460/9560 Jefferson Peak (JfP)
    type: bluetooth driver: btusb interfaces: 2 rev: 2.0
    speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 power: 100mA
    chip-ID: 8087:0aaa class-ID: e001
  Hub-3: 2-0:1 info: super-speed hub ports: 6 rev: 3.1
    speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-4: 3-0:1 info: hi-speed hub with single TT ports: 2 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Hub-5: 4-0:1 info: super-speed hub ports: 2 rev: 3.1
    speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-6: 4-2:11 info: Microchip (formerly SMSC) USB5806 Smart Hub ports: 5
    rev: 3.2 speed: 5 Gb/s (596.0 MiB/s) lanes: 1 mode: 3.2 gen-1x1
    chip-ID: 0424:5806 class-ID: 0900
Sensors:
  Src: /sys System Temperatures: cpu: 99.0 C pch: 72.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Repos:
  Packages: 2064 pm: dpkg pkgs: 0 pm: pacman pkgs: 2048 libs: 366
    tools: pamac,yay pm: flatpak pkgs: 0 pm: snap pkgs: 16
  Active pacman repo servers in: /etc/pacman.d/mirrorlist
    1: http://manjaro.mirrors.uk2.net/stable/$repo/$arch
    2: https://ask4.mm.fcix.net/manjaro/stable/$repo/$arch
Processes:
  CPU top: 5 of 340
  1: cpu: 2.8% command: gnome-shell pid: 2248 mem: 381.2 MiB (2.4%)
  2: cpu: 2.6% command: gnome-terminal-server pid: 12998 mem: 61.5 MiB (0.3%)
  3: cpu: 2.3% command: Xorg pid: 2140 mem: 132.5 MiB (0.8%)
  4: cpu: 2.3% command: telegram-desktop pid: 2534 mem: 589.6 MiB (3.7%)
  5: cpu: 1.5% command: whatsdesk pid: 3096 mem: 336.1 MiB (2.1%)
  Memory top: 5 of 340
  1: mem: 964.3 MiB (6.1%) command: qgis pid: 7025 cpu: 1.2%
  2: mem: 713.1 MiB (4.5%) command: org.gnome.Maps started-by: gjs pid: 7106
    cpu: 0.9%
  3: mem: 589.6 MiB (3.7%) command: telegram-desktop pid: 2534 cpu: 2.3%
  4: mem: 399.6 MiB (2.5%) command: soffice.bin pid: 7003 cpu: 0.7%
  5: mem: 381.2 MiB (2.4%) command: gnome-shell pid: 2248 cpu: 2.8%
Info:
  Processes: 340 Power: uptime: 1h 9m states: freeze,mem,disk suspend: s2idle
    wakeups: 0 hibernate: platform avail: shutdown, reboot, suspend, test_resume
    image: 6.1 GiB services: gsd-power, power-profiles-daemon, upowerd
    Init: systemd v: 257 default: graphical tool: systemctl
  Compilers: gcc: 14.2.1 Shell: Sudo (sudo) v: 1.9.16p2 default: Bash
    v: 5.2.37 running-in: gnome-terminal inxi: 3.3.38

Power save issue or rescan issue… take look here: https://wiki.archlinux.org/title/Thunderbolt#Troubleshooting

Note that --width is already presumed and is redundant.
Additionally, sudois not required for inxi - avoid using it.

System Information

While information from *-fetch type apps might be fine for someone wishing to buy your computer, for Support purposes it’s better to ask your system directly; :eyes:

Output of the inxi command with appropriate parameters will achieve this (naturally, formatted according to forum guidelines) and will generally be more useful for those wishing to help:

inxi --filter --verbosity=8

or the short form:

inxi -zv8

Regards.