Hi all.
I am experiencing a bug with KScreen2 where if I switch input to one of my monitors, when I switch back, it moves all open windows to the other. So I found as a workaround to disable KScreen2 and works fine, except it does not remember my display settings on boot.
So I am trying to add my settings to 10-monitor.conf file, however the 2nd monitor does not seem to work correct.
/etc/X11/xorg.conf.d/10-monitor.conf
Section "Monitor"
Identifier "HDMI-A-0"
Option "PreferredMode" "2560x1440_60.00"
Option "Primary" "true"
Option "Position" "0x0"
EndSection
Section "Monitor"
Identifier "DVI-D-0"
Option "PreferredMode" "1920x1200_60.00"
Option "Primary" "false"
Option "Position" "2560x200"
Option "Rotate" "left"
EndSection
I tried to set the “PreferredMode” to other values, but none of them works.
1200x1920_60.00
1200x1920_59.95
1920x1200_59.95
It always sets it to “1600x1200_60.00” with “Position” “0x0”, therefore overlapping my primary monitor.
xrandr (after I set it manually from Display Configuration)
Screen 0: minimum 320 x 200, current 3760 x 1920, maximum 16384 x 16384
HDMI-A-0 connected primary 2560x1440+0+153 (normal left inverted right x axis y axis) 597mm x 336mm
2560x1440 59.95*+
1920x1200 59.95
1920x1080 119.98 99.93 60.00 50.00 59.94 24.00 23.98
1600x1200 59.95
1680x1050 59.88
1280x1024 143.86 119.96 75.02 60.02
1440x900 59.95
1280x800 59.95
1280x720 60.00 50.00 59.94
1024x768 143.93 119.99 75.03 60.00
800x600 119.97 75.00 60.32
720x576 50.00
720x480 60.00 59.94
640x480 75.00 60.00 59.94
720x400 70.08
DisplayPort-0 disconnected (normal left inverted right x axis y axis)
DVI-D-0 connected 1200x1920+2560+0 left (normal left inverted right x axis y axis) 519mm x 324mm
1920x1200 59.95*+
1920x1080 59.95
1600x1200 60.00
1680x1050 59.88
1280x1024 60.02
1440x900 59.95
1280x960 60.00
1280x800 59.95
1280x720 59.95
1024x768 60.00
800x600 60.32
640x480 59.94
720x400 70.08
Some more information:
mhwd
> 0000:11:00.0 (0300:1002:7340) Display controller ATI Technologies Inc:
--------------------------------------------------------------------------------
NAME VERSION FREEDRIVER TYPE
--------------------------------------------------------------------------------
video-linux 2018.05.04 true PCI
video-modesetting 2020.01.13 true PCI
video-vesa 2017.03.12 true PCI
> 0000:0e:00.0 (0300:1002:73bf) Display controller ATI Technologies Inc:
--------------------------------------------------------------------------------
NAME VERSION FREEDRIVER TYPE
--------------------------------------------------------------------------------
video-linux 2018.05.04 true PCI
video-modesetting 2020.01.13 true PCI
video-vesa 2017.03.12 true PCI
(one VGA is used as passthrough to VMs)
hwinfo --gfx
46: PCI 1100.0: 0300 VGA compatible controller (VGA)
[Created at pci.386]
Unique ID: Nt5K.E3R564DVVH0
Parent ID: h0vA.CS5kfnTSviA
SysFS ID: /devices/pci0000:00/0000:00:03.2/0000:0f:00.0/0000:10:00.0/0000:11:00.0
SysFS BusID: 0000:11:00.0
Hardware Class: graphics card
Model: "ATI Navi 14 [Radeon RX 5500/5500M / Pro 5500M]"
Vendor: pci 0x1002 "ATI Technologies Inc"
Device: pci 0x7340 "Navi 14 [Radeon RX 5500/5500M / Pro 5500M]"
SubVendor: pci 0x148c "Tul Corporation / PowerColor"
SubDevice: pci 0x2401
Revision: 0xc5
Driver: "amdgpu"
Driver Modules: "amdgpu"
Memory Range: 0xb0000000-0xbfffffff (ro,non-prefetchable)
Memory Range: 0xc0000000-0xc01fffff (ro,non-prefetchable)
I/O Ports: 0xe000-0xe0ff (rw)
Memory Range: 0xfcd00000-0xfcd7ffff (rw,non-prefetchable)
Memory Range: 0x000c0000-0x000dffff (rw,non-prefetchable,disabled)
IRQ: 194 (212358 events)
Module Alias: "pci:v00001002d00007340sv0000148Csd00002401bc03sc00i00"
Driver Info #0:
Driver Status: amdgpu is active
Driver Activation Cmd: "modprobe amdgpu"
Config Status: cfg=new, avail=yes, need=no, active=unknown
Attached to: #56 (PCI bridge)
54: PCI e00.0: 0300 VGA compatible controller (VGA)
[Created at pci.386]
Unique ID: KJVu.j52WIrdSiI1
Parent ID: fSIl.CS5kfnTSviA
SysFS ID: /devices/pci0000:00/0000:00:03.1/0000:0c:00.0/0000:0d:00.0/0000:0e:00.0
SysFS BusID: 0000:0e:00.0
Hardware Class: graphics card
Model: "ATI Navi 21 [Radeon RX 6800/6800 XT / 6900 XT]"
Vendor: pci 0x1002 "ATI Technologies Inc"
Device: pci 0x73bf "Navi 21 [Radeon RX 6800/6800 XT / 6900 XT]"
SubVendor: pci 0x1002 "ATI Technologies Inc"
SubDevice: pci 0x0e3a
Revision: 0xc0
Driver: "vfio-pci"
Driver Modules: "vfio_pci"
Memory Range: 0xd0000000-0xdfffffff (ro,non-prefetchable,disabled)
Memory Range: 0xe0000000-0xe01fffff (ro,non-prefetchable,disabled)
I/O Ports: 0xf000-0xf0ff (rw,disabled)
Memory Range: 0xfc700000-0xfc7fffff (rw,non-prefetchable,disabled)
Memory Range: 0xfc800000-0xfc81ffff (ro,non-prefetchable,disabled)
IRQ: 5 (no events)
Module Alias: "pci:v00001002d000073BFsv00001002sd00000E3Abc03sc00i00"
Driver Info #0:
Driver Status: amdgpu is active
Driver Activation Cmd: "modprobe amdgpu"
Config Status: cfg=new, avail=yes, need=no, active=unknown
Attached to: #60 (PCI bridge)
Primary display adapter: #46
inxi -Fazy
System:
Kernel: 5.10.117-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.1.0
parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64
root=UUID=660d71f1-f331-4ff2-98dd-603cc3602de7 rw quiet apparmor=1
security=apparmor udev.log_priority=3 amd_iommu=on iommu=pt hugepages=8192
vfio-pci.ids=1002:73bf,1002:ab28,1002:73a6,1002:73a4,10ec:8125
video=efifb:off systemd.unified_cgroup_hierarchy=1 gfxpayload=console
gfxpayload=auto
Desktop: KDE Plasma v: 5.24.5 tk: Qt v: 5.15.4 info: latte-dock
wm: kwin_x11 vt: 1 dm: SDDM Distro: Manjaro Linux base: Arch Linux
Machine:
Type: Desktop System: Gigabyte product: X570 AORUS MASTER v: -CF
serial: <superuser required>
Mobo: Gigabyte model: X570 AORUS MASTER serial: <superuser required>
UEFI: American Megatrends LLC. v: F36b date: 02/16/2022
Battery:
Device-1: hidpp_battery_0
model: Logitech G305 Lightspeed Wireless Gaming Mouse serial: <filter>
charge: 100% (should be ignored) rechargeable: yes status: discharging
CPU:
Info: model: AMD Ryzen 9 5900X bits: 64 type: MT MCP arch: Zen 3
family: 0x19 (25) model-id: 0x21 (33) stepping: 0 microcode: 0xA201016
Topology: cpus: 1x cores: 12 tpc: 2 threads: 24 smt: enabled cache:
L1: 768 KiB desc: d-12x32 KiB; i-12x32 KiB L2: 6 MiB desc: 12x512 KiB
L3: 64 MiB desc: 2x32 MiB
Speed (MHz): avg: 2425 high: 3602
min/max: 2200/5994:6294:6442:6146:5846:5102:4950:5698:5550:5398:5250
boost: enabled scaling: driver: acpi-cpufreq governor: schedutil cores:
1: 2480 2: 2235 3: 2202 4: 2280 5: 2536 6: 2874 7: 2196 8: 2198 9: 2199
10: 2195 11: 2236 12: 2233 13: 3602 14: 2864 15: 2529 16: 2410 17: 2871
18: 2877 19: 2214 20: 2199 21: 2200 22: 2196 23: 2196 24: 2196
bogomips: 177694
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities:
Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl and seccomp
Type: spectre_v1
mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
STIBP: always-on, RSB filling
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: AMD Navi 21 [Radeon RX 6800/6800 XT / 6900 XT] driver: vfio-pci
v: 0.2 alternate: amdgpu pcie: gen: 4 speed: 16 GT/s lanes: 16
bus-ID: 0e:00.0 chip-ID: 1002:73bf class-ID: 0300
Device-2: AMD Navi 14 [Radeon RX 5500/5500M / Pro 5500M]
vendor: Tul / PowerColor driver: amdgpu v: kernel pcie: gen: 4
speed: 16 GT/s lanes: 16 ports: active: DVI-D-1,HDMI-A-1 empty: DP-1
bus-ID: 11:00.0 chip-ID: 1002:7340 class-ID: 0300
Device-3: Logitech HD Pro Webcam C920 type: USB
driver: snd-usb-audio,uvcvideo bus-ID: 5-4.1:6 chip-ID: 046d:082d
class-ID: 0102 serial: <filter>
Display: x11 server: X.Org v: 21.1.3 with: Xwayland v: 22.1.1
compositor: kwin_x11 driver: X: loaded: amdgpu unloaded: modesetting,radeon
alternate: fbdev,vesa gpu: amdgpu display-ID: :0 screens: 1
Screen-1: 0 s-res: 3760x1920 s-dpi: 96 s-size: 994x507mm (39.13x19.96")
s-diag: 1116mm (43.93")
Monitor-1: DVI-D-1 mapped: DVI-D-0 pos: top-right model: EIZO NANAO S2411W
serial: <filter> built: 2007 res: 1200x1920 hz: 60 dpi: 94 gamma: 1.2
size: 324x519mm (12.76x20.43") diag: 616mm (24.2") ratio: 16:10 modes:
max: 1920x1200 min: 720x400
Monitor-2: HDMI-A-1 mapped: HDMI-A-0 pos: primary,bottom-l
model: EIZO NANAO FS2735 serial: <filter> built: 2016 res: 2560x1440 hz: 60
dpi: 109 gamma: 1.2 size: 597x336mm (23.5x13.23") diag: 685mm (27")
ratio: 16:9 modes: max: 2560x1440 min: 720x400
OpenGL: renderer: AMD Radeon RX 5500 XT (navi14 LLVM 13.0.1 DRM 3.40
5.10.117-1-MANJARO)
v: 4.6 Mesa 22.0.4 direct render: Yes
Audio:
Device-1: AMD Navi 21/23 HDMI/DP Audio driver: vfio-pci v: 0.2
alternate: snd_hda_intel pcie: gen: 4 speed: 16 GT/s lanes: 16
bus-ID: 0e:00.1 chip-ID: 1002:ab28 class-ID: 0403
Device-2: AMD Navi 10 HDMI Audio vendor: Tul / PowerColor
driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
bus-ID: 11:00.1 chip-ID: 1002:ab38 class-ID: 0403
Device-3: AMD Starship/Matisse HD Audio vendor: Gigabyte
driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
bus-ID: 13:00.4 chip-ID: 1022:1487 class-ID: 0403
Device-4: Creative Sound Blaster GC7 type: USB
driver: cdc_acm,hid-generic,snd-usb-audio,usbhid bus-ID: 1-3:3
chip-ID: 041e:3271 class-ID: 0102 serial: <filter>
Device-5: Logitech HD Pro Webcam C920 type: USB
driver: snd-usb-audio,uvcvideo bus-ID: 5-4.1:6 chip-ID: 046d:082d
class-ID: 0102 serial: <filter>
Sound Server-1: ALSA v: k5.10.117-1-MANJARO running: yes
Sound Server-2: JACK v: 1.9.21 running: no
Sound Server-3: PulseAudio v: 15.0 running: no
Sound Server-4: PipeWire v: 0.3.51 running: yes
Network:
Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: gen: 2
speed: 5 GT/s lanes: 1 bus-ID: 06:00.0 chip-ID: 8086:2723 class-ID: 0280
IF: wlp6s0 state: down mac: <filter>
Device-2: Intel I211 Gigabit Network vendor: Gigabyte driver: igb
v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: d000 bus-ID: 07:00.0
chip-ID: 8086:1539 class-ID: 0200
IF: enp7s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Device-3: Realtek RTL8125 2.5GbE vendor: Gigabyte driver: vfio-pci v: 0.2
modules: r8169 pcie: gen: 2 speed: 5 GT/s lanes: 1 port: c000
bus-ID: 08:00.0 chip-ID: 10ec:8125 class-ID: 0200
IF-ID-1: virbr0 state: down mac: <filter>
Bluetooth:
Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 3-5:5
chip-ID: 8087:0029 class-ID: e001
Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends
Drives:
Local Storage: total: 5.93 TiB used: 1.27 TiB (21.4%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:2 vendor: Samsung model: SSD 970 EVO 500GB
size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
lanes: 4 type: SSD serial: <filter> rev: 2B2QEXE7 temp: 42.9 C scheme: GPT
ID-2: /dev/nvme1n1 maj-min: 259:6 vendor: Seagate
model: XPG GAMMIX S50 Lite size: 953.87 GiB block-size: physical: 512 B
logical: 512 B speed: 63.2 Gb/s lanes: 4 type: SSD serial: <filter>
rev: 82A7T9PA temp: 51.9 C scheme: GPT
ID-3: /dev/nvme2n1 maj-min: 259:0 vendor: Samsung model: SSD 970 EVO 250GB
size: 232.89 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
lanes: 4 type: SSD serial: <filter> rev: 2B2QEXE7 temp: 45.9 C scheme: GPT
ID-4: /dev/sda maj-min: 8:0 vendor: Toshiba model: HDWE140 size: 3.64 TiB
block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: HDD
rpm: 7200 serial: <filter> rev: FP1R scheme: GPT
ID-5: /dev/sdb maj-min: 8:16 vendor: Samsung model: SSD 840 EVO 250GB
size: 232.89 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
type: SSD serial: <filter> rev: DB6Q scheme: GPT
ID-6: /dev/sdc maj-min: 8:32 vendor: Samsung model: SSD 850 EVO 500GB
size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
type: SSD serial: <filter> rev: 2B6Q scheme: GPT
Partition:
ID-1: / raw-size: 456.66 GiB size: 448.43 GiB (98.20%)
used: 200.02 GiB (44.6%) fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:4
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 288 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:3
Swap:
Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
ID-1: swap-1 type: partition size: 8.8 GiB used: 0 KiB (0.0%) priority: -2
dev: /dev/nvme0n1p3 maj-min: 259:5
Sensors:
System Temperatures: cpu: 38.0 C mobo: 16.8 C gpu: amdgpu temp: 57.0 C
mem: 0.0 C
Fan Speeds (RPM): N/A gpu: amdgpu fan: 0
Info:
Processes: 480 Uptime: 23m wakeups: 3 Memory: 62.73 GiB
used: 19.93 GiB (31.8%) Init: systemd v: 250 tool: systemctl Compilers:
gcc: 12.1.0 clang: 13.0.1 Packages: 1437 pacman: 1434 lib: 362 flatpak: 3
Shell: Zsh v: 5.9 default: Bash v: 5.1.16 running-in: konsole inxi: 3.3.16