public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: Stephen Hemminger <shemminger@vyatta.com>
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 16:11:50 -0500	[thread overview]
Message-ID: <4C534016.6040706@codemonkey.ws> (raw)
In-Reply-To: <20100730133916.769756ae@nehalam>

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.

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

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

> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>    


  reply	other threads:[~2010-07-30 21:11 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 [this message]
2010-07-30 21:35   ` Stephen Hemminger

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=4C534016.6040706@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=mtosatti@redhat.com \
    --cc=shemminger@vyatta.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