Second monitor cant be detected

I read the post I can get in the forum. not work for me.

I get two monitors work fine on windows(dual system). But one not work in linux.

Install the driver follow wiki

I am using 4060 nvidia. info in kde display configuration just show one monitor. I install the nvidia driver follow the arch wiki steps.

I use x11.

  1. install nvidia through pacman sudo pacman -S nvidia
  2. remove the kms flag then reboot.
  3. run command mkinitcpio -P
  4. reboot
    Not work. (second monitor not detected)

Infomation

lspci -n -n -k | grep -A 2 -e VGA -e 3D

01:00.0 VGA compatible controller [0300]: NVIDIA Corporation AD107 [GeForce RTX 4060] [10de:2882] (rev a1)
        Subsystem: ASUSTeK Computer Inc. Device [1043:8944]
        Kernel modules: nouveau

echo $XDG_SESSION_TYPE && glxinfo | grep server

x11
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:

inxi -v8zy

System:
  Kernel: 6.6.47-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 14.2.1
    clocksource: tsc avail: acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.6-x86_64
    root=UUID=75d363f8-9c23-45d6-abb5-0d263d2a7b11 rw quiet splash
    udev.log_priority=3
  Desktop: KDE Plasma v: 6.0.5 tk: Qt v: N/A info: frameworks v: 6.5.0
    wm: kwin_x11 vt: 2 dm: SDDM Distro: Manjaro base: Arch Linux
Machine:
  Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
  Mobo: ASUSTeK model: ROG STRIX Z690-A GAMING WIFI D4 v: Rev 1.xx
    serial: <superuser required> part-nu: SKU uuid: <superuser required>
    UEFI: American Megatrends v: 2802 date: 09/27/2023
Battery:
  Device-1: hidpp_battery_0 model: Logitech G304 Lightspeed Wireless Gaming
    Mouse serial: <filter> charge: 100% (should be ignored) rechargeable: yes
    status: discharging
Memory:
  System RAM: total: 32 GiB available: 31.09 GiB used: 5.63 GiB (18.1%)
  Message: For most reliable report, use superuser + dmidecode.
  Array-1: capacity: 128 GiB slots: 4 modules: 2 EC: None
    max-module-size: 32 GiB note: est.
  Device-1: Controller0-ChannelA-DIMM0 type: no module installed
  Device-2: Controller0-ChannelA-DIMM1 type: DDR4 detail: synchronous
    size: 16 GiB speed: 2133 MT/s volts: curr: 1 min: 1 max: 1.35 width (bits):
    data: 64 total: 64 manufacturer: Corsair part-no: CM4X16GC3200C16K2E
    serial: N/A
  Device-3: Controller1-ChannelA-DIMM0 type: no module installed
  Device-4: Controller1-ChannelA-DIMM1 type: DDR4 detail: synchronous
    size: 16 GiB speed: 2133 MT/s volts: curr: 1 min: 1 max: 1.35 width (bits):
    data: 64 total: 64 manufacturer: Corsair part-no: CM4X16GC3200C16K2E
    serial: N/A
PCI Slots:
  Permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: 12th Gen Intel Core i7-12700K bits: 64 type: MST AMCP
    arch: Alder Lake gen: core 12 level: v3 note: check built: 2021+
    process: Intel 7 (10nm ESF) family: 6 model-id: 0x97 (151) stepping: 2
    microcode: 0x35
  Topology: cpus: 1x dies: 1 clusters: 9 cores: 12 threads: 20 mt: 8 tpc: 2
    st: 4 smt: enabled cache: L1: 1024 KiB desc: d-4x32 KiB, 8x48 KiB; i-8x32
    KiB, 4x64 KiB L2: 12 MiB desc: 8x1.2 MiB, 1x2 MiB L3: 25 MiB desc: 1x25 MiB
  Speed (MHz): avg: 957 min/max: 800/4900:5000:3800 scaling:
    driver: intel_pstate governor: powersave cores: 1: 957 2: 957 3: 957 4: 957
    5: 957 6: 957 7: 957 8: 957 9: 957 10: 957 11: 957 12: 957 13: 957 14: 957
    15: 957 16: 957 17: 957 18: 957 19: 957 20: 957 bogomips: 144440
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat
    arch_capabilities arch_lbr arch_perfmon art avx avx2 avx_vnni bmi1 bmi2
    bts clflush clflushopt clwb 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 fsrm fxsr gfni hfi ht hwp hwp_act_window
    hwp_epp hwp_notify hwp_pkg_req ibpb ibrs ibrs_enhanced ibt ida intel_pt
    invpcid lahf_lm lm mca mce md_clear mmx monitor movbe movdir64b movdiri
    msr mtrr nonstop_tsc nopl nx ospke pae pat pbe pcid pclmulqdq pconfig pdcm
    pdpe1gb pebs pge pku pln pni popcnt pse pse36 pts rdpid rdrand rdseed
    rdtscp rep_good sdbg sep serialize sha_ni smap smep smx split_lock_detect
    ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm tm2 tme tpr_shadow
    tsc tsc_adjust tsc_deadline_timer tsc_known_freq umip user_shstk vaes vme
    vmx vnmi vpclmulqdq vpid waitpkg x2apic xgetbv1 xsave xsavec xsaveopt
    xsaves xtopology xtpr
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: reg_file_data_sampling mitigation: Clear Register File
  Type: retbleed status: Not affected
  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: Enhanced / Automatic IBRS; IBPB: conditional;
    RSB filling; PBRSB-eIBRS: SW sequence; BHI: BHI_DIS_S
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA AD107 [GeForce RTX 4060] vendor: ASUSTeK driver: N/A
    alternate: nouveau non-free: 550.xx+ status: current (as of 2024-09)
    arch: Lovelace code: AD1xx process: TSMC n4 (5nm) built: 2022+ pcie: gen: 4
    speed: 16 GT/s lanes: 8 bus-ID: 01:00.0 chip-ID: 10de:2882 class-ID: 0300
  Display: x11 server: X.Org v: 21.1.13 with: Xwayland v: 24.1.2
    compositor: kwin_x11 driver: X: loaded: modesetting,nouveau
    alternate: fbdev,nv,vesa gpu: N/A display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3840x2160 s-dpi: 96 s-size: 1016x571mm (40.00x22.48")
    s-diag: 1165mm (45.88")
  Monitor-1: Unknown-1 mapped: None-1 res: 3840x2160 hz: 60 size: N/A
    modes: 3840x2160
  API: EGL v: 1.5 platforms: device: 0 drv: swrast surfaceless: drv: swrast
    x11: drv: swrast inactive: gbm,wayland
  API: OpenGL v: 4.5 vendor: mesa v: 24.1.6-arch1.1 glx-v: 1.4
    direct-render: yes renderer: llvmpipe (LLVM 18.1.8 256 bits)
    device-ID: ffffffff:ffffffff memory: 30.36 GiB unified: yes
  API: Vulkan Message: No Vulkan data available.
Audio:
  Device-1: Intel Alder Lake-S HD Audio vendor: ASUSTeK driver: snd_hda_intel
    v: kernel alternate: snd_sof_pci_intel_tgl bus-ID: 00:1f.3 chip-ID: 8086:7ad0
    class-ID: 0403
  Device-2: NVIDIA vendor: ASUSTeK driver: snd_hda_intel v: kernel pcie:
    gen: 4 speed: 16 GT/s lanes: 8 bus-ID: 01:00.1 chip-ID: 10de:22be
    class-ID: 0403
  Device-3: ASUSTek USB Audio driver: hid-generic,snd-usb-audio,usbhid
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-2:2
    chip-ID: 0b05:1a16 class-ID: 0300
  Device-4: Blue Microphones Yeti Stereo Microphone
    driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 1.1 speed: 12 Mb/s
    lanes: 1 mode: 1.1 bus-ID: 1-6.2:8 chip-ID: b58e:9e84 class-ID: 0300
    serial: <filter>
  API: ALSA v: k6.6.47-1-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.2.3 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Alder Lake-S PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:7af0 class-ID: 0280
  IF: wlo1 state: down mac: <filter>
  Device-2: Intel Ethernet I225-V vendor: ASUSTeK driver: igc v: kernel pcie:
    gen: 2 speed: 5 GT/s lanes: 1 port: N/A bus-ID: 06:00.0 chip-ID: 8086:15f3
    class-ID: 0200
  IF: enp6s0 state: up speed: 100 Mbps duplex: full mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: dynamic noprefixroute scope: global
  IP v6: <filter> type: dynamic noprefixroute scope: global
  IP v6: <filter> type: noprefixroute scope: link
  Info: services: NetworkManager, sshd, systemd-timesyncd, wpa_supplicant
  WAN IP: <filter>
Bluetooth:
  Device-1: Intel AX201 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-14:9 chip-ID: 8087:0026
    class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Hardware-1: Intel Volume Management Device NVMe RAID Controller driver: vmd
    v: 0.6 port: N/A bus-ID: 00:0e.0 chip-ID: 8086:467f rev: class-ID: 0104
Drives:
  Local Storage: total: 1.16 TiB used: 18.79 GiB (1.6%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:7 vendor: Samsung model: MZVLW256HEHP-00000
    size: 238.47 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: CXB7201Q temp: 38.9 C
    scheme: GPT
  ID-2: /dev/nvme1n1 maj-min: 259:0 model: Predator SSD GM7000 1TB
    size: 953.87 GiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: 3.A.F.X temp: 46.9 C
    scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 238.17 GiB size: 233.38 GiB (97.99%) used: 18.79 GiB (8.1%)
    fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:9 label: N/A
    uuid: 75d363f8-9c23-45d6-abb5-0d263d2a7b11
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 296 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:8 label: N/A
    uuid: 4527-ECC0
Swap:
  Alert: No swap data was found.
Unmounted:
  ID-1: /dev/nvme1n1p1 maj-min: 259:1 size: 300 MiB fs: vfat label: N/A
    uuid: 38E9-1CA4
  ID-2: /dev/nvme1n1p2 maj-min: 259:2 size: 128 MiB fs: <superuser required>
    label: N/A uuid: N/A
  ID-3: /dev/nvme1n1p3 maj-min: 259:3 size: 399.3 GiB fs: ntfs label: N/A
    uuid: 36EEB1C9EEB18223
  ID-4: /dev/nvme1n1p4 maj-min: 259:4 size: 721 MiB fs: ntfs label: N/A
    uuid: 54843B7D843B6122
  ID-5: /dev/nvme1n1p5 maj-min: 259:5 size: 277 GiB fs: ntfs
    label: \xe8\xbd\xaf\xe4\xbb\xb6 uuid: 82F5CC661A7FB9E9
  ID-6: /dev/nvme1n1p6 maj-min: 259:6 size: 276.45 GiB fs: ntfs
    label: \xe6\x96\x87\xe6\xa1\xa3 uuid: CD068EC007AE2BEF
USB:
  Hub-1: 1-0:1 info: hi-speed hub with single TT ports: 16 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Device-1: 1-2:2 info: ASUSTek USB Audio type: audio,HID
    driver: hid-generic,snd-usb-audio,usbhid interfaces: 8 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 power: 100mA
    chip-ID: 0b05:1a16 class-ID: 0300
  Device-2: 1-4:3 info: ASUSTek AURA LED Controller type: HID
    driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s (1.4 MiB/s)
    lanes: 1 mode: 1.1 power: 16mA chip-ID: 0b05:19af class-ID: 0300
    serial: <filter>
  Hub-2: 1-6:4 info: Genesys Logic Hub ports: 4 rev: 2.1
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 power: 100mA
    chip-ID: 05e3:0610 class-ID: 0900
  Device-1: 1-6.1:6 info: Logitech USB Receiver type: keyboard,mouse,HID
    driver: logitech-djreceiver,usbhid interfaces: 3 rev: 2.0
    speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 power: 98mA
    chip-ID: 046d:c53f class-ID: 0300
  Device-2: 1-6.2:8 info: Blue Microphones Yeti Stereo Microphone
    type: audio,HID driver: hid-generic,snd-usb-audio,usbhid interfaces: 4
    rev: 1.1 speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 power: 100mA
    chip-ID: b58e:9e84 class-ID: 0300 serial: <filter>
  Device-3: 1-6.3:10 info: Logitech USB Receiver type: mouse,keyboard,HID
    driver: hid-generic,usbhid interfaces: 3 rev: 2.0 speed: 12 Mb/s (1.4 MiB/s)
    lanes: 1 mode: 1.1 power: 98mA chip-ID: 046d:c547 class-ID: 0300
  Hub-3: 1-10:5 info: ASMedia ASM1074 High-Speed hub ports: 4 rev: 2.1
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 power: 100mA
    chip-ID: 174c:2074 class-ID: 0900
  Hub-4: 1-13:7 info: Alcor Micro USB Hub ports: 4 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 power: 100mA
    chip-ID: 058f:6254 class-ID: 0900
  Device-1: 1-14:9 info: Intel AX201 Bluetooth 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:0026 class-ID: e001
  Hub-5: 2-0:1 info: super-speed hub ports: 8 rev: 3.1
    speed: 20 Gb/s (2.33 GiB/s) lanes: 2 mode: 3.2 gen-2x2 chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-6: 2-4:2 info: Genesys Logic Hub ports: 4 rev: 3.1
    speed: 5 Gb/s (596.0 MiB/s) lanes: 1 mode: 3.2 gen-1x1 chip-ID: 05e3:0626
    class-ID: 0900
  Hub-7: 2-8:3 info: ASMedia ASM1074 SuperSpeed hub ports: 4 rev: 3.0
    speed: 5 Gb/s (596.0 MiB/s) lanes: 1 mode: 3.2 gen-1x1 power: 8mA
    chip-ID: 174c:3074 class-ID: 0900
Sensors:
  System Temperatures: cpu: 34.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Repos:
  Packages: pm: pacman pkgs: 1475 libs: 354 tools: pamac,yay pm: flatpak
    pkgs: 0
  Active pacman repo servers in: /etc/pacman.d/mirrorlist
    1: https://mirrors.sjtug.sjtu.edu.cn/manjaro/stable/$repo/$arch
Processes:
  CPU top: 5 of 394
  1: cpu: 115% command: kwin_x11 pid: 1066 mem: 699.2 MiB (2.1%)
  2: cpu: 35.1% command: alacritty pid: 5643 mem: 167.7 MiB (0.5%)
  3: cpu: 17.0% command: Xorg pid: 822 mem: 605.7 MiB (1.9%)
  4: cpu: 10.9% command: chrome pid: 4490 mem: 403.7 MiB (1.2%)
  5: cpu: 9.1% command: plasmashell pid: 1173 mem: 1123.0 MiB (3.5%)
  Memory top: 5 of 394
  1: mem: 1123.0 MiB (3.5%) command: plasmashell pid: 1173 cpu: 9.1%
  2: mem: 699.2 MiB (2.1%) command: kwin_x11 pid: 1066 cpu: 115%
  3: mem: 605.7 MiB (1.9%) command: Xorg pid: 822 cpu: 17.0%
  4: mem: 484.3 MiB (1.5%) command: chrome pid: 3914 cpu: 7.1%
  5: mem: 426.9 MiB (1.3%) command: systemsettings pid: 20635 cpu: 2.3%
Info:
  Processes: 394 Power: uptime: 33m states: freeze,mem,disk suspend: deep
    avail: s2idle wakeups: 0 hibernate: platform avail: shutdown, reboot,
    suspend, test_resume image: 12.42 GiB services: org_kde_powerdevil,
    power-profiles-daemon, upowerd Init: systemd v: 256 default: graphical
    tool: systemctl
  Compilers: clang: 18.1.8 gcc: 14.2.1 Shell: fish v: 3.7.1 running-in: tmux:
    inxi: 3.3.36

I recommend using the following command - this will ensure the correct driver and configuration is applied

sudo mhwd -a pci nonfree 0300

Then reboot the system

1 Like

The second monitor is detected. but it stuck at the logo screen cant show the login window

Please see if you have the recommended settings in mkinitcpio.conf and the grub default file → Black Screen with Plymouth - Cause and Solution - #2 by linux-aarhus

1 Like

Solved by follow this instruction. And with this command sudo mhwd -a pci nonfree 0300

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