xrandr 设置新的虚拟监视器:X 请求失败的错误

xrandr 设置新的虚拟监视器:X 请求失败的错误

我正在尝试设置一个新的虚拟监视器,xrandr但出现以下错误:

$xrandr --setmonitor VIRTUAL1 1366/256x768/144+0+1080 none

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:  43 ()
  Value in failed request:  0x203
  Serial number of failed request:  38
  Current serial number in output stream:  39

用视觉解释问题,因为我可能误解了某个观点


$xrandr
Screen 0: minimum 320 x 200, current 3200 x 2160, maximum 8192 x 8192
eDP-1 connected primary 1920x1080+0+1080 (normal left inverted right x axis y axis) 294mm x 165mm
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected 1280x800+1920+1080 (normal left inverted right x axis y axis) 0mm x 0mm
HDMI-2 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 531mm x 299mm

  +------------+----------+-------------------------+ ----> Screen 0
  |            |          |                         |
  |  HDMI-2    | eDP-1    |                         |
  |------------+-------+--+                         |
  |            |       |                            |    DP-1 (unallocated)
  |            | HDMI-1|                            |
  |            +-------+                            |
  |                                                 |
  |                                                 |
  |                                                 |
  |               SPACE AVAILABLE                   |
  |                                                 |
  |                                                 |
  |                                                 |
  |                                                 |
  |                                                 |
  |                                                 |
  +-------------------------------------------------+

I wanna create a new virtual monitor below HDMI-2

                 +------------+----------+-------------------------+
                 |            |          |                         |
                 |            |          |                         |
        +--------X-------+----+-------+--+                         |
        |        | HERE  |    |       |                            |
     offset      |-------+    |       |                            |
    coordinates  |            +-------+                            |
    in px        |                                                 |
                 |                                                 |
                 |                                                 |
                 |                                                 |
                 |                                                 |
                 |                                                 |
                 |                                                 |
                 |                                                 |
                 |                                                 |
                 |                                                 |
                 +-------------------------------------------------+

我做错了什么?屏幕 0 仍然有很多可用空间,理论上我应该能够在其上设置一个新显示器。

答案1

您需要写入 eDP-1 而不是屏幕 0。

相关内容