Pagina 1 di 1
Telecomando Hauppauge
Inviato: 26 giu 2011, 13:04
da nikohc
Mi stò cimentando nella configurazione di un htpc con vdr + xbmc con una scheda Hauppauge WinTv nexus-s rev2.2 e una Hauppauge WinTv Nova T usb,
su ubuntu 10.04 con lirc, il problema è che mi funziona solo il telecomando della Nova,
di seguito il risultato di cat /proc/bus/input/devices
I: Bus=0003 Vendor=2040 Product=7070 Version=0100
N: Name="IR-receiver inside an USB DVB receiver"
P: Phys=usb-0000:00:02.1-3/ir0
S: Sysfs=/devices/pci0000:00/0000:00:02.1/usb1/1-3/input/input6
U: Uniq=
H: Handlers=kbd event6
B: EV=3
B: KEY=14afc336 284284d 0 0 0 4 80058000 2190 40000801 9e96c0 0 900200 ffd
I: Bus=0001 Vendor=13c2 Product=0003 Version=0002
N: Name="DVB on-card IR receiver"
P: Phys=pci-0000:01:07.0/ir0
S: Sysfs=/devices/pci0000:00/0000:00:04.0/0000:01:07.0/input/input7
U: Uniq=
H: Handlers=kbd event7
B: EV=100013
B: KEY=fc812 a052041 0 0 0 0 0 4000 40002800 1e1680 0 0 ffc
B: MSC=18
e la configurazione di lirc
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="Hauppauge DVB-s card (ver. 2.1)"
REMOTE_MODULES="lirc_dev"
REMOTE_DRIVER=""
REMOTE_DEVICE="/dev/lirc0"
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF="hauppauge/lircd.conf.hauppauge"
REMOTE_LIRCD_ARGS=""
Anche se al posto di /dev/lirc0 imposto /dev/input/event7 non funziona, a prima vista il telecomando od il ricevitiore IR sembrerebbero guasti, invece su XP funzionano...
Re: Telecomando Hauppauge
Inviato: 28 giu 2011, 20:51
da von fritz
Hello
risposta presa da altro forum
Originally Posted by nikohc View Post
Mi stò cimentando nella configurazione di un htpc con vdr + xbmc con una scheda Hauppauge WinTv nexus-s rev2.2 e una Hauppauge WinTv Nova T usb,
su ubuntu 10.04 con lirc, il problema è che mi funziona solo il telecomando della Nova,
di seguito il risultato di cat /proc/bus/input/devices
I: Bus=0003 Vendor=2040 Product=7070 Version=0100
N: Name="IR-receiver inside an USB DVB receiver"
P: Phys=usb-0000:00:02.1-3/ir0
S: Sysfs=/devices/pci0000:00/0000:00:02.1/usb1/1-3/input/input6
U: Uniq=
H: Handlers=kbd event6
B: EV=3
B: KEY=14afc336 284284d 0 0 0 4 80058000 2190 40000801 9e96c0 0 900200 ffd
risposta by unixer su sifs:
Questa è la scheda DVB-T USb
segui questa procedura per il telecomando
Telecomando Scheda Hauppauge WinTV-NOVA-T-HD :
Ecco a voi i files di configurazione per Lirc ed XBMC:
1. Installare Lirc
2 sudo -i
3 cd /etc/lirc
4 gedit (o altro editor, io uso vi) hardware.conf
5 modificate le linee come segue
Codice: Seleziona tutto
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="Custom"
REMOTE_MODULES=""
REMOTE_DRIVER="devinput"
REMOTE_DEVICE="/dev/input/event9"
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF="/etc/lirc/lircd.conf"
REMOTE_LIRCD_ARGS=""
#Chosen IR Transmitter
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_SOCKET=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""
#Enable lircd
START_LIRCD="true"
#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD="false"
#Try to load appropriate kernel modules
LOAD_MODULES="true"
# Default configuration files for your hardware if any
LIRCMD_CONF=""
#Forcing noninteractive reconfiguration
#If lirc is to be reconfigured by an external application
#that doesn't have a debconf frontend available, the noninteractive
#frontend can be invoked and set to parse REMOTE and TRANSMITTER
#It will then populate all other variables without any user input
#If you would like to configure lirc via standard methods, be sure
#to leave this set to "false"
FORCE_NONINTERACTIVE_RECONFIGURATION="false"
START_LIRCMD=""
REMOTE_DEVICE="/dev/input/event9 mettete il vostro event corrispondente al vostro ricevitore IR ottenibile dal comando
Codice: Seleziona tutto
cat /proc/bus/input/devices
il mio il seguente[/quote]
[code]I: Bus=0019 Vendor=0000 Product=0005 Version=0000
N: Name="Lid Switch"
P: Phys=PNP0C0D/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input0
U: Uniq=
H: Handlers=event0
B: EV=21
B: SW=1
I: Bus=0019 Vendor=0000 Product=0003 Version=0000
N: Name="Sleep Button"
P: Phys=PNP0C0E/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input1
U: Uniq=
H: Handlers=kbd event1
B: EV=3
B: KEY=4000 0 0 0 0
I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=PNP0C0C/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input2
U: Uniq=
H: Handlers=kbd event2
B: EV=3
B: KEY=100000 0 0 0
I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=LNXPWRBN/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input3
U: Uniq=
H: Handlers=kbd event3
B: EV=3
B: KEY=100000 0 0 0
I: Bus=0017 Vendor=0001 Product=0001 Version=0100
N: Name="Macintosh mouse button emulation"
P: Phys=
S: Sysfs=/devices/virtual/input/input4
U: Uniq=
H: Handlers=mouse0 event4
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=3
I: Bus=0011 Vendor=0001 Product=0001 Version=ab41
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/devices/platform/i8042/serio0/input/input5
U: Uniq=
H: Handlers=kbd event5
B: EV=120013
B: KEY=4 2000000 3803078 f800d001 feffffdf ffefffff ffffffff fffffffe
B: MSC=10
B: LED=7
I: Bus=0019 Vendor=0000 Product=0006 Version=0000
N: Name="Video Bus"
P: Phys=LNXVIDEO/video/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input6
U: Uniq=
H: Handlers=kbd event6
B: EV=3
B: KEY=3f000b 0 0 0 0 0 0 0
I: Bus=0019 Vendor=0000 Product=0000 Version=0000
N: Name="Asus EeePC extra buttons"
P: Phys=eeepc/input0
S: Sysfs=/devices/platform/eeepc/input/input7
U: Uniq=
H: Handlers=rfkill kbd event7
B: EV=3
B: KEY=100000 0 0 0 400b 400 0 1300000 e0000 0 0 0
I: Bus=0011 Vendor=0002 Product=000e Version=0000
N: Name="ETPS/2 Elantech Touchpad"
P: Phys=isa0060/serio1/input0
S: Sysfs=/devices/platform/i8042/serio1/input/input8
U: Uniq=
H: Handlers=mouse1 event8
B: EV=f
B: KEY=6420 0 70000 0 0 0 0 0 0 0 0
B: REL=3
B: ABS=f0003
I: Bus=0003 Vendor=2040 Product=7070 Version=0100
N: Name="IR-receiver inside an USB DVB receiver"
P: Phys=usb-0000:00:1d.7-3/ir0
S: Sysfs=/devices/pci0000:00/0000:00:1d.7/usb1/1-3/input/input9
U: Uniq=
H: Handlers=kbd event9
B: EV=3
B: KEY=14afc336 284284d 0 0 0 4 80058000 2190 40000801 9e96c0 0 900200 ffd
I: Bus=0001 Vendor=10ec Product=0662 Version=0001
N: Name="HDA Digital PCBeep"
P: Phys=card0/codec#0/beep0
S: Sysfs=/devices/pci0000:00/0000:00:1b.0/input/input10
U: Uniq=
H: Handlers=kbd event10
B: EV=40001
B: SND=6
Fatto questo bisogna sostituire il file lircd.conf con questo
Codice: Seleziona tutto
begin remote
name nova-t
bits 16
eps 30
aeps 100
one 0 0
zero 0 0
gap 135988
pre_data_bits 16
pre_data 0x8001
begin codes
1 0x0002
2 0x0003
3 0x0004
4 0x0005
5 0x0006
6 0x0007
7 0x0008
8 0x0009
9 0x000A
0 0x000B
* 0x0184
# 0x0172
home 0x0066
red 0x018E
green 0x018F
yellow 0x0190
blue 0x0191
power 0x0074
go 0x0161
tv 0x0179
videos 0x0189
music 0x0188
pictures 0x016F
guide 0x016D
radio 0x0181
up 0x0067
left 0x0069
right 0x006A
down 0x006C
ok 0x0160
back 0x009E
menu 0x008B
prev-ch 0x019C
mute 0x0071
volup 0x0073
voldown 0x0072
chanup 0x0192
chandown 0x0193
rec 0x00A7
stop 0x0080
forward 0x00D0
skipback 0x00A5
skipforward 0x00A3
play 0x00CF
pause 0x0077
rewind 0x00A8
next 0x0197
last 0x0182
end codes
end remote
poi riavviate lirc
con il comando
sudo /etc/init.d/lirc restart
lanciate VDR con il comando
Codice: Seleziona tutto
sudo /usr/local/bin/vdr -c /etc/vdr -E /var/vdr -l 3 -u root -P sc -P"xine -r" -P femon -P skinreel -P menuorg -P skinenigmang -P weatherng -P radio -Pcdda -Ptext2skin -P dvd -P streamdev-server -P yaepghd -P skinsoppalusikka --lirc -s /usr/local/bin/vdrpoweroff
ed infine lanciate vdr
partira' l'autoapprendimento del telecomando e della tastiera
per far funzionare il telecomando sotto XBMC bisogna modificare il file Lircmap.xml presente in
/usr/share/xbmc/system/
quindi usate sudo gedit Lircmap.xml
ed modificatelo in questo modo
Codice: Seleziona tutto
<!-- This file contains the mapping of LIRC keys to XBMC keys used in Keymap.xml -->
<!-- -->
<!-- How to add remotes -->
<!-- <remote device="name_Lirc_calls_the_remote"> -->
<!-- -->
<!-- For the commands the layout following layout is used -->
<!-- <XBMC_COMMAND>LircButtonName</XBMC_COMMAND> -->
<!-- -->
<!-- For a list of XBMC_COMMAND's check out the <remote> sections of keymap.xml -->
<lircmap>
<remote device="nova-t">
<play>play</play>
<pause>pause</pause>
<stop>stop</stop>
<forward>forward</forward>
<reverse>rewind</reverse>
<left>left</left>
<right>right</right>
<up>up</up>
<down>down</down>
<select>OK</select>
<pageplus>chanup</pageplus>
<pageminus>chandown</pageminus>
<back>back</back>
<menu>DVD</menu>
<title>Guide</title>
<info>More</info>
<skipplus>Skip</skipplus>
<skipminus>Replay</skipminus>
<display>Aspect</display>
<start>home</start>
<record>rec</record>
<volumeplus>volup</volumeplus>
<volumeminus>voldown</volumeminus>
<mute>mute</mute>
<power>power</power>
<myvideo>Videos</myvideo>
<mymusic>Music</mymusic>
<mypictures>Pictures</mypictures>
<mytv>tv</mytv>
<one>1</one>
<two>2</two>
<three>3</three>
<four>4</four>
<five>5</five>
<six>6</six>
<seven>7</seven>
<eight>8</eight>
<nine>9</nine>
<zero>0</zero>
<star>Star</star>
<hash>Hash</hash>
<clear>Clear</clear>
<enter>ok</enter>
<red>Red</red>
<green>Green</green>
<yellow>Yellow</yellow>
<blue>Blue</blue>
<teletext>Teletext</teletext>
</remote>
<remote device="XboxDVDDongle">
<play>PLAY</play>
<pause>PAUSE</pause>
<stop>STOP</stop>
<forward>FORWARD</forward>
<reverse>REVERSE</reverse>
<left>LEFT</left>
<right>RIGHT</right>
<up>UP</up>
<down>DOWN</down>
<select>SELECT</select>
<back>BACK</back>
<menu>MENU</menu>
<title>TITLE</title>
<info>INFO</info>
<skipplus>SKIP+</skipplus>
<skipminus>SKIP-</skipminus>
<display>DISPLAY</display>
<one>1</one>
<two>2</two>
<three>3</three>
<four>4</four>
<five>5</five>
<six>6</six>
<seven>7</seven>
<eight>8</eight>
<nine>9</nine>
<zero>0</zero>
</remote>
<remote device="Microsoft_Xbox">
<play>PLAY</play>
<pause>PAUSE</pause>
<stop>STOP</stop>
<forward>FORWARD</forward>
<reverse>REVERSE</reverse>
<left>LEFT</left>
<right>RIGHT</right>
<up>UP</up>
<down>DOWN</down>
<select>SELECT</select>
<back>BACK</back>
<menu>MENU</menu>
<title>TITLE</title>
<info>INFO</info>
<skipplus>SKIP+</skipplus>
<skipminus>SKIP-</skipminus>
<display>DISPLAY</display>
<one>1</one>
<two>2</two>
<three>3</three>
<four>4</four>
<five>5</five>
<six>6</six>
<seven>7</seven>
<eight>8</eight>
<nine>9</nine>
<zero>0</zero>
</remote>
<remote device="PinnacleSysPCTVRemote">
<play>Play</play>
<pause>pause</pause>
<stop>Stop</stop>
<forward>FForward</forward>
<reverse>Rewind</reverse>
<left>Vol-Rew</left>
<right>Vol+FF</right>
<up>Chan+Play</up>
<down>Chan-Stop</down>
<pageplus>channel+</pageplus>
<pageminus>channel-</pageminus>
<select>middle</select>
<back>undo</back>
<menu>Menu</menu>
<title>L</title>
<info>Info</info>
<skipplus>next</skipplus>
<display>Fullscreen</display>
<record>Record</record>
<volumeplus>vol+</volumeplus>
<volumeminus>vol-</volumeminus>
<mute>Mute</mute>
<power>Power</power>
<one>1</one>
<two>2</two>
<three>3</three>
<four>4</four>
<five>5</five>
<six>6</six>
<seven>7</seven>
<eight>8</eight>
<nine>9</nine>
<zero>0</zero>
</remote>
<remote device="anysee">
<pause>pause</pause>
<stop>stop</stop>
<forward>f1</forward>
<reverse>f2</reverse>
<left>left</left>
<right>right</right>
<up>chan-up</up>
<down>chan-down</down>
<select>ok</select>
<back>exit</back>
<menu>menu</menu>
<title>play</title>
<info>info</info>
<skipplus>jump-fwd</skipplus>
<skipminus>jump-back</skipminus>
<display>size</display>
<start>star</start>
<record>rec</record>
<volumeplus></volumeplus>
<volumeminus></volumeminus>
<mute>mute</mute>
<power>power</power>
<one>1</one>
<two>2</two>
<three>3</three>
<four>4</four>
<five>5</five>
<six>6</six>
<seven>7</seven>
<eight>8</eight>
<nine>9</nine>
<zero>0</zero>
<red>red</red>
<green>green</green>
<yellow>yellow</yellow>
<blue>blue</blue>
<subtitle>subtitle</subtitle>
<language>audio</language>
</remote>
<remote device="iMON-PAD">
<power>Power</power>
<record>Record</record>
<play>Play</play>
<reverse>Rewind</reverse>
<pause>Pause</pause>
<stop>Stop</stop>
<forward>FastForward</forward>
<left>Left</left>
<right>Right</right>
<up>Up</up>
<down>Down</down>
<select>Enter</select>
<pageplus>Ch+</pageplus>
<pageminus>Ch-</pageminus>
<back>Esc</back>
<back>Backspace</back>
<menu>Multimon</menu>
<title>MouseMenu</title>
<info>SelectSpace</info>
<skipplus>NextChapter</skipplus>
<skipminus>PrevChapter</skipminus>
<display>FullScreen</display>
<start>MultiMon</start>
<volumeplus>Vol+</volumeplus>
<volumeminus>Vol-</volumeminus>
<mute>Mute</mute>
<myvideo>MyMovie</myvideo>
<mymusic>MyMusic</mymusic>
<mypictures>MyPhoto</mypictures>
<mytv>MyTV</mytv>
<one>1</one>
<two>2</two>
<three>3</three>
<four>4</four>
<five>5</five>
<six>6</six>
<seven>7</seven>
<eight>8</eight>
<nine>9</nine>
<zero>0</zero>
</remote>
<remote device="Antec_Veris_RM200">
<stop>KEY_STOP</stop>
<pause>KEY_PAUSE</pause>
<forward>KEY_FASTFORWARD</forward>
<reverse>KEY_REWIND</reverse>
<left>KEY_LEFT</left>
<right>KEY_RIGHT</right>
<up>KEY_UP</up>
<down>KEY_DOWN</down>
<select>KEY_ENTER</select>
<pageplus>KEY_CHANNELUP</pageplus>
<pageminus>KEY_CHANNELDOWN</pageminus>
<back>KEY_BACKSPACE</back>
<menu>KEY_MENU</menu>
<play>KEY_PLAY</play>
<info>Go</info>
<skipplus>next</skipplus>
<skipminus>prev</skipminus>
<display>FullScreen</display>
<start>applauncher</start>
<record>KEY_RECORD</record>
<volumeplus>KEY_VOLUMEUP</volumeplus>
<volumeminus>KEY_VOLUMEDOWN</volumeminus>
<mute>KEY_MUTE</mute>
<power>KEY_POWER</power>
<myvideo>KEY_VIDEO</myvideo>
<mymusic>KEY_AUDIO</mymusic>
<mypictures>KEY_PHOTO</mypictures>
<mytv>KEY_TV</mytv>
<one>KEY_1</one>
<two>KEY_2</two>
<three>KEY_3</three>
<four>KEY_4</four>
<five>KEY_5</five>
<six>KEY_6</six>
<seven>KEY_7</seven>
<eight>KEY_8</eight>
<nine>KEY_9</nine>
<zero>KEY_0</zero>
<star>Star</star>
<hash>Hash</hash>
<playlist>KEY_BOOKMARKS</playlist>
<teletext>Thumbnail</teletext>
<title>TaskSwitcher</title>
</remote>
<remote device="MCE_via_iMON">
<play>KEY_PLAY</play>
<pause>KEY_PAUSE</pause>
<stop>KEY_STOP</stop>
<forward>KEY_FASTFORWARD</forward>
<reverse>KEY_REWIND</reverse>
<left>KEY_LEFT</left>
<right>KEY_RIGHT</right>
<up>KEY_UP</up>
<down>KEY_DOWN</down>
<select>#KEY_OK</select>
<pageplus>KEY_CHANNELUP</pageplus>
<pageminus>KEY_CHANNELDOWN</pageminus>
<back>KEY_BACKSPACE</back>
<menu>PreviousMenu</menu>
<title>Guide</title>
<info>KEY_INFO</info>
<skipplus>KEY_SKIP</skipplus>
<skipminus>KEY_REPLAY</skipminus>
<display>Teletext</display>
<start>WindowsMCE</start>
<record>KEY_RECORD</record>
<volumeplus>KEY_VOLUMEUP</volumeplus>
<volumeminus>KEY_VOLUMEDOWN</volumeminus>
<mute>KEY_MUTE</mute>
<power>KEY_POWER</power>
<myvideo>KEY_VIDEO</myvideo>
<mymusic>KEY_AUDIO</mymusic>
<mypictures>KEY_PHOTO</mypictures>
<mytv>KEY_TV</mytv>
<one>KEY_ONE</one>
<two>KEY_TWO</two>
<three>KEY_THREE</three>
<four>KEY_FOUR</four>
<five>KEY_FIVE</five>
<six>KEY_SIX</six>
<seven>KEY_SEVEN</seven>
<eight>KEY_EIGHT</eight>
<nine>KEY_NINE</nine>
<zero>KEY_ZERO</zero>
<star>Star</star>
<hash>Hash</hash>
<clear>KEY_DELETE</clear>
<enter>KEY_ENTER</enter>
<red>Red</red>
<green>Green</green>
<yellow>Yellow</yellow>
<blue>Blue</blue>
</remote>
<remote device="TwinHanRemote">
<display>fullscreen</display>
<power>power</power>
<one>1</one>
<two>2</two>
<three>3</three>
<four>4</four>
<five>5</five>
<six>6</six>
<seven>7</seven>
<eight>8</eight>
<nine>9</nine>
<record>rec</record>
<zero>0</zero>
<myvideo>favorite</myvideo>
<volumeminus>rewind</volumeminus>
<volumeplus>forward</volumeplus>
<up>ch+</up>
<left>vol-</left>
<select>play</select>
<right>vol+</right>
<down>ch-</down>
<menu>recall</menu>
<stop>stop</stop>
<pause>pause</pause>
<mute>mute</mute>
<info>epg</info>
<recordedtv>recordlist</recordedtv>
<title>teletext</title>
</remote>
</lircmap>
Ora XBMC riconoscera' i tasti del vostro telecomando
P.S. non ho modificato tutti i tasti a voli liberare la fantasia
P.S.2 la procedura dovrebbe funzionare anche per il telecomando Terratec remote ho notato che i codici del telecomando sono simili
Un grazie a tutti quelli che mi hanno dato dei consigli
ripeto post by unixer su sifs.
comunque io ti consiglio di buttare quei telecomandi "giocattolo" che regalano con le schede DVB che di solito hanno sempre troppo pochi tasti e di usare un ricevitore universale IR usb o seriale con un telecomando a tuo piacimento.
bye
Re: Telecomando Hauppauge
Inviato: 08 ago 2011, 06:45
da nikohc
Ho seguito il tuo consiglio ed ho acquistato un telecomando serio per la mia WinTV Nova-T, la configurazione funziona bene con VDR, con xbmc invece il tasto ok non funziona, ho letto un pò di documentazione, la configurazione sembra corretta, ogni suggerimento è ben accetto.