Xrandr: Difference between revisions

New page: == a little R and R == I use a notebook computer, and normally use it at my office which means that I use an external keyboard and mouse plus use two monitors to get a larger work area. ...
 
m Text replacement - "<(\/?)source" to "<$1syntaxhighlight"
 
(One intermediate revision by one other user not shown)
Line 10: Line 10:
== Using XRandR ==
== Using XRandR ==
Hint: I store each of these commands as "bookmarks" in Konsole organized under "system configuration"
Hint: I store each of these commands as "bookmarks" in Konsole organized under "system configuration"
<source lang="bash">
<syntaxhighlight lang="bash">
# grab resolution details
# grab resolution details
echo "xrandr -q:" > ~/resolution.txt && xrandr -q >> ~/resolution.txt
echo "xrandr -q:" > ~/resolution.txt && xrandr -q >> ~/resolution.txt
Line 21: Line 21:
# external monitor OFF
# external monitor OFF
xrandr --verbose --output VGA-0 --off
xrandr --verbose --output VGA-0 --off
</source>
</syntaxhighlight>
 
If you use the <code>--dryrun</code> option to xrandr, it will show you a '''numbered''' list of the modes it knows about.  ''That'' number is the number you can supply to the --size argument.
 
So, if you have a slew of 20 resolutions supported by your video card (as seen in <code>xrandr</code> output), and the 20th one is the super duper 1900x1200 resolution you want, then issue an xrandr --size 20 to get the 20th mode.  I hope this is clear.  It certainly isn't clear from the man page.  Unlike a plain <code>xrandr</code> command, the --dryrun option numbers the modes in the output so that you know (without counting) the mode index to supply to the --size option.
 
== Note ==
Apparently in the newest Xorg, you barely even need an xorg.conf file, and xrandr is more central to the system


== Resources ==
== Resources ==