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
logitech ex110... tasti multimediali... si potrà?
Moderatore: Staff
Regole del forum
1) Citare sempre la versione di Slackware usata, la versione del Kernel e magari anche la versione della libreria coinvolta. Questi dati aiutano le persone che possono rispondere.
2) Per evitare confusione prego inserire in questo forum solo topic che riguardano appunto Slackware, se l'argomento è generale usate il forum Gnu/Linux in genere.
3) Leggere attentamente le risposte ricevute.
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT.
6) Appena registrati è consigliato presentarsi nel forum dedicato.
La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.
1) Citare sempre la versione di Slackware usata, la versione del Kernel e magari anche la versione della libreria coinvolta. Questi dati aiutano le persone che possono rispondere.
2) Per evitare confusione prego inserire in questo forum solo topic che riguardano appunto Slackware, se l'argomento è generale usate il forum Gnu/Linux in genere.
3) Leggere attentamente le risposte ricevute.
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT.
6) Appena registrati è consigliato presentarsi nel forum dedicato.
La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.
-
zxzxasas
- Linux 2.x

- Messaggi: 397
- Iscritto il: sab 15 nov 2008, 2:28
- Nome Cognome: Pasquale
- Slackware: current
- Kernel: 2.6.35.7
- Desktop: KDE 4.5.2
Re: logitech ex110... tasti multimediali... si potrà?
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!
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!
-
huvber
- Linux 2.x

- Messaggi: 209
- Iscritto il: gio 6 mar 2008, 21:45
- Slackware: current
- Desktop: KDE 4.2.1
Re: logitech ex110... tasti multimediali... si potrà?
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 -
zxzxasas
- Linux 2.x

- Messaggi: 397
- Iscritto il: sab 15 nov 2008, 2:28
- Nome Cognome: Pasquale
- Slackware: current
- Kernel: 2.6.35.7
- Desktop: KDE 4.5.2
Re: logitech ex110... tasti multimediali... si potrà?
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!
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!