Header di Denis Gottardello

Torna all'indice


Telecomandi

Telecomandi Microsoft eHome (usb generici) Telecomandi Microsoft eHome (usb generici)

Vengono sempre più venduti i telecomandi usb generici, che su sistema operativo Windows vengono gestiti da un driver generico.
La particolarità è che essi sono intercambiabili, cioè sostituire un telecomando con un altro non richiede alcuna configurazione purché siano marchiati con il simbolo eHome o anche IR6.
Anche su Linux essi si possono configurare senza grossi problemi e diventano intercambiabili. Di seguito spiego come ho configurato il mio.

Su Debian Lenny è sufficiente utilizzare ciò che Debian mette a disposizione. Su Debian Squeeze le cose non sono così semplici. Di seguito spiegherò come fare.
Prima di tutto ho installato lirc, cioè apt-get install lirc.
Fatto ciò ho compiliato ed installato il modulo del kernel lirc_mceusb2. Per farlo ho usato l'utility module-assistant.
Ora la configurazione del telecomando si fa semplicemente copiando il file già pronto e fornito da Debian trovato nella cartella /usr/share/doc/lirc/remotes/mceusb. Tale file l'ho copiato in /etc/lirc e l'ho rinominato in lircd.conf.
Nel caso si usi un telecomando usb gestito dal driver lirc_mceusb2 non è necessario modificare il file hardware.conf.
Per quanto riguarda Debian Squeeze le cose sono un po' più complicate. Il pacchetto lirc-modules-source non funziona, non si riesce a terminale la compilazione.
Ho risolto scaricando da questo sito http://packages.ubuntu.com/lucid/utils/ i pacchetti lirc e lirc-modules-source. Ho avviato l'installazione del secondo il quale compila al volo ed installa i driver del kernel. Hatto ciò ho avviato l'installazione del primo il quale esegue uno wizard per la configurazione del telecomando.
Alla fine della procedura tutto funziona perfettamente.
Il wizard andrà a configurare correttamente tutto quanto serve. Da questo punto in avanti ci si conporta in modo analogo sia su Debian Squeeze che su Debian Lenny.
Inseriamo poi nella cartella /home/mythtv/.mythtv/ il file con le corrispondenze. Permetterà a MythTV ed a Mplyer di essere controllati con il telecomando.
Ecco il file lircrc /home/mythtv/.mythtv/lircrc


#
# mythtv native LIRC config file for
# the IR6 eHome
#
# By Denis Gottardello 06.12.2009
#

begin
    prog = mythtv
    button = POWER
    config = Esc
end

begin
    prog = mythtv
    button = ONE
    config = 1
end

begin
    prog = mythtv
    button = TWO
    config = 2
end

begin
    prog = mythtv
    button = THREE
    config = 3
end

begin
    prog = mythtv
    button = FOUR
    config = 4
end

begin
    prog = mythtv
    button = FIVE
    config = 5
end

begin
    prog = mythtv
    button = SIX
    config = 6
end

begin
    prog = mythtv
    button = SEVEN
    config = 7
end

begin
    prog = mythtv
    button = EIGHT
    config = 8
end

begin
    prog = mythtv
    button = NINE
    config = 9
end

begin
    prog = mythtv
    button = ZERO
    config = 0
end

# Manca AV
# Manca Reload

begin
    prog = mythtv
    button = OSD
    config = I
end

begin
    prog = mythtv
    button = EPG
    config = M
end

begin
    prog = mythtv
    button = UP
    config = Up
end

begin
    prog = mythtv
    button = DOWN
    config = Down
end

begin
    prog = mythtv
    button = LEFT
    config = Left
end

begin
    prog = mythtv
    button = RIGHT
    config = Right
end

begin
    prog = mythtv
    button = OK
    config = Return
end

begin
    prog = mythtv
    button = INFO
    config = F1
end

begin
    prog = mythtv
    button = TXT
    config = c
end

begin
    prog = mythtv
    button = CLOCK
    config = F8
end

# Manca Rosso (Clock)
# Manca Verde (Fullscreen)
# Manca Giallo (Audio)

begin
    prog = mythtv
    button = TELETEXT
    config = t
end

begin
    prog = mythtv
    button = VOLUP
    config = ]
end

begin
    prog = mythtv
    button = VOLDOWN
    config = [
end

begin
    prog = mythtv
    button = MUTE
    config = |
end

begin
    prog = mythtv
    button = CHANUP
    config = z
end

begin
    prog = mythtv
    button = CHANDOWN
    config = q
end

begin
    prog = mythtv
    button = PAUSE
    config = p
end

begin
    prog = mythtv
    button = PLAY
    config = p
end

begin
    prog = mythtv
    button = RECORD
    config = r
end

begin
    prog = mythtv
    button = FORWARD
    config = Right
end

begin
    prog = mythtv
    button = STOP
    config = p
end

begin
    prog = mythtv
    button = REWIND
    config = Left
end

#########################################################
#########################################################
#########################################################
#########################################################
#########################################################

begin
    prog = mplayer
    button = POWER
    config = quit
end

# Manca 1
# Manca 2
# Manca 3
# Manca 4
# Manca 5
# Manca 6
# Manca 7
# Manca 8
# Manca 9
# Manca 0
# Manca AV

begin
    prog = mplayer
    button = RELOAD
    config = speed_set 1
end

begin
    prog = mplayer
    button = OSD
    config = osd
end

# Manca EPG

begin
    prog = mplayer
    button = UP
    config = seek +60
end

begin
    prog = mplayer
    button = DOWN
    config = seek -60
end

begin
    prog = mplayer
    button = LEFT
    config = seek -10
end

begin
    prog = mplayer
    button = RIGHT
    config = seek +10
end

# Manca Return
begin
    prog = mplayer
    button = INFO
    config = osd_show_text
end

# Manca TXT
# Manca Rosso (Clock)
# Manca Verde (Fullscreen)
# Manca Giallo (Audio)
# Manca Blu (Teletext)

begin
    prog = mplayer
    button = VOLUP
    config = Volume 1
end

begin
    prog = mplayer
    button = VOLDOWN
    config = Volume -1
end

begin
    prog = mplayer
    button = MUTE
    config = mute
end

begin
    prog = mplayer
    button = CHANUP
    config = speed_incr 1
end

begin
    prog = mplayer
    button = CHANDOWN
    config = speed_incr -1
end

begin
    prog = mplayer
    button = PAUSE
    config = p
end

begin
    prog = mplayer
    button = PLAY
    config = p
end

# Manca RECORD

begin
    prog = mplayer
    button = FORWARD
    config = seek +600
end

begin
    prog = mplayer
    button = STOP
    config = quit
end

begin
    prog = mplayer
    button = REWIND
    config = seek -600
end

#########################################################
#########################################################
#########################################################
#########################################################
#########################################################

begin
    prog = xine
    button = ESC
    config = quit
end

# Manca 1
# Manca 2
# Manca 3
# Manca 4
# Manca 5
# Manca 6
# Manca 7
# Manca 8
# Manca 9
# Manca 0
# Manca AV

begin
    prog = xine
    button = RELOAD
    config = speed_set 1
end

begin
    prog = xine
    button = OSD
    config = osd
end

# Manca EPG

begin
    prog = xine
    button = UP
    config = seek +60
end

begin
    prog = xine
    button = DOWN
    config = seek -60
end

begin
    prog = xine
    button = LEFT
    config = seek -10
end

begin
    prog = xine
    button = RIGHT
    config = seek +10
end

# Manca Return

begin
    prog = xine
    button = INFO
    config = osd_show_text
end

# Manca TXT
# Manca Rosso (Clock)
# Manca Verde (Fullscreen)
# Manca Giallo (Audio)
# Manca Blu (Teletext)

begin
    prog = xine
    button = VOLUP
    config = Volume 1
end

begin
    prog = xine
    button = VOLDOWN
    config = Volume -1
end

begin
    prog = xine
    button = MUTE
    config = mute
end

begin
    prog = xine
    button = CHAINUP
    config = speed_incr 1
end

begin
    prog = xine
    button = CHAINDOWN
    config = speed_incr -1
end

begin
    prog = xine
    button = PAUSE
    config = p
end

begin
    prog = xine
    button = PLAY
    config = p
end

# Manca RECORD

begin
    prog = xine
    button = FORWARD
    config = seek +600
end

begin
    prog = xine
    button = STOP
    config = quit
end

begin
    prog = xine
    button = REWIND
    config = seek -600
end

Torna all'indice


www.denisgottardello.it
Designed by silviacossu.com