-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On Tue, Apr 23, 2024 at 11:47:42AM -0000, qubist wrote:
> I see this (essential lines only):
>
> # Only primary (4K) screen connected:
>
> user@dom0:~ > xrandr
> DP-1 connected primary 3840x2160+0+0 (normal left inverted right x axis y axis) 596mm x 335mm
> 3840x2160 60.00*+ 29.98 24.99 24.00
>
> # Only secondary (2K) screen connected w/ scale 2x2:
> # (note: No idea why the weird dimensions in mm, it's a big screen)
>
> DP-2 connected 3840x2160+0+0 (normal left inverted right x axis y axis) 16mm x 9mm
> 1920x1080 60.00* 50.00 59.94 24.00 23.98
>
> # Both, side by side, 4K primary, 2K secondary w/ scale 2x2:
>
> DP-1 connected primary 3840x2160+0+0 (normal left inverted right x axis y axis) 596mm x 335mm
> 3840x2160 60.00*+ 29.98 24.99 24.00
> ...
> DP-2 connected 3840x2160+3840+1080 (normal left inverted right x axis y axis) 16mm x 9mm
> 1920x1080 60.00* 50.00 59.94 24.00 23.98
>
>
> What is the formula?
(3840 + 3840) * 2160 * 4 / 1024
And even easier, you should have a top line in xrandr output with
"current ... x ..." - that's the total size you are after.
> P.S.
>
> FWIW, the secondary (2K) screen is connected via HDMI, however xrandr
> always shows HDMI-1 and HDMI-2 as disconnected and "thinks" the
> secondary screen is on DP-2 (while there is only one physical
> DisplayPort). No idea if this is a bug or even related in any way.
It's probably related how those connectors are routed, maybe there is
some internal converter. But could be also mislabeled outputs in the
driver.
- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCAAdFiEEhrpukzGPukRmQqkK24/THMrX1ywFAmYnqGkACgkQ24/THMrX
1ywg1gf9HJQJnkXOOXV/a7ttUlwm5lINhwZ7KSAqOqCX8rklWZqeVtal4ywDeld6
1G9jpL7u+yq3qZZgPYJPOoEK5VNfI5VTDFICN9xrelwJDZsZvLlrWc9qU4ddB+FW
yEYcCoEGsK9GGYrieFhBQaVOtmSlcvyWVnfhLaHdiL8JfL0GTx8DiF7ZxJbDM28h
7VAdPJPsivunchjKdww+d5gvpFEv3ISxOR790EL8nOCmIypBpJ7cEvmz7/qF9DY1
iyggJ340yYHVyeRu9aHG2/KfHT04GFcHqN2YQBj/f3xj9H07Qm77DVD4mM59d7h9
ktWLlI0YQmGgNMXPeEk7Wa416g6o+w==
=Icq+
-----END PGP SIGNATURE-----