Bug 24557 - Keyboard mapping incorrect - Arrow Keys / etc
Summary: Keyboard mapping incorrect - Arrow Keys / etc
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/DDX/dmx (show other bugs)
Version: git
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Peter Hutterer
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-15 11:11 UTC by Lee Leahu
Modified: 2011-10-16 23:12 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
0001-dmx-set-default-rules-to-evdev-on-Linux.patch (1.01 KB, patch)
2009-10-15 15:28 UTC, Peter Hutterer
no flags Details | Splinter Review
Output from Xdmx command (20.04 KB, text/plain)
2011-05-23 08:29 UTC, torquil
no flags Details

Description Lee Leahu 2009-10-15 11:11:53 UTC
Recently I upgraded my system to run the bleeding edge code for X.org:
    X.Org Server 1.7.99.1 (Git Commit 25344ba7f7845654364d62bf15322b3b79465bd9)

The system has a PS2 Keyboard, USB Mouse - both configured with Hal / input hotplugging.

X is started with:  X :0 -ac
Xdmx is started with:  Xdmx :1 -ac +xinerama -display :0

Xen shows incorrect keysyms using Xdms:

Left     keycode 113 (keysym 0xffea, Alt_R)
Right    keycode 114 (keysym 0×0, NoSymbol)
Up       keycode 111 (keysym 0xff61, Print)
Down     keycode 116 (keysym 0xffec, Super_R)
Comment 1 Peter Hutterer 2009-10-15 15:28:39 UTC
Created attachment 30462 [details] [review]
0001-dmx-set-default-rules-to-evdev-on-Linux.patch

mismatch with the keyboard rules files. looks like the xserver starts up with "evdev" rules and Xdmx starts with rules "base". This patch changes the default on Linux to the one that's statistically more likely to work.
Comment 2 Lee Leahu 2009-10-15 16:50:04 UTC
That patch fixes the keyboard mappping issues - Arrow keys work.
Comment 3 torquil 2011-05-23 07:55:22 UTC
(In reply to comment #2)
> That patch fixes the keyboard mappping issues - Arrow keys work.

I'll comment here rather than report a new bug, in case my problems are related to this:

When I start Xdmx several strange things happen to my keyboard (a USB keyboard). Firstly, key repeat is deactivated- Secondly, the Shift keys no longer function. Thirdly, the keyboard layout is wrong. However, I gather from the man page that the default is a US layout no matter what the layout is for the underlying X-servers, so that third point is not really a bug.

I'm pretty sure my version is newer than the one refered to above. Mine is

$  dpkg -s xdmx
.
.
Version: 2:1.10.1-2
.
.

Best regards
Torquil Sørensen
Comment 4 torquil 2011-05-23 08:18:58 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > That patch fixes the keyboard mappping issues - Arrow keys work.
> 
> I'll comment here rather than report a new bug, in case my problems are related
> to this:
> 
> When I start Xdmx several strange things happen to my keyboard (a USB
> keyboard). Firstly, key repeat is deactivated- Secondly, the Shift keys no
> longer function. Thirdly, the keyboard layout is wrong. However, I gather from
> the man page that the default is a US layout no matter what the layout is for
> the underlying X-servers, so that third point is not really a bug.
> 

Addendum: Even after I run "setxkbmap no" within the Xdmx session, e.g. the PgUp and PgDn keys are not working properly. In Firefox they do not cause a Page Up or Page Down movement, but instead a dropdown menu appears in the top left corner of the Firefox window when I use eeither one. On the other hand, the PgUp and PgDn on the numerical keypad work as advertised. However, only when NumLock is enabled.

Arrow keys (Up, Down, Left, Right) do not work. I'll try to attach the Xdmx STDOUT log here after I turn Xdmx off again.
Comment 5 torquil 2011-05-23 08:29:25 UTC
Created attachment 47049 [details]
Output from Xdmx command

Here is the output from the Xdmx command. The actual command is given at the top of the file. This was done completely within an ssh session, btw.

I.e. I did this:

host2$ ssh -X -c blowfish-cbc host1

host1$ startx -- /usr/bin/Xdmx :1 -xinerama -display localhost:10.0 -display :0.0 -input :0.0 -norender -noglxproxy

The output of this command is given in the xdmx.log file that I have attached. This lets me use apps on host1 and its attached peripherals, displayed across both screens host host1 and host2.
Comment 6 Jeremy Huddleston Sequoia 2011-10-16 23:12:43 UTC
Based on changes since this was originally filed, this bug is fixed.

torquil, please open a new bug report.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.