Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard input stops working after moving the mouse #52

Open
copy opened this issue Dec 8, 2023 · 1 comment
Open

Keyboard input stops working after moving the mouse #52

copy opened this issue Dec 8, 2023 · 1 comment

Comments

@copy
Copy link

copy commented Dec 8, 2023

Reproduced as follows:

./translate shell/*.mu
qemu-system-i386 code.img -m 256 -snapshot -display gtk,zoom-to-fit=on

Initially the keyboard works. After clicking on the screen to lock the mouse and moving it, keyboard input stops working.

I've narrowed it down (while debugging another issue in v86): Mu turns off the mouse interrupts, but doesn't poll from the IO port. When a mouse event happens, the PS/2 controller sets the output buffer status bit, which prevents further interrupts (including keyboard) until port 60h is read.

@akkartik
Copy link
Owner

akkartik commented Dec 8, 2023

Thanks so much for the report! I noticed this issue 2 months ago but had no idea where to look for it. So I really appreciate the insight.

(It seems I had somehow been playing with Qemu for a year in 2021 without ever tapping the mouse?! Either that or something changed in Qemu between then and now..)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants