xrandr命令

输入xrandr,查看输出中状态是connected的显示设备,如LVDS。具体命令可以是:
# xrandr | grep -v disconnected | grep connected

调整亮度:
# xrandr --output LVDS --brightness 0.5
注:output后面的参数为上一步中查出的显示设备,不同主机结果可能不同。brightness后面的参数范围是0-1,0为全黑,1为最亮。

如果您明确知道你的分辨率的话,你可以将这个参数直接写成你需求的分辨率,如下:
# xrandr -s 1024×768

也可以使用 -q 参数来查看你的屏幕目前支持的分辨率的情况,或者什么参数也不加。
# xrandr -q
# xrandr

当然这个命令还有一些更复杂的用法,您可以用 info 命令来查看:

# info xrandr 


9. How can I use two monitors on my system? Do I need proprietary drivers?

Contrary to one of the most common misconceptions, dual monitor setup is supported 'out of the box' and does not require the use of any proprietary drivers. Here is a short tutorial on how to achieve that.

  1. Connect your monitors and turn them on.
  2. We need first to discover what is known. For this purpose run:
     xrandr -q 
    The output should look similar to:
    [wolfy@wolfy ~]$ xrandr -q
    Screen 0: minimum 320 x 200, current 2560 x 1024, maximum 2560 x 2560
     DFP1 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 338mm x 270mm
       1280x1024      60.0*+   75.0
       1152x648       60.0 +
       1280x960       75.0     60.0
       1280x800       75.0     60.0
       1152x864       75.0     60.0
       1280x768       74.9     59.9
       1280x720       60.0
       1024x768       75.0     70.1     60.0
       800x600        72.2     75.0     70.0     60.3     56.2
       720x480        60.0
       640x480        75.0     72.8     60.0
     DFP2 disconnected (normal left inverted right x axis y axis)
     CRT1 connected 1280x1024+1280+0 (normal left inverted right x axis y axis) 338mm x 270mm
       1280x1024      60.0 +   75.0*
       1280x960       75.0     60.0
       1280x800       75.0     60.0
       1152x864       75.0     60.0
       1280x768       74.9     59.9
       1280x720       60.0
       1024x768       75.0     70.1     60.0
       800x600        72.2     75.0     70.0     60.3     56.2
       720x480        60.0
       640x480        75.0     72.8     60.0
    
    In the above example, the key information is that we have a monitor connected to the digital interface named DFP1 supporting 1280x1024 resolution and a second, analogue, monitor connected to the interface named CRT1 also supporting 1280x1024 resolution. Other common names that can be seen are VGA, DVI, HDMI and LVDS. (The name depends upon the type of output device and the video driver.) The fact that both monitors have the same maximum resolution in this example is a pure coincidence.
  3. Using the information thus obtained, run xrandr again, asking it to activate and use the desired placement of information on the two screens:
    xrandr --output DFP1 --auto --left-of CRT1 
    This will select the preferred resolution for both monitors and place the analogue monitor (CRT1 in this case) on the right-hand side of the digital monitor (DFP1). All changes made via xrandr are instantaneous. Monitor outputs are controlled independently of each other, so the resolutions and refresh rates can be different. (This is a pretty nifty feature in the case, for example, where you have a large monitor connected to a laptop computer or any other situation with two monitors having different resolutions.)

The manual page and extensive tutorials available on Internet will show more of the powers of xrandr, so we strongly advise you to make use of those resources.


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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值