本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
启用触摸屏和触控笔支持
-
Windows 服务器支持
所有支持的 Windows 操作系统都支持触摸屏。从 Windows 10 和 Windows 2019 开始,所有支持的 Windows 操作系统都支持手写笔,Windows 2016、Windows 8.1 及更早版本不支持手写笔。默认情况下,这些功能在 Windows NICE DCV 服务器上处于启用状态。无需其他配置。
-
Linux 服务器支持
所有支持的 Linux 操作系统都支持触摸屏和触控笔。默认情况下,已在 Linux NICE DCV 服务器上托管的虚拟会话上启用这些功能。但是,需要一些额外配置才能在 Linux NICE DCV 服务器上托管的控制台会话上启用这些功能。
如果客户端和服务器均支持触摸屏和触控笔并在服务器上启用 NICE DCV,则该功能已启用。有关客户端支持的信息,请参阅 NICE DCV 用户指南中的客户端功能。
为 Linux NICE DCV 服务器上托管的控制台会话启用触摸屏和触控笔支持
-
使用所需的文本编辑器打开
/etc/X11/xorg.conf
。 -
将以下部分添加到此文件中。
Section "InputDevice" Identifier "DCV Stylus Pen" Driver "dcvinput" EndSection Section "InputDevice" Identifier "DCV Stylus Eraser" Driver "dcvinput" EndSection Section "InputDevice" Identifier "DCV Touchscreen" Driver "dcvinput" EndSection
-
将以下内容添加到
ServerLayout
部分的末尾。InputDevice "DCV Stylus Pen" InputDevice "DCV Stylus Eraser" InputDevice "DCV Touchscreen"
例如:
Section "ServerLayout"
...existing content...
InputDevice "DCV Stylus Pen" InputDevice "DCV Stylus Eraser" InputDevice "DCV Touchscreen" EndSection -
保存更改并关闭该文件。
-
重新启动 X 服务器。
-
RHEL 7.x/8.x、CentOS 7.x/8.x、亚马逊 Linux 2、Ubuntu 18.x 和 SUSE Linux Enterprise 12.x
$
sudo systemctl isolate multi-user.target$
sudo systemctl isolate graphical.target
-
-
要确保正确配置输入设备,请运行以下命令。
$
sudo DISPLAY=:0 xinputDCV 触控笔、DCV 触控笔橡皮擦和 DCV 触摸屏出现在命令输出中。下面是示例输出。
| Virtual core pointer id=2 [master pointer (3)] | | Virtual core XTEST pointer id=4 [slave pointer (2)] | | dummy_mouse id=6 [slave pointer (2)] | | dummy_keyboard id=7 [slave pointer (2)] | | DCV Stylus Pen id=8 [slave pointer (2)] | | DCV Stylus Eraser id=9 [slave pointer (2)] | | DCV Touchscreen id=10 [slave pointer (2)] | Virtual core keyboard id=3 [master keyboard (2)] | Virtual core XTEST keyboard id=5 [slave keyboard (3)]
配置触控笔压力范围
有些应用程序要求您将测针压力范围减小到 0 到 2048 之间。您可以通过在/etc/X11/xorg.conf
文件中将Pressure2k
选项设置为 true 来配置压力范围。
配置触控笔压力
-
使用所需的文本编辑器打开
/etc/X11/xorg.conf
。 -
将以下部分添加到此文件中。
Section "InputDevice" Identifier "DCV Stylus Pen" Driver "dcvinput" Option "Pressure2K" "true" EndSection Section "InputDevice" Identifier "DCV Stylus Eraser" Driver "dcvinput" Option "Pressure2K" "true" EndSection
-
保存更改并关闭该文件。
-
重新启动 X 服务器。