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
所以我尝试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:~$
在我得到这个工作后,我可以在启动时做一个脚本,但我找不到任何关于如何修复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'.
-
在上述情况下- "RandR ext. not found"-显示器必须重命名为"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 ]
注意:'HEAD-n'中的后缀'n'并不总是与您的nvidia驱动程序使用的后缀'n'相同(有时相反)。
我在我的Intuos2平板电脑上使用了这个变通方法,效果非常好。