[Spice-devel] [PATCH spice-gtk 0/2] Allow to disable syncing modifiers

Pavel Grunt pgrunt at redhat.com
Tue May 3 20:56:41 UTC 2016


On Tue, 2016-05-03 at 14:56 -0400, Marc-André Lureau wrote:
> Hi
> 
> ----- Original Message -----
> > Hi Marc-André,
> > 
> > On Tue, 2016-05-03 at 20:15 +0200, Marc-André Lureau wrote:
> > > Hi
> > > 
> > > On Tue, May 3, 2016 at 3:41 PM, Pavel Grunt <pgrunt at redhat.com> wrote:
> > > > This patches introduces and uses a spice-gtk-session property
> > > > for disabling automatic modifiers sync. It can be useful in cases
> > > > where syncing currently fails - eg not working leds on the guest side,
> > > > missmatch between client's and guest's keyboard layout.
> > > 
> > > Is this a guest configuration issue?
> > 
> > It is a server/client/guest issue.
> > 
> > Guest issue:
> > Checking the led state for modifiers does not always work (it doesn't work
> > in
> > vte in RHEL7) -> causes server to send "requests to sync modifiers" ->
> > capslock is on for few seconds, then is off, then is on...
> 
> That's a guest bug then, is there a bug for it?
https://bugzilla.redhat.com/show_bug.cgi?id=1256895

but you can google for "caps lock led not working" and it gives more bugs

> 
> > Server:
> > Server sends the "hw value" of the capslock key to the guest, but for
> > example
> > Japanese layout has "shift+capslock" to turn on capslock. So the server
> > should send "shift + capslock" instead.
> 
> ok, that sound like a server bug for japanese keyboard
yeah, server will need some way to sync (ie get info about the keycombo) with
the guest (guest can change layout, remap capslock...)
> 
> > Client:
> > It just keeps syncing, it is not great if everything works ok. But maybe
> > would be reasonable to stop trying to sync when it does not work.
> 
> You mean "it is great", right? ;)
Yes, sorry

Pavel

> 
> > I plan to implement some solution involving the agent (gdk can tell us the
> > state of capslock, keycombo for its activation etc). But for some users may
> > be reasonable to just disable syncing.
> > 
> > >  How are you going to expose this
> > > property to the user? It would look bad to add some weird tweaks like
> > > that to the UI.
> > > 
> > I added the checkbox to spicy just to test it. We have more options - a
> > configuration file, the settings file...
> > 
> > Pavel
> > 
> > 
> > _______________________________________________
> > Spice-devel mailing list
> > Spice-devel at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/spice-devel
> > 


More information about the Spice-devel mailing list