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

Bug#234530: marked as done (setxkbmap -layout "us,lt" assigns Alt_R to modifiers Mod1 and Mod5)



Your message dated Wed, 1 Sep 2004 00:53:26 +0200
with message-id <20040831225326.GC6975@linuxfr.org>
and subject line Bug#234530: setxkbmap -layout "us,lt" assigns Alt_R to modifiers Mod1 and Mod5
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 24 Feb 2004 13:14:33 +0000
>From vaze0348@uosis.mif.vu.lt Tue Feb 24 05:14:33 2004
Return-path: <vaze0348@uosis.mif.vu.lt>
Received: from master.debian.org [146.82.138.7] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1AvcOP-0006Su-00; Tue, 24 Feb 2004 05:14:33 -0800
Received: from lan-70-53.skynet.lt (mpiktas.skynet.vl) [212.122.70.53] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1AvcOM-000649-00; Tue, 24 Feb 2004 07:14:31 -0600
Received: from debian (localhost [127.0.0.1])
	by mpiktas.skynet.vl (Postfix) with ESMTP id 49EE7518DC
	for <bugs@debian.org>; Tue, 24 Feb 2004 15:14:30 +0200 (EET)
Date: Tue, 24 Feb 2004 15:14:29 +0200
From: Mpiktas <vaze0348@uosis.mif.vu.lt>
To: bugs@debian.org
Subject: setxkbmap -layout "us,lt" assigns Alt_R to modifiers Mod1 and Mod5
Message-ID: <20040224131429.GK1232@debian.vu.lt>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	protocol="application/pgp-signature"; boundary="fWddYNRDgTk9wQGZ"
Content-Disposition: inline
X-Mailer: Balsa 2.0.16
Lines: 127
Delivered-To: bugs@debian.org
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_02_22 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.9 required=4.0 tests=FROM_ENDS_IN_NUMS,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2004_02_22
X-Spam-Level: 


--fWddYNRDgTk9wQGZ
Content-Type: text/plain; Format=Flowed; DelSp=Yes; charset=ISO-8859-13
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Package: xbase-clients
Version:  4.3.0-2

If you put in XF86Config4

XkbOption "XkbLayout" "us,lt"

or change the keyboard layout directly with

setxkbmap -layout "us,lt" -option "grp:ctrl_shift_toggle"

xmodmap -pm prints

shift       Shift_L (0x32),  Shift_R (0x3e)
lock        Caps_Lock (0x42)
control     Control_L (0x25),  Control_R (0x6d)
mod1        Alt_L (0x40),  Alt_R (0x71)
mod2        Num_Lock (0x4d)
mod3
mod4        Super_L (0x73),  Super_R (0x74)
mod5        Alt_R (0x71)

Thus Alt_R is modifier mod1 and mod5. Such situation renders xemacs21 prett=
y =20
unusuable. When pressing Alt it the issues warning

(1) (key-mapping/warning) XEmacs:  Alt_R (0x71) generates both Mod1 and Mod=
5, =20
which is nonsensical.

so you practically can't use any meta key shortcuts in xemacs21 and that me=
ans =20
that you can't practicaly use xemacs.

With such configuration setxkbmap -print produces

xkb_keymap {
        xkb_keycodes  { include "xfree86+aliases(qwerty)"       };
        xkb_types     { include "complete"      };
        xkb_compat    { include "complete"      };
        xkb_symbols   { include "pc/pc(pc105)+pc/us+pc/lt:2+group=20
(ctrl_shift_toggle)"   };
        xkb_geometry  { include "pc(pc105)"     };
};

Looking at the file /etc/X11/xkb/symbols/pc you can find lines

default
xkb_symbols "pc104" {
    include "pc/pc(basic)"
    key <LALT> {	[ 	Alt_L,	Meta_L		]	};
    key <RALT> {	[	Alt_R,	Meta_R		]	};
    key <LWIN> {	[	Super_L			]	};
    key <RWIN> {	[	Super_R			]	};
    key <MENU> {	[	Menu			]	};

    // modifier mappings
    modifier_map Mod1   { Alt_L, Alt_R, Meta_L, Meta_R };
    modifier_map Mod4   { Super_L, Super_R };
};

xkb_symbols "pc105" {
    include "pc/pc(pc104)"
    key <LSGT> { type[Group1] =3D "FOUR_LEVEL",
                 [      less,    greater,          bar,    brokenbar ]	};
};

In the file /etc/X11/xkb/symbols/lt there are lines

<...skipped>
partial default alphanumeric_keys modifier_keys
xkb_symbols "basic" {

<...skipped>
   key <RALT>  { type[Group1]=3D"TWO_LEVEL",
                  [ ISO_Level3_Shift, Multi_key ]   };
    modifier_map Mod5   { <RALT> };
};
<...skipped>

Thus key RALT or Alt_R in lt layout is assigned to modifier Mod5 and thus t=
he =20
confusion is created.

I am pointing out the problem with lt layout, yet this problem may occur us=
ing =20
other layouts.

Solutions to the problem:

1. Use setxkbmap -layout "lt,us" (us and lt interchanged places, this fixes=
 =20
the problem)
2. Comment lines

key <RALT>  { type[Group1]=3D"TWO_LEVEL",
                  [ ISO_Level3_Shift, Multi_key ]   };
modifier_map Mod5   { <RALT> };
3. Use setxkbmap -layout "lt(lt_us),lt".

in file /etc/X11/xkb/symbols/lt since in the basic lt keyboard variant no =
=20
third level letters are used.

I use up to date Debian Sid with kernel 2.4.22

Mpiktas

--fWddYNRDgTk9wQGZ
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBAO041QEgPBA2G0T8RAsQRAJ4il11txJ0NOdUnskAWJD7jsUK1QQCgkevG
rLgGzuA5n9ahvAbKcDwy0LQ=
=MsoQ
-----END PGP SIGNATURE-----

--fWddYNRDgTk9wQGZ--

---------------------------------------
Received: (at 234530-done) by bugs.debian.org; 31 Aug 2004 22:50:22 +0000
>From barbier@linuxfr.org Tue Aug 31 15:50:22 2004
Return-path: <barbier@linuxfr.org>
Received: from postfix4-2.free.fr [213.228.0.176] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1C2HSI-00009U-00; Tue, 31 Aug 2004 15:50:22 -0700
Received: from localhost.localdomain (lns-vlq-34-82-253-31-81.adsl.proxad.net [82.253.31.81])
	by postfix4-2.free.fr (Postfix) with ESMTP id 9CB061BBBFA
	for <234530-done@bugs.debian.org>; Wed,  1 Sep 2004 00:50:21 +0200 (CEST)
Received: by localhost.localdomain (Postfix, from userid 1000)
	id E36EB23EE0; Wed,  1 Sep 2004 00:53:26 +0200 (CEST)
Date: Wed, 1 Sep 2004 00:53:26 +0200
To: 234530-done@bugs.debian.org
Subject: Bug#234530: setxkbmap -layout "us,lt" assigns Alt_R to modifiers Mod1 and Mod5
Message-ID: <20040831225326.GC6975@linuxfr.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.6+20040818i
From: barbier@linuxfr.org (Denis Barbier)
Delivered-To: 234530-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

This bug has been fixed in 4.3.0.dfsg.1-5, so I am closing it now.
Thanks for your report.

Denis



Reply to: