Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
pipe key mismapping resolved
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
MacFlecknoe
Apprentice
Apprentice


Joined: 11 Feb 2003
Posts: 189
Location: Ann Arbor, MI

PostPosted: Tue Jan 06, 2004 7:19 am    Post subject: pipe key mismapping resolved Reply with quote

I have seen several others post about this problem so I thought I'd share my solution.

It seems that the pipe/backslash key on us keyboards has been mismatched to event 43 instead of 83 in the map file. Thanks to a previous poster I was able to track this problem down (thanks goes out to ecatmur and SillyPants). To resolve this issue:

Unzip the /usr/share/keymaps/i386/qwerty/us.map.gz file (or whichever map file you are using -- mappings are set in /etc/rc.conf) and insert the following lines:

Code:
keycode  84 = backslash        bar
        control keycode  84 = Control_backslash


This remaps the mismapped key to the right event. Rezipping the file and restarting your machine (or restarting the daemon that controls keymapping-- what is this?) should resolve this issue.

This seems to have done the trick for me as my pipe key now works properly from the console.

Hope this helps someone.
Back to top
View user's profile Send private message
nevynxxx
Veteran
Veteran


Joined: 12 Nov 2003
Posts: 1123
Location: Manchester - UK

PostPosted: Tue Jan 06, 2004 1:55 pm    Post subject: Reply with quote

I have also had this problem with a UK keymap since upgrading to the 2.6 kernel series, I will try these hints out tonight. I'm going to try this change to see if it works.

(in my case it is the "#"/"~" key)
_________________
My Public Key

Wanted: Instructor in the art of Bowyery
Back to top
View user's profile Send private message
nevynxxx
Veteran
Veteran


Joined: 12 Nov 2003
Posts: 1123
Location: Manchester - UK

PostPosted: Tue Jan 06, 2004 6:54 pm    Post subject: Re: pipe key mismapping resolved Reply with quote

MacFlecknoe wrote:
(or restarting the daemon that controls keymapping-- what is this?)


Code:
/etc/init.d/keymaps restart


worked for me.

but could someone tell me how I would map "#" and "~" to a key? from the file I assume "~" is asciitilde but what is "#"?
_________________
My Public Key

Wanted: Instructor in the art of Bowyery
Back to top
View user's profile Send private message
tjcannell
n00b
n00b


Joined: 21 Aug 2003
Posts: 10

PostPosted: Sun Jan 11, 2004 2:39 pm    Post subject: Reply with quote

This is how I fixed the UK keymap issue

cd /usr/share/keymaps/i386/qwerty
cp uk.map.gz uk1.map.gz
gzip -d uk1.map.gz
nano uk1.map
... add the line:
keycode 84 = numbersign asciitilde

nano /etc/rc.conf
... change the KEYMAP line to:
KEYMAP="uk1"

export KEYMAP="uk1"
/etc/init.d/keymaps restart
Back to top
View user's profile Send private message
nevynxxx
Veteran
Veteran


Joined: 12 Nov 2003
Posts: 1123
Location: Manchester - UK

PostPosted: Mon Jan 12, 2004 9:06 am    Post subject: Reply with quote

Thanks MacFlecknoe thats what I was looking for.
_________________
My Public Key

Wanted: Instructor in the art of Bowyery
Back to top
View user's profile Send private message
strerror
Retired Dev
Retired Dev


Joined: 16 Jan 2004
Posts: 24

PostPosted: Mon Jan 19, 2004 11:04 pm    Post subject: Reply with quote

This works for the console, but not in X. What do i need to do to get X to see the new keys? I tried to load my changed keymap with xmodmap and setxkbmap but it didn't seem to help.
Back to top
View user's profile Send private message
SixByNine
n00b
n00b


Joined: 09 Jan 2004
Posts: 5

PostPosted: Mon Jan 26, 2004 12:31 pm    Post subject: Reply with quote

I have also mannaged to fix it in the terminal, but X still plays up

Anyone got a fix?
Back to top
View user's profile Send private message
strerror
Retired Dev
Retired Dev


Joined: 16 Jan 2004
Posts: 24

PostPosted: Mon Jan 26, 2004 9:11 pm    Post subject: Reply with quote

yep. basically you need to run "xev" confirm what X see's as the scancode for that key and then change your /etc/X11/xkb/keycodes/xfree86 so that the BKSL entry matches that scancode.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum