Bonjour.

Petit probleme avec une Mdk 8.2 / bureau Gnome 2.0/metacity :
J'utilise un clavier Qware avec des touches de fonction additionnelles (www, mute, vol+ etc.).
Mon probleme est le suivant :


Une fois :

1) declarees toutes les touches dans /usr/X11R6/lib/X11/XKeysymDB,
(extrait)
sleep:10090000
mute:10090001
v_down:10090002
scrolling_down:10090003
rewind:10090004
playpause:10090005
stop:10090006
v_up:10090007
menu:10090008
calc:10090009
scrolling_up:1009000A
zooming_up:1009000B
fast_fwd:1009000C
zooming_down:1009000D
x_fer:1009000E
www:1009000F
msg:10090010
power:10090011
wake:10090012

2) que j'ai modifie le .Xmodmap qui va bien...
keycode 223 = sleep keycode 158 = mute
keycode 232 = v_down
keycode 152 = scrolling_down
keycode 151 = rewind
keycode 146 = playpause
keycode 163 = stop
keycode 176 = v_up keycode 162 = menu
keycode 164 = calc
keycode 144 = scrolling_up
keycode 178 = zooming_up
keycode 174 = fast_fwd
keycode 153 = zooming_down
keycode 165 = x_fer
keycode 161 = www
keycode 166 = msg
keycode 222 = power
keycode 227 = wake


3) que j'ai fait un xmodmap -pk qui me confirme que tout a ete charge au demarrage

4) que j'ai verifie que tout se passe bien avec xev, (bonnes correlations touche / numero de touche)
KeyPress event, serial 25, synthetic NO, window 0x2600001,
root 0x7b, subw 0x2600002, time 3991275040, (44,32), root:(48,79),
state 0x10, keycode 166 (keysym 0x10090010, msg), same_screen YES,
XLookupString gives 0 characters: ""
...... (les autres fonctionnent aussi)


5) je lance un gconf, pour me faire qqes associations sympas.....Apres config, on obtient :

i) $ gconftool-2 --recursive-list /apps/metacity/global_keybindings
run_command_10 = fast_fwd
run_command_11 = zooming_down
run_command_12 = zooming_up
run_command_13 = calc
run_command_14 = x_fer
run_command_15 = menu
run_command_16 = msg
run_command_17 = power
run_command_18 = sleep
run_command_19 = wake
run_command_1 = www
run_command_2 = mute
run_command_3 = v_down
run_command_4 = v_up
run_command_5 = scrolling_down
run_command_6 = scrolling_up
run_command_7 = rewind
run_command_8 = playpause
run_command_9 = stop

ii) $ gconftool-2 --recursive-list /apps/metacity/keybinding_commands
command_7 = /usr/bin/xmms --rew
command_19 =
command_8 = /usr/bin/xmms --play-pause
command_10 = /usr/bin/xmms --fwd
command_9 = /usr/bin/xmms --stop
command_11 = command_12 = command_13 = /usr/bin/xmms
command_1 = /usr/bin/mozilla -chrome
command_2 = /usr/bin/aumix -v 5
command_14 =
command_3 = /usr/bin/aumix -v-10
command_15 =
command_4 = /usr/bin/aumix -v+10
command_16 = /usr/bin/mozilla -mail
command_17 =
command_5 = command_18 = /usr/bin/xscreensaver-command -activate
command_6 =


Résultat des manip :
Les touches zooming_up, calc, x_fer, menu, msg, power, sleep, wake ne fonctionnent pas dans l'environnement gnome (les apps associees a calc, msg et sleep ne se lancent pas)
Indice : J'ai du créer des nouvelles associations touches / run_command et des nouvelles associations run_command / command dans le gconf pour faire apparaitre ces touches. Je soupconne donc d'avoir oublie quelque chose dans le fichier de gconf... Mais quoi?
Les schemas associes a ces entrees ( /schemas/metacity/keybinding_commands et /schemas/metacity/global_keybindings ) ne disent pas grand chose...
Si quelqu'un s'y connait en gconf, et a deja rencontre ce pb...



Vous souhaitez acquerir votre Pack ou des Services MandrakeSoft?
Rendez-vous sur "http://www.mandrakestore.com";

Répondre à