为什么 xrandr 不允许我缩放显示屏?

为什么 xrandr 不允许我缩放显示屏?

我正在尝试扩展我的外接显示器,以允许我的 4k/1080p 设置运行并且实际可见的东西,但却xrandr拒绝让我做任何事情:

我的命令xrandr --output HDMI-1-1 --auto --scale 2x2输出以下内容:

X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  26 (RRSetCrtcTransform)
  Value in failed request:  0x40
  Serial number of failed request:  38
  Current serial number in output stream:  39

执行后,我的屏幕闪黑片刻,但又恢复原样,这表明设置根本没有被应用。

我的系统配备了 NVIDIA Optimus,目前正在使用 Prime 运行所有内容,如prime-select query返回所示nvidia

如果我在笔记本电脑的内置显示器上运行此命令,缩放功能可以正常工作,但仍会抛出错误。出于某种原因,它只会在我的外接显示器上完全被忽略。

至于为什么我不只是缩放我的另一台显示器,它造成烦恼我目前还没有可行的解决方案。

发生了什么事?更重要的是,我该如何解决这个问题?


输出xrandr --listmonitors

Monitors: 2
0: +*eDP-1-1 3840/346x2160/194+0+0  eDP-1-1
1: +HDMI-1-1 1920/518x1200/324+3840+0  HDMI-1-1

输出xrandr -q

Screen 0: minimum 8 x 8, current 7680 x 2400, maximum 16384 x 16384
eDP-1-1 connected primary 3840x2160+0+0 346mm x 194mm
   3840x2160     60.00*+
   2048x1536     60.00  
   1920x1440     60.00  
   1856x1392     60.01  
   1792x1344     60.01  
   1920x1200     59.95  
   1920x1080     59.93  
   1600x1200     60.00  
   1680x1050     59.95    59.88  
   1600x1024     60.17  
   1400x1050     59.98  
   1280x1024     60.02  
   1440x900      59.89  
   1280x960      60.00  
   1360x768      59.80    59.96  
   1152x864      60.00  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   960x600       60.00  
   960x540       59.99  
   800x600       60.00    60.32    56.25  
   840x525       60.01    59.88  
   800x512       60.17  
   700x525       59.98  
   640x512       60.02  
   720x450       59.89  
   640x480       60.00    59.94  
   680x384       59.80    59.96  
   576x432       60.06  
   512x384       60.00  
   400x300       60.32    56.34  
   320x240       60.05  
DP-1-1 disconnected
HDMI-1-1 connected 1920x1200+3840+0 518mm x 324mm
   1920x1200     59.95*+
   1600x1200     60.00  
   1280x1024     75.02    60.02  
   1152x864      75.00  
   1024x768      75.08    60.00  
   800x600       75.00    60.32  
   640x480       75.00    60.00  
   720x400       70.08  
DP-1-2 disconnected
HDMI-1-2 disconnected

输出lspci | grep -E "VGA|3D"

00:02.0 VGA compatible controller: Intel Corporation Skylake Integrated Graphics (rev 06)
01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 960M] (rev a2)

相关内容