Dual Monitors issue

Hi Garuda dragons

I have just installed Garuda Dragonized edition.

I am running it on dual 1080p monitors but every time the monitor gets in sleep mode (or I switched it off manually) everything resets and all open apps go to the secondary monitor (to the left).

I did tried to run X11 commands but couldn't do it properly as it's not working. One of my monitors is connected via Display Port and the other one HDMI.

Here's my setup

System:
Kernel: 5.19.6-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=6135c6f1-9f5b-4e40-8fee-77877b12eec8 rw [email protected]
quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
resume=UUID=b6fc4d17-5825-4526-819b-74208cc39d04 loglevel=3
Desktop: KDE Plasma v: 5.25.4 tk: Qt v: 5.15.5 info: latte-dock
wm: kwin_x11 vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
Mobo: ASUSTeK model: TUF GAMING Z490-PLUS v: Rev 1.xx
serial: <superuser required> UEFI: American Megatrends v: 2210
date: 01/15/2021
CPU:
Info: model: Intel Core i7-10700K bits: 64 type: MT MCP arch: Comet Lake
gen: core 10 built: 2020 process: Intel 14nm family: 6 model-id: 0xA5 (165)
stepping: 5 microcode: 0xF0
Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 2 MiB desc: 8x256 KiB
L3: 16 MiB desc: 1x16 MiB
Speed (MHz): avg: 3311 high: 3800 min/max: 800/5100 scaling:
driver: intel_pstate governor: powersave cores: 1: 800 2: 3800 3: 3800
4: 3800 5: 1377 6: 3800 7: 3800 8: 3800 9: 3800 10: 3800 11: 3800
12: 1402 13: 3800 14: 3800 15: 3800 16: 3800 bogomips: 121596
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 status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
Type: retbleed mitigation: Enhanced 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: Enhanced IBRS, IBPB: conditional, RSB
filling, PBRSB-eIBRS: SW sequence
Type: srbds mitigation: Microcode
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: AMD Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT]
vendor: Micro-Star MSI driver: amdgpu v: kernel arch: RDNA-1 code: Navi
process: TSMC n7 (7nm) built: 2019-20 ports: active: DP-1,HDMI-A-1
empty: DP-2,DP-3 bus-ID: 0000:03:00.0 chip-ID: 1002:731f class-ID: 0300
Device-2: Logitech Logi 4K Stream Edition type: USB
driver: hid-generic,snd-usb-audio,usbhid,uvcvideo bus-ID: 2-4:2
chip-ID: 046d:086b class-ID: 0300 serial: <filter>
Display: x11 server: X.Org v: 21.1.4 with: Xwayland v: 22.1.3
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: 3840x1080 s-dpi: 96 s-size: 1013x285mm (39.88x11.22")
s-diag: 1052mm (41.43")
Monitor-1: DP-1 mapped: DisplayPort-0 pos: primary,left model: Acer VG270
serial: <filter> built: 2021 res: 1920x1080 hz: 75 dpi: 82 gamma: 1.2
size: 598x336mm (23.54x13.23") diag: 686mm (27") ratio: 16:9 modes:
max: 1920x1080 min: 720x400
Monitor-2: HDMI-A-1 mapped: HDMI-A-0 pos: right model: Acer VG270
serial: <filter> built: 2021 res: 1920x1080 hz: 75 dpi: 82 gamma: 1.2
size: 598x336mm (23.54x13.23") diag: 686mm (27") ratio: 16:9 modes:
max: 1920x1080 min: 720x400
OpenGL: renderer: AMD Radeon RX 5600 XT (navi10 LLVM 14.0.6 DRM 3.47
5.19.6-zen1-1-zen) v: 4.6 Mesa 22.1.7 direct render: Yes
Audio:
Device-1: Intel Comet Lake PCH cAVS vendor: ASUSTeK driver: snd_hda_intel
v: kernel bus-ID: 1-1:2 chip-ID: 0d8c:0134
alternate: snd_soc_skl,snd_sof_pci_intel_cnl class-ID: 0300
bus-ID: 0000:00:1f.3 chip-ID: 8086:06c8 class-ID: 0403
Device-2: AMD Navi 10 HDMI Audio driver: snd_hda_intel v: kernel
bus-ID: 0000:03:00.1 chip-ID: 1002:ab38 class-ID: 0403
Device-3: C-Media TONOR TC-777 Audio Device type: USB
driver: hid-generic,snd-usb-audio,usbhid
Device-4: Logitech Logi 4K Stream Edition type: USB
driver: hid-generic,snd-usb-audio,usbhid,uvcvideo bus-ID: 2-4:2
chip-ID: 046d:086b class-ID: 0300 serial: <filter>
Sound Server-1: ALSA v: k5.19.6-zen1-1-zen running: yes
Sound Server-2: PulseAudio v: 16.1 running: no
Sound Server-3: PipeWire v: 0.3.57 running: yes
Network:
Device-1: Intel Ethernet I219-V vendor: ASUSTeK driver: e1000e v: kernel
port: N/A bus-ID: 0000:00:1f.6 chip-ID: 8086:0d4d class-ID: 0200
IF: eno1 state: up speed: 1000 Mbps duplex: full mac: <filter>
Device-2: Microsoft XBOX ACC type: USB driver: mt76x2u bus-ID: 1-3.2:5
chip-ID: 045e:02fe class-ID: 0000 serial: <filter>
IF: wlp0s20f0u3u2 state: down mac: <filter>
RAID:
Hardware-1: Intel Comet Lake PCH-H RAID driver: intel_nvme_remap v: N/A
port: 4020 bus-ID: 0000:00:17.0 chip-ID: 8086:06d6 rev: class-ID: 0104
Drives:
Local Storage: total: 2.85 TiB used: 29.87 GiB (1.0%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: SSD 970 EVO Plus
1TB size: 931.51 GiB block-size: physical: 512 B logical: 512 B type: SSD
serial: <filter> rev: 2B2QEXM7 temp: 50.9 C scheme: GPT
ID-2: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 840 PRO Series
size: 119.24 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
type: SSD serial: <filter> rev: 4B0Q scheme: GPT
ID-3: /dev/sdb maj-min: 8:16 vendor: Seagate model: ST2000DM008-2FR102
size: 1.82 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
type: HDD rpm: 7200 serial: <filter> rev: 0001 scheme: GPT
Partition:
ID-1: / raw-size: 896.85 GiB size: 896.85 GiB (100.00%) used: 29.87 GiB
(3.3%) 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: 896.85 GiB size: 896.85 GiB (100.00%) used: 29.87
GiB (3.3%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-4: /var/log raw-size: 896.85 GiB size: 896.85 GiB (100.00%) used: 29.87
GiB (3.3%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-5: /var/tmp raw-size: 896.85 GiB size: 896.85 GiB (100.00%) used: 29.87
GiB (3.3%) 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: 31.24 GiB used: 0 KiB (0.0%) priority: 100
dev: /dev/zram0
ID-2: swap-2 type: partition size: 34.37 GiB used: 0 KiB (0.0%)
priority: -2 dev: /dev/nvme0n1p3 maj-min: 259:3
Sensors:
System Temperatures: cpu: 38.0 C mobo: N/A gpu: amdgpu temp: 53.0 C
mem: 58.0 C
Fan Speeds (RPM): N/A gpu: amdgpu fan: 811
Info:
Processes: 387 Uptime: 1h 5m wakeups: 0 Memory: 31.24 GiB used: 6.45 GiB
(20.6%) Init: systemd v: 251 default: graphical tool: systemctl
Compilers: gcc: 12.2.0 clang: 14.0.6 Packages: pacman: 1441 lib: 426
Shell: fish v: 3.5.1 default: Bash v: 5.1.16 running-in: konsole
inxi: 3.3.20
Garuda (2.6.6-1):
System install date:     2022-09-04
Last full system update: 2022-09-04 ↻
Is partially upgraded:   No
Relevant software:       NetworkManager
Windows dual boot:       Probably (Run as root to verify)
Snapshots:               Snapper (maybe)
Failed units:

I would appreciate step by step guide as I am truly a newbie :slight_smile:

Thank you
Kiril

First I would reboot and see if that works first

2 Likes

Hi @TilliDie

Yes If I reboot it will work until the next time the monitor goes to sleep or is switched manually.

It's like, there is no facility to remember what happened when the monitors were awake :slight_smile:

Welcome :slight_smile:

No problem, it's all in the arch wiki.

and search in forum too.

4 Likes

Thank you @SGS, I guess I should always search for Arch Linux rather than Garuda :slight_smile:

I am on it.

AUR is such an amazing resource in addition to this forum. I've found most answers I've needed even before needing to post. Props to those who've compiled the resources or asked before us! :slight_smile:

Hi guys, I did run the scripts from the guide @SGS suggested, this is pretty simple and straightforward but I now think that is not my issue.

xrandr output:

Screen 0: minimum 320 x 200, current 3840 x 1080, maximum 16384 x 16384
DisplayPort-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 598mm x 336mm
1920x1080     74.97*+  60.00    50.00    59.94
1680x1050     59.88
1280x1024     60.02
1440x900      59.90
1280x800      59.91
1152x864      75.00
1280x720      60.00    50.00    59.94
1024x768      70.07    60.00
800x600       60.32    56.25
720x576       50.00
720x480       60.00    59.94
640x480       66.67    60.00    59.94
720x400       70.08
DisplayPort-1 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 598mm x 336mm
1920x1080     60.00*   50.00    59.94
1680x1050     59.88
1280x1024     60.02
1440x900      59.90
1280x800      59.91
1152x864      75.00
1280x720      60.00    50.00    59.94
1024x768      70.07    60.00
800x600       60.32    56.25
720x576       50.00
720x480       60.00    59.94
640x480       66.67    60.00    59.94
720x400       70.08
DisplayPort-2 disconnected (normal left inverted right x axis y axis)
HDMI-A-0 disconnected (normal left inverted right x axis y axis)

I am typing

xrandr --output "DisplayPort-0" --auto --output "DisplayPort-1" --right-of "DisplayPort-0"

What my issue is that when the monitors switch off, all the applications and windows I have spread on both screens, go to the one monitor.

For example if I have a browser with 2 pages opened on Monitor 1 and a browser with another 3 pages opened on Monitor 2, they will all go to monitor 1( including apps running, like discord, whatsApp etc.)

I will then re-arrange them as I want and while working it's going well but then once the monitor is off the apps running on 2 screens always merge into 1 and of course this is very irritating.

It could be something simple that I don't understand.

Any suggestions are welcome.

Thank you
Kiril