From: Stephen Hemminger <shemminger@vyatta.com>
To: Anthony Liguori <anthony@codemonkey.ws>
Cc: Avi Kivity <avi@redhat.com>,
Marcelo Tosatti <mtosatti@redhat.com>,
kvm@vger.kernel.org
Subject: Re: Why does virtmanager (VNC) console get stuck in caps lock mode?
Date: Fri, 30 Jul 2010 14:35:22 -0700 [thread overview]
Message-ID: <20100730143522.5167832b@nehalam> (raw)
In-Reply-To: <4C534016.6040706@codemonkey.ws>
On Fri, 30 Jul 2010 16:11:50 -0500
Anthony Liguori <anthony@codemonkey.ws> wrote:
> On 07/30/2010 03:39 PM, Stephen Hemminger wrote:
> > As an emacs user, I remap caps-lock to CTRL key in normal usage.
> > But often in KVM console VNC window, it gets stuck in caps lock mode.
> >
>
> Try passing no-lock-key-sync to the -vnc option. If you're using
> virt-manger, that may be challenging without hacking libvirt.
>
> But you could also try using qemu directly and then using gvncviewer.
And I could go back to telnet as well...
> > This appears to be a new mis-feature, since it never used to get stuck
> > before (not sure whether is kernel, virt-manager or QEMU).
> >
> > Any clues?
> >
>
> There's a few possibilities. The first is that you don't have the
> guest's keymap setup to treat caps lock as ctrl. I imagine you do though.
Already done (via Gnome preferences)
> The second, more likely, possibility is that our caps lock detection
> heuristics are being defeated because you're remapping the key.
>
> The above option disables our heuristics. If that "fixes" the problem
> then we probably need to add some bits to further handle it. The real
> source of the problem is that we can receive key down events but if
> focus moves we won't receive the key up. That can create subtle
> problems where you're pressing control and release it after switching
> windows. The effect is the guest sees control as being stuck.
>
> We do our best to work out this situation but it's not necessarily perfect.
>
> Regards,
>
> Anthony Liguori
Ideally you could read keymap and respond accordingly, but that maybe
too hard.
--
prev parent reply other threads:[~2010-07-30 21:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-30 20:39 Why does virtmanager (VNC) console get stuck in caps lock mode? Stephen Hemminger
2010-07-30 21:11 ` Anthony Liguori
2010-07-30 21:35 ` Stephen Hemminger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100730143522.5167832b@nehalam \
--to=shemminger@vyatta.com \
--cc=anthony@codemonkey.ws \
--cc=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox