From: "Daniel P. Berrangé" <berrange@redhat.com>
To: Phillip Susi <psusi@ubuntu.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Pipe key broken on US keyboards
Date: Fri, 17 Aug 2018 16:51:52 +0100 [thread overview]
Message-ID: <20180817155152.GV11124@redhat.com> (raw)
In-Reply-To: <6bf952d9-0269-c5df-6cac-70104ec88f81@ubuntu.com>
On Fri, Aug 17, 2018 at 11:16:29AM -0400, Phillip Susi wrote:
> On 8/17/2018 11:05 AM, Daniel P. Berrangé wrote:
> > Reading again, this is a bit odd. On most keyboards, holding down shift
> > key generally would NOT change the scan code that is reported (there are a
>
> Right; a real keyboard won't change the scan code, but it seems that
> European keyboards have this extra key that can also produce a |, so
> when qemu gets the key code for |, it has to pick one scan code or the
> other to translate the | into, and it picks the wrong one.
>
> Looking at the code it looks like qemu has its own qcode set and
> translates between that and all of these other sets. I'm guessing
> either input-keymap-linux-to-qcode.c or input-keymap-x11-to-qcode.c is
> where the error is, but these do not exist so I guess they must be auto
> generated somehow by the build process?
>
> Actually, which one of those code sets is vnc using?
Since you're using tightvnc on Windows, it won't be using the raw scancode
extension to RFB, so it'll be sending X keysyms across the wire eg
"|" has X11 keysym 0x7c (XK_bar)
"\" has X11 keysym 0x5c (XK_backslash)
First thing is the converting keysym number to a name, which
uses name2keysym[] data table. This gives 'bar' and 'backslash'
as names, respectively
The names are now looked up in the keymap (pc-bios/keymaps/en-us)
which says
backslash 0x2b
bar 0x2b shift
QEMU now has a Qcode that it can pass to the ps2 frontend
which converts to the AT set 1/2 scancode for injection to
the guest.
Any one of those many steps could be going wrong and its hard
to see which, without being able to reproduce it myself
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 :|
next prev parent reply other threads:[~2018-08-17 15:52 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-16 17:11 [Qemu-devel] Pipe key broken on US keyboards Phillip Susi
2018-08-16 17:27 ` Daniel P. Berrangé
2018-08-16 19:44 ` Phillip Susi
2018-08-17 8:56 ` Daniel P. Berrangé
2018-08-17 12:44 ` Phillip Susi
2018-08-17 12:58 ` Daniel P. Berrangé
2018-08-17 13:10 ` Phillip Susi
2018-08-17 13:12 ` Daniel P. Berrangé
2018-08-17 13:23 ` Phillip Susi
2018-08-17 14:36 ` Phillip Susi
2018-08-17 14:44 ` Daniel P. Berrangé
2018-08-17 14:55 ` Phillip Susi
2018-08-17 15:06 ` Daniel P. Berrangé
2018-08-17 12:56 ` Daniel P. Berrangé
2018-08-17 15:05 ` Daniel P. Berrangé
2018-08-17 15:16 ` Phillip Susi
2018-08-17 15:51 ` Daniel P. Berrangé [this message]
2018-08-21 19:35 ` Phillip Susi
2018-08-20 8:43 ` Gerd Hoffmann
2018-08-20 14:23 ` Phillip Susi
2018-08-20 15:07 ` Christian Ehrhardt
2018-08-20 19:51 ` Phillip Susi
2018-08-20 20:04 ` Christian Ehrhardt
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=20180817155152.GV11124@redhat.com \
--to=berrange@redhat.com \
--cc=psusi@ubuntu.com \
--cc=qemu-devel@nongnu.org \
/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 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.