From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: xmodmap ( Date: Wed, 11 May 2011 21:20:48 -0500 Message-ID: References: <92m0bdFgm5U1@mid.individual.net> <851beb54-d923-402e-b2a3-933dee8c3bb3@q12g2000prb.googlegroups.com> <87k4dwlvax.fsf@puma.rapttech.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1306269004 20586 80.91.229.12 (24 May 2011 20:30:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 May 2011 20:30:04 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 24 22:30:00 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QOyEo-0002xz-Kq for geh-help-gnu-emacs@m.gmane.org; Tue, 24 May 2011 22:29:58 +0200 Original-Received: from localhost ([::1]:57427 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOyEo-0007Vh-5t for geh-help-gnu-emacs@m.gmane.org; Tue, 24 May 2011 16:29:58 -0400 Original-Path: usenet.stanford.edu!news.glorb.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.sysmatrix.net!news.sysmatrix.net.POSTED!not-for-mail Original-NNTP-Posting-Date: Wed, 11 May 2011 21:20:31 -0500 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) Original-Newsgroups: gnu.emacs.help In-Reply-To: <87k4dwlvax.fsf@puma.rapttech.com.au> X-No-Archive: yes Original-Lines: 46 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 12.73.129.144 Original-X-Trace: sv3-jNl0GzYuN5bxFK7RQMmZhulUzbMaFiGy/Gaesu9XN8fhTde253A4PltPig8bh9tJKtD1Ya8BaDpIaPZ!KwLZB/89w/Pytu0Uz2peUMj1EhN6xOANR8X0cjMLslniT3L9QgNlQba/YS3GHFInS6NcgW6gm2ib!NjAjwmEtatIGFgiDrXqXI5XlAMOuDjA= Original-X-Complaints-To: abuse@sysmatrix.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 3042 Original-Xref: usenet.stanford.edu gnu.emacs.help:186845 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org X-Gmane-Expiry: 2011-06-07 Xref: news.gmane.org gmane.emacs.help:81171 Archived-At: Tim X wrote: > "B. T. Raven" writes: > >> rusi wrote: >>> No idea if this works... Still >>> https://help.ubuntu.com/community/LaptopSpecialKeys >>> >>> [Id be interested to know if it does] >> Thanks for the link. It's a little over my head but I'll give it a try. > > Have you tried using the xev program to see what keycodes and mappings > are being used? Also worth verifying the key sequence is not being > 'stolen' by the window manager etc. > > Tim > Thanks, Tim. Yes, the xev monitor or whatever it is, is not problematic. It even shows why keycode 151 (Fn key on Thinkpad 42) can't be used as a mod key. If Alt or Ctl is held down the state is held as long as it is held down but the Fn key immediately changes state while held down and returns that second state to X as the x event (presumably combined with some other key). What I don't understand is what mod keys should be associated with mod1, mod2, etc. The problem below is probably that Lock is cleared and then not added in the second group of lines: clear Lock clear Control clear Mod1 clear Mod2 clear Mod3 clear Mod4 clear Mod5 add Shift = Shift_L Shift_R add Control = Control_L Control_R add Mod1 = Mode_switch add Mod2 = Meta_L Meta_R add Mod4 = Hyper_L Hyper_R add Mod5 = Super_L Super_R I don't think Gnome is messing with these keys but I don't know enough about it to be sure. Ed