View Full Version : Need help setting up remote in Mythbubtu


wftomlin
09-11-09, 02:22 PM
Hey,

I started a new thread since I hijacked the original to ask my question.

I'm trying to get a remote to work with a MythTV install. I have 2 remotes from 2 Hauppauge cards. I couldn't get the HVR-2250 card to work, but have an HVR-1250 up and going. I will eventually be using a Harmony One to control the HTPC. I received info from http://www.avsforum.com/avs-vb/showthread.php?t=1108400, and bought an HP Media Center USB IR receiver. I'm still confused on how to install it though. Mythbuntu's "Control Centre" didn't work.

Thanks

wnewell
09-11-09, 03:22 PM
You plug it into a usb port. In Mythbuntu control center, select the appropriate remote that will load the appropriate driver. That's the old style MCE remotes. I think it's mceusb. Should be able to find it in the dropdown. It's NOT the new style. Once you set that up, you need to install the proper lircd.conf and lircrc files for your remote. If you can't find it at sourceforge, it's easy enough to create your own using irrecord to create the lircd.conf file, and then modify about any lircrc file to match your remote. Both of these files are simple text files. Now the tricky part. The way Mythbuntu sets these up is really screwed up and confusing. There will be several lircd.conf files on the system, but it only uses one, and it's not the one you'd think. IIRC, they use the one in /etc/lirc/, but you can just replace both of them if you want to be sure. Now the lircrc file isn't the one they use either. They file you need to replace is /home/~/.lirc/mythtv. Don't miss the dot in .lirc. It's a hidden dir in your home directory. Confused? Probably. You can give me a call at 972-429-5765 if you need help, or give me your number and I'll call you (US, Canada, and P.R. only). Once you understand LIRC, it's not that tough. But it's very confusing if you haven't worked with it before (or developers use out of the norm filenames).

wftomlin
09-13-09, 10:46 AM
Thanks wnewell for responding.

I followed your instructions (I think) and found a few files that I think I need. There was a file in /usr/share/lirc/remotes/mceusb, named lircd.conf.mceusb. I copied this as lirc.conf to BOTH /etc and /etc/lirc directories.

There was a file named /home/~/.lirc/mythtv I copied this file and renamed it lircrc.

I'm confused on irrecord. If I need to run it, what are the specific parameters -H and -d?

I really appreciate your help. I may need to give you a call. Believe it or not, our land line is down :D Has been since Friday, but I didn't know until my brother stopped by yesterday wondering why the answering machine never kicked in. I called Verizon and they don't work on Sunday. Should be fixed sometime Monday.

This is my lirc.conf file:

#
# brand: HP
# model no. of remote control: TSGH-IR01
# devices being controlled by this remote: HP Slimline S3100y
#
# Derived from MCEUSB2 lircd.conf file (lircd.conf.mceusb) found at:
# https://help.ubuntu.com/community/Install_Lirc_Feisty

#
# RC-6 config file
#
# source: http://home.hccnet.nl/m.majoor/projects__remote_control.htm
# http://home.hccnet.nl/m.majoor/pronto.pdf
#
# used by: Philips
#
#########
#
# Philips Media Center Edition remote control
# For use with the USB MCE ir receiver
#
# Dan Conti dconti|acm.wwu.edu
#
# Updated with codes for MCE 2005 Remote additional buttons
# *, #, Teletext, Red, Green, Yellow & Blue Buttons
# Note: TV power button transmits no code until programmed.
# Updated 12th September 2005
# Graham Auld - mce|graham.auld.me.uk
#
# Radio, Print, RecTV are only available on the HP Media Center remote control
#
#
# Updated with codes for MCE 2007 Remote additional buttons
# Visualization, Aspect, SlideShow, Eject
# Note:
# Renamed some buttons: DVD->DVDMenu, More->MoreInfo, Star->Asterisk, Hash->Pound
# Note:
# Blue, Yellow, Green, Red, and Teletext buttons do not exist on the HP remote

begin remote

name mceusb
bits 16
flags RC6|CONST_LENGTH
eps 30
aeps 100

header 2667 889
one 444 444
zero 444 444
pre_data_bits 21
pre_data 0x37FF0
gap 105000
toggle_bit 22
rc6_mask 0x100000000


begin codes

#unused by HP remote
Blue 0x00007ba1
Yellow 0x00007ba2
Green 0x00007ba3
Red 0x00007ba4
Teletext 0x00007ba5

#ba6 - bae unused
BA6 0x00007ba6
BA7 0x00007ba7
BA8 0x00007ba8
BA9 0x00007ba9
BAA 0x00007baa
BAB 0x00007bab
BAC 0x00007bac
BAD 0x00007bad
BAE 0x00007bae

Radio 0x00007baf
Print 0x00007bb1

