本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
启用触摸屏和触控笔支持
所有受支持的 Windows 操作系统都支持触摸屏。仅 Windows 10 和 Windows Server 2019 支持触控笔。默认情况下,Windows NICE DCV 服务器上已启用这些功能。无需其他配置。
所有受支持的 Linux 操作系统都支持触摸屏和触控笔。默认情况下,已在 Linux NICE DCV 服务器上托管的虚拟会话上启用这些功能。但是,需要一些额外配置才能在 Linux 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、Amazon Linux 2、Ubuntu 18.x 和 SUSE Linux Enterprise 12.x
$
sudo systemctl isolate multi-user.target$
sudo systemctl isolate graphical.target -
RHEL 6.x 和 CentOs 6.x
$
sudo init 3$
sudo init 5
-
-
要确保正确配置输入设备,请运行以下命令。
$
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)]