在X下动态更改分辨率的工具——xrandr


xrandr

To change the resolution (monitor display) from the command line ( using a terminal window ) do this: ( when x is running -- don't exit Xwindows just use a terminal window. This is done from the command line. )
[ xrandr ]
this command will bring up information like this:
 SZ:    Pixels          Physical       Refresh
 0   1024 x 768    ( 271mm x 201mm )   75   70   60  
 1    800 x 600    ( 271mm x 201mm )   85   75   72   60   56  
 2    640 x 480    ( 271mm x 201mm )   85   75   72   60  
*3    832 x 624    ( 271mm x 201mm )  *74  
 4    720 x 400    ( 271mm x 201mm )   85  
 5    640 x 400    ( 271mm x 201mm )   85  
 6    640 x 350    ( 271mm x 201mm )   85  
Current rotation - normal
Current reflection - none
Rotations possible - normal 
Reflections possible - none

This will show the resolutions possible on your monitor. The star indicates what is currently being used. To change resolution use a command like this:
[ xrandr -s 1024x760 ]

This will immediately change the resolution; in this case to 1024x760. ( it takes about .5 seconds on my system which uses a "Super View 1280" monitor which is actually an Hitachi cm500 as far as specifications go -- I am using RedHat with kernel 2.4.20-6 and Xfree86 version 4.3.0)
To check for xrandr on your system type
[ xdpyinfo ]
(If you see RANDR listed under number of extensions then it should work.) Also typing
[ xrandr -s ]
will give this information:
usage: xrandr [options]
  where options are:
  -display <display> or -d <display>
  -help
  -o <normal,inverted,left,right,0,1,2,3>
            or --orientation <normal,inverted,left,right,0,1,2,3>
  -q        or --query
  -s <size>/<width>x<height> or --size <size>/<width>x<height>
  -r <rate> or --rate <rate>
  -v        or --version
  -x        (reflect in x)
  -y        (reflect in y)
  --screen <screen>
  --verbose

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值