qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Pipe key broken on US keyboards


From: Daniel P . Berrangé
Subject: Re: [Qemu-devel] Pipe key broken on US keyboards
Date: Fri, 17 Aug 2018 16:06:49 +0100
User-agent: Mutt/1.10.1 (2018-07-13)

On Fri, Aug 17, 2018 at 03:44:21PM +0100, Daniel P. Berrangé wrote:
> On Fri, Aug 17, 2018 at 10:36:14AM -0400, Phillip Susi wrote:
> > I've been reading up here:
> > http://www.win.tue.nl/~aeb/linux/kbd/scancodes-1.html
> > 
> > And man, what a mess keyboards are!  Worse than floppy controllers.
> > According to that site, the scan code for \ should be 0x2b, so why does
> > xev say the keycode is 51?  Is keycode something else entirely from scan
> > codes and keysyms?  If so how can I see the scan code?
> 
> 0x2b is 43 in hex.
> 
> xev reports the Xorg scancode, which is the same as the XT/AT-set1
> scancodes, with an offset of 8 added
> 
> IOW, 51 from xev does actually match 0x2b from XT scancode set

Opps, slight mistake there.  On *old* Xorg using the 'kbd' driver it
would correspond to XT/AT-set1 scancodes. On *new* Xorg using the 'evdev'
driver it would correspond to Linux keycodes.

Fortunately in this particular case the Linux keycode is the same as
the XT scancode so the conversion I illustrate was still correct :-)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]