Archief

Archief voor maart 2005

Multimedia buttons

2 maart 2005 Reacties uit

To use the 8 buttons on front of my laptop, I’ve checked the message I got in my console every time I pressed one of those buttons that weren’t in my keycode def.

Next I looked up the code in /usr/include/linux/input.h and set the keycodes with:

#FN-F10 (eject CD)
setkeycodes e009 161

#brightness up/down
setkeycodes e005 224
setkeycodes e006 225

I’ve used the lineakd package and the KDE plugins (linkead-kdeplugins) and added this section to /etc/lineakd.conf:

[DELL-6000]
 brandname = "Dell"
 modelname = "Dell Inspiron 6000"
 [KEYS]
   Play        = 162
   Previous    = 144
   Next        = 153
   Stop        = 164
   VolumeUp    = 176
   VolumeDown  = 174
   Mute        = 160
   Eject       = 161
 [END KEYS]
[END DELL-6000]

Next I’ve created a .lineak/.. configuration with:
lineakd -c DELL-6000.
I’ve edited the config file:

Mute = KMIX_MUTE
Next = JUK_FORWARD
Play = JUK_PLAY
Previous = JUK_BACK
Stop = JUK_STOP
VolumeUp = KMIX_VOLUP(10)
VolumeDown = KMIX_VOLDOWN(10)
Eject = EAK_OPEN_TRAY

Of course, you need kmix, and juk package.
The only thing that does not work yet is the eject button.
To autostart lineakd when starting KDE I did this:

cd ~/.kde/Autostart
ln -s `wich lineakd`

Categorie├źn:Linux on Dell Insipron 6000 Tags: