All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] Trouble with numlock and SDL
@ 2015-04-22 16:20 Erik Rull
  2015-04-23  7:32 ` Gerd Hoffmann
  0 siblings, 1 reply; 7+ messages in thread
From: Erik Rull @ 2015-04-22 16:20 UTC (permalink / raw)
  To: qemu-devel

Hi all,

I'm struggling a bit with the numlock state when using SDL.
On SDL 1.2.13 I have the problem that the numlock state is inverted for QEMU -
but it is switchable.
On SDL 1.2.14 and 1.2.15 I can't enable the number input in any state of the
numlock key.
With VNC everything is fine.

I read already that there were issues with these keys, and the
SDL_DISABLE_LOCK_KEYS=1 environment variable didn't really help.

Any help appreciated. I'm currently testing on the RC3.

Thanks.

Best regards,

Erik

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

* Re: [Qemu-devel] Trouble with numlock and SDL
  2015-04-22 16:20 [Qemu-devel] Trouble with numlock and SDL Erik Rull
@ 2015-04-23  7:32 ` Gerd Hoffmann
  2015-04-26 12:12   ` Erik Rull
  0 siblings, 1 reply; 7+ messages in thread
From: Gerd Hoffmann @ 2015-04-23  7:32 UTC (permalink / raw)
  To: Erik Rull; +Cc: qemu-devel

On Mi, 2015-04-22 at 18:20 +0200, Erik Rull wrote:
> Hi all,
> 
> I'm struggling a bit with the numlock state when using SDL.
> On SDL 1.2.13 I have the problem that the numlock state is inverted for QEMU -
> but it is switchable.

Move focus out of sdl window -- hit numlock once -- move focus back in.
Does that synchronize things?

Is this something new?  IIRC there have been no (intentional) changes in
that area recently.

> On SDL 1.2.14 and 1.2.15 I can't enable the number input in any state of the
> numlock key.

No idea on that one.  Sounds like SDL not sending numlock key events at
all.

> With VNC everything is fine.

Yep.  vnc has some special logic to sync guest/host numlock state (also
for capslock).  Maybe we should factor that out into reusable helper
functions.

cheers,
  Gerd

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

* Re: [Qemu-devel] Trouble with numlock and SDL
  2015-04-23  7:32 ` Gerd Hoffmann
@ 2015-04-26 12:12   ` Erik Rull
  2015-04-27 10:53     ` Erik Rull
  0 siblings, 1 reply; 7+ messages in thread
From: Erik Rull @ 2015-04-26 12:12 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: qemu-devel

Hi Gerd,

it seems to be a bug sitting in front of the computer :-)
I just recompiled the new SDL and didn't recompile QEMU against the new SDL 
- I recognized later that there are version dependent pieces of code in QEMU.

I will proceed my tests on this topic on other systems, I will send an 
update when the results are available.

Best regards,

Erik


Gerd Hoffmann wrote:
> On Mi, 2015-04-22 at 18:20 +0200, Erik Rull wrote:
>> Hi all,
>>
>> I'm struggling a bit with the numlock state when using SDL.
>> On SDL 1.2.13 I have the problem that the numlock state is inverted for QEMU -
>> but it is switchable.
>
> Move focus out of sdl window -- hit numlock once -- move focus back in.
> Does that synchronize things?
>
> Is this something new?  IIRC there have been no (intentional) changes in
> that area recently.
>
>> On SDL 1.2.14 and 1.2.15 I can't enable the number input in any state of the
>> numlock key.
>
> No idea on that one.  Sounds like SDL not sending numlock key events at
> all.
>
>> With VNC everything is fine.
>
> Yep.  vnc has some special logic to sync guest/host numlock state (also
> for capslock).  Maybe we should factor that out into reusable helper
> functions.
>
> cheers,
>    Gerd
>
>
>

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

