tux-debianwww.palmix.orgtux-debian


  HOME  TUTORIALS  ARTICLES  DOWNLOADS  LINKS ITALIANO

 
DEBIAN AND MULTIMEDIA KEYS
by Francesco Palmisano



To use multimedia keys present in many laptops, it's necessary:

1)to assign a keycode to every multimedia key
2)to create a keys map

Some distro, like Ubuntu, preinstall a "map" for this keys, but they aren't the same in every notebook.
So, let's proceed to create a personal keymap for our laptop:
First of all install, with your packages manager, this programs:

x11-xserver-utils
x11-utils

The next example is for Sony Vaio FZ, but the procedure is the same for every notebook.
Login as root into a terminal and give this command:

xev

it's appear something like this:

xev

Now you can discover key codes of all your keys; for example pressing the fn+F2 (audio MUTE) combination, you can see that its keycode is 160:

xev2

Now open a text editor and write down your personal keymap like this:

xmodmap

salve this file with the name .Xmodmap in your home directory (don't forget the dot before the name!).
Now restart your X server with Ctrl+Alt+Backspace and login yourself again.
Now you need to set action to the multimedia keys.
For example, KDE user, can sets volume key with volume commands:

In Kmix select, from the menu Setting, the voice Configure Global Shortcuts and set the rights keys for audio controls.
Since now, you'll set audio with multimedia keys!

P.S. the keys map visible in the last image is "good" for all Sony Vaio FZ11 and FZ21


back on topback to tutorials