#bb2 - bb4 unused
BB2 0x00007bb2
BB3 0x00007bb3
BB4 0x00007bb4

Videos 0x00007bb5
Pictures 0x00007bb6
RecTV 0x00007bb7
Music 0x00007bb8
TV 0x00007bb9

#bba - bbf unused
BBA 0x00007bba
BBB 0x00007bbb
BBC 0x00007bbc
BBD 0x00007bbd
BBE 0x00007bbe
BBF 0x00007bbf
#bc1 - bca unused
BC1 0x00007bc1
BC2 0x00007bc2
BC3 0x00007bc3
BC4 0x00007bc4
BC5 0x00007bc5
BC6 0x00007bc6
BC7 0x00007bc7
BC8 0x00007bc8
BC9 0x00007bc9
BCA 0x00007bca

Eject 0x00007bcb
SlideShow 0x00007bcc
Visualization 0x00007bcd

#bce - bcf unused
BCE 0x00007bce
BCF 0x00007bcf
#bd1 - bd7 unused
BD1 0x00007bd1
BD2 0x00007bd2
BD3 0x00007bd3
BD4 0x00007bd4
BD5 0x00007bd5
BD6 0x00007bd6
BD7 0x00007bd7

Aspect 0x00007bd8
Guide 0x00007bd9
LiveTV 0x00007bda
DVD 0x00007bdb
#NoGap
Back 0x00007bdc
OK 0x00007bdd
Right 0x00007bde
Left 0x00007bdf
Down 0x00007be0
Up 0x00007be1
#NoGap
Star 0x00007be2
Hash 0x00007be3
#NoGap
Replay 0x00007be4
Skip 0x00007be5
Stop 0x00007be6
Pause 0x00007be7
Record 0x00007be8
Play 0x00007be9
Rewind 0x00007bea
Forward 0x00007beb
#NoGap
ChanDown 0x00007bec
ChanUp 0x00007bed
VolDown 0x00007bee
VolUp 0x00007bef
#NoGap
More 0x00007bf0
Mute 0x00007bf1
Home 0x00007bf2
Power 0x00007bf3
#NoGap
Enter 0x00007bf4
Clear 0x00007bf5
#NoGap
Nine 0x00007bf6
Eight 0x00007bf7
Seven 0x00007bf8
Six 0x00007bf9
Five 0x00007bfa
Four 0x00007bfb
Three 0x00007bfc
Two 0x00007bfd
One 0x00007bfe
Zero 0x00007bff
end codes

end remote


Here is my lircrc file:

# LIRCRC Auto Generated by Mythbuntu Lirc Generator
# Author(s): Mario Limonciello, Nick Fox
# Created for use with Mythbuntu
begin
remote = mceusb
prog = mythtv
button = Play
config = P
repeat = 0
delay = 0
end

begin
remote = mceusb
prog = mythtv
button = Right
config = Right
repeat = 0
delay = 0
end

begin
remote = mceusb
prog = mythtv
button = Mute
config = |
repeat = 0
delay = 0
end

begin
remote = mceusb
prog = mythtv
button = VolDown
config = [
repeat = 0
delay = 0
end

begin
remote = mceusb
prog = mythtv
button = Skip
config = Z
repeat = 0
delay = 0
end

begin
remote = mceusb
prog = mythtv
button = Rewind
config = <
repeat = 0
delay = 0
end

begin
remote = mceusb
prog = mythtv
button = Stop
config = Escape
repeat = 0
delay = 0
end

begin
remote = mceusb
prog = mythtv
button = Seven
config = 7
repeat = 0
delay = 0
end

begin
remote = mceusb
prog = mythtv
button = VolUp
config = ]
repeat = 0
delay = 0
end

begin
remote = mceusb
prog = mythtv
button = One
config = 1
repeat = 0
delay = 0
end

begin
remote = mceusb
prog = mythtv
button = Down
config = Down
repeat = 0
delay = 0
end

begin
remote = mceusb
prog = mythtv
button = Zero
config = 0
repeat = 0
delay = 0
end

begin
remote = mceusb
prog = mythtv
button = Replay
config = Q
repeat = 0
delay = 0
end

begin
remote = mceusb
prog = mythtv
button = Five
config = 5
repeat = 0
delay = 0
end

begin
remote = mceusb
prog = mythtv
button = Two
config = 2
repeat = 0
delay = 0
end

begin
remote = mceusb
prog = mythtv
button = Home
config = M
repeat = 0
delay = 0
end

begin
remote = mceusb
prog = mythtv
button = More
config = I
repeat = 0
delay = 0
end

begin
remote = mceusb
prog = mythtv
button = Four
config = 4
repeat = 0
delay = 0
end

begin
remote = mceusb
prog = mythtv
button = Pause
config = P
repeat = 0
delay = 0
end

begin
remote = mceusb
prog = mythtv
button = OK
config = Return
repeat = 0
delay = 0
end

