configuração do controle remoto da apple no iMac com o Ubuntu 12.10

1

no processo de configuração do controle remoto do meu iMac (executando o Ubuntu 12.10), estou preso.

Eu segui as instruções que encontrei no link e estou preso após a segunda parte: conforme recomendado no como -para eu corro

irw

e eu vejo corretamente o sinal que o controle remoto está enviando (reproduzir, pausar, encaminhar etc.). Sofar tudo perfeito.

Então eu peguei um .lircrc da web que contém isso:

##################################################
#### Save as ~/.lircrc ###########################
#### After modifying: ############################
#### sudo /etc/init.d/lirc restart ###############
##################################################

#############
#### VLC ####
#############

begin
prog = vlc
button = KEY_PLAYPAUSE
config = key-play-pause
repeat = 0
end

begin
prog = vlc
button = KEY_MENU
config = key-stop
repeat = 0
end

begin
prog = vlc
button = KEY_REWIND
config = key-jump-short
repeat = 1
end

begin
prog = vlc
button = KEY_FORWARD
config = key-jump+short
repeat = 1
end

begin
prog = vlc
button = KEY_VOLUMEUP
config = key-vol-up
repeat = 1
end

begin
prog = vlc
button = KEY_VOLUMEDOWN
config = key-vol-down
repeat = 1
end

#################
#### MPlayer ####
#################

#begin mplayer
begin
prog = mplayer
button = KEY_PLAYPAUSE
config = pause
repeat = 15
end

begin
prog = mplayer
button = KEY_MENU
config = stop
repeat = 15
end

begin
prog = mplayer
button = KEY_REWIND
config = seek -10
repeat = 10
end

begin
prog = mplayer
button = KEY_FORWARD
config = seek +10
repeat = 10
end

begin
prog = mplayer
button = KEY_VOLUMEUP
config = volume 1
repeat = 1
end

begin
prog = mplayer
button = KEY_VOLUMEDOWN
config = volume -1
repeat = 1
end
#end mplayer

###############
#### Totem ####
###############

begin
prog = Totem
button = KEY_PLAYPAUSE
config = play_pause
end

begin
prog = Totem
button = KEY_MENU
config = fullscreen
end

begin
prog = Totem
button = KEY_FORWARD
config = seek_forward
end

begin
prog = Totem
button = KEY_REWIND
config = seek_backward
end

begin
prog = Totem
button = KEY_VOLUMEUP
config = volume_up
repeat = 1
end

begin
prog = Totem
button = KEY_VOLUMEDOWN
config = volume_down
repeat = 1
end

###################
#### Audacious ####
###################

begin
prog = audacious
button = KEY_PLAYPAUSE
config = PAUSE
repeat = 16
end

begin
prog = audacious
button = KEY_MENU
config = STOP
repeat = 0
end

begin
prog = audacious
button = KEY_FORWARD
config = NEXT
repeat = 16
end

begin
prog = audacious
button = KEY_REWIND
config = PREV
repeat = 16
end

################################################## ##############################
#### Turn up and down the volume (Working by default on Feisty) ####
################################################## ##############################

begin
prog = irexec
button = KEY_VOLUMEUP
config = amixer set PCM 9+ & #amixer set PCM 3%+ &
repeat = 2
end

begin
prog = irexec
button = KEY_VOLUMEDOWN
config = amixer set PCM 9- & #amixer set PCM 3%- &
repeat = 2
end

##############################################
#### Evince y OpenOffice (Presentations) ####
#### start with line command:
#### $ irxevent -d
#### and kill with:
#### $ killall irxevent
##############################################

begin
prog = irxevent
button = KEY_PLAYPAUSE
config = Key F11 CurrentWindow
config = Key F5 CurrentWindow
repeat = 0
end

begin
prog = irxevent
button = KEY_MENU
config = Key Escape CurrentWindow
repeat = 0
end

begin
prog = irxevent
button = KEY_REWIND
config = Key Prior CurrentWindow
repeat = 1
end

begin
prog = irxevent
button = KEY_FORWARD
config = Key Next CurrentWindow
repeat = 1
end

begin
prog = irxevent
button = KEY_VOLUMEUP
config = Key ctrl-plus CurrentWindow
repeat = 0
end

begin
prog = irxevent
button = KEY_VOLUMEDOWN
config = Key ctrl-minus CurrentWindow
repeat = 0
end

que eu escolhi porque estava parecendo como deveria, de acordo com a página do lirc ( link )

Então pensei que seria assim, então corri

irexec -d

pensando que eu poderia reproduzir / pausar / encaminhar meus vídeos favoritos em vlc com o controle remoto, mas depois de disparar vlc, não estava funcionando.

Eu reiniciei, repeti, tentei também outras vezes executando o deamon (como root ou não, tentando realmente cada combinação) com:

sudo /etc/init.d/lirc start

mas sem sucesso. Eu procurei e não encontrei algo funcionando. Eu posso perder alguma coisa. Obviamente eu fiz algo errado (ou esqueci de fazer alguma coisa), então eu gostaria de perguntar a vocês sua ajuda / conselho.

    
por Iam Zesh 09.02.2013 / 15:28

1 resposta

0

Você precisa ativar a interface lirc do vlc player para que isso funcione.

    
por user137609 04.03.2013 / 21:13