Suh*_*aib 6 xorg fglrx mir amd-graphics
我正在通过 HDMI 电缆连接带有液晶电视的笔记本电脑。每次我重新启动时,我都必须去:
系统设置 --> 屏幕显示
再次启用镜像。因此,我打算编写一个 bash 脚本,在登录后启用此功能。但是,我不知道要键入哪些命令才能实现镜像功能。
我将Ubuntu 14.04 与最新的 AMD 驱动程序 (14.4) 用于 Radeon 7xxx 系列,因此安装了 amdccle,但我没有从那里启用它...
注意:如有必要,我可以使用替代方法 amdccle。
Spa*_*awk 12
我假设您的显示器具有相同的分辨率。检查显示器的名称
$ xrandr --query
Screen 0: minimum 320 x 200, current 3840 x 1200, maximum 32767 x 32767
LVDS1 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 382mm x 215mm
1920x1080 60.0*+ 59.9
1680x1050 60.0 59.9
1600x1024 60.2
1400x1050 60.0
1280x1024 60.0
1440x900 59.9
1280x960 60.0
1360x768 59.8 60.0
1152x864 60.0
1024x768 60.0
800x600 60.3 56.2
640x480 59.9
VGA1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
DP1 connected primary 1920x1200+0+0 (normal left inverted right x axis y axis) 518mm x 324mm
1920x1200 60.0*+
1920x1080 60.0 +
1600x1200 60.0
1680x1050 60.0
1280x1024 60.0
1280x960 60.0
1024x768 60.0
800x600 60.3
640x480 60.0
720x400 70.1
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
Run Code Online (Sandbox Code Playgroud)
所以在这里,我的是LVDS1和DP1。如果两者都处于活动状态,则只需运行
xrandr --output DP1 --same-as LVDS1
Run Code Online (Sandbox Code Playgroud)
如果只有一个是活动的,则运行
xrandr --output LVDS1 --auto --primary --output DP1 --auto --same-as LVDS1
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
11019 次 |
| 最近记录: |