* Re: [Qemu-devel] Trouble with numlock and SDL
  2015-04-26 12:12   ` Erik Rull
@ 2015-04-27 10:53     ` Erik Rull
  2015-04-27 11:13       ` Gerd Hoffmann
  0 siblings, 1 reply; 7+ messages in thread
From: Erik Rull @ 2015-04-27 10:53 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: qemu-devel

Hi Gerd,

well - it works "partly". When having the login screen to Windows, the numlock
key works as expected e.g. in the input field of the user name.
But after the login to Windows and opening Notepad, it's reversed again! :-(

Any ideas how to proceed?

Best regards,

Erik


> On April 26, 2015 at 2:12 PM Erik Rull <erik.rull@rdsoftware.de> wrote:
> 
> 
> Hi Gerd,
> 
> it seems to be a bug sitting in front of the computer :-)
> I just recompiled the new SDL and didn't recompile QEMU against the new SDL 
> - I recognized later that there are version dependent pieces of code in QEMU.
> 
> I will proceed my tests on this topic on other systems, I will send an 
> update when the results are available.
> 
> Best regards,
> 
> Erik
> 
> 
> Gerd Hoffmann wrote:
> > On Mi, 2015-04-22 at 18:20 +0200, Erik Rull wrote:
> >> Hi all,
> >>
> >> I'm struggling a bit with the numlock state when using SDL.
> >> On SDL 1.2.13 I have the problem that the numlock state is inverted for
> >> QEMU -
> >> but it is switchable.
> >
> > Move focus out of sdl window -- hit numlock once -- move focus back in.
> > Does that synchronize things?
> >
> > Is this something new?  IIRC there have been no (intentional) changes in
> > that area recently.
> >
> >> On SDL 1.2.14 and 1.2.15 I can't enable the number input in any state of
> >> the
> >> numlock key.
> >
> > No idea on that one.  Sounds like SDL not sending numlock key events at
> > all.
> >
> >> With VNC everything is fine.
> >
> > Yep.  vnc has some special logic to sync guest/host numlock state (also
> > for capslock).  Maybe we should factor that out into reusable helper
> > functions.
> >
> > cheers,
> >    Gerd
> >
> >
> >
> 
> 

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

* Re: [Qemu-devel] Trouble with numlock and SDL
  2015-04-27 10:53     ` Erik Rull
@ 2015-04-27 11:13       ` Gerd Hoffmann
  2015-10-19 16:02         ` Erik Rull
  0 siblings, 1 reply; 7+ messages in thread
From: Gerd Hoffmann @ 2015-04-27 11:13 UTC (permalink / raw)
  To: Erik Rull; +Cc: qemu-devel

On Mo, 2015-04-27 at 12:53 +0200, Erik Rull wrote:
> Hi Gerd,
> 
> well - it works "partly". When having the login screen to Windows, the numlock
> key works as expected e.g. in the input field of the user name.
> But after the login to Windows and opening Notepad, it's reversed again! :-(
> 
> Any ideas how to proceed?

> > > Yep.  vnc has some special logic to sync guest/host numlock state (also
> > > for capslock).  Maybe we should factor that out into reusable helper
> > > functions.

This ;)

cheers,
  Gerd

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

* Re: [Qemu-devel] Trouble with numlock and SDL
  2015-04-27 11:13       ` Gerd Hoffmann
@ 2015-10-19 16:02         ` Erik Rull
  2015-10-20  7:54           ` Gerd Hoffmann
  0 siblings, 1 reply; 7+ messages in thread
From: Erik Rull @ 2015-10-19 16:02 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: qemu-devel

Hi Gerd,

any ideas if there was an update or patch on this point? I tried to check
the commits since April but didn't find something that may fit...

Best regards,

Erik


Gerd Hoffmann wrote:
> On Mo, 2015-04-27 at 12:53 +0200, Erik Rull wrote:
>> Hi Gerd,
>>
>> well - it works "partly". When having the login screen to Windows, the numlock
>> key works as expected e.g. in the input field of the user name.
>> But after the login to Windows and opening Notepad, it's reversed again! :-(
>>
>> Any ideas how to proceed?
> 
>>>> Yep.  vnc has some special logic to sync guest/host numlock state (also
>>>> for capslock).  Maybe we should factor that out into reusable helper
>>>> functions.
> 
> This ;)
> 
> cheers,
>   Gerd

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

* Re: [Qemu-devel] Trouble with numlock and SDL
  2015-10-19 16:02         ` Erik Rull
@ 2015-10-20  7:54           ` Gerd Hoffmann
  0 siblings, 0 replies; 7+ messages in thread
From: Gerd Hoffmann @ 2015-10-20  7:54 UTC (permalink / raw)
  To: Erik Rull; +Cc: qemu-devel

On Mo, 2015-10-19 at 18:02 +0200, Erik Rull wrote:
> Hi Gerd,
> 
> any ideas if there was an update or patch on this point? I tried to check
> the commits since April but didn't find something that may fit...

Nobody coded this up so far ...

cheers,
  Gerd

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

end of thread, other threads:[~2015-10-20  7:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-22 16:20 [Qemu-devel] Trouble with numlock and SDL Erik Rull
2015-04-23  7:32 ` Gerd Hoffmann
2015-04-26 12:12   ` Erik Rull
2015-04-27 10:53     ` Erik Rull
2015-04-27 11:13       ` Gerd Hoffmann
2015-10-19 16:02         ` Erik Rull
2015-10-20  7:54           ` Gerd Hoffmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.