[qemu] VNC鼠标不同步

本文介绍了如何解决QEMU VNC远程控制中鼠标指针与客户端不同步的问题。通过使用新参数-machineusb=on-deviceusb-tablet替代已弃用的-usbdevicetablet参数,实现鼠标绝对坐标定位。

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

启用qemu的VNC远程控制之后,默认鼠标指针总是跟客户端指针运动不同步,网上教的是加上-usbdevice tablet参数即可搞定,但此参数在新版qemu使用时被警告已被弃用,看了文档https://qemu.weilnetz.de/doc/qemu-doc.html#g_t_002dusbdevice-_0028since-2_002e10_002e0_0029,新的参数应该是

-machine usb=on -device usb-tablet,文档中的原文解释是:

B.2.15 -usbdevice (since 2.10.0)

The “-usbdevice DEV” argument is now a synonym for setting the “-device usb-DEV” argument instead. The deprecated syntax would automatically enable USB support on the machine type. If using the new syntax, USB support must be explicitly enabled via the “-machine usb=on” argument.

其中“-machine usb=on” 用于开启USB总线,

“-device usb-tablet”用于指定鼠标使用绝对坐标,原文是:

Pointer device that uses absolute coordinates (like a touchscreen). This means QEMU is able to report the mouse position without having to grab the mouse. Also overrides the PS/2 mouse emulation when activated.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值