qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] 07333e1ca (kbd-state: use state tracker for sdl2) breaks keyboard input
@ 2019-02-06 16:41 BALATON Zoltan
  2019-02-06 17:31 ` Daniel P. Berrangé
  0 siblings, 1 reply; 3+ messages in thread
From: BALATON Zoltan @ 2019-02-06 16:41 UTC (permalink / raw)
  To: qemu-devel; +Cc: Gerd Hoffmann, Daniel P. Berrangé

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] 07333e1ca (kbd-state: use state tracker for sdl2) breaks keyboard input
  2019-02-06 16:41 [Qemu-devel] 07333e1ca (kbd-state: use state tracker for sdl2) breaks keyboard input BALATON Zoltan
@ 2019-02-06 17:31 ` Daniel P. Berrangé
  2019-02-06 18:15   ` BALATON Zoltan
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel P. Berrangé @ 2019-02-06 17:31 UTC (permalink / raw)
  To: BALATON Zoltan; +Cc: qemu-devel, Gerd Hoffmann

On Wed, Feb 06, 2019 at 05:41:22PM +0100, BALATON Zoltan wrote:
> 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*
17197@1549474207.037592:input_event_key_qcode con 0, key qcode f, down 1
17197@1549474207.037662:input_event_sync 
17197@1549474207.037680:input_event_key_qcode con 0, key qcode f, down 1
17197@1549474207.037706:input_event_sync 
17197@1549474207.145514:input_event_key_qcode con 0, key qcode f, down 0
17197@1549474207.145542:input_event_sync 
17197@1549474207.145548:input_event_key_qcode con 0, key qcode f, down 0
17197@1549474207.145552:input_event_sync 
17197@1549474208.477246:input_event_key_qcode con 0, key qcode f, down 1
17197@1549474208.477294:input_event_sync 
17197@1549474208.477299:input_event_key_qcode con 0, key qcode f, down 1
17197@1549474208.477301:input_event_sync 
17197@1549474208.547471:input_event_key_qcode con 0, key qcode f, down 0
17197@1549474208.547503:input_event_sync 
17197@1549474208.547509:input_event_key_qcode con 0, key qcode f, down 0


> (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
-- 
|: 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 :|

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] 07333e1ca (kbd-state: use state tracker for sdl2) breaks keyboard input
  2019-02-06 17:31 ` Daniel P. Berrangé
@ 2019-02-06 18:15   ` BALATON Zoltan
  0 siblings, 0 replies; 3+ messages in thread
From: BALATON Zoltan @ 2019-02-06 18:15 UTC (permalink / raw)
  To: Daniel P. Berrangé; +Cc: qemu-devel, Gerd Hoffmann

On Wed, 6 Feb 2019, Daniel P. Berrangé wrote:
> On Wed, Feb 06, 2019 at 05:41:22PM +0100, BALATON Zoltan wrote:
>> 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.

>> (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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-02-06 18:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-06 16:41 [Qemu-devel] 07333e1ca (kbd-state: use state tracker for sdl2) breaks keyboard input BALATON Zoltan
2019-02-06 17:31 ` Daniel P. Berrangé
2019-02-06 18:15   ` BALATON Zoltan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).