All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniel P. Berrange" <berrange@redhat.com>
To: Daniel Espling <setomidor@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] unknown keycodes
Date: Thu, 12 Jan 2012 10:41:56 +0000	[thread overview]
Message-ID: <20120112104156.GF19342@redhat.com> (raw)
In-Reply-To: <B8AE7B4F-D137-4888-9B92-6734EB06BFD7@gmail.com>

On Thu, Jan 12, 2012 at 09:56:46AM +0100, Daniel Espling wrote:
> Hi!
> 
> getting the following message:
> 
> unknown keycodes `empty_aliases(qwerty)', please report to qemu-devel@nongnu.org
> 
> I'm connecting to a ubuntu 10.04 server running qemu 1.0.50 forwarding X11.
> Locally I'm on a Macbook pro with Swedish keyboard layout. When I run qemu my
> keyboard is totally messed up (Enter becomes j, j becomes 7 etc.). Running
> with -k en-us works but restricts me to english characters (swedish characters
> generates keysym errors, which is expected)

Unfortunately, the SDL code as written pretty much only copes with an XFree86
server running on a Linux host. Running any kind of X server on OS-X or
Windows and forwarding to an app running Linux will result in fubar keyboard
mappings as you see.

The problem is that keymapping code assumes that it is getting either a'xt'
or 'evdev' based keycodes from the X server. On OS-X you instead get a
variant on Mac OS keycodes which are completely different.

I've solved this problem in GTK-VNC by adding checks for the OS-X and Win32
X servers:

  http://git.gnome.org/browse/gtk-vnc/tree/src/vncdisplaykeymap.c

Can you provide the output of  'xdpyinfo' and 'xprop -root | grep XKB'
just so I can confirm my code will work. If so, I'll port the GTK-VNC
code to QEMU's  SDL display to fix this.

Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

  reply	other threads:[~2012-01-12 10:42 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-12  8:56 [Qemu-devel] unknown keycodes Daniel Espling
2012-01-12 10:41 ` Daniel P. Berrange [this message]
2012-01-16  7:04   ` Daniel Espling
2012-01-16 11:34     ` Daniel P. Berrange
2013-05-07 21:02       ` Ali
  -- strict thread matches above, loose matches on Subject: below --
2018-04-21  9:27 Mike R
2018-04-23  3:31 ` Thomas Huth
2018-04-23  9:10   ` Peter Maydell
2018-04-23  9:42     ` Daniel P. Berrangé
2018-04-23  9:44   ` Daniel P. Berrangé
2015-04-16  9:44 Daniel Moyle
2011-01-19  1:22 Henry Grebler
2011-01-19  1:45 ` Anthony Liguori
2009-06-21  8:56 [Qemu-devel] Unknown keycodes annonygmouse
2009-06-22 19:30 ` Anthony Liguori
2009-06-22 19:58   ` Andreas Färber

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=20120112104156.GF19342@redhat.com \
    --to=berrange@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=setomidor@gmail.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 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.