begin
remote = mceusb
prog = mythtv
button = Six
config = 6
repeat = 0
delay = 0
end

begin
remote = mceusb
prog = mythtv
button = Up
config = Up
repeat = 0
delay = 0
end

begin
remote = mceusb
prog = mythtv
button = ChanDown
config = Down
repeat = 0
delay = 0
end

begin
remote = mceusb
prog = mythtv
button = RecTV
config = R
repeat = 0
delay = 0
end

begin
remote = mceusb
prog = mythtv
button = Three
config = 3
repeat = 0
delay = 0
end

begin
remote = mceusb
prog = mythtv
button = ChanUp
config = Up
repeat = 0
delay = 0
end

begin
remote = mceusb
prog = mythtv
button = Enter
config = Enter
repeat = 0
delay = 0
end

begin
remote = mceusb
prog = mythtv
button = Forward
config = >
repeat = 0
delay = 0
end

begin
remote = mceusb
prog = mythtv
button = Eight
config = 8
repeat = 0
delay = 0
end

begin
remote = mceusb
prog = mythtv
button = Nine
config = 9
repeat = 0
delay = 0
end

begin
remote = mceusb
prog = mythtv
button = Guide
config = S
repeat = 0
delay = 0
end

begin
remote = mceusb
prog = mythtv
button = Left
config = Left
repeat = 0
delay = 0
end

wnewell
09-13-09, 01:00 PM
I followed your instructions (I think) and found a few files that I think I need. There was a file in /usr/share/lirc/remotes/mceusb, named lircd.conf.mceusb. I copied this as lirc.conf to BOTH /etc and /etc/lirc directories.
Actually, this won't work with your remote even though I assume you meant lircd.conf. The only thing used, and the reason you select this remote is to set the lirc hardware up so the IR receiver will work. You need an lircd.conf and lircrc file that is specific to the actual remote you are going to use.

There was a file named /home/~/.lirc/mythtv I copied this file and renamed it lircrc.

Actually what you need to do here is copy the lircrc file for your remote here and then rename it to mythtv. I usually put a .org on the original, but you can delete it if you want to.

I'm confused on irrecord. If I need to run it, what are the specific parameters -H and -d?
Been a while since I ran it but as I recall you don't need these for the HP media center remote IR receiver if you've selected it in the ir setup You do need to stop lircd daemon before you run irrecord though. killall lircd as root should do that. Then run irrecord <filename> without any params and see if that works. Remeber, you only neeed to run this to create an lircd.conf file for your remote. If there's already a file for it and you can find it at sourceforge, then there's no need to run irrecord.

This is my lirc.conf file:
That's for the mce remote. Aren't you using a different remote?

Here is my lircrc file:
Ditto.

There's 3 basic functions involved with lirc. First is to select the driver that will support the IR receiver. You have an mce compatible receiver (I hope) so you can select that remote to setup and it will setup the IR receiver so it will work. But, it also sets the lircd.conf and lircrc file up for that remote, which you don't have so you need to replace them with files compatible with your remote. lircd.conf reads the remote ir codes and translates then into the text names. lircrc reads these and translate them into the keypress you want to send to the program. A rough example:
In lircd.conf this code is translated to the text string menu.

menu 0xC837

Then the lircrc file translates that into the M keypress.

begin
prog = mythtv
button = menu
repeat = 0
config = M
end

This one is for the mythtv program specifically.

Hope this explains it a little better.

Also, for what I think would be obvious reasons, you don't want to use the same remote for your TV for mythtv if the TV is hooked to your myth box.

wnewell
09-13-09, 01:23 PM
OK, just notices you have an HVR-1250 remote. I've got both an lircd.conf and lircrc file for this remote. You can also get the lircd.conf here. I can email you an lircrc file if you want it.

http://lirc.sourceforge.net/remotes/hauppauge/

http://lirc.sourceforge.net/remotes/hauppauge/lircd.conf.hauppauge

wftomlin
09-14-09, 08:32 PM
I just sent you a private message with my email address. This is my remote.

http://farm3.static.flickr.com/2472/3920791977_cddbc59194.jpg

Thanks again!

Tomlin

wnewell
09-15-09, 02:24 AM
Yeah, I set one of those up using an HP Media Center IR receiver. Works great. Files are on the way. In fact I've got a spare card w/remote. Also a couple of Dvico Fusion remotes. I don't use the remotes that come with the cards. I much prefer the URC-10820 10 device remote.

wftomlin
09-15-09, 09:02 AM
Thank you BIG TIME!!

It's working. I really appreciate all your help. The wife thought I was permanently attached to my PC; I've been working on this for a couple of weeks, off and on.

http://www.phase1.com/images/bow.gif

Tomlin

wnewell
09-15-09, 11:11 AM
Glad to help. Take care.