我想在我的笔记本电脑上使用两个输出:
我像这样设置我的显示器:
xrandr --output LVDS1 --auto --output HDMI1 --auto --right-of LVDS1
Run Code Online (Sandbox Code Playgroud)
这一切都很好,但我的笔记本电脑比我的外接显示器低得多,并且屏幕的顶部边缘对齐,这使得从一个屏幕跳转到另一个相当不直观。有没有办法可以对齐底部边缘?我以为我可以使用--pos
标志来做到这一点,但我尝试过并没有看到任何区别(也许我不知道如何正确使用它)。
我正在使用 Lenovo x220i thinkpad,运行 crunchbang linux(使用 openbox 窗口管理器)。笔记本电脑的侧面有一个 DP 和 VGA 插头。
连接 DP 和 VGA 电缆并运行xrandr
,我注意到以下输出可用/活动:
VGA1
DP1
LVDS1 <- the laptop screen
Run Code Online (Sandbox Code Playgroud)
如果我尝试启用超过 2 个(使用任意组合),则会收到错误消息“找不到用于 [VGA1/DP1/LVDS1] 的输出的 crtc”
crtc是什么?我如何知道有多少可用?是否可以在软件中或通过 PCI 卡添加更多内容?
谢谢。
尽管有几个关于这个问题的现有问题(最有帮助的答案是this)和其他论坛上的各种主题,但我无法xrandr
在 VirtualBox 上的 Debian 7 中可靠地设置我的设置。
我试图用来xrandr
控制我的显示设置(而不是让我的桌面环境自动执行它们),因为我使用的是i3
window manager,它不会自动显示设置或使用 Gnome 桌面环境显示设置。
我不确定这些有多大关系,尤其是硬件方面,因为我认为Debian 实际上无法访问有关监视器设置的很多信息;据我所知,VirtualBox 只是报告虚拟屏幕的存在,就好像它们是硬件监视器一样。
gnome
并gdm3
已安装 …debian virtualbox multiple-monitors xrandr i3-window-manager
我有一台带两个视频输出的笔记本电脑,我在家时使用(HDMI1、VGA1)。为了启用它们,我这样做:
xrandr --output HDMI1 --right-of LVDS1 --auto
xrandr --output LVDS1 --off
xrandr --output VGA1 --right-of HDMI1 --auto
Run Code Online (Sandbox Code Playgroud)
当我想上班时,我带着笔记本电脑,但首先运行以下命令:
xrandr --output VGA1 --off
xrandr --output LVDS1 --left-of HDMI1 --auto
xrandr --output HDMI1 --off
Run Code Online (Sandbox Code Playgroud)
然后这让我的笔记本电脑显示器像它应该的那样处于活动状态。
我遇到的问题是有时我不记得在我的电脑上班之前禁用两个屏幕。当我到达时,我尝试了--output
和 的各种组合,--off
但我无法重新启用我的屏幕。
这是我xrandr
在没有显示任何内容的情况下运行的输出:
Screen 0: minimum 320 x 200, current 3840 x 1080, maximum 8192 x 8192
LVDS1 connected (normal left inverted right x axis y axis)
1366x768 60.0 +
1024x768 60.0··
800x600 60.3 56.2··
640x480 59.9··
VGA1 disconnected 1920x1080+1920+0 (normal …
Run Code Online (Sandbox Code Playgroud) 我有多个具有不同正确 DPI 设置的屏幕。我可以xrandr --dpi X
用来更改所有屏幕的 DPI,是否可以为每个屏幕设置不同的 DPI?当应用程序移动到不同的屏幕时,如何让它们重新计算字体大小? xrandr --dpi X
只影响新窗口,旧窗口仍然使用旧的 DPI 值。
我正在使用 Xfce 4 桌面环境版本 4.6.1 (Xfce 4.6)
我正在尝试使双显示器设置正常工作。我插入了一个 vga 显示器并坐在我的笔记本电脑的左侧。
我想拥有它,以便我的常规桌面像往常一样位于笔记本电脑屏幕上,而 vga 充当将窗口拖入其中的额外空间。我快到了:我有两个空间并排坐在一起,我可以左右拖动。
问题是 vga 显示器是带有任务栏的“主要”显示器:我希望在我的笔记本电脑中使用它(即在右侧屏幕而不是左侧屏幕中)。
这是我当前的 xrandr 设置:
Screen 0: minimum 320 x 200, current 2720 x 900, maximum 4096 x 4096
VGA1 connected 1440x900+0+0 (normal left inverted right x axis y axis) 408mm x 255mm
1440x900 59.9*+ 75.0
1280x1024 75.0 60.0
1152x864 75.0
1024x768 75.1 70.1 60.0
832x624 74.6
800x600 72.2 75.0 60.3 56.2
640x480 72.8 75.0 66.7 60.0
720x400 70.1
LVDS1 connected 1280x800+1440+0 (normal left inverted right …
Run Code Online (Sandbox Code Playgroud) 我有一个 Ubuntu 服务器,无法物理访问它,只能通过 ssh/vnc。
它停留在 1680x1050 分辨率上,并且在系统显示设置中菜单被禁用,因为没有检测到连接的真实显示器。
我需要将分辨率降低到例如 800x600。
当我尝试:
$ xrandr --output VGA1 --mode 800x600
Run Code Online (Sandbox Code Playgroud)
我越来越:
xrandr: cannot find mode 800x600
Run Code Online (Sandbox Code Playgroud)
即使我第一次尝试,结果也是一样的:
$ xrandr --newmode "800x600_60.00" 38.25 800 832 912 1024 600 603 607 624 -hsync +vsync
Run Code Online (Sandbox Code Playgroud)
道具是:
$ xrandr --prop
Screen 0: minimum 320 x 200, current 1680 x 1050, maximum 4096 x 4096
VGA1 disconnected 1680x1050+0+0 (normal left inverted right x axis y axis) 593mm x 371mm
1680x1050 (0x43) 146.2MHz
h: width 1680 start 1784 end 1960 …
Run Code Online (Sandbox Code Playgroud) 我一直在尝试使用xrandr
.
经过一些 Google 和 SU 搜索后,我设法:
xrandr --output LVDS --pos 1680x0
Run Code Online (Sandbox Code Playgroud)
这将我的笔记本电脑屏幕 (LVDS) 设置为与我的台式机屏幕大小合适。
现在,如果我想把它放在左边,我必须使用这个符号:
xrandr --output LVDS --left-of MY_DESKTOP_SCREEN
Run Code Online (Sandbox Code Playgroud)
当然,没有MY_DESKTOP_SCREEN
设备,所以我得到:
xrandr: cannot find output "MY_DESKTOP_SCREEN"
Run Code Online (Sandbox Code Playgroud)
如何查找或配置视频设备的名称?
众所周知,GNU/Linux 上的双显示器设置非常有趣!在摆弄我的 xorg.conf 几天之后,我已经设法达到了一个点,我可以通过开始获得几乎我想要的东西(两个屏幕彼此相邻,窗口可以从一个屏幕拖动到另一个屏幕) up X,然后手动调用:
xrandr --output CRT2 --right-of DFP2
Run Code Online (Sandbox Code Playgroud)
我正在使用 RandR 1.3,因为 Xinerama 不适用于我的设置(并且似乎在某种程度上也已过时)。
根据这个网站,我应该能够通过我的 xorg.conf 静态实现相同的效果 - 但是,我似乎没有让它正常工作。
我正在为我的 ATI 卡 GNOME 2.32.1 使用 fglrx 驱动程序,这是我的 xorg.conf:
Section "ServerFlags"
Option "RandR" "on"
EndSection
Section "Device"
Identifier "Device"
Driver "fglrx"
BusID "PCI:1:0:0"
Option "Monitor-DFP2" "Monitor0"
Option "Monitor-CRT2" "Monitor1"
EndSection
Section "Monitor"
Identifier "Monitor0"
EndSection
Section "Monitor"
Identifier "Monitor1"
Option "RightOf" "Monitor0"
EndSection
Section "Screen"
Identifier "Screen"
Device "Device"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24 …
Run Code Online (Sandbox Code Playgroud) 这个问题可能看起来类似于模拟额外的显示,但它在重要细节上有所不同。
假设我想使用 RANDR 扩展测试具有多监视器支持的某些窗口管理器的功能。似乎不可能使用Xrandr
/来实现这一点Xdmx
。到目前为止,我已经尝试了不同的组合+extension RANDR
和+xinerama
参数Xrandr
,Xdmx
但没有运气。另外,我在手册页中没有找到这两个命令的任何线索。
我的简单案例是:
Xephyr -screen 800x800+0+0 -ac :1 &
sleep 1
Xephyr -screen 800x800+800+0 -ac :2 &
sleep 1
Xdmx +extension RANDR -xinput local -display :1 -display :2 -ac :3 &
sleep 1
DISPLAY=:3 window-manager
我也尝试过只使用Xephyr
:
Xephyr +extension RANDR -screen 800x800+0+0 -screen 800x800+800+0 -ac :3 &
sleep 1
DISPLAY=:3 window-manager
但显然它创建了两个单独的 X 屏幕,因此根窗口不会在屏幕之间共享。
有没有其他方法xrandr
可以报告我的案例的两个可用输出?