LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-26-2003, 04:30 AM   #1
wolvie
LQ Newbie
 
Registered: Jan 2003
Posts: 2

Rep: Reputation: 0
Unhappy Seriously annoying problem with "be" kbd


Hi

I just upgraded from RH 7.3 to RH 8 and I have a silly problem, but a seriously annoying one. Everytime I hit the altgr (or right alt) key it outputs a character. This key is used on international keyboards to generate special keys like, in the case of the Belgian keyboard I use, braces, brackets and pipes. You can understand it's very difficult to code in C++ or Java with this problem.

I have investigated as much as I could but I'm in an impasse. It seems the key down event generates a 0x30 scancode after the 0x0e 0x38 scancode for altgr. It generates a 0 on the console, and a double quote on X. I don't know how "abnormal" that is because I own this keyboard since some time now and never had any problem (Win2000 works fine on another partition of the same computer, and previously RH7.3 worked fine).

I've tried to configure the keyboard using different combinations in X's keyboard config, but it's always the same.

It seems that the combination alt-gr+alpha keys generates some special keys (on X), which is not usual for this kind of keyboard. Actually hitting altgr+b generates the double quote, and as 0x30 is indeed the scnacode for b this is all coherent. A very acceptable workaround might be to disable this combination on X but I couldn't find how to do it, because these combinations appear in no key mapping file that I could locate.

Has anyone any useful information on any of this ? I would be eternally grateful !
 
Old 03-12-2003, 08:05 AM   #2
braincookie
LQ Newbie
 
Registered: Mar 2003
Location: Paris / France
Distribution: RedHat 9
Posts: 2

Rep: Reputation: 0
Hi, I've got exactly the same problem with some no name keyboard and french (AZERTY) layout. Under KDE 3.0.3 I was able to select another keyboard in the config panel ("fr" instead of "fr-latin1") and it worked fine.

For the console mode I found some workaround by using Alt instead of AltGr (not very beautiful, but who cares):

1) Copy the keymap file /lib/kbd/keymaps/i386/azerty/fr.map.gz (or whatever keymap you use) to fr-modified.map.gz

2) To use Alt instead of AltGr to accesss the characters that are usually accessed by pressing AltGr (like #,|,etc...), change all of the lines as in the following example :

alt keycode 9 = Meta_eight
should be replaced by
alt keycode 9 = backslash

and

alt keycode 7 = Meta_six
becomes
alt keycode 7 = bar
.
.
.
(and so on, the keycodes might be different in your keycode file)

3) map the AltGr key to the Alt function : setkeycodes e038 56 (superuser mode only)

e038 is the scan code for my AltGr key, it might be different for you, use showkey -s to find out which code your keyboard produces. 56 is the code for "Alt" in my fr.map.gz file, verify if that's the same for you. (You can also use showkey to find it out)

4) load the modified keymap: loadkeys -s fr-mod

Now pressing AltGr and "8" should result in a backslash. You can of course as well use the standard Alt key now, as they are mapped to the same keycode. If you need the Alt+Number for console programs (I personally don't need them), consider using shift-alt or ctrl-alt instead of only Alt.

Cheers
Seb.
 
Old 03-19-2003, 08:46 AM   #3
filipwillemse
LQ Newbie
 
Registered: Mar 2003
Location: Leuven, Belgium
Distribution: redhat 8.0
Posts: 1

Rep: Reputation: 0
Thumbs up solution

All right, I had the same problem with my belgian keyboard under redhat 8.0. Jerked around a little, and found the (incredibly simple) solution. Just run "kbdconfig" from the console, and instead of choosing "be-latin", just choose "azerty". Solved the problem for me

Don't know if it'll work with a french keyboard configuration, but should be worth a try as well...
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem "make"ing gtk+ "/usr/bin/env: perl -w" caid Linux - Newbie 8 07-29-2005 04:51 AM
Annoying libtool warnings about "moved" libraries dhave Slackware 6 01-18-2005 01:55 PM
Annoying "hiss" sound on Fedora Core 2 with ES1371 giladg Linux - Hardware 2 07-01-2004 05:34 AM
Sound problem with "alsamixer" or "alsaconf" or sth else maybe... Mikuda Linux - Games 4 05-01-2004 11:09 AM
A few annoying problems; Cannot locate theme & "No DFP detected". Ninja Cow Slackware 0 04-29-2004 12:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:29 AM.

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