URL: https://linuxfr.org/forums/general-general/posts/r%C3%A9flextion-avec-xrandr Title: Réflextion avec Xrandr Authors: Sygne Date: 2011年02月17日T17:15:08+01:00 Tags: fosdem Score: 0 Bonjour, Je dois projeter un film dans une salle où le vidéo-projecteur est derrière l'écran, ainsi (V le vidéo-projecteur, | l'écran, P le public): V | P. Dans ces conditions, les images sont toutes inversées, ce qui est normalement à gauche se retrouve à droite. L'option **--transform** de xrandr me permet de remédier à ce problème, mais voici ce que m'indique **man xrandr**: > --transform a,b,c,d,e,f,g,h,i Specifies a transformation matrix to apply on the output. Auto‐ matically a bilinear filter is selected. The mathematical form corresponds to: a b c d e f g h i The transformation is based on homogeneous coordinates. The matrix multiplied by the coordinate vector of a pixel of the output gives the transformed coordinate vector of a pixel in the graphic buffer. More precisely, the vector (x y) of the output pixel is extended to 3 values (x y w), with 1 as the w coordi‐ nate and multiplied against the matrix. The final device coordi‐ nates of the pixel are then calculated with the so-called homogenic division by the transformed w coordinate. ...> / Je pourrais tatonner des heures et finir par trouver la solution qui va bien, mais malheureusement, je n'aurai accès au vidéo projecteur que quelques minutes avant la projection... Ce [pdf](http://www.seeks.fr/qc_redir?q=xrandr+--reflect+matrix&url=http%3A%2F%2Fwww.vis.uni-stuttgart.de%2F%7Ehopf%2Fpub%2FFosdem_2009_randr13_Slides.pdf) m'aide un peu à y voir un peu plus clair. Et après mûre réflexion, je me dis que la matrice suivante devrait faire l'affaire: -1 0 0 0 1 0 0 0 1 J'ai bon?