Adding undetected resolution, multihead setup

Hey folks,

I am trying to set up an external monitor for my laptop. The monitor is LG W2234S with native resolution of 1680x1050@60, via VGA (using hdmi-vga adapter to connect to the laptop). Issue begins with arandr not detecting the correct resolution for the monitor, as seems to be a common problem with the 1680x1050 resoltuion.

I attempted adding the resolution via cvt → xrandr --newmode → xrandr --addmode chain of commands.
Addmode fails:

xrandr --addmode HDMI-1-0 1680x1050_60.00
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  18 (RRAddOutputMode)
  Serial number of failed request:  49
  Current serial number in output stream:  50

And arandr, while it does recognise the mode added with --newmode without --addmode, it fails when trying to apply it:

XRandR failed:
XRandR returned error code 1: b'xrandr:cannot find mode 1680x1050_60.00\n'

Which seems to be in line with reality, as the mode hasnt been added to the monitor itself, so it cant be found.

Afterwards I tried following Arch’s configuration guide on permanently adding missing resolutions but with the file set up both with Monitor, Screen and Device, and with just the Monitor sections as the guide suggests, there are no changes to the results of xrandr and arandr when trying to set things up again.
The configuration I attempted:

Section "Monitor"
    Identifier "eDP1"
    Option "Primary" "True"
    Option "DPMS" "True"
    Option "LeftOf" "HDMI-1-0"
EndSection

Section "Monitor"
    Identifier "HDMI-1-0"
    Modeline "1680x1050_60.00"  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync
    Option "PreferredMode" "1680x1050_60.00"
    Option "DPMS" "True"
    Option "RightOf" "eDP1"
    Option "PreferredMode"
EndSection

Section "Screen"
    Identifier "Screen0"
    Monitor "eDP1"
    DefaultDepth 24
    SubSection "Display"
        Virtual 3600 2130 #1920 + 1680, 1080 + 1050
        Modes "1680x1050_60.00"
    EndSubSection
EndSection

Any ideas or suggstions what could help?

System:
 Kernel: 6.13.1-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 14.2.1
   clocksource: tsc avail: acpi_pm
   parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
   root=UUID=b290f53a-a9c0-43d4-92d1-c19e8c49542f rw rootflags=subvol=@
   rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3 ibt=off
 Desktop: i3 v: 4.24 with: i3bar tools: avail: i3lock,xautolock vt: 7
   dm: LightDM v: 1.32.0 Distro: Garuda base: Arch Linux
Machine:
 Type: Laptop System: Razer product: Blade v: 6.06
   serial: <superuser required> Chassis: type: 9 serial: <superuser required>
 Mobo: Razer model: Razer serial: <superuser required>
   part-nu: RZ09-01953E72 uuid: <superuser required> UEFI: Razer v: 4.02
   date: 02/22/2018
Battery:
 ID-1: BAT0 charge: 39.8 Wh (73.7%) condition: 54.0/70.2 Wh (76.9%)
   volts: 12.1 min: 11.4 model: Razer Blade type: Unknown serial: <filter>
   status: not charging
CPU:
 Info: model: Intel Core i7-7700HQ bits: 64 type: MT MCP arch: Kaby Lake
   gen: core 7 level: v3 note: check built: 2018 process: Intel 14nm family: 6
   model-id: 0x9E (158) stepping: 9 microcode: 0xF8
 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: 6 MiB desc: 1x6 MiB
 Speed (MHz): avg: 900 min/max: 800/3800 scaling: driver: intel_pstate
   governor: powersave cores: 1: 900 2: 900 3: 900 4: 900 5: 900 6: 900 7: 900
   8: 900 bogomips: 44798
 Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
 Vulnerabilities: <filter>
Graphics:
 Device-1: Intel HD Graphics 630 vendor: Razer USA driver: i915 v: kernel
   arch: Gen-9.5 process: Intel 14nm built: 2016-20 ports: active: eDP-1
   empty: DP-1,HDMI-A-1 bus-ID: 00:02.0 chip-ID: 8086:591b class-ID: 0300
 Device-2: NVIDIA GP106M [GeForce GTX 1060 Mobile] vendor: Razer USA
   driver: nvidia v: 570.86.16 alternate: nouveau,nvidia_drm
   non-free: 550/565.xx+ status: current (as of 2025-01; EOL~2026-12-xx)
   arch: Pascal code: GP10x process: TSMC 16nm built: 2016-2021 pcie: gen: 1
   speed: 2.5 GT/s lanes: 16 link-max: gen: 3 speed: 8 GT/s ports:
   active: none off: HDMI-A-2 empty: none bus-ID: 01:00.0 chip-ID: 10de:1c20
   class-ID: 0300
 Device-3: Realtek USB Camera driver: uvcvideo type: USB rev: 2.0
   speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-7:4 chip-ID: 0bda:579f
   class-ID: 0e02 serial: <filter>
 Display: x11 server: X.Org v: 21.1.15 driver: X: loaded: intel,nvidia
   unloaded: modesetting,nouveau alternate: fbdev,nv,vesa dri: i965
   gpu: i915,nvidia,nvidia-nvswitch display-ID: :0 screens: 1
 Screen-1: 0 s-res: 2944x1080 s-dpi: 96 s-size: 776x285mm (30.55x11.22")
   s-diag: 827mm (32.55")
 Monitor-1: not-matched mapped: HDMI-1-0 pos: right res: mode: 1024x768
   hz: 60 scale: 100% (1) dpi: 163 size: 160x90mm (6.3x3.54")
   diag: 184mm (7.23") modes: N/A
 Monitor-2: not-matched mapped: eDP1 pos: primary,left res: mode: 1920x1080
   hz: 60 scale: 100% (1) dpi: 157 size: 310x170mm (12.2x6.69")
   diag: 354mm (13.92") modes: N/A
 API: Vulkan v: 1.4.303 layers: 9 device: 0 type: discrete-gpu
   name: NVIDIA GeForce GTX 1060 driver: N/A device-ID: 10de:1c20
   surfaces: xcb,xlib device: 1 type: integrated-gpu name: Intel HD Graphics
   630 (KBL GT2) driver: N/A device-ID: 8086:591b surfaces: xcb,xlib
   device: 2 type: cpu name: llvmpipe (LLVM 19.1.7 256 bits) driver: N/A
   device-ID: 10005:0000 surfaces: xcb,xlib
 API: OpenGL Message: Unable to show GL data. glxinfo is missing.
 Info: Tools: api: vulkaninfo gpu: nvidia-settings,nvidia-smi
   x11: xdpyinfo, xprop, xrandr
Audio:
 Device-1: Intel CM238 HD Audio vendor: Razer USA driver: snd_hda_intel
   v: kernel alternate: snd_soc_avs bus-ID: 00:1f.3 chip-ID: 8086:a171
   class-ID: 0403
 Device-2: NVIDIA GP106 High Definition Audio driver: snd_hda_intel
   v: kernel pcie: speed: Unknown lanes: 63 link-max: gen: 3 speed: 8 GT/s
   bus-ID: 01:00.1 chip-ID: 10de:10f1 class-ID: 0403
 Device-3: Generalplus Usb 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-5.1:5 chip-ID: 1b3f:2008 class-ID: 0300
 API: ALSA v: k6.13.1-zen1-1-zen status: kernel-api
   tools: alsactl,alsamixer,amixer
 Server-1: sndiod v: N/A status: off tools: aucat,midicat,sndioctl
 Server-2: PipeWire v: 1.2.7 status: active with: 1: pipewire-pulse
   status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
   4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
 Device-1: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter
   vendor: Rivet Networks Killer Wireless-n/a/ac 1535 driver: ath10k_pci
   v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 3b:00.0
   chip-ID: 168c:003e class-ID: 0280 temp: 32.0 C
 IF: wlp59s0 state: up mac: <filter>
 Info: services: NetworkManager, systemd-timesyncd, wpa_supplicant
Bluetooth:
 Device-1: Qualcomm Atheros QCA61x4 Bluetooth 4.0 driver: btusb v: 0.8
   type: USB rev: 2.0 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-4:2
   chip-ID: 0cf3:e300 class-ID: e001
 Report: btmgmt ID: hci0 rfk-id: 0 state: down bt-service: disabled
   rfk-block: hardware: no software: yes address: N/A
Drives:
 Local Storage: total: 476.94 GiB used: 99.73 GiB (20.9%)
 SMART Message: Required tool smartctl not installed. Check --recommends
 ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung
   model: MZVLW512HMJP-00000 size: 476.94 GiB block-size: physical: 512 B
   logical: 512 B speed: 31.6 Gb/s lanes: 4 tech: SSD serial: <filter>
   fw-rev: CXY7501Q temp: 35.9 C scheme: GPT
Partition:
 ID-1: / raw-size: 124 GiB size: 124 GiB (100.00%) used: 99.7 GiB (80.4%)
   fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:5
 ID-2: /boot/efi raw-size: 100 MiB size: 96 MiB (96.00%)
   used: 27.6 MiB (28.8%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
 ID-3: /home raw-size: 124 GiB size: 124 GiB (100.00%)
   used: 99.7 GiB (80.4%) fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:5
 ID-4: /var/log raw-size: 124 GiB size: 124 GiB (100.00%)
   used: 99.7 GiB (80.4%) fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:5
 ID-5: /var/tmp raw-size: 124 GiB size: 124 GiB (100.00%)
   used: 99.7 GiB (80.4%) fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:5
Swap:
 Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
 ID-1: swap-1 type: zram size: 15.51 GiB used: 0 KiB (0.0%) priority: 100
   comp: zstd avail: lzo-rle,lzo,lz4,lz4hc,deflate,842 max-streams: 8
   dev: /dev/zram0
Sensors:
 System Temperatures: cpu: 53.0 C pch: 41.0 C mobo: N/A
 Fan Speeds (rpm): N/A
Info:
 Memory: total: 16 GiB available: 15.51 GiB used: 2.64 GiB (17.0%)
 Processes: 247 Power: uptime: 11m states: freeze,mem,disk suspend: deep
   avail: s2idle wakeups: 0 hibernate: platform avail: shutdown, reboot,
   suspend, test_resume image: 6.16 GiB services: power-profiles-daemon,
   upowerd, xfce4-power-manager Init: systemd v: 257 default: graphical
   tool: systemctl
 Packages: pm: pacman pkgs: 1931 libs: 483 tools: pacseek,pamac,paru
   Compilers: clang: 19.1.7 gcc: 14.2.1 Shell: garuda-inxi default: Bash
   v: 5.2.37 running-in: xfce4-terminal inxi: 3.3.37
Garuda (2.6.26-1.1):
 System install date:     2022-10-10
 Last full system update: 2025-02-04
 Is partially upgraded:   Yes
 Relevant software:       snapper NetworkManager mkinitcpio nvidia-dkms
 Windows dual boot:       Probably (Run as root to verify)

Welcome back :slight_smile:

Did you try nvidia-settings too?
Or something like that?

exec --no-startup-id ~/.screenlayout/pro.sh
exec --no-startup-id lxrandr
exec --no-startup-id /.config/i3/scripts/user.sh
# Monitor auslesen auto-start lxrandr
exec --no-startup-id ~/.screenlayout/pro.sh
# .screenlayout user.sh

#!/bin/sh
# executable
xrandr --output eDP --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DisplayPort-0 --off --output DisplayPort-1 --off

At the moment, I don’t know any more than they have tried so far.
Sorry, I do not use second monitor on a notebook and do not have two GPU inside.

Can you paste the input and output of these other commands into the thread so we can see what is happening?

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