From owner-freebsd-stable@FreeBSD.ORG Thu Feb 19 01:05:57 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 660DB106566B for ; Thu, 19 Feb 2009 01:05:57 +0000 (UTC) (envelope-from ca+envelope@esmtp.org) Received: from zardoc.esmtp.org (adsl-63-195-85-27.dsl.snfc21.pacbell.net [63.195.85.27]) by mx1.freebsd.org (Postfix) with ESMTP id 3DA6D8FC15 for ; Thu, 19 Feb 2009 01:05:57 +0000 (UTC) (envelope-from ca+envelope@esmtp.org) Received: from zardoc.esmtp.org (localhost. [127.0.0.1]) by zardoc.esmtp.org (MeTA1-1.0.PreAlpha28.0) with ESMTPS (TLS=TLSv1/SSLv3, cipher=AES256-SHA, bits=256, verify=OK) id S00000000003081A800; Wed, 18 Feb 2009 16:45:56 -0800 Received: (from ca@localhost) by zardoc.esmtp.org (8.13.4/8.12.10.Beta0/Submit) id n1J0jugV020781 for freebsd-stable@freebsd.org; Wed, 18 Feb 2009 16:45:56 -0800 (PST) Date: Wed, 18 Feb 2009 16:45:56 -0800 From: Claus Assmann To: freebsd-stable@freebsd.org Message-ID: <20090219004556.GA25368@zardoc.esmtp.org> Mail-Followup-To: freebsd-stable@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.9i Subject: xmodmap and Xkeyboard interaction X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-stable@freebsd.org List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Feb 2009 01:05:57 -0000 I have a problem with xmodmap on a fresh FreeBSD 7.1 installation (Dell Latitude D830). My .xmodmap file looks like this: remove Lock = Caps_Lock keysym Caps_Lock = Control_L add Control = Control_L keycode 22 = backslash bar keycode 51 = BackSpace BackSpace Delete underscore keycode 49 = Escape asciitilde grave bar keycode 113 = grave asciitilde pointer = 1 2 3 That is, besides the "usual" Caps/Ctrl swap I also swap Backspace and "\|" as well as some other keys. This worked fine in "old" FreeBSD (X) versions, i.e., before FreeBSD 6.x. In FreeBSD 6.2 I first noticed that "Shift Backspace" does not produce "|" but "\". After some hacking I found that I could make it work again by using Section "ServerFlags" Option "XkbDisable" "true" EndSection in /etc/X11/xorg.conf. Trying the same trick in 7.1 does not work at all, several things break, including function keys, key repetition, etc. Question: is there a way to make xmodmap work for Shift-Backspace properly in FreeBSD 7.1? If not, do I need to use XKEYBOARD or is there a simpler way to achieve my keyboard remapping goals (so it looks like a "standard UNIX" keyboard)? PS: please reply to the list if possible. Thanks!