On Fre, 2002-03-22 at 20:12, Derek Broughton wrote:
> For making your keycodes workable, see  http://fake.by-infonet.de/laptop/
> (section 9) which describes how he got extra keys to work on a Compaq.
> Would probably work for dell too (someday, I'll try it on my own Inspiron -
> the 2500s never could get the benefit of the extra keys).

That link got me onto the right track, thanks Derek!

Here's my setup for those interested:

First you need to make the keycodes known to the kernel:
/usr/bin/setkeycodes e030 120 e02e 121 e001 122 e002 123 \
                     e003 124 e004 125 e020 126

Of course you can patch this into your kernel too;-) Follow the link
above for an explaination how to do that;-)

Then you need to modify the keymaps. I did my own keymap looking like
this:
# German keymap with those extra keys on the DELL inspiron enabled:
include "de-latin1-nodeadkeys.kmap"

keycode 120 = F20
keycode 121 = F21
keycode 122 = F22
keycode 123 = F23
keycode 124 = F24
keycode 125 = F25
keycode 126 = F26

and stored the whole thing with the rest of the keymaps in
/usr/share/keymaps/i386/qwertz. Don't forget to gzip this;-)

Make then do useful thigs by appending lines like this to your keymap:
string F20="ls -alFd\n"

Now reconfigure console-data to leave your keymap allone
(dpkg-reconfigure console-data) and install your new keymap:
install-keymap de-dell.kmap

That's it: Now those keys work on the console. To get them to do useful
things in X you need to do this:

Write a ~/.xmodmap-laptop file like this one:
keycode 129 = F22
keycode 130 = F23
keycode 131 = F24
keycode 132 = F25

keycode 176 = F20
keycode 174 = F21
keycode 160 = F26

Now X knows about those keys. You need to make your windowmanager
associate soem actions with those keys. How to do that depends on your
favirite WM of course.

I have WindowMaker run aumix -v -5 and +5 on presses of F21 and F20 and
call a this script on F26:
#!/bin/sh
if test -f ~/.aumix-state ; then
        /usr/bin/aumix -f ~/.aumix-state -L > /dev/null
        rm ~/.aumix-state
else    
        /usr/bin/aumix -v q > ~/.aumix-state
        /usr/bin/aumix -v 0 > /dev/null
fi

Works great to mute aumix on a phonecall.

I hope this helps someone;-)

-- 
Gruss,
Tobias

-------------------------------------------------------------------
Tobias Hunger                  The box said: 'Windows 95 or better'
[EMAIL PROTECTED]                  So I installed Linux.
-------------------------------------------------------------------

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to