xmodmap - where does it get default codes from?

29 views
Skip to first unread message

Colin Law

unread,
May 23, 2011, 3:39:30 AM5/23/11
to Ubuntu user technical support, not for general discussions
I am trying to work out where xmodmap gets it keycodes from. I have
two users, on one of those, when I do
xmodmap -pke
then I see, for the left Win key I see
keycode 133 = Super_L NoSymbol Super_L
which maps the left win key to Super_L which so that in Unity the left
win key works as Super as it should. On the other user then xmodmap
-pke shows
keycode 133 = Multi_key Multi_key Multi_key Multi_key
so the left win key does not work correctly in Unity.

I have worked around the problem by creating a .xmodmaprc file and
putting in there
keycode 133 = Super_L
and now it works correctly. I would like to know why it is wrong in
the first place however, I cannot see anything in that users setup
that would cause the issue. This was noticed after an upgrade to
11.04 and it seems that a number of others have encountered the same
problem. A fresh install of 11.04 on a different partition worked
fine.

Colin

--
ubuntu-users mailing list
ubuntu...@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

Colin Law

unread,
May 25, 2011, 4:40:34 PM5/25/11
to Ubuntu user technical support, not for general discussions
Any ideas on this anyone?

Liam Proven

unread,
May 25, 2011, 6:18:50 PM5/25/11
to Ubuntu user technical support, not for general discussions
On 25 May 2011 21:40, Colin Law <cla...@googlemail.com> wrote:
> Any ideas on this anyone?

I'm a frayed knot. I've tried using Xmodmap to remap my IBM "forward"
and "next" keys, with no success. Using the Keyboard control panel in
System Settings worked fine, though - well, to remap CapsLock as a
Super key, anyway. It also let me enable AltGr as a Compose key on my
beloved IBM Model M clicky keyboard from 1993 or so.


--
Liam Proven • Info & profile: http://www.google.com/profiles/lproven
Email: lpr...@cix.co.uk • GMail/GoogleTalk/Orkut: lpr...@gmail.com
Tel: +44 20-8685-0498 • Cell: +44 7939-087884 • Fax: + 44 870-9151419
AIM/Yahoo/Skype: liamproven • MSN: lpr...@hotmail.com • ICQ: 73187508

Lachlan Musicman

unread,
May 25, 2011, 7:38:03 PM5/25/11
to Ubuntu user technical support, not for general discussions
On Thu, May 26, 2011 at 08:18, Liam Proven <lpr...@gmail.com> wrote:
> On 25 May 2011 21:40, Colin Law <cla...@googlemail.com> wrote:
>> Any ideas on this anyone?
>
> I'm a frayed knot. I've tried using Xmodmap to remap my IBM "forward"
> and "next" keys, with no success. Using the Keyboard control panel in
> System Settings worked fine, though - well, to remap CapsLock as a
> Super key, anyway. It also let me enable AltGr as a Compose key on my
> beloved IBM Model M clicky keyboard from 1993 or so.

Hey thanks for that - the keyboard settings via GUI has never worked
for me before, but I noticed there were a lot more options available
this time. I've not rebooted/tested properly, but I presume that the
extra options means that it will.

cheers
L.

--
Benford’s law, also called the first-digit law, states that in lists
of numbers from many (but not all) real-life sources of data, the
leading digit is distributed in a specific, non-uniform way. According
to this law, the first digit is 1 almost one third of the time, and
larger digits occur as the leading digit with lower and lower
frequency, to the point where 9 as a first digit occurs less than one
time in twenty. (via @cyberu)
from The Best of Wikipedia http://bestofwikipedia.tumblr.com/

Colin Law

unread,
May 26, 2011, 3:57:43 AM5/26/11
to Ubuntu user technical support, not for general discussions
On 25 May 2011 23:18, Liam Proven <lpr...@gmail.com> wrote:
> On 25 May 2011 21:40, Colin Law <cla...@googlemail.com> wrote:
>> Any ideas on this anyone?
>
> I'm a frayed knot.

Ah, that explains a lot. :)


> I've tried using Xmodmap to remap my IBM "forward"
> and "next" keys, with no success. Using the Keyboard control panel in
> System Settings worked fine, though - well, to remap CapsLock as a
> Super key, anyway. It also let me enable AltGr as a Compose key on my
> beloved IBM Model M clicky keyboard from 1993 or so.

It is not remapping that is the question, I have successfully done
that, I am trying to determine where xmodmap gets its default setup
from in order to find out why, after an upgrade to 11.04, it is wrong
in the first place.

Colin

PleegWat

unread,
May 26, 2011, 12:16:46 PM5/26/11
to ubuntu...@lists.ubuntu.com
On 05/26/2011 09:57 AM, Colin Law wrote:
> On 25 May 2011 23:18, Liam Proven<lpr...@gmail.com> wrote:
>> I've tried using Xmodmap to remap my IBM "forward"
>> and "next" keys, with no success. Using the Keyboard control panel in
>> System Settings worked fine, though - well, to remap CapsLock as a
>> Super key, anyway. It also let me enable AltGr as a Compose key on my
>> beloved IBM Model M clicky keyboard from 1993 or so.
>
> It is not remapping that is the question, I have successfully done
> that, I am trying to determine where xmodmap gets its default setup
> from in order to find out why, after an upgrade to 11.04, it is wrong
> in the first place.

The keyboard layout is modified in several stages. In the GUI (or in X
configuration files) you configure a base layout. The GUI also allows
you to apply various changes to that base layout, such as the function
of the windows keys. The .xmodmap changes are applied after those changes.

This means that if one user had previously configured the left windows
key to be a Multi_Key (also known as compose key), this would show up as
a different 'default' or base layout for xmodmap.

PleegWat

Colin Law

unread,
May 26, 2011, 12:23:50 PM5/26/11
to Ubuntu user technical support, not for general discussions
On 26 May 2011 17:16, PleegWat <plee...@telfort.nl> wrote:
> On 05/26/2011 09:57 AM, Colin Law wrote:
>>
>> On 25 May 2011 23:18, Liam Proven<lpr...@gmail.com>  wrote:
>>>
>>> I've tried using Xmodmap to remap my IBM "forward"
>>> and "next" keys, with no success. Using the Keyboard control panel in
>>> System Settings worked fine, though - well, to remap CapsLock as a
>>> Super key, anyway. It also let me enable AltGr as a Compose key on my
>>> beloved IBM Model M clicky keyboard from 1993 or so.
>>
>> It is not remapping that is the question, I have successfully done
>> that, I am trying to determine where xmodmap gets its default setup
>> from in order to find out why, after an upgrade to 11.04, it is wrong
>> in the first place.
>
> The keyboard layout is modified in several stages. In the GUI (or in X
> configuration files) you configure a base layout. The GUI also allows you to
> apply various changes to that base layout, such as the function of the
> windows keys. The .xmodmap changes are applied after those changes.
>
> This means that if one user had previously configured the left windows key
> to be a Multi_Key (also known as compose key), this would show up as a
> different 'default' or base layout for xmodmap.

Right, I think I understand. If I had previously configured the left
Win key as the compose key, then I upgraded to 11.04 the left Win key
will not work as expected in Unity as the upgrade will not revert the
setting. I wonder if this is what should happen or whether the
upgrade should revert it automatically so that Unity works as
expected.

Thanks.

Colin

Colin

Reply all
Reply to author
Forward
0 new messages