鼠标和键盘在QEMU仿真器中不起作用 [英] Mouse and Keyboard not working in qemu emulator

查看:1833
本文介绍了鼠标和键盘在QEMU仿真器中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用以下命令在Ubuntu笔记本电脑上的qemu中运行Yocto Image.

I am trying to run Yocto Image in qemu on my Ubuntu laptop with the following command.

qemu-system-arm -M overo -m 256 -sd ./test.img -clock unix -serial stdio -device usb-mouse -device usb-kbd

Qemu可以正常工作,并且映像启动时非常干净,但是我无法使用键盘和鼠标.在任何按键上我都会收到此警告.

Qemu works fine and the image is booted pretty clean, but I am unable to use my keyboard and Mouse. On any key press I get this warning.

usb-kbd: warning: key event queue full

此无响应的键盘有任何解决方法吗?

Any workaround for this unresponsive keyboard?

推荐答案

问题是,我需要为USB Pass-Through指定USB总线号和设备号. 通过此命令lsusb获取USB的列表,它将列出它们如下:

The problem was, I need to specify USB bus number with device number for USB Pass-Through. Get the list of USB's by this command lsusb and it will list them as following:

我的键盘总线号是002,地址是001.因此,请根据设备号和地址更改命令.因此,我的命令如下:

My keyboard bus number is 002 and address is 001. So, change the command based on the device number and address. So, my command will be as follows:

qemu-system-arm -M overo -m 256 -sd ./test.img -clock unix -serial stdio -usb -device usb-host,hostbus=2,hostaddr=1

您需要根据设备编号和地址添加此行-usb -device usb-host,hostbus=2,hostaddr=1.要使光标指针正常工作,请按指定的方式添加-show-cursor这里

You need to add this line -usb -device usb-host,hostbus=2,hostaddr=1 based on the device number and address. To get cursor pointer working add -show-cursor as specified by here

这篇关于鼠标和键盘在QEMU仿真器中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