Clo*_*loz 5 linux ubuntu xrandr tablet
Xrandr 显示两个监视器。我想使用 xsetwacom 将所有设备移至 HDMI-0,但是底部的 xsetwacom 命令无法识别 HDMI-0
输出:
cloz@CLOZ-ELITE:~$ xrandr
Screen 0: minimum 8 x 8, current 3840 x 1080, maximum 32767 x 32767
DVI-D-0 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 477mm x 268mm
1920x1080 60.00*+
1680x1050 59.95
1280x1024 75.02 60.02
1152x864 75.00
1024x768 75.03 60.00
800x600 75.00 60.32
640x480 75.00 59.94
HDMI-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 530mm x 300mm
1920x1080 60.00 + 74.99* 59.94 50.00 60.00 50.04
1680x1050 59.95
1600x900 60.00
1440x900 59.89
1366x768 59.79
1280x1024 75.02 60.02
1280x960 60.00
1280x768 59.87
1280x720 60.00 59.94 50.00
1152x864 75.00
1024x768 75.03 60.00
800x600 75.00 60.32
720x576 50.00
720x480 59.94
640x480 75.00 59.94 59.93
Run Code Online (Sandbox Code Playgroud)
所以我尝试将 xsetwacom 转为 HDMI-0
cloz@CLOZ-ELITE:~$ xsetwacom --set 'HUION Huion Tablet Pad pad' MapToOutput HDMI-0
Unable to find an output 'HDMI-0'.
cloz@CLOZ-ELITE:~$
Run Code Online (Sandbox Code Playgroud)
让它工作后,我可以编写一个脚本在启动时执行此操作,但我找不到任何有关如何修复 xsetwacom 或 xrandr 以正确识别 HDMI-0 的资源
您的情况可能与使用 nvidia 驱动程序时出现的旧错误有关
xsetwacom '-v' 选项将输出更多详细信息(前缀为 '...'),例如:
$ xsetwacom -v --set "Some Device Name" "MapToOutput" "DP-1"
... RandR extension not found, too old, or NV-CONTROL extension is also present.
Unable to find an output 'DP-1'.
Run Code Online (Sandbox Code Playgroud)
在上述情况下 - “未找到 RandR ext.” - 您的显示器必须重命名为“HEAD-n”,其中 n 是显示器编号,例如:
$ xsetwacom -v --set "Some Device Name" "MapToOutput" "HEAD-1"
... Setting xinerama head 1
... Remapping to output area 1920x1080 @ 1920,0.
... Transformation matrix:
... [ 0.500000 0.000000 0.500000 ]
... [ 0.000000 1.000000 0.000000 ]
... [ 0.000000 0.000000 1.000000 ]
Run Code Online (Sandbox Code Playgroud)
注意:“HEAD-n”中的后缀“n”并不总是与您的 nvidia 驱动程序使用的后缀相同(有时是相反的)。
我在我的 Intuos2 平板电脑上使用了这个解决方法,效果非常好。