Pagina 1 di 1

logitech ex110... tasti multimediali... si potrà?

Inviato: dom 15 mar 2009, 19:24
da huvber
Salve,
io ho slackware-current installato e kde4 come DM volevo sapere se era possibile utilizzare i tasti multimediali della mia tastiera (quella nel titolo) e se si come impostarli? grazie

Re: logitech ex110... tasti multimediali... si potrà?

Inviato: dom 15 mar 2009, 19:29
da zxzxasas
Allora...

apri una shell, lancia xev, metti il puntatore del mouse sulla finestra di X che ti compare e guarda alla pressione dei tasti se compare qualcosa!
In tal caso, vediamo come fare!

Re: logitech ex110... tasti multimediali... si potrà?

Inviato: dom 15 mar 2009, 19:56
da huvber

Codice: Seleziona tutto

ButtonRelease event, serial 34, synthetic NO, window 0x3200001,
    root 0xb1, subw 0x3200002, time 4214537, (37,33), root:(839,58),
    state 0x100, button 1, same_screen YES                          

LeaveNotify event, serial 34, synthetic NO, window 0x3200001,
    root 0xb1, subw 0x0, time 4214537, (37,33), root:(839,58),
    mode NotifyUngrab, detail NotifyInferior, same_screen YES,
    focus YES, state 0                                        

KeyPress event, serial 34, synthetic NO, window 0x3200001,
    root 0xb1, subw 0x3200002, time 4217937, (37,33), root:(839,58),
    state 0x0, keycode 162 (keysym 0x0, NoSymbol), same_screen YES, 
    XLookupString gives 0 bytes:                                    
    XmbLookupString gives 0 bytes:                                  
    XFilterEvent returns: False                                     

KeyRelease event, serial 34, synthetic NO, window 0x3200001,
    root 0xb1, subw 0x3200002, time 4218049, (37,33), root:(839,58),
    state 0x0, keycode 162 (keysym 0x0, NoSymbol), same_screen YES, 
    XLookupString gives 0 bytes:                                    
    XFilterEvent returns: False                                     

KeyPress event, serial 34, synthetic NO, window 0x3200001,
    root 0xb1, subw 0x3200002, time 4218802, (37,33), root:(839,58),
    state 0x0, keycode 164 (keysym 0x0, NoSymbol), same_screen YES, 
    XLookupString gives 0 bytes:                                    
    XmbLookupString gives 0 bytes:                                  
    XFilterEvent returns: False                                     

KeyRelease event, serial 34, synthetic NO, window 0x3200001,
    root 0xb1, subw 0x3200002, time 4218921, (37,33), root:(839,58),
    state 0x0, keycode 164 (keysym 0x0, NoSymbol), same_screen YES, 
    XLookupString gives 0 bytes:                                    
    XFilterEvent returns: False                                     

KeyPress event, serial 34, synthetic NO, window 0x3200001,
    root 0xb1, subw 0x3200002, time 4219777, (37,33), root:(839,58),
    state 0x0, keycode 144 (keysym 0x0, NoSymbol), same_screen YES, 
    XLookupString gives 0 bytes:                                    
    XmbLookupString gives 0 bytes:                                  
    XFilterEvent returns: False                                     

KeyRelease event, serial 34, synthetic NO, window 0x3200001,
    root 0xb1, subw 0x3200002, time 4219817, (37,33), root:(839,58),
    state 0x0, keycode 144 (keysym 0x0, NoSymbol), same_screen YES, 
    XLookupString gives 0 bytes:                                    
    XFilterEvent returns: False                                     

KeyPress event, serial 34, synthetic NO, window 0x3200001,
    root 0xb1, subw 0x3200002, time 4220441, (37,33), root:(839,58),
    state 0x0, keycode 153 (keysym 0x0, NoSymbol), same_screen YES, 
    XLookupString gives 0 bytes:                                    
    XmbLookupString gives 0 bytes:                                  
    XFilterEvent returns: False                                     

KeyRelease event, serial 34, synthetic NO, window 0x3200001,
    root 0xb1, subw 0x3200002, time 4220481, (37,33), root:(839,58),
    state 0x0, keycode 153 (keysym 0x0, NoSymbol), same_screen YES, 
    XLookupString gives 0 bytes:                                    
    XFilterEvent returns: False                                     

KeyPress event, serial 34, synthetic NO, window 0x3200001,
    root 0xb1, subw 0x3200002, time 4221425, (37,33), root:(839,58),
    state 0x0, keycode 160 (keysym 0x0, NoSymbol), same_screen YES, 
    XLookupString gives 0 bytes:                                    
    XmbLookupString gives 0 bytes:                                  
    XFilterEvent returns: False                                     

KeyRelease event, serial 34, synthetic NO, window 0x3200001,
    root 0xb1, subw 0x3200002, time 4221617, (37,33), root:(839,58),
    state 0x0, keycode 160 (keysym 0x0, NoSymbol), same_screen YES, 
    XLookupString gives 0 bytes:                                    
    XFilterEvent returns: False                                     

KeyPress event, serial 34, synthetic NO, window 0x3200001,
    root 0xb1, subw 0x3200002, time 4221954, (37,33), root:(839,58),
    state 0x0, keycode 174 (keysym 0x0, NoSymbol), same_screen YES, 
    XLookupString gives 0 bytes:                                    
    XmbLookupString gives 0 bytes:                                  
    XFilterEvent returns: False                                     

KeyRelease event, serial 34, synthetic NO, window 0x3200001,
    root 0xb1, subw 0x3200002, time 4222185, (37,33), root:(839,58),
    state 0x0, keycode 174 (keysym 0x0, NoSymbol), same_screen YES, 
    XLookupString gives 0 bytes:                                    
    XFilterEvent returns: False                                     

KeyPress event, serial 34, synthetic NO, window 0x3200001,
    root 0xb1, subw 0x3200002, time 4222465, (37,33), root:(839,58),
    state 0x0, keycode 176 (keysym 0x0, NoSymbol), same_screen YES, 
    XLookupString gives 0 bytes:                                    
    XmbLookupString gives 0 bytes:                                  
    XFilterEvent returns: False                                     

KeyRelease event, serial 34, synthetic NO, window 0x3200001,
    root 0xb1, subw 0x3200002, time 4222689, (37,33), root:(839,58),
    state 0x0, keycode 176 (keysym 0x0, NoSymbol), same_screen YES, 
    XLookupString gives 0 bytes:                                    
    XFilterEvent returns: False                                     

KeyPress event, serial 34, synthetic NO, window 0x3200001,
    root 0xb1, subw 0x3200002, time 4223002, (37,33), root:(839,58),
    state 0x0, keycode 236 (keysym 0x0, NoSymbol), same_screen YES, 
    XLookupString gives 0 bytes:                                    
    XmbLookupString gives 0 bytes:                                  
    XFilterEvent returns: False                                     

KeyRelease event, serial 34, synthetic NO, window 0x3200001,
    root 0xb1, subw 0x3200002, time 4223225, (37,33), root:(839,58),
    state 0x0, keycode 236 (keysym 0x0, NoSymbol), same_screen YES, 
    XLookupString gives 0 bytes:                                    
    XFilterEvent returns: False                                     

KeyPress event, serial 34, synthetic NO, window 0x3200001,
    root 0xb1, subw 0x3200002, time 4223554, (37,33), root:(839,58),
    state 0x0, keycode 178 (keysym 0x0, NoSymbol), same_screen YES, 
    XLookupString gives 0 bytes:                                    
    XmbLookupString gives 0 bytes:                                  
    XFilterEvent returns: False                                     

KeyRelease event, serial 34, synthetic NO, window 0x3200001,
    root 0xb1, subw 0x3200002, time 4223729, (37,33), root:(839,58),
    state 0x0, keycode 178 (keysym 0x0, NoSymbol), same_screen YES, 
    XLookupString gives 0 bytes:                                    
    XFilterEvent returns: False                                     

KeyPress event, serial 34, synthetic NO, window 0x3200001,
    root 0xb1, subw 0x3200002, time 4224058, (37,33), root:(839,58),
    state 0x0, keycode 161 (keysym 0x0, NoSymbol), same_screen YES, 
    XLookupString gives 0 bytes:                                    
    XmbLookupString gives 0 bytes:                                  
    XFilterEvent returns: False                                     

KeyRelease event, serial 34, synthetic NO, window 0x3200001,
    root 0xb1, subw 0x3200002, time 4224217, (37,33), root:(839,58),
    state 0x0, keycode 161 (keysym 0x0, NoSymbol), same_screen YES, 
    XLookupString gives 0 bytes:                                    
    XFilterEvent returns: False  
cliccando i tasti in sequenza

Re: logitech ex110... tasti multimediali... si potrà?

Inviato: dom 15 mar 2009, 20:19
da zxzxasas
Dovresti fare un file del tipo .xmodmaprc nella home che viene caricato dal programma xmodmap.
Questo file è del tipo

keycode numero = FX

dove numero è il keycode del tasto (che ti compare con xev) e X è un numero >12
In tal modo associ un "simbolo" al tasto. Cioè rendi un tasto qualsiasi un tasto "funzione".

supponiamo che il file contenga

keycode 162=F20

A questo punto devi installare xbindkeys e creare nella home il file .xbindkeysrc che conterrà l' associazione tasto function <-> azione da fare

Supponiamo che quel tasto corrisponda a "stop", il file xbindkeysrc conterrebbe:

"dcop amarok player stop"
F20

Poi crei in ~/.kde/Autostart un file di nome tastimultimediali.sh e ci scrivi

xmodmap /home/user/.xmodmaprc
xbindkeys -f /home/user/.xbindkeysrc

e salvi!

Riavviando kde, il tasto funziona.
Però ti dico la verità, non saprei come fare con quei tasti che non hanno keycode!