Laptop monitor not detected while external monitor is connected

When I have an external monitor connected with HDMI, the laptop monitor is not detected. However, when no external is connected, the laptop monitor works fine. I have tested this with another external monitor, but the problem remains. Packages are up-to-date, and UEFI is up-to-date. Have not tested with another kernel.

Laptop monitor is enabled (with the external monitor disabled) on terminal TTYs, on grub screen, and on SDDM.

Problem persists on linux-zen 5.19.8.zen1-1 and linux-lts 5.15.68-1.

garuda-inxi output:

System:
Kernel: 5.19.8-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=cf13a4fa-87ca-437c-bd37-679973867483 rw rootflags=subvol=@
quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
resume=UUID=f0b8e2ea-5e10-4d0c-8a5b-c7ee99b4eb85 loglevel=3
Desktop: KDE Plasma v: 5.25.5 tk: Qt v: 5.15.6 info: latte-dock
wm: kwin_x11 vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Laptop System: ASUSTeK product: Strix GL704GW_GL704GW v: 1.0
serial: <superuser required>
Mobo: ASUSTeK model: GL704GW v: 1.0 serial: <superuser required>
UEFI: American Megatrends v: GL704GW.302 date: 12/17/2018
Battery:
ID-1: BAT0 charge: 47.7 Wh (100.0%) condition: 47.7/66.0 Wh (72.2%)
volts: 15.7 min: 15.7 model: ASUSTeK ASUS Battery type: Li-ion serial: N/A
status: not charging
CPU:
Info: model: Intel Core i7-8750H bits: 64 type: MT MCP arch: Coffee Lake
gen: core 8 level: v3 built: 2018 process: Intel 14nm family: 6
model-id: 0x9E (158) stepping: 0xA (10) microcode: 0xF0
Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 1.5 MiB desc: 6x256 KiB
L3: 9 MiB desc: 1x9 MiB
Speed (MHz): avg: 3599 high: 3600 min/max: 800/4100 scaling:
driver: intel_pstate governor: performance cores: 1: 3589 2: 3600 3: 3600
4: 3600 5: 3600 6: 3600 7: 3600 8: 3600 9: 3600 10: 3600 11: 3600
12: 3600 bogomips: 52799
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities:
Type: itlb_multihit status: KVM: VMX disabled
Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT
vulnerable
Type: mds mitigation: Clear CPU buffers; SMT vulnerable
Type: meltdown mitigation: PTI
Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
Type: retbleed mitigation: IBRS
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, RSB filling,
PBRSB-eIBRS: Not affected
Type: srbds mitigation: Microcode
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] vendor: ASUSTeK
driver: i915 v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20
ports: active: none off: eDP-1 empty: none bus-ID: 00:02.0
chip-ID: 8086:3e9b class-ID: 0300
Device-2: NVIDIA TU106M [GeForce RTX 2070 Mobile] vendor: ASUSTeK
driver: nvidia v: 515.65.01 alternate: nouveau,nvidia_drm non-free: 515.xx+
status: current (as of 2022-08) arch: Turing code: TUxxx
process: TSMC 12nm built: 2018-22 pcie: gen: 3 speed: 8 GT/s lanes: 16
bus-ID: 01:00.0 chip-ID: 10de:1f10 class-ID: 0300
Device-3: IMC Networks USB2.0 HD UVC WebCam type: USB driver: uvcvideo
bus-ID: 1-9:4 chip-ID: 13d3:56a2 class-ID: 0e02 serial: <filter>
Display: x11 server: X.Org v: 21.1.4 with: Xwayland v: 22.1.3
compositor: kwin_x11 driver: X: loaded: modesetting,nvidia
unloaded: nouveau alternate: fbdev,intel,nv,vesa gpu: i915 display-ID: :0
screens: 1
Screen-1: 0 s-res: 2560x1440 s-dpi: 96 s-size: 675x380mm (26.57x14.96")
s-diag: 775mm (30.5")
Monitor-1: HDMI-1-0 pos: primary res: 2560x1440 hz: 60 dpi: 118
size: 553x311mm (21.77x12.24") diag: 634mm (24.98") modes: N/A
Monitor-2: eDP-1 size-res: N/A modes: N/A
OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa
22.1.7 direct render: Yes
Audio:
Device-1: Intel Cannon Lake PCH cAVS vendor: ASUSTeK driver: snd_hda_intel
bus-ID: 1-4:2 v: kernel chip-ID: 0d8c:0005
alternate: snd_soc_skl,snd_sof_pci_intel_cnl bus-ID: 00:1f.3
class-ID: 0300 serial: <filter> chip-ID: 8086:a348 class-ID: 0403
Device-2: NVIDIA TU106 High Definition Audio vendor: ASUSTeK
driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
bus-ID: 01:00.1 chip-ID: 10de:10f9 class-ID: 0403
Device-3: C-Media Blue Snowball type: USB
driver: hid-generic,snd-usb-audio,usbhid
Sound Server-1: ALSA v: k5.19.8-zen1-1-zen running: yes
Sound Server-2: sndio v: N/A running: no
Sound Server-3: PulseAudio v: 16.1 running: no
Sound Server-4: PipeWire v: 0.3.57 running: yes
Network:
Device-1: Intel Cannon Lake PCH CNVi WiFi driver: iwlwifi v: kernel
bus-ID: 00:14.3 chip-ID: 8086:a370 class-ID: 0280
IF: wlo1 state: up mac: <filter>
Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: ASUSTeK driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
lanes: 1 port: 3000 bus-ID: 03:00.0 chip-ID: 10ec:8168 class-ID: 0200
IF: eno2 state: up speed: 100 Mbps duplex: full mac: <filter>
Bluetooth:
Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) type: USB
driver: btusb v: 0.8 bus-ID: 1-14:8 chip-ID: 8087:0aaa class-ID: e001
Report: bt-adapter ID: hci0 rfk-id: 1 state: down
bt-service: enabled,running rfk-block: hardware: no software: yes
address: <filter>
Drives:
Local Storage: total: 476.94 GiB used: 105.95 GiB (22.2%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Intel model: SSDPEKNW512G8
size: 476.94 GiB block-size: physical: 512 B logical: 512 B
speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: 002C
temp: 37.9 C scheme: GPT
Partition:
ID-1: / raw-size: 459.62 GiB size: 459.62 GiB (100.00%) used: 105.95 GiB
(23.1%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) used: 608 KiB
(0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
ID-3: /home raw-size: 459.62 GiB size: 459.62 GiB (100.00%) used: 105.95
GiB (23.1%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-4: /var/log raw-size: 459.62 GiB size: 459.62 GiB (100.00%) used: 105.95
GiB (23.1%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-5: /var/tmp raw-size: 459.62 GiB size: 459.62 GiB (100.00%) used: 105.95
GiB (23.1%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 15.48 GiB used: 280.8 MiB (1.8%)
priority: 100 dev: /dev/zram0
ID-2: swap-2 type: partition size: 17.02 GiB used: 0 KiB (0.0%)
priority: -2 dev: /dev/nvme0n1p3 maj-min: 259:3
Sensors:
System Temperatures: cpu: 86.0 C pch: 65.0 C mobo: N/A
Fan Speeds (RPM): cpu: 5200
Info:
Processes: 348 Uptime: 1h 17m wakeups: 3 Memory: 15.48 GiB used: 8.33 GiB
(53.8%) Init: systemd v: 251 default: graphical tool: systemctl
Compilers: gcc: 12.2.0 alt: 11 clang: 14.0.6 Packages: pm: pacman
pkgs: 2100 libs: 561 tools: octopi,pamac,paru pm: rpm pkgs: 0 Shell: fish
v: 3.5.1 default: Bash v: 5.1.16 running-in: konsole inxi: 3.3.21
Garuda (2.6.7-1):
System install date:     2022-08-24
Last full system update: 2022-09-16
Is partially upgraded:   No
Relevant software:       NetworkManager
Windows dual boot:       Probably (Run as root to verify)
Snapshots:               Snapper
Failed units:

xrandr --prop | grep -w connected output shows both monitors

eDP-1 connected (normal left inverted right x axis y axis)
HDMI-1-0 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 553mm x 311mm

xrandr --listmonitors shows only one monitor

Monitors: 1
0: +*HDMI-1-0 2560/553x1440/311+0+0  HDMI-1-0

pacman -Qdd | grep -i nvidia output

garuda-nvidia-config 1:r62.889aefa-7
lib32-nvidia-utils 515.65.01-1
lib32-opencl-nvidia 515.65.01-1
mhwd-nvidia 515.43.04-2
mhwd-nvidia-390xx 390.143-1
mhwd-nvidia-470xx 470.94-1
nvidia-dkms 515.65.01-2
nvidia-prime 1.0-4
nvidia-settings 515.65.01-1
nvidia-utils 515.65.01-2
opencl-nvidia 515.65.01-2

This topic may be related:

Thanks! :smile:

IIUC your system is well configured and using the monitors. It seems your KDE session needs to configure the monitors the way you like.

  • Have you used Plasma Settings => Display, or shortcut Meta + P ?
  • Have you looked in your Nvidia Settings to see a possible setting to help?
  • What happens if you start with no external, log in KDE and then physically connect your external monitor?
2 Likes

The problem has resolved itself although I could not figure out what caused or fixed it. Thanks. :smile:

1 Like

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