6.15.2.2. 配置虚拟机的表和鼠标以使用 SPICE
编辑
/etc/X11/xorg.conf 文件,为您的虚拟机的平板电脑设备启用 SPICE。
过程 6.38. 配置虚拟机的表和鼠标以使用 SPICE
- 验证 tablet 设备是否在您的客户机中可用:如果没有命令的输出,请不要继续配置平板电脑。
# /sbin/lsusb -v | grep 'QEMU USB Tablet' - 备份
/etc/X11/xorg.conf:# cp /etc/X11/xorg.conf /etc/X11/xorg.conf.$$.backup - 对
/etc/X11/xorg.conf进行以下更改:Section "ServerLayout" Identifier "single head configuration" Screen 0 "Screen0" 0 0 InputDevice "Keyboard0" "CoreKeyboard" InputDevice "Tablet" "SendCoreEvents" InputDevice "Mouse" "CorePointer" EndSection Section "InputDevice" Identifier "Mouse" Driver "void" #Option "Device" "/dev/input/mice" #Option "Emulate3Buttons" "yes" EndSection Section "InputDevice" Identifier "Tablet" Driver "evdev" Option "Device" "/dev/input/event2" Option "CorePointer" "true" EndSection - 注销,再重新登录虚拟机以重新启动 X-Windows。