最近我最小安装了我的操作系统,但在设置我的显示器分辨率时遇到了意外错误。这似乎是一个非常古老的问题,但这次还有其他问题(我认为)。
apt-get update,apt-get install xorg-core xserver-xorg-core gnome-core gdm3安装图形格栅apt-get install build-essential nvidia-kernel-common linux-headers-$(uname -r),./NVIDIA-Linux-x86_64-304.64.run
上面的步骤似乎所有事情都以正确的方式进行。
设置分辨率 : cvt 1440 900, xrandr --newmode xxx,xrandr --addmode VGA-0 xxx
然后我得到了那个错误:
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 153 (RANDR).
Minor opcode of failed request: 18 (RRAddOutputMode).
Serial number of failed request: 29.
Current serial number in output stream: 30
Run Code Online (Sandbox Code Playgroud)
我不知道你需要什么信息,只列出一些
显卡型号:nvidia gt630。
显卡显存大小:512M ddr5.
显示器:飞利浦 190cw(1440x900,在 Windows …
为了在夜间保护眼睛,添加更多红色和/或减去蓝色,在Windows 10(蓝光过滤器)和 Linux 中变得流行;带有Red Shift或f.lux等附加组件的Gnome 桌面(夜灯)和 Ubuntu Unity 桌面。
我想知道如何使用 Ubuntu 的内置命令行xrandr <monitor> --gamma 1:1:1功能完成相同的任务。该1:1:1代表的百分比红色:绿色:蓝色。我认为1= 100%。我不确定上述包是否添加了更多红色 ( 1.2:1:1) 以增加约 20% 或减少蓝色 ( 1:1:0.8)减少约 20% 或两者兼有约 40% 变化。
根据OMG Ubuntu,在 Gnome 的 Night Light 中,您可以使用这些数值:
我刚刚安装了 ubuntu 14.04,鼠标现在在我的两个屏幕之一上闪烁。另一个屏幕没有任何闪烁。我以前使用 ubunutu 13.10 没有任何问题。
我已经尝试过这里找到的解决方案:
这是我的显示设置的样子:

我正在使用X.Org X Server - Nouveau display driver from xserver-xorg-video-nouveau (open source)驱动程序。如果我尝试切换到专有的 nvidia,然后单击Apply Changes按钮,它就会启动并永远完成,更改似乎永远不会适用。
这是输出xrandr:
Screen 0: minimum 320 x 200, current 3840 x 1080, maximum 8192 x 8192
VGA-1 disconnected (normal left inverted right x axis y axis)
DVI-I-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 521mm x 293mm
1920x1080 60.0*+
1680x1050 …Run Code Online (Sandbox Code Playgroud) 如何使用命令提示符进行如下所示的设置?

编辑:我需要辅助显示器位于主显示器顶部的左侧和中间,如上所示。
xrandr 的输出是:
Run Code Online (Sandbox Code Playgroud)Screen 0: minimum 320 x 200, current 3200 x 1567, maximum 32767 x 32767 eDP1 connected primary 1920x1080+1280+487 (normal left inverted right x axis y axis) 345mm x 194mm 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) DP1 disconnected (normal left inverted right x axis y …
xrandr command-line scripts multiple-monitors display-manager
我受到的BUG:https://bugs.launchpad.net/ubuntu/+source/unity-greeter/+bug/874241 否则,如果你像我一样有连接到更高的分辨率,第二显示器一台笔记本电脑LIGHTDM在登录阶段,在两个屏幕中镜像显示,并在我的情况下为它们分配一个通用分辨率(1024X768),而不是扩展桌面(主屏幕带有迎宾员,辅助屏幕只有一个徽标,如多显示器用户体验规范书中所述12.04)。
这是我的xrandr -q
@L502X:~$ xrandr -q
Screen 0: minimum 320 x 200, current 1920 x 1848, maximum 8192 x 8192
LVDS1 connected 1366x768+309+1080 (normal left inverted right x axis y axis) 344mm x 193mm
1366x768 60.0*+
1360x768 59.8 60.0
1024x768 60.0
800x600 60.3 56.2
640x480 59.9
VGA1 disconnected (normal left inverted right x axis y axis)
HDMI1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 510mm x 287mm
1920x1080 60.0*+
1600x1200 …Run Code Online (Sandbox Code Playgroud) 我正在尝试在 Ubuntu 中启用双显示器。这工作正常,但每次我这样做时,桌面效果都会被禁用。不过,我想我已经找到了原因:
https://wiki.ubuntu.com/X/Config/Multihead/
与 GNOME XRandR 配置方法一样,将 Virtual 设置得太大可能会导致硬件加速损失,从而无法使用 Compiz 及其桌面效果。
当我使用 GNOME 监视器小程序或系统菜单中的监视器配置时,默认的 xrandr 设置将第二个监视器放在第一个监视器的右侧,而且,正如我发现的这个错误,对于大多数监视器,这会创建一个更大的虚拟桌面比在我的上网本硬件上进行硬件加速所需的最大 2048 水平分辨率还要高。
因此,似乎我可以修改 xrandr 的默认设置,以便将新桌面放置在主 LVDS 显示器的上方或下方(北或南),然后进行硬件加速,因此 compiz 将继续工作。谁能告诉我,实现这一目标的最简单方法是什么?
更新:
我已经确认,当我将外部显示器显示器移到主 LVDS 显示器以北时,具有桌面效果和硬件加速的多头支持有效。现在这涉及以下过程:插入外接显示器,启动显示器配置菜单,自动禁用桌面效果(并且我工作区上的所有窗口都移动到第一个工作区),重新定位外接显示器,以便它LVDS 显示的北边并单击应用,然后导航到外观菜单并告诉它重新启用桌面效果。有没有更简单的方法来做到这一点?
更新 2:
好的,所以我想也许 GNOME Monitors 配置屏幕正在尝试变得聪明,并且可能会禁用桌面效果。所以,我只是尝试使用 xrandr 命令行客户端,如下所示:
xrandr --output VGA1 --above LVDS1
Run Code Online (Sandbox Code Playgroud)
当我这样做时,桌面效果仍然被禁用,我需要手动重新启用它们。这一点,尽管硬件加速有效,但绝不会因为虚拟显示器的水平尺寸太大而导致硬件加速停止工作。那么什么程序试图变得聪明,并且在不需要时关闭桌面效果?我该如何让它停止?
如果有一种方法可以从命令行重新启用桌面效果,然后我可以将其与正确的 xrandr 调用一起放入脚本中,我会接受它作为一种解决方法。
更新 3:
好的,这是我的脚本,用于启用具有桌面效果的第二台显示器。它可能是邪恶的,我不确定:
第二显示器.sh
xrandr --output VGA1 --above LVDS1
sleep 3
compiz --replace &
Run Code Online (Sandbox Code Playgroud)
sleep 语句可能不是必需的。
如果有更好的方法来做到这一点,请告诉我。
更新 4:
这是戴尔迷你 Inspiron 1012。
这是我的系统规格:
lspci -vv
00:02.0 VGA compatible controller: Intel …Run Code Online (Sandbox Code Playgroud) 我正在使用双显示器,其中一个旋转了 90 度。字体抗锯齿在旋转的显示器中看起来不正确(即,字符周围有彩虹边框)。
我相信这是因为 X 在两台显示器上使用相同的子像素渲染顺序。有没有办法为每个显示器配置不同的子像素渲染顺序?(即,监视器 1 = RGB,监视器 2 = vRGB)。
如何xrandr在启动时运行以下命令?
xrandr
cvt 1368 768
xrandr --newmode "1368x768_60.00" 85.25 1368 1440 1576 1784 768 771 781 798 -hsync +vsync
xrandr --addmode VGA1 1368x768_60.00
xrandr --output VGA1 --mode 1368x768_60.00
Run Code Online (Sandbox Code Playgroud) xrandr command-line display startup-applications display-resolution
我有一台分辨率为 1600x900 的 17" 笔记本电脑,但并排打开窗口还不够。我想知道我是否可以缩小(或任何其他解决方案)窗口(或整个桌面)。xserver 上有解决方案吗或在 WM 上实现这一目标?
顺便说一下,compiz zoom out 插件不允许您以超过 1:1 的比例缩小,这还不够,我想以与使用 unity-tweak-tool 扩展所有窗口相同的方式缩小更多。
尽管有相当多的用户拥有这些错误,但我还没有找到解决此类错误的单一方法。
所以我想尝试自己找到解决方案。但是,我不知道它们为什么会发生......
有没有人知道为什么?您不必说明为什么会出现每个错误,只要有一个就好了!
不匹配错误:
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 150 (RANDR)
Minor opcode of failed request: 18 (RRAddOutputMode)
Serial number of failed request: 18
Current serial number in output stream: 19
Run Code Online (Sandbox Code Playgroud)
错误名称错误:
Error of failed request: BadName (named color or font does not exist)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 11 (RRQueryOutputProperty)
Serial number of failed request: 39
Current serial number in output stream: …Run Code Online (Sandbox Code Playgroud) xrandr ×10
xorg ×3
command-line ×2
resolution ×2
12.04 ×1
antialiasing ×1
compiz ×1
debugging ×1
display ×1
f.lux ×1
gamma ×1
lightdm ×1
nvidia ×1
redshift ×1
scripts ×1
ubuntu-gnome ×1
unity ×1
window ×1