Resolve VNC and guest cursor are not consistence

本文介绍了解决QEMU虚拟机中鼠标被识别为平板设备的问题。通过在xorg.conf中设置特定配置,可以将鼠标重新定义为标准指针设备。具体步骤包括在配置文件中指定鼠标和手写板的驱动及设备路径。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

This is because qemu connects the mouse as an emulation of a tablet device. 
Try to use this in xorg.conf in the VM:

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
阅读(196) | 评论(0) | 转发(0) |
0

上一篇:gdb 高级技巧

下一篇:Ubuntu字符编码

给主人留下些什么吧!~~
评论热议
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值