Introduction of xrandr

From Wiki:

From Wikipedia, the free encyclopedia

  (Redirected from XRandR)
Jump to: navigation, search

The X Resize and Rotate Extension (RandR) allows clients to dynamically change X screens, so as to resize, rotate and reflect the root window of a screen. The initial X11 design did not anticipate the need for dynamic resizing and it was necessary to restart the X server to bring about the changes. RandR extension framework brought the ability to change display characteristics without restarting the X session. The extension framework allows laptops and handheld computers change their screen size to drive external monitors at different resolutions than their built in screens. [1] The current version of the protocol specification is 1.2.

If one's desktop environment doesn't provide a graphical tool for interfacing with this functionality, the xrandr command line tool may be used.





xrandr介绍

發文者為Usagi 於七月11, 2006发文者为Usagi于七月11, 2006

xrandr指令可以用來改變X環境的桌面大小和螢幕頻率. xrandr指令可以用来改变X环境的桌面大小和萤幕频率.

把桌面解析度調成1024×768:把桌面解析度调成1024×768:

$ xrandr -s 1024x768

把螢幕頻率調成75Hz把萤幕频率调成75Hz

$ xrandr -r 75

列出目前環境支援的解析度和頻率列出目前环境支援的解析度和频率

$ xrandr -q

它列出的訊息, 每行的第一個數字可以用來指定給-s 參數, 假設有一行這麼寫它列出的讯息,每行的第一个数字可以用来指定给-s参数,假设有一行这么写

20 640 x 480 ( 347mm x 260mm ) 75

那麼下那么下

$ xrandr -s 20

時, 就會把螢幕調成640×480 大小, 頻率75Hz时,就会把萤幕调成640×480大小,频率75Hz

如果有數個X環境同時運作的話, 可以用-d 參數去調整別的X環境, -d 後面加的是像:0 :1 :2 這樣, 例如:如果有数个X环境同时运作的话,可以用-d参数去调整别的X环境, -d后面加的是像:0 :1 :2这样,例如:

$ xrandr -s 800x600 -d :0


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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值