我运行此命令以允许我在屏幕之间移动窗口:
xrandr --auto
这个神奇的命令为我修复了我的屏幕(在我运行这个之前,我的第二台显示器只是一个我可以移动鼠标的空白空间)。当我重新启动时,我怎样才能使这个命令坚持下去?我对修复我的配置更感兴趣,而不仅仅是重新运行这个命令,但我对如何实现这一点一无所知。
我有 2 个显示器,DFP 5 和 DFP 6。运行xrandr
结果如下:
DFP1 disconnected (normal left inverted right x axis y axis)
DFP2 disconnected (normal left inverted right x axis y axis)
DFP3 disconnected (normal left inverted right x axis y axis)
DFP4 disconnected (normal left inverted right x axis y axis)
DFP5 connected 1680x1050+1680+0 (normal left inverted right x axis y axis) 474mm x 296mm
1680x1050 60.0*+
1400x1050 60.0
1280x1024 75.0 60.0
1440x900 60.0
1280x960 75.0 60.0
1280x800 75.0 60.0
1152x864 60.0 75.0
1280x768 75.0 60.0
1280x720 75.0 60.0
1024x768 75.0 60.0
800x600 75.0 60.3
640x480 75.0 59.9
DFP6 connected 1680x1050+0+0 (normal left inverted right x axis y axis) 474mm x 296mm
1680x1050 60.0*+
1400x1050 60.0
1280x1024 75.0 60.0
1440x900 60.0
1280x960 75.0 60.0
1280x800 75.0 60.0
1152x864 60.0 75.0
1280x768 75.0 60.0
1280x720 75.0 60.0
1024x768 75.0 60.0
800x600 75.0 60.3
640x480 75.0 59.9
CRT1 disconnected (normal left inverted right x axis y axis)
Run Code Online (Sandbox Code Playgroud)
我已经使用Displays
debian 中的菜单将 DFP 6 设置为 DFP 5 的右侧。这是我的 xorg.conf 文件:
Section "ServerLayout"
Identifier "aticonfig Layout"
Screen 0 "aticonfig-Screen[0]-0" 0 0
EndSection
Section "Module"
EndSection
Section "Monitor"
Identifier "aticonfig-Monitor[0]-0"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection
Section "Device"
Identifier "aticonfig-Device[0]-0"
Driver "fglrx"
BusID "PCI:4:0:0"
EndSection
Section "Screen"
Identifier "aticonfig-Screen[0]-0"
Device "aticonfig-Device[0]-0"
Monitor "aticonfig-Monitor[0]-0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
virtual 3360 1050
EndSubSection
EndSection
Run Code Online (Sandbox Code Playgroud)
它似乎被配置为所有内容都是一个屏幕,并xrandr --auto
以某种方式修复它。有什么方法可以看看这个命令是做什么来将结果保存到 xorg.conf 的?您通常如何使用 xrandr 使结果持久化?
如果我搜索这个我要么告知要修改我的xorg.conf文件(我不知道该怎么办,因为我不知道什么 xrandr --auto
如何运行实际上是在做),或说明xrandr
在启动时,我敢猜测是不必要的,但我可能是错的。
我创建了以下文件:
/etc/X11/Xsession.d/45custom_xrandr-settings
并将这一行放入其中:
xrandr --output DFP6 --primary
这具有使正确的监视器成为主要监视器的效果,并在登录时启动。
归档时间: |
|
查看次数: |
17663 次 |
最近记录: |