J'ai passé presque toute la journée sur cette affaire...en vain, parce la télécommande de ma PVR-350 n'est pas suportée. Mais si ça peut aider, le principe consiste en gros à:
- Télécharger lirc, gnome-lirc-properties, lirc-remotes (pour récupérer le fichier de mappage lircd.conf pour les hauppauge) totem-lirc (pourquoi pas aussi)
# yum install lirc gnome-lirc-properties lirc-remotes totem-lirc
- Démarrer le démon lircd
# service lirc start
- vérifier que les modules sont chargés (ils doivent l'être automatiquement pour les cartes USB)
# lsmod | grep lirc
# dmesg | grep lirc
- Lancer
gnome-lirc-properties et faire une détection automatique. Sinon selon les télécommandes modifier le fichier
/usr/share/gnome-lirc-properties/receivers.conf en s'inspirant de
/usr/share/lirc/lirc.hwdb et des messages du noyau et du 'lsusb' pour obtenir les identifiants du vendeur et du produit.
Si la détection échoue, il faut carément faire un rapport de bug selon la procédure indiquée.
Et enfin les fichiers de définition du mappage se placent dans /etc ou dans son home :
/etc/lircd.conf (/etc/lircmd.conf) /etc/lircrc
Il peut être aussi nécessaire de modifier au besoin le
/etc/sysconfig/lirc
En bonus : Le contenu de /etc/lircd.conf
#
# this config file was automatically generated
# using lirc-0.5.5pre8 on Sun Apr 18 11:43:45 1999
#
# contributed by Jens Leuschner <leuschner@gmx.net>
#
# brand: Hauppauge
# model:
# supported devices: WinTV primo; WinTV pci; WinTV radio
#
# This config file will work with both homebrew receivers and
# original Hauppauge TV cards !!!
#
begin remote
name Hauppauge
bits 13
flags SHIFT_ENC
eps 30
aeps 100
one 950 830
zero 950 830
plead 960
gap 89584
repeat_bit 2
begin codes
KEY_TV 0x000000000000100F
KEY_RADIO 0x000000000000100C
FULL_SCREEN 0x000000000000102E
KEY_CHANNELUP 0x0000000000001020
KEY_CHANNELDOWN 0x0000000000001021
KEY_VOLUMEDOWN 0x0000000000001011
KEY_VOLUMEUP 0x0000000000001010
KEY_MUTE 0x000000000000100D
SOURCE 0x0000000000001022
KEY_1 0x0000000000001001
KEY_2 0x0000000000001002
KEY_3 0x0000000000001003
KEY_4 0x0000000000001004
KEY_5 0x0000000000001005
KEY_6 0x0000000000001006
KEY_7 0x0000000000001007
KEY_8 0x0000000000001008
KEY_9 0x0000000000001009
KEY_0 0x0000000000001000
RESERVED 0x000000000000101E
MINIMIZE 0x0000000000001026
end codes
end remote
#
# this config file was automatically generated
# using lirc-0.6.6(animax) on Tue Apr 15 19:50:27 2003
#
# contributed by
#
# brand: Hauppauge
# model no. of remote control:
# devices being controlled by this remote: PVR 2/350
#
begin remote
name hauppauge_pvr
bits 13
flags RC5|CONST_LENGTH
eps 30
aeps 100
one 969 811
zero 969 811
plead 1097
gap 114605
toggle_bit 2
begin codes
Power 0x00000000000017FD
Go 0x00000000000017FB
1 0x00000000000017C1
2 0x00000000000017C2
3 0x00000000000017C3
4 0x00000000000017C4
5 0x00000000000017C5
6 0x00000000000017C6
7 0x00000000000017C7
8 0x00000000000017C8
9 0x00000000000017C9
Back/Exit 0x00000000000017DF
0 0x00000000000017C0
Menu 0x00000000000017CD
Red 0x00000000000017CB
Green 0x00000000000017EE
Yellow 0x00000000000017F8
Blue 0x00000000000017E9
Ch+ 0x00000000000017E0
Ch- 0x00000000000017E1
Vol- 0x00000000000017D1
Vol+ 0x00000000000017D0
Ok 0x00000000000017E5
Mute 0x00000000000017CF
Blank 0x00000000000017CC
Full 0x00000000000017FC
Rewind 0x00000000000017F2
Play 0x00000000000017F5
Forward 0x00000000000017F4
Record 0x00000000000017F7
Stop 0x00000000000017F6
Pause 0x00000000000017F0
Replay 0x00000000000017E4
Skip 0x00000000000017DE
end codes
end remote
#
# this config file was automatically generated
# using lirc-0.7.0(any) on Sun Nov 28 20:25:09 2004
#
# contributed by
#
# brand: Hauppauge 350
# Created: G.J. Werler (The Netherlands)
# Project: Mythtv Fedora Pundit-R www.mythtvportal.com
# Date: 2004/11/28
# model no. of remote control: Hauppauge A415-HPG
# devices being controlled by this remote: PVR-350
#
begin remote
name Hauppauge_350
bits 13
flags RC5|CONST_LENGTH
eps 30
aeps 100
one 969 811
zero 969 811
plead 1097
gap 114605
toggle_bit 2
begin codes
Go 0x00000000000017BB
Power 0x00000000000017BD
TV 0x000000000000179C
Videos 0x0000000000001798
Music 0x0000000000001799
Pictures 0x000000000000179A
Guide 0x000000000000179B
Radio 0x000000000000178C
Up 0x0000000000001794
Left 0x0000000000001796
Right 0x0000000000001797
Down 0x0000000000001795
OK 0x00000000000017A5
Back/Exit 0x000000000000179F
Menu/i 0x000000000000178D
Vol+ 0x0000000000001790
Vol- 0x0000000000001791
Prev.Ch 0x0000000000001792
Mute 0x000000000000178F
Ch+ 0x00000000000017A0
Ch- 0x00000000000017A1
Record 0x00000000000017B7
Stop 0x00000000000017B6
Rewind 0x00000000000017B2
Play 0x00000000000017B5
Forward 0x00000000000017B4
Replay/SkipBackward 0x00000000000017A4
Pause 0x00000000000017B0
SkipForward 0x000000000000179E
1 0x0000000000001781
2 0x0000000000001782
3 0x0000000000001783
4 0x0000000000001784
5 0x0000000000001785
6 0x0000000000001786
7 0x0000000000001787
8 0x0000000000001788
9 0x0000000000001789
Asterix 0x000000000000178A
0 0x0000000000001780
# 0x000000000000178E
Red 0x000000000000178B
Green 0x00000000000017AE
Yellow 0x00000000000017B8
Blue 0x00000000000017A9
end codes
end remote
#
# this config file was automatically generated
# using lirc-0.7.0pre4(serial) on Sun Oct 2 00:24:32 2005
#
# contributed by anton|ganthaler.at and juergen.wilhelm|aon.at
# members of linux user group Vorarlberg www.lugv.at
#
# for ir remote controler from Hauppauge WinTV Nexus-S
# most of the keys are supported
#
# brand: Hauppauge
# model no. of remote control: WinTV Nexus-S
# devices being controlled by this remote:
#
begin remote
name Hauppauge_WinTV_Nexus-S
bits 13
flags RC5|CONST_LENGTH
eps 30
aeps 100
one 944 828
zero 944 828
plead 980
gap 113932
min_repeat 1
toggle_bit 2
begin codes
Up 0x0000000000001794
Down 0x0000000000001795
Left 0x0000000000001796
Right 0x0000000000001797
Power 0x00000000000017BD
Ok 0x00000000000017A5
Menu 0x000000000000178D
Back 0x000000000000179F
Red 0x000000000000178B
Green 0x00000000000017AE
Yellow 0x00000000000017B8
Blue 0x00000000000017A9
0 0x0000000000001780
1 0x0000000000001781
2 0x0000000000001782
3 0x0000000000001783
4 0x0000000000001784
5 0x0000000000001785
6 0x0000000000001786
7 0x0000000000001787
8 0x0000000000001788
9 0x0000000000001789
Play 0x00000000000017B5
Pause 0x00000000000017B0
Stop 0x00000000000017B6
Record 0x00000000000017B7
FastFwd 0x00000000000017B4
FastRwd 0x00000000000017B2
Channel+ 0x00000000000017A0
Channel- 0x00000000000017A1
Volume+ 0x0000000000001790
Volume- 0x0000000000001791
Mute 0x000000000000178F
Timers 0x000000000000178A
Recordings 0x000000000000178E
Back 0x000000000000179F
Record 0x00000000000017B7
Pause 0x00000000000017B0
end codes
end remote
#
# this config file was automatically generated
# using lirc-0.8.3pre1(default) on Sat Jun 21 12:36:46 2008
#
# contributed by Matthew Wright
#
# brand: Hauppauge (HVR-1600 RT Remote)
# model no. of remote control: A415-HPG-A
# devices being controlled by this remote:
#
begin remote
name Hauppauge_HVR_1600
bits 13
flags RC5|CONST_LENGTH
eps 30
aeps 100
one 919 852
zero 919 852
plead 930
gap 112908
toggle_bit_mask 0x800
begin codes
power 0x17BD
go 0x17BB
tv 0x179C
videos 0x1798
music 0x1799
pictures 0x179A
guide 0x179B
radio 0x178C
exit 0x179F
menu 0x178D
prevch 0x1792
mute 0x178F
up 0x1794
down 0x1795
left 0x1796
right 0x1797
ok 0x17A5
volup 0x1790
voldown 0x1791
chup 0x17A0
chdown 0x17A1
record 0x17B7
stop 0x17B6
rewind 0x17B2
fastfwd 0x17B4
play 0x17B5
replay 0x17A4
skip 0x179E
pause 0x17B0
1 0x1781
2 0x1782
3 0x1783
4 0x1784
5 0x1785
6 0x1786
7 0x1787
8 0x1788
9 0x1789
* 0x178A
0 0x1780
# 0x178E
red 0x178B
green 0x17AE
yellow 0x17B8
blue 0x17A9
sub/cc 0x178E
text 0x178A
home 0x17BB
end codes
end remote
Le lircrc :
# edit the "button =" part for each entry according to your remote, and stick
# this stuff in ~/.lircrc
begin
prog = Totem
remote = *
button = KEY_PLAY
repeat = 1
config = play
end
begin
prog = Totem
remote = *
button = KEY_PAUSE
repeat = 0
config = pause
end
begin
prog = Totem
remote = *
button = KEY_FASTFORWARD
repeat = 1
config = seek_forward
end
begin
prog = Totem
remote = *
button = KEY_REWIND
repeat = 1
config = seek_backward
end
# FIXME
#begin
# prog = Totem
# remote = *
# button = YOUR_BUTTON
# repeat = 1
# config = fullscreen
#end
begin
prog = Totem
remote = *
button = KEY_VOLUMEUP
repeat = 1
config = volume_up
end
begin
prog = Totem
remote = *
button = KEY_VOLUMEDOWN
repeat = 1
config = volume_down
end
begin
prog = Totem
remote = *
button = KEY_NEXT
repeat = 1
config = next
end
begin
prog = Totem
remote = *
button = KEY_PREVIOUS
repeat = 1
config = previous
end
begin
prog = Totem
remote = *
button = KEY_EXIT
repeat = 1
config = quit
end
begin
prog = Totem
remote = *
button = KEY_UP
repeat = 1
config = up
end
begin
prog = Totem
remote = *
button = KEY_DOWN
repeat = 1
config = down
end
begin
prog = Totem
remote = *
button = KEY_LEFT
repeat = 1
config = left
end
begin
prog = Totem
remote = *
button = KEY_RIGHT
repeat = 1
config = right
end
begin
prog = Totem
remote = *
button = KEY_SELECT
repeat = 1
config = select
end
begin
prog = Totem
remote = *
button = KEY_MENU
repeat = 1
config = menu
end
begin
prog = Totem
remote = *
button = KEY_PLAYPAUSE
repeat = 1
config = play_pause
end
begin
prog = Totem
remote = *
button = KEY_SELECT
repeat = 1
config = select
end
begin
prog = Totem
remote = *
button = KEY_EJECTCD
repeat = 1
config = eject
end
begin
prog = Totem
remote = *
button = KEY_DVD
repeat = 1
config = play_dvd
end
begin
prog = Totem
remote = *
button = KEY_MUTE
repeat = 1
config = mute
end
begin
prog = mythtv
button = TV
repeat = 3
config = F5
end
begin
prog = mythtv
button = Videos
repeat = 3
config = F2
end
# Not yet defined
begin
prog = mythtv
button = Music
repeat = 3
config = Up
end
# Given another function for now, I don't use mythgallery
begin
prog = mythtv
button = Pictures
repeat = 3
config = F
end
begin
prog = mythtv
button = Guide
repeat = 3
config = F3
end
# I stuck the "todo" list on here as Myth has no radio function
begin
prog = mythtv
button = Radio
repeat = 3
config = F4
end
begin
prog = mythtv
button = UP
repeat = 3
config = Up
end
begin
prog = mythtv
button = DOWN
repeat = 3
config = Down
end
begin
prog = mythtv
button = LEFT
repeat = 3
config = Left
end
begin
prog = mythtv
button = RIGHT
repeat = 3
config = Right
end
# Channel Up
begin
prog = mythtv
button = Channel-UP
repeat = 3
config = Up
end
# Channel Down
begin
prog = mythtv
button = Channel-DOWN
repeat = 3
config = Down
end
# OK/Select
begin
prog = mythtv
button = Ok
config = Space
end
# Play
begin
prog = mythtv
button = Play
config = Return
end
# Stop
begin
prog = mythtv
button = Stop
config = I
end
# Escape/Exit/Back
begin
prog = mythtv
button = Back/Exit
config = Esc
end
# Power Off/Exit
begin
prog = mythtv
button = Power
config = Esc
end
# Pause
begin
prog = mythtv
button = Pause
repeat = 3
config = P
end
# Mute
begin
prog = mythtv
button = Mute
repeat = 3
config = |
end
# Fast forward (30 sec default)
begin
prog = mythtv
button = Rewind
repeat = 3
config = <
end
# Rewind (10 sec default)
begin
prog = mythtv
button = Forward
repeat = 3
config = >
end
# Skip forward (10 min default)
begin
prog = mythtv
button = Next
repeat = 3
config = End
end
# Skip backward (10 min default)
begin
prog = mythtv
button = Previous
repeat = 3
config = Home
end
# Record
begin
prog = mythtv
button = Record
repeat = 3
config = R
end
# Delete
begin
prog = mythtv
button = Red
repeat = 3
config = D
end
# Decrease play speed
begin
prog = mythtv
button = Green
repeat = 3
config = J
end
# Display EPG while in live TV,
# View selected show while in EPG
begin
prog = mythtv
button = Menu
repeat = 3
config = M
end
# Scroll up
begin
prog = mythtv
button = Volume-UP
repeat = 3
config = F11
end
# Scroll down
begin
prog = mythtv
button = Volume-DOWN
repeat = 3
config = F10
end
# Bring up OSD info
begin
prog = mythtv
button = Go
repeat = 3
config = I
end
# Change display aspect ratio
begin
prog = mythtv
button = Prev-Channel
repeat = 3
config = W
end
# double speed watch
begin
prog = mythtv
button = Yellow
repeat = 3
config = J
end
# change tuners
begin
prog = mythtv
button = hash
repeat = 3
config = Y
end
# Bring up Time stretch
begin
prog = mythtv
button = Blue
repeat = 3
config = A
end
# Numbers 0-9
begin
prog = mythtv
button = 0
repeat = 3
config = 0
end
begin
prog = mythtv
button = 1
repeat = 3
config = 1
end
begin
prog = mythtv
button = 2
repeat = 3
config = 2
end
begin
prog = mythtv
button = 3
repeat = 3
config = 3
end
begin
prog = mythtv
button = 4
repeat = 3
config = 4
end
begin
prog = mythtv
button = 5
repeat = 3
config = 5
end
begin
prog = mythtv
button = 6
repeat = 3
config = 6
end
begin
prog = mythtv
button = 7
repeat = 3
config = 7
end
begin
prog = mythtv
button = 8
repeat = 3
config = 8
end
begin
prog = mythtv
button = 9
repeat = 3
config = 9
end
### MPlayer lirc setup
# Show OSD
begin
prog = mplayer
button = MENU
repeat = 3
config = osd
end
# Pause playback
begin
prog = mplayer
button = PAUSE
repeat = 3
config = pause
end
# Skip ahead a minute if playing
# If paused, resume playing
begin
prog = mplayer
button = PLAY
repeat = 3
config = seek +1
end
# Stop playback and exit
begin
prog = mplayer
button = STOP
repeat = 3
config = quit
end
# Mute
begin
prog = mplayer
button = MUTE
repeat = 3
config = mute
end
# Seek back 10 seconds
begin
prog = mplayer
button = REW
repeat = 3
config = seek -10
end
# Seek forward 30 seconds
begin
prog = mplayer
button = FFW
repeat = 3
config = seek +30
end
# Quit
begin
prog = mplayer
button = BACK/EXIT
repeat = 3
config = quit
end
# Seek forward 10 minutes
begin
prog = mplayer
button = SKIP
repeat = 3
config = seek +600
end
# Seek backward 10 minutes
begin
prog = mplayer
button = REPLAY
repeat = 3
config = seek -600
end
# Toggle full-screen
begin
prog = mplayer
button = FULL
repeat = 3
config = vo_fullscreen
end
### Xine lirc setup
begin
prog = xine
button = PLAY
repeat = 3
config = Play
end
begin
prog = xine
button = STOP
repeat = 3
config = Stop
end
begin
prog = xine
button = OFF
repeat = 3
config = Quit
end
begin
prog = xine
button = PAUSE
repeat = 3
config = Pause
end
begin
prog = xine
button = CH+
repeat = 3
config = EventUp
end
begin
prog = xine
button = CH-
repeat = 3
config = EventDown
end
begin
prog = xine
button = VOL-
repeat = 3
config = EventLeft
end
begin
prog = xine
button = VOL+
repeat = 3
config = EventRight
end
begin
prog = xine
button = OK
repeat = 3
config = EventSelect
end
begin
prog = xine
button = BACK/EXIT
repeat = 3
config = Menu
end
begin
prog = xine
button = FFW
repeat = 3
#config = SpeedFaster
config = SeekRelative+60
end
begin
prog = xine
button = REW
repeat = 3
#config = SpeedSlower
config = SeekRelative-60
end
begin
prog = xine
button = FULL
repeat = 3
config = Volume+
end
begin
prog = xine
button = BLANK
repeat = 3
config = Volume-
end
begin
prog = xine
button = MUTE
repeat = 3
config = Mute
end
begin
prog = xine
button = MENU
repeat = 3
config = RootMenu
end
begin
prog = xine
button = SKIP
repeat = 3
config = EventNext
end
begin
prog = xine
button = REPLAY
repeat = 3
config = EventPrior
end
begin
prog = xine
button = GO
repeat = 3
config = OSDStreamInfos
end
begin
prog = xine
button = RED
repeat = 3
config = Quit
end
begin
prog = xine
button = RED
repeat = 3
config = Quit
end
En espérant que ça soit utile à ceux qui auront plus de chance que moi. 🙂