Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General > Member Success Stories
User Name
Password Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.


  Search this Thread
Old 10-15-2004, 05:20 AM   #1
Registered: Apr 2004
Location: Copenhagen, Denmark
Distribution: Gentoo + Debian PPC
Posts: 44

Rep: Reputation: 15
AltGr-key on debian-ppc working!

I finally got the Alt-Gr key working on debian-ppc dist after months of copying and pasting the @-character!!! I had to edit the very core of X keyboard geometry but I did it!
Old 10-21-2004, 04:18 PM   #2
LQ Newbie
Registered: Jun 2004
Location: Argentina
Distribution: Slackware 9.1
Posts: 27

Rep: Reputation: 15

I have just installed debian sarge and i am having the same problem. i am using kde right now and my 'Alt Gr' key is totally ignored. I know i have my xconfiguration correctly because i use a xfree86config file which was backed up from a previous installation of woody (i think). but this key doesn't work
How did you do to make it work.
thank you
Old 10-26-2004, 12:58 PM   #3
Registered: Apr 2004
Location: Copenhagen, Denmark
Distribution: Gentoo + Debian PPC
Posts: 44

Original Poster
Rep: Reputation: 15
Well, it's pretty simple really once you do it.

The main problem I was facing was that the damn box wouldn't accept my apple-key as a key with two states(pressed or unpressed). When using xev, pressing and holding shift for instance would give a state 0x1, and when releasing state 0x0. Anyway, the apple key didn't have states, so when pressing and holding it, it behaved like I was pressing it continuously (like holding down a character key).

The way to solve this problem is make xkb believe that the apple key is actually an altgr key. I think you should edit /etc/X11/xkb/geometry/machintosh and look for a place where it says:

top= 77;
keys { { <LCTL>, "LCTL" }, { <LALT>, "LALT" },
{ <OPT>, "OPT" },
{ <SPCE>, "SPCE" },
{ <RMTA>, "RMTA" },
{ <RALT>, "RALT" }, { <RCTL>, "RCTL" }

Now replace OPT(I think it says OPT, mayby it says LMTA I can't remember) with ALGR both places and try out xev - your key should now be with pressed/unpressed states.(Although strangely enough instead of giving 0x0 for unpressed, it gives 0x2000 - but who cares, it works!)

Now what remains is to bind Mode_Switch to your key using xmodmap, and making it load at startup. Reply if you need any help doing this!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
AltGr key does not work OlegL Debian 5 09-17-2004 02:22 AM
AltGr key does not work OlegL Linux - Laptop and Netbook 2 08-30-2004 09:35 AM AltGR key problem wigry Slackware 3 07-18-2004 12:15 PM
Mouse Wheel and AltGR key not working after Dropline install TNA-Mistersasaa Slackware 8 05-30-2004 07:32 AM
AltGr key not working in X iceman47 Linux - Software 3 03-07-2004 06:27 PM > Forums > Linux Forums > Linux - General > Member Success Stories

All times are GMT -5. The time now is 04:52 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration