Thursday, January 2, 2014

xrandr Commands In Linux

xrandr Commands In Linux

The xrandr command, which is expanded as Xrandr – X Resize, Rotate and Reflection , is useful in the following ways :
  • Specifies the connection to the X server.
  • Specifies which screen.
  • Specifies the screen.
  • Specifies the rotations or reflections possible of the screen.
  • Specifies the current rotations and reflection of the screen.
  • Specifies the server timestamp.
  • Specifies the timestamp when the screen was last (re)configured.
  • Specifies the screen configuration being used.
  • Specifies the array of sizes supported.
  • Specifies the refresh rate in Hz.
Now what do we do with this … something thats really useful ?
$ xrandr
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 1600 x 1600
VGA connected 1024×768+0+0 (normal left inverted right x axis y axis)
312mm x 234mm
1024×768       85.0*+   84.9     85.0*    75.1     75.0     70.1     60.0
1600×1024      60.0
1280×1024      59.9     60.0
1440×900       60.2
1280×960       60.0
1280×800       60.0
1152×864       75.0
1280×768       60.0
1152×768       54.8
832×624        74.6
800×600        84.9     85.1     72.2     75.0     60.3     56.2
640×480        85.0     84.6     75.0     72.8     75.0     60.0     59.9
720×400        85.0     70.1
640×400        85.1
640×350        85.1
My screen is running at 85 Hz per second refresh rate and I am at a resolution of 1024×768.
My eyes are very important since I work on the computer day in day out(never at nights) and I have been doing this for more than 11 years now.
How?
It is due to UNIX!
I always set very good refresh rates and I set a dark background and pleasing colors.
My eyes never get sore.
If we go to villages in the train, we find that whenever we see paddy fields with lush green color, our heart leaps and a whiff of pleasure courses through our heart.
Green is very pleasing to the eyes. That is the reason it is very important for Mohemmedans.
I always use xterm with green foreground and black backgrounds.
$ xrandr -o left
$ xrandr -o right
$ xrandr -o inverted
$ xrandr -o normal
Try all this. It is great fun!
$ xrandr -s 1024×768
will set the 1024×768 pixels mode. You set the refresh rate with the -r switch.
In my case I can get the 1280×1024 mode, but then the refresh rate is very poor.So I switched back.
For higher modes you get lower refresh rates since there are limitations in the graphics memory of the graphics card.
Of course you guys must be knowing the Alt Ctrl + and Alt Ctrl - keystrokes for switching between modes. And you can kill X by Alt Ctrl Backspace. If you are running a display manager this will only restart X.
Remember xrandr is a X extension. You should have it loaded for all this to work. In general all my tips may necessitate installation of some package.You have to take care of that.
Since there is no universal way to install packages and you cannot install all packages from source I will leave that out. You have to figure out.
If you are using Debian, of course things are very simple. 

xrandr Commands In Linux

No comments:

Post a Comment

Linux Tips and tricks,Online Linux Helpers