From owner-freebsd-stable@FreeBSD.ORG Tue Aug 3 20:29:42 2010 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DC93E106568E for ; Tue, 3 Aug 2010 20:29:42 +0000 (UTC) (envelope-from cptsalek@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 77C698FC1A for ; Tue, 3 Aug 2010 20:29:42 +0000 (UTC) Received: by wwa36 with SMTP id 36so4346686wwa.31 for ; Tue, 03 Aug 2010 13:29:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=29ztGwgNW1xMZ8nNPna48qALWJv8Vrzm3XHCHhsN2GY=; b=O8L536xTAKvNNlch/nI5zU7DVBdB29Po73H2wNoWffdEied1NO/T8p60N4Cg78/tVQ zlsKKceqSC+kzXmaL8KHTdsim7+hW/oS4NJBZAredEo2rBaaInHNLAhPkTjckIk89Yxr kSTgWoodqLvv8l9+Y+YV5YQeD7l/3dg33/iuw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=DToNMboxpvfYMAHYPnDb01mUFDdbdHGCUCEtdl1oji7ndFg82oW41amlBynpk1g79o gpkwHm5Af03mwQzNSQsa5BgIy2pmTOxGgxZWneRQElwGPv2wJhnaKl+gfDlxf30xl1Ej 5sPMGibmCecwLvAOU4Th/ErzbiV5GSWJH7CKk= MIME-Version: 1.0 Received: by 10.227.145.66 with SMTP id c2mr6707394wbv.42.1280866050483; Tue, 03 Aug 2010 13:07:30 -0700 (PDT) Received: by 10.227.140.143 with HTTP; Tue, 3 Aug 2010 13:07:30 -0700 (PDT) Date: Tue, 3 Aug 2010 22:07:30 +0200 Message-ID: From: Christian Walther To: stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: startx/xinit + custom xmodmap messes up session X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Aug 2010 20:29:42 -0000 Hi, on my Thinkpad T3I'm using a tiling window manager (stumpwm) and remapped Caps Lock to have an addition modifier key. The systems default modmap is: shift Shift_L (0x32), Shift_R (0x3e) lock Caps_Lock (0x42) control Control_L (0x25), Control_R (0x6d) mod1 Alt_L (0x40), Meta_L (0x9c) mod2 Num_Lock (0x4d) mod3 mod4 Super_L (0x73), Super_R (0x74), Super_L (0x7f), Hyper_L (0x80) mod5 Mode_switch (0x5d), ISO_Level3_Shift (0x71), ISO_Level3_Shift (0x7c) My .xmodmaprc contains the following lines: remove mod4 = Hyper_L remove lock = Caps_Lock keycode 66 = Hyper_L add mod3 = Hyper_L This results in the following xmodmap: shift Shift_L (0x32), Shift_R (0x3e) lock control Control_L (0x25), Control_R (0x6d) mod1 Alt_L (0x40), Meta_L (0x9c) mod2 Num_Lock (0x4d) mod3 Hyper_L (0x42), Hyper_L (0x80) mod4 Super_L (0x73), Super_R (0x74), Super_L (0x7f) mod5 Mode_switch (0x5d), ISO_Level3_Shift (0x71), ISO_Level3_Shift (0x7c) The output of the modified map listed above is what I expected. It works when the session is launched through xdm. However, when I use startx from the command line, for some strange reason xmodmap messes up my session. In this case, the mouse is rendered useless. To make matters worse, when I shutdown X moused is broken too and needs a restart. As I said this doesn't happen with xdm, and it doesn't happen with startx when I don't run xmodmap. My system is running 8.1-RC2, but it happened with 8.0, too. This is not a very important issue for me, because I don't mind running xdm. I just wonder if this bug is known or if this is a case for a bug report. Regards Christian Walther