LinHES Forums
http://forum.linhes.org/

A415-HPG remote with pvr250 not working
http://forum.linhes.org/viewtopic.php?f=2&t=5981
Page 1 of 1

Author:  Mythuser [ Fri Sep 09, 2005 10:30 pm ]
Post subject:  A415-HPG remote with pvr250 not working

I have tried installed multiple versions of Lirc and nothing is working. I have tried everything on these 2 pages:

http://www.knoppmythwiki.org/index.php?page=Hauppauge250Remote
http://www.knoppmythwiki.org/index.php?page=LIRCHowTo

After starting lircd and running irw, no characters are displayed on the screen, and nothing happens with myth. Below is my lircd.conf

Code:
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


I have edited the lircrc in /home/mythtv/.mythtv/ as well with the config for the silver remote, but regardless it should at least show some characters on the display even if they are wrong. Any help is appreciated.

Author:  tjc [ Sat Sep 10, 2005 10:13 am ]
Post subject: 

I know this sounds dumb, but have you tried rebooting? To get the remote on my PVR-250 working, restarting the daemons and applications didn't seem to do it for some reason, but a reboot did... :?

Also, try checking the connections. Make sure the sensor cable is plugged into the right jack and firmly seated. In the course of various assemblies, disassemblies, reassemblies, and a total rebuild I've managed a couple misconnects... :oops:

If you're trying to use a 3rd party remote with your Hauppauge sensor I'm not sure how well it's going to work.... Definitely get it working with the one they supply first. If that's what you're talking about, (I've been calling them the old "cigar" vs. the new "dogbone" shaped remotes) it may help to run lirc-reconfig.sh if you haven't alrready.

Author:  Mythuser [ Sun Sep 11, 2005 12:23 am ]
Post subject: 

Yeah I rebooted several times. I have checked cable connections as well. I am trying to use the silver remote that came with the card (A415-HPG). I found I had both 0.7.0 and 0.7.1 installed somehow. I read somewhere that 0.7.1 has problems in R5A16, so i unistalled both and reinstalled 0.7.0 per this thread:
[url]
http://mysettopbox.tv/phpBB2/viewtopic.php?p=30004&
[/url]
After rebooting, I start the lircd and lircmd daemons, then run irw to see if I can see some output. Nothing comes across:

Code:
root@mythtv:~# /usr/local/sbin/lircd
root@mythtv:~# /usr/local/sbin/lircmd
root@mythtv:~# irw

root@mythtv:~# ps -ealdf | grep lirc
1 S root      4165     1  0  75   0 -     0 -      00:16 ?        00:00:00 [lirc_dev]
1 S root      4167     1  0  76   0 -   409 -      00:17 ?        00:00:00 /usr/local/sbin/lircd
1 S root      4182     1  0  75   0 -   392 -      00:17 ?        00:00:00 /usr/local/sbin/lircmd
root@mythtv:~# /usr/local/sbin/lircd -v
lircd 0.7.0
root@mythtv:~# lsmod | grep lirc
lirc_i2c                8836  1
lirc_dev               13452  1 lirc_i2c
i2c_core               20224  8 bttv,lirc_i2c,tveeprom,saa7115,msp3400,tuner,i2c_algo_bit,i2c_nforce2


Anyone have any ideas?

Author:  afrosheen [ Sun Sep 11, 2005 3:32 pm ]
Post subject: 

Just for fun here's my output from my (mostly) working config. My lirc config files are a disaster but I just have to find some better ones posted somewhere.

/etc/lirc/lircd.conf


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

Next comes the other lirc config file in /home/mythtv/.mythtv called lircrc

# ~/.mythtv/lircrc
#
# MythTV native LIRC config file for
# the grey Hauppauge remote
#
# By Jarod Wilson, 2003/12/21
# Amalgamated from Jeff Campbell's,
# .lircrc, the mythtv.org docs, and
# a few touches of my own. :)
#
# Additional commands and fixes
# by Brian Pilnick 2005/1/15
#

# 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

# Volume Up
begin
prog = mythtv
button = Volume-UP
repeat = 3
config = ]
end

# Volume Down
begin
prog = mythtv
button = Volume-DOWN
repeat = 3
config = [
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 = Esc
end

# Escape/Exit/Back
begin
prog = mythtv
button = Back-Exit
config = Esc
end

# Power Off/Exit
begin
prog = mythtv
button = Power
config = Esc
end

# Red means stop!
#begin
#prog = mythtv
#button = red
#config = Esc
#end

# Pause
begin
prog = mythtv
button = Pause
repeat = 3
config = P
end

# Mute
begin
prog = mythtv
button = Mute
repeat = 3
config = F9
end

begin
prog = mythtv
button = UP
repeat = 3
config = Up
end

begin
prog = mythtv
button = RIGHT
repeat = 3
config = Right
end

begin
prog = mythtv
button = DOWN
repeat = 3
config = Down
end

begin
prog = mythtv
button = LEFT
repeat = 3
config = Left
end

# Rewind
# Scroll EPG Left one page
begin
prog = mythtv
button = Rewind
repeat = 3

config = <
end

# Fast forward
# Scroll EPG right one page
begin
prog = mythtv
button = Forward
repeat = 3
config = >
end

# Skip forward (10 min default)
# Scroll EPG down one page
begin
prog = mythtv
button = Next
repeat = 3
config = PgDown
end

# Skip backward (10 min default)
# Scroll EPG up one page
begin
prog = mythtv
button = Previous
repeat = 3
config = PgUp
end

# Record
begin
prog = mythtv
button = Record
repeat = 3
config = R
end

# Delete
begin
prog = mythtv
button = red
repeat = 3
config = D
end

# Previous Channel
begin
prog = mythtv
button = Prev-Channel
repeat = 3
config = H
end

# OSD browse (allows channel scrolling from OSD while keeping current channel)
# While watching a recording, brings up Options
begin
prog = mythtv
button = green
repeat = 3
config = O
end

# Display EPG while in live TV,
# View selected show while in EPG
# While in a recording, enters editing mode
begin
prog = mythtv
button = Menu
repeat = 3
config = M
end

# Display EPG while in live TV,
# View selected show while in EPG
# While in a recording, enters editing mode
begin
prog = mythtv
button = Guide
repeat = 3
config = M
end

# Bring up OSD info
# In EPG or recordings menu, brings up show info and recording options
begin
prog = mythtv
button = Go
repeat = 3
config = I
end

# Change display aspect ratio
#begin
#prog = mythtv
#button = FULL
#repeat = 3
#config = W
#end

# Move EPG back one day
# Seek to previous commercial cut point
begin
prog = mythtv
button = yellow
repeat = 3
config = Home
end

# Move EPG foward one day
# Seek to next commercial cut point
begin
prog = mythtv
button = blue
repeat = 3
config = End
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

# Mplayer Volume Up
begin
prog = mplayer
button = Volume-UP
repeat = 1
config = volume 1
end

# Mplayer Volume Down
begin
prog = mplayer
button = Volume-DOWN
repeat = 1
config = volume -1
end

# 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 = Rewind
repeat = 3
config = seek -10
end

# Seek forward 30 seconds
begin
prog = mplayer
button = Forward
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 = Next
repeat = 3
config = seek +600
end

# Seek backward 10 minutes
begin
prog = mplayer
button = Previous
repeat = 3
config = seek -600
end

# Toggle full-screen
#begin
#prog = mplayer
#button = FULL
#repeat = 3
#config = vo_fullscreen


As you can see DVD playback is instantly broken since R5A16 uses xine instead of mplayer, so that has to be fixed. Also for some odd reason none of the volume or channel up/down buttons work, still have to repair that. Plus, some nimrod mapped the back/exit function to the green power button at the top, and that's another hassle. However, with those two files and the lirc daemon running, the module loaded, the receiver plugged in etc. you should get something from irw.

Author:  tjc [ Sun Sep 11, 2005 9:24 pm ]
Post subject: 

Here are what I have for xine bindings. The goal was to make the remote work as naturally and as much like the normal TV playback as possible while allowing some things that matter for DVDs. Of course, this is with the old cigar shaped remote so I don't know how good a match it is...
Code:
begin
prog = xine
button = PLAY
repeat = 3
config = Play
end

begin
prog = xine
button = STOP
repeat = 3
config = Stop
end

begin
prog = xine
button = BACK/EXIT
config = Quit
end

begin
prog = xine
button = PAUSE
repeat = 3
config = Pause
end

begin
prog = xine
button = CH+
repeat = 4
config = EventUp
end

begin
prog = xine
button = CH-
repeat = 4
config = EventDown
end

begin
prog = xine
button = VOL-
repeat = 4
config = EventLeft
end

begin
prog = xine
button = VOL+
repeat = 4
config = EventRight
end

begin
prog = xine
button = OK
repeat = 0
config = EventSelect
end

begin
prog = xine
button = MENU
repeat = 0
config = Menu
end

#vol down
begin
prog = xine
button = YELLOW
repeat = 1
config = Volume-
end

#vol up
begin
prog = xine
button = Red
repeat = 1
config = Volume+
end

begin
prog = xine
button = Mute
repeat = 2
config = Mute
end

begin
prog = xine
button = FFW
repeat = 2
config = SeekRelative+30
end

begin
prog = xine
button = REW
repeat = 2
config = SeekRelative-30
end

#ch up
begin
prog = xine
button = Green
repeat = 2
config = SeekRelative+60
end
#ch down
begin
prog = xine
button = Blue
repeat = 2
config = SeekRelative-60
end

#prev chapter
begin
prog = xine
button = REPLAY
repeat = 2
config = EventPrior
end

#next chapter
begin
prog = xine
button = SKIP
repeat = 2
config = EventNext
end

#prev subtitle channel
begin
prog = xine
button = Blank
repeat = 2
config = SpuPrior
end

#next subtitle channel
begin
prog = xine
button = Full
repeat = 2
config = SpuNext
end

begin
prog = xine
button = Record
repeat = 3
config = Snapshot
end

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/