xrandr : get the precise mode refresh rate like Gnome does
I Xorg Team ! I'm the network administrator of a french high school and I need the generate my Linux client display configuration by command line. To configure the display, Gnome use a monitors.xml file where the randr configuration is stored. I know now how to generate the majority of the entries of this file except the "rate" parameter : 1440 900 59.887443542480469 A rate=60 is not accepted by Gnome. It's seems that I need at least 3 good digits after the dot to make the file work ( rate=59.887 works ). But the xrandr command give me only 2 digits : ~# xrandr Screen 0: minimum 320 x 200, current 2704 x 1050, maximum 8192 x 8192 DP-1 connected primary 1024x768+0+0 (normal left inverted right x axis y axis) 256mm x 192mm ... 1440x900 59.89 ... Does someone know how to get this precise refresh rate value from randr ? Thanks. Regards, Baptiste. ___ xorg@lists.x.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: https://lists.x.org/mailman/listinfo/xorg Your subscription address: %(user_address)s
XRandr adaptive mirrored screens
Hi Xorg Team ! I'm the network administrator of a French High school and I'm face of a new problem since the integration of XRandr in Debian Stretch. Many of my Debian Stretch stations are teacher's desktop. Each of them are connected to a screen and to an interactive projector. I would like that the displays are mirrored with the best common resolution. But the problem is that : -> Not all station are the same model. So XRandr does not give always the same name to the outputs. -> The screen and the projector are not always connected to the same display ports (VGA, HDMI, ... ) -> The screen and projector sizes varies. So Xrandr don't always select the same resolution by default. -> Not all graphic cards support the same display resolutions. So actually I need to make a custom Xorg config file for all my stations individually. For each station : -> I need to identify the output's name of the screen and of the projector -> I need to list the supported resolutions for each output -> I need to choose the best match resolution -> And finally I need to I add a config file like this : Section "Monitor" Identifier "HDMI-1" Option "Primary" "true" Option "PreferredMode" "1280x1024" EndSection Section "Monitor" Identifier "VGA-1" Option "Position" "0 0" Option "PreferredMode" "1280x1024" EndSection Is there a way to make Xorg mirror screens by default and choose itself the best resolution ? Ideally a config file that I can deploy in all my teacher's station. If someone can help me ! Thanks ! Baptiste. ___ xorg@lists.x.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: https://lists.x.org/mailman/listinfo/xorg Your subscription address: %(user_address)s