Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Hardware] Tasti Multimediali e mappatura strana
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
-YoShi-
l33t
l33t


Joined: 26 Nov 2003
Posts: 684
Location: Besana Brianza - ItaLy -

PostPosted: Fri Dec 30, 2005 8:11 am    Post subject: [Hardware] Tasti Multimediali e mappatura strana Reply with quote

Eccomi di nuovo qua. Più che un problema, è una curiosità, perchè non so se è giusto che il tutto funzini così.

In pratica ho seguito questa guida http://gentoo-wiki.com/HOWTO_Use_Multimedia_Keys per configurare i tasti multimediali della mia tastiera logitech.

I tasti base funzionano (audio,volume, ecc..) e vengono riconosciuti correttamente dal kernel.
Oltre hai soliti tasti :) la tastiera ha anche dei tasti programmabili attivabili mediante un tasto "mode" posizionati da F1 a F12.
Per questi tasti ho seguito la guida. Questo passaggio in particolare:
Code:

If pressing a key doesn't do anything at all (ie, no output from xev), run the following command in an X terminal:

dmesg

You will probably see some lines like these:
Code: Output of dmesg

atkbd.c: Unknown key released (translated set 2, code 0x96 on isa0060/serio0).
atkbd.c: Use 'setkeycodes e016 <keycode>' to make it known.

This means that the kernel doesn't have keycodes mapped to your keyboard's scancodes. You will have to add one line in /etc/conf.d/local.start for each missing key as follows:
File: /etc/conf.d/local.start

setkeycodes e008 136
setkeycodes e016 150
... And so on ...

Where the first number (e008) is what you see in dmesg, and the second number (136) in an unused keycode in your kernel. In general you can find a good keycode by taking the last 2 digits of this first number, converting it from hex (base-16) to decimal (base-10) and adding 128.


In pratica ho assegnato un setkeycode a ogni tasto, convertendo le ultime 2 cifre da HEX a Decimale e aggiungendo. Ho riavviato e i tasti funzionano.

Ed eccoci al dubbio.
Premetto che i setkeycode che ho aggiunto sono valori unici, premendo ogni tasto della tastiera non vengono ripetuti da nessun altro tasto (ho controllato).
Per fare una prova del corretto funzionamento ho lanciato "xev" per vedere come venivano mappati questi tasti funzione e, sorpresa sorpresa i tasti vengono ri-mappati con codici diversi da quelli che io ho inserito in /etc/conf.d/local.start.
Per esempio un 191 mi diventa 247 e via così. Ora questo è normale oppure ho sbagliato qualcosa? anche perchè se rimappo /etc/conf.d/local.start
con nuovi codici alcuni di questi tasti multimediali smettono di funzionare (xev non li vede più) e i pochi che vanno assumono un valore setkeycode diverso.
fenomeno strano o è giusto così?
_________________
Io lo vedo tutti i giorni, un Re per vederlo deve uscire dal suo regno, e il Papa lo vede quando si spoglia. Chi è?
Back to top
View user's profile Send private message
-YoShi-
l33t
l33t


Joined: 26 Nov 2003
Posts: 684
Location: Besana Brianza - ItaLy -

PostPosted: Tue Jan 03, 2006 8:46 am    Post subject: Reply with quote

Up!

Allora? :roll: Nessuno che ha una tastiera wireless può fare una prova?
_________________
Io lo vedo tutti i giorni, un Re per vederlo deve uscire dal suo regno, e il Papa lo vede quando si spoglia. Chi è?
Back to top
View user's profile Send private message
X-Drum
Advocate
Advocate


Joined: 24 Aug 2003
Posts: 2517
Location: ('Modica','Trieste','Ferrara') Italy

PostPosted: Tue Jan 03, 2006 11:21 am    Post subject: Reply with quote

io ho una tastiera ps/2 della logitech (ok non è wireless) ma è dotata
di 6 tasti multimediali, emergendo il pacchetto:
Code:
x11-misc/hotkeys


sono riuscito a configurarli tutti, hai provato questto pacchetto?
vengono installati anche dei file di configurazione per le tastiere
piu' diffuse, io ne ho comunque creato uno ex-novo con l'ausilio
di xev per ottenere i keycodes
_________________
"...There are two sort of lies, lies and benchmarks..."
Back to top
View user's profile Send private message
-YoShi-
l33t
l33t


Joined: 26 Nov 2003
Posts: 684
Location: Besana Brianza - ItaLy -

PostPosted: Tue Jan 03, 2006 1:06 pm    Post subject: Reply with quote

Bo. a me i tasti multimediali funzionano anche senza emergere quel pacchetto. La cosa che mi lascia perplesso è il fatto che la mappatura dei tasti è diversa da quella che ho impostato io
_________________
Io lo vedo tutti i giorni, un Re per vederlo deve uscire dal suo regno, e il Papa lo vede quando si spoglia. Chi è?
Back to top
View user's profile Send private message
X-Drum
Advocate
Advocate


Joined: 24 Aug 2003
Posts: 2517
Location: ('Modica','Trieste','Ferrara') Italy

PostPosted: Tue Jan 03, 2006 2:49 pm    Post subject: Reply with quote

-YoShi- wrote:
Bo. a me i tasti multimediali funzionano anche senza emergere quel pacchetto. La cosa che mi lascia perplesso è il fatto che la mappatura dei tasti è diversa da quella che ho impostato io

dipende dalla tastiera e dal DE che utilizzi:
nel mio caso (il fisso con la logitech ps/2) uso kde e odiando khotkeys ho preferito
utilizzare hotkeys, ad esempio, sul portatile invece ho optato per una mappatura
via xev dei tasti multimediali, dipende dal contesto
_________________
"...There are two sort of lies, lies and benchmarks..."
Back to top
View user's profile Send private message
-YoShi-
l33t
l33t


Joined: 26 Nov 2003
Posts: 684
Location: Besana Brianza - ItaLy -

PostPosted: Thu Jan 05, 2006 1:22 pm    Post subject: Reply with quote

Ah ho capito..
Giusto per una mia curiosità personale potresti, appena hai un minuto, vedere se anche fa quello "scherzo" della mappatura diversa sul pc con i tasti multimediali impostati con xev?
_________________
Io lo vedo tutti i giorni, un Re per vederlo deve uscire dal suo regno, e il Papa lo vede quando si spoglia. Chi è?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum