View previous topic :: View next topic |
Author |
Message |
MacFlecknoe Apprentice
Joined: 11 Feb 2003 Posts: 189 Location: Ann Arbor, MI
|
Posted: Tue Jan 06, 2004 7:19 am Post subject: pipe key mismapping resolved |
|
|
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 |
|
|
nevynxxx Veteran
Joined: 12 Nov 2003 Posts: 1123 Location: Manchester - UK
|
Posted: Tue Jan 06, 2004 1:55 pm Post subject: |
|
|
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 |
|
|
nevynxxx Veteran
Joined: 12 Nov 2003 Posts: 1123 Location: Manchester - UK
|
Posted: Tue Jan 06, 2004 6:54 pm Post subject: Re: pipe key mismapping resolved |
|
|
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 |
|
|
tjcannell n00b
Joined: 21 Aug 2003 Posts: 10
|
Posted: Sun Jan 11, 2004 2:39 pm Post subject: |
|
|
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 |
|
|
nevynxxx Veteran
Joined: 12 Nov 2003 Posts: 1123 Location: Manchester - UK
|
Posted: Mon Jan 12, 2004 9:06 am Post subject: |
|
|
Thanks MacFlecknoe thats what I was looking for. _________________ My Public Key
Wanted: Instructor in the art of Bowyery |
|
Back to top |
|
|
strerror Retired Dev
Joined: 16 Jan 2004 Posts: 24
|
Posted: Mon Jan 19, 2004 11:04 pm Post subject: |
|
|
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 |
|
|
SixByNine n00b
Joined: 09 Jan 2004 Posts: 5
|
Posted: Mon Jan 26, 2004 12:31 pm Post subject: |
|
|
I have also mannaged to fix it in the terminal, but X still plays up
Anyone got a fix? |
|
Back to top |
|
|
strerror Retired Dev
Joined: 16 Jan 2004 Posts: 24
|
Posted: Mon Jan 26, 2004 9:11 pm Post subject: |
|
|
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 |
|
|
|