If this is your first visit, be sure to
check out the FAQ. You will have to register
before you can post. To start viewing messages,
select the forum that you want to visit from the selection below.
If you have copied text output that contains formatting (colors, highlighting, etc.), please do not enclose it in QUOTE or CODE tags. Just right-click your mouse and choose "Paste Without Formatting" or similar (Paste as plain text).
Announcement
Collapse
No announcement yet.
xrandr with two 2560x1400 screens but I want to "zoom" one of them because their DPI are different
My config, as returned by neofetch: OS: Kubuntu 23.10 x86_64
Kernel: 6.5.0-28-generic
Shell: bash 5.2.15
Resolution: 2560x1440, 2560x1440
DE: Plasma 5.27.8
WM: KWin
Theme: [Plasma], Breeze [GTK3]
Icons: Fluent-dark [Plasma], Fluent-dark [GTK2/3]
Terminal: konsole
CPU: AMD Ryzen 7 5800X3D (16) @ 3.400GHz
GPU: AMD ATI Radeon RX 7900 XT/7900 XTX
Memory: 4497MiB / 48075MiB
So.
A few months ago, I had to use two completely different screens. A 2560x1440 and a 1920x1200. Obviously, when text overlapped the two screens, it was very complicated to find the rest of the line on the second screen. I managed to have an almost "perfect" display in two steps. First, with xrandr, I simulated a resolution of 2560 wide on the 1920 screen, then I used a ratio ("scale" in xrandr) to distort the pixels a little and have 2560px in height.
Here is the command used in my Xsetup file at boot (I had disabled the KScreen daemon in KDE, of course).
Well, it worked perfectly, but now I replaced the 1920x1200 screen and I have two 2560x1440 screens. Unfortunately, one of the screens is a little "bigger" than the other and protrudes about 1cm at the bottom. :-(
So unfortunately the lines are also very offset.
I almost solved the problem by simulating a resolution of 2560x1404 (instead of 2560x1440) with the following command.
Of course neither my screen nor my graphics card can natively display a resolution of 2560x1404, that's why I use xrandr. And although the display changes before my eyes, and the lines are now well aligned between the two screens; This command only works as long as I don't lower my mouse below 1404px (1440x0.975). As soon as my mouse passes under it, the screen reverts to 2560x1440 instead of 2560x1404.
I tried WITHOUT indicating the --fb value, by removing the panning and using the "left-of" positioning, just to simplify:
xrandr with two 2560x1400 screens but I want to "zoom" one of them because their DPI are different
EDIT : I thought I was in a french forum... Sorry.
I will translate as quickly as possible.
Bonjour,
Ma config, telle que renvoyée par neofetch :
OS: Kubuntu 23.10 x86_64
Kernel: 6.5.0-28-generic
Shell: bash 5.2.15
Resolution: 2560x1440, 2560x1440
DE: Plasma 5.27.8
WM: KWin
Theme: [Plasma], Breeze [GTK3]
Icons: Fluent-dark [Plasma], Fluent-dark [GTK2/3]
Terminal: konsole
CPU: AMD Ryzen 7 5800X3D (16) @ 3.400GHz
GPU: AMD ATI Radeon RX 7900 XT/7900 XTX
Memory: 4497MiB / 48075MiB
Voilà.
Il y a quelques mois, je devais utiliser deux écrans totalement différents. Un 2560x1440 et un 1920x1200.
Forcément, lorsque du texte chevauchait les deux écrans, il était alors très compliqué de trouver la suite de la ligne sur le second écran.
Je suis parvenu à avoir un affichage quasiment "parfait" en deux temps.
Tout d'abord, avec xrandr, j'ai simulé une résolution de 2560 de large sur l'écran 1920, puis j'ai utilisé un ratio ("scale" dans xrandr) pour déformer un peu les pixels et avoir 2560px en hauteur.
Voici la commande utilisée dans mon fichier Xsetup au boot (j'avais désactivé le démon KScreen dans KDE, bien entendu).
Bon, ça marchait parfaitement, mais désormais, j'ai remplacé l'écran 1920x1200 et j'ai deux écrans 2560x1440.
Malheureusement, l'un des écrans est un peu plus "gros" que l'autre et dépasse d'environ 1cm en bas. :-(
Donc, malheureusement, les lignes sont aussi très décalées.
J'ai presque résolu le problème en simulant une résolution de 2560x1404 (au lieu de 2560x1440) avec la commande suivante.
MAIS !
Bien entendu ni mon écran, ni ma carte graphique ne peuvent afficher nativement une résolution de 2560x1404, c'est pour cela que j'utilise xrandr.
Et bien que l'affichage se modifie devant mes yeux, et que les lignes sont désormais bien alignées entre les deux écrans ; cette commande ne fonctionne que tant que je ne descends pas ma souris en dessous des 1404px (1440x0.975). Dès que ma souris passe dessous, l'écran repasse en 2560x1440 au lieu de 2560x1404.
J'ai essayé SANS indiquer la valeur --fb, en enlevant le panning et en utilisant le positionnement "left-of", histoire de bien simplifier :
xrandr --verbose --output DisplayPort-0 --auto --mode 2560x1440 --primary --output DisplayPort-1 --auto --mode 2560x1440 --left-of DisplayPort-0 --scale 1x0.975
Mais sans succès.
Dès que je baisse ma souris, l'écran reprends une taille de 2560x1440 (c'est assez amusant comme effet graphique, soit dit en passant).
Avez-vous une idée pour résoudre ce problème ?
Merci d'avance.
Last edited by JuggerWault; May 06, 2024, 10:55 AM.
Reason: -
Leave a comment: