NetBSD Problem Report #40582

From  Sun Feb  8 19:07:53 2009
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id AFE4263B99D
	for <>; Sun,  8 Feb 2009 19:07:53 +0000 (UTC)
Message-Id: <>
Date: Sun,  8 Feb 2009 19:07:53 +0000 (UTC)
Subject: Mode_switch key press takes 2 seconds to get processed
X-Send-Pr-Version: www-1.0

>Number:         40582
>Category:       xsrc
>Synopsis:       Mode_switch key press takes 2 seconds to get processed
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    xsrc-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 08 19:10:00 +0000 2009
>Last-Modified:  Mon Feb 09 19:10:02 +0000 2009
>Originator:     Michael Stapelberg
>Release:        5.99.7 (current)
NetBSD ms 5.99.7 NetBSD 5.99.7 (GENERIC) #6: Sun Feb  8 16:18:37 CET 2009  root@ms:/usr/obj/sys/arch/amd64/compile/GENERIC amd64
I've remapped Caps-lock to be Mode_switch using this .Xmodmap:

keycode 66 = Mode_switch
clear Lock

Furthermore, I'm generating umlauts using this key, .Xmodmap looks like this:
keycode 30 = u U udiaeresis Udiaeresis
keycode 32 = o O odiaeresis Odiaeresis
keycode 38 = a A adiaeresis Adiaeresis

The problem is: Whenever I press Mode_switch, I have to wait 2 seconds until the key press gets processed (I don't know exactly where it hangs, but xev shows the event about two seconds later and the character gets inserted then into urxvt/firefox).

Probably this has something to do with the xterm/inputmethod-thing of which one can read on the mailing list.

I'm using the following settings in .xsession before starting my window manager (wmii-3.6 from pkgsrc):
export LC_CTYPE=de_DE.UTF-8
export LC_COLLATE=de_DE.UTF-8
export LC_TIME=de_DE.UTF-8
export LC_NUMERIC=de_DE.UTF-8
export LC_MONETARY=de_DE.UTF-8
export LC_PAPER=de_DE.UTF-8
export LC_NAME=de_DE.UTF-8
export LC_ADDRESS=de_DE.UTF-8

I'm not sure – Perl complains aswell when starting it, but locale -a says that de_DE.UTF-8 is available.
Open a terminal/firefox/whatever.

Press AltGr (=Mode_switch) + a after activating an Xmodmap like the above.

From: Michael Stapelberg <>
Subject: Re: xsrc/40582: Mode_switch key press takes 2 seconds to get
Date: Mon, 9 Feb 2009 20:09:22 +0100


 I just wanted to add that I've now changed my locales to the following:
 export LC_CTYPE=de_DE.UTF-8
 export LC_TIME=de_DE.ISO8859-15
 export LC_NUMERIC=de_DE.ISO8859-15
 export LC_MONETARY=de_DE.ISO8859-15
 export LC_PAPER=de_DE.ISO8859-15
 export LC_NAME=de_DE.ISO8859-15
 export LC_ADDRESS=de_DE.ISO8859-15
 export LC_TELEPHONE=de_DE.ISO8859-15
 export LC_MEASUREMENT=de_DE.ISO8859-15
 export LC_IDENTIFICATION=de_DE.ISO8859-15
 (with LC_COLLATE, LC_ALL, LC_LANG unset)

 Those are valid (perl does not complain anymore), but this does not change
 anything for the bug. This is rather logical, as the locales are set before
 the window manager starts and, because the window manager does not bind
 Mode_switch, it doesn't even appear in the chain of events.

 Best regards,

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.