Skip to contentSkip to conversation

07333e1ca (kbd-state: use state tracker for sdl2) breaks keyboard input

Qemu-devel BALATON Zoltan 2 participants 3 messages Feb 6, 2019

lore
Share & tools
lore
#0 lore raw

Hello,

The commit 07333e1ca breaks keyboard input in bios console with SDL2 UI. To reproduce: start qemu-system-i386 without any options, press Ctrl-B when prompted to get an IPXE command line and type. Key presses are doubled.

(Besides this the output window mixup when something is output to serial window I've reported earlier is still present. I'd appreciate if these could be fixed now that the working SDL1 alternative was completely removed.)

Thank you,
BALATON Zoltan

#1 lore raw
Quoted 5 lines · BALATON Zoltan

Hello,

The commit 07333e1ca breaks keyboard input in bios console with SDL2 UI. To
reproduce: start qemu-system-i386 without any options, press Ctrl-B when prompted to get an IPXE command line and type. Key presses are doubled.

This isn't related to the IPXE BIOS - it is broken in general in fact.

Enabling tracing shows that all the input events are doubled up all the time, before we even get into IPXE BIOS

$ ./x86_64-softmmu/qemu-system-x86_64  -display sdl -d trace:input*
[email protected]:input_event_key_qcode con 0, key qcode f, down 1
[email protected]:input_event_sync 
[email protected]:input_event_key_qcode con 0, key qcode f, down 1
[email protected]:input_event_sync 
[email protected]:input_event_key_qcode con 0, key qcode f, down 0
[email protected]:input_event_sync 
[email protected]:input_event_key_qcode con 0, key qcode f, down 0
[email protected]:input_event_sync 
[email protected]:input_event_key_qcode con 0, key qcode f, down 1
[email protected]:input_event_sync 
[email protected]:input_event_key_qcode con 0, key qcode f, down 1
[email protected]:input_event_sync 
[email protected]:input_event_key_qcode con 0, key qcode f, down 0
[email protected]:input_event_sync 
[email protected]:input_event_key_qcode con 0, key qcode f, down 0
Quoted 3 lines

(Besides this the output window mixup when something is output to serial window I've reported earlier is still present. I'd appreciate if these could be fixed now that the working SDL1 alternative was completely removed.)

AFAIR, we determined there was something related to the nvidia binary only drivers that was breaking this and needed to know if using nouveau drivers would fix it.

Regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
#2 lore raw
Quoted 8 lines · Daniel P. Berrangé
Quoted 5 lines · BALATON Zoltan

Hello,

The commit 07333e1ca breaks keyboard input in bios console with SDL2 UI. To
reproduce: start qemu-system-i386 without any options, press Ctrl-B when prompted to get an IPXE command line and type. Key presses are doubled.

This isn't related to the IPXE BIOS - it is broken in general in fact.

Yes I probably did not make it clear but the IPXE prompt was just an easy way to reproduce and show it. In fact I've found this with other guest and I meant to report the general problem. Sorry if this caused confusion.

Quoted 7 lines
Quoted 3 lines

(Besides this the output window mixup when something is output to serial window I've reported earlier is still present. I'd appreciate if these could be fixed now that the working SDL1 alternative was completely removed.)

AFAIR, we determined there was something related to the nvidia binary only drivers that was breaking this and needed to know if using nouveau drivers would fix it.

I'm not sure. All I know that both me and Howard who had the same issue were seeing it with nvidia binary driver but not sure if it was reproduced with other drivers. I've first reported this almost a year ago in last March and the last time we discused it again we've found it could also be reproduced with pc and mac99 emulation:

http://lists.nongnu.org/archive/html/qemu-devel/2018-12/msg05112.html

Can you try this sith SDL2 UI and confirm you don't see a problem:

1. start qemu-system-i386 -M graphics=off -S
2. Press Ctrl-Alt-2 to open console window
3. Press Ctrl-Alt-3 to open serial window
4. type continue in console window to start guest and wait until output appears in serial window
5. now close serial window and then try to open it with Ctrl-Alt-3 again, for me an empty window is opening at this point
6. type in the console window, the content that should be in serial window flashes in the console window on every keypress here

In case that's relevant I'm using Window Maker window manager and also see that app icon is not displayed correctly and stays around after QEMU is closed. This is usually a sign of not correctly setting X window class and/or window group leader hints. This wasn't a problem with SDL1 UI. The sdl2 version that comes with my distro is 2.0.9 in case that matters.

Regards,
BALATON Zoltan