I am trying to set up a MythTV box under Mandriva 2008.1. I have MythTV
working, but the MCE USB remote control is killing me. I've started over
with lirc and everything seems to be configured correctly. The config
files are inserted below.
In a nutshell, as near as I can tell all the right modules are loading,
lirc is starting and running, irw is connecting, but I still get no
input read through irw. I fire up irw and it just sits there while I
punch buttons at the receiver.
One interesting note -- there is no .lirc file of any kind in my ~
directory. Some of my reading indicates that this might be a
requirement. I don't know.
And now, the details:
Lircmd is running:
Code:
# ps aux|grep lircmd
root 31291 0.0 0.0 1648 216 ? Ss 12:42 0:00 lircmd
Lircd is running:
Code:
# ps aux|grep lircd
root 31278 0.0 0.0 3088 612 ? Ss 12:42 0:00 lircd
--driver=default --device=/dev/lirc/0
The device is being created:
Code:
# ll /dev/lirc
total 0
crw-rw---- 1 root root 61, 0 2008-07-01 12:42 0
Code:
# ll /dev/lirc
total 0
crwxrwxrwx 1 root root 61, 0 2008-07-01 12:42 0
About the above device, it keeps resetting perms to 660, though whether
it's 660 or 777 makes no difference -- irw doesn't show input either way.
Modules are loading:
Code:
# lsmod |grep lirc
lirc_mceusb2 12516 1
lirc_i2c 9476 0
i2c_core 19360 16
cx88xx,bttv,lirc_i2c,nvidia,wm8775,cx25840,tuner,tea5767,tda8290,tuner_simple,mt20xx,tea5761,ivtv,i2c_algo_bit,tveeprom,i2c_i801
lirc_dev 12324 2 lirc_mceusb2,lirc_i2c
usbcore 121932 9
lirc_mceusb2,ndiswrapper,usbmouse,usbkbd,usbhid,uhci_hcd,ohci_hcd,ehci_hcd
Lircd works well enough to get lirc running:
Code:
# cat /etc/sysconfig/lircd
# Customized setings for lirc daemon
# The hardware driver to use, run lircd --driver=? for a list
#DRIVER=UNCONFIGURED
DRIVER=default
# Hardware driver module to load
#HWMOD=UNCONFIGURED
HWMOD=lirc_mceusb2
# The device node that communicates with the IR device.
# if you are using lirc_serial, set DEVICE to /dev/ttyS[0-9]
# where 0-9 is the serial port your IR receiver is plugged
# with devfs enabled
DEVICE=/dev/lirc/0
#DEVICE=/dev/lirc/serial
# without devfs
#DEVICE=/dev/lirc
# Serial port for the receiver (for serial driver)
# COM1 (/dev/ttyS0)
#COM_PORT=/dev/ttyS0
#DRIVER_OPTS="irq=4 io=0x3f8"
# COM2 (/dev/ttyS1)
#COM_PORT=/dev/ttyS1
#DRIVER_OPTS="irq=3 io=0x2f8"
# COM3 (/dev/ttyS2)
#COM_PORT=/dev/ttyS2
#DRIVER_OPTS="irq=4 io=0x3e8
# COM4 (/dev/ttyS3)
#COM_PORT=/dev/ttyS3
#DRIVER_OPTS="irq=3 io=0x2e8"
This appears to be the correct lircd.conf:
Code:
# cat /etc/lircd.conf
#
# From
http://lircconfig.commandir.com/lircd.conf/?viewremote=139
# on 6/20/2008
# For Hauppauge IR remote model 1069 using module lirc_mceusb2
#
begin remote
name mceusb2
bits 16
flags RC6|CONST_LENGTH
eps 30
aeps 100
header 2667 889
one 444 444
zero 444 444
gap 105000
toggle_bit 22
pre_data_bits 21
pre_data 0x37FF0
begin codes
# no e2,e3
Blue 0x00007ba1
Yellow 0x00007ba2
Green 0x00007ba3
Red 0x00007ba4
Teletext 0x00007ba5
Radio 0x00007baf
Print 0x00007bb1
Videos 0x00007bb5
Pictures 0x00007bb6
RecTV 0x00007bb7
Music 0x00007bb8
TV 0x00007bb9
Guide 0x00007bd9
LiveTV 0x00007bda
DVD 0x00007bdb
Back 0x00007bdc
OK 0x00007bdd
Right 0x00007bde
Left 0x00007bdf
Down 0x00007be0
Up 0x00007be1
Star 0x00007be2
Hash 0x00007be3
Replay 0x00007be4
Skip 0x00007be5
Stop 0x00007be6
Pause 0x00007be7
Record 0x00007be8
Play 0x00007be9
Rewind 0x00007bea
Forward 0x00007beb
ChanDown 0x00007bec
ChanUp 0x00007bed
VolDown 0x00007bee
VolUp 0x00007bef
More 0x00007bf0
Mute 0x00007bf1
Home 0x00007bf2
Power 0x00007bf3
Enter 0x00007bf4
Clear 0x00007bf5
Nine 0x00007bf6
Eight 0x00007bf7
Seven 0x00007bf8
Six 0x00007bf9
Five 0x00007bfa
Four 0x00007bfb
Three 0x00007bfc
Two 0x00007bfd
One 0x00007bfe
Zero 0x00007bff
end codes
end remote
This lircmd.conf is suspect:
Code:
# cat lircmd.conf
#
# lircmd config file
#
PROTOCOL IMPS/2
# ACCELERATOR start max multiplier
ACCELERATOR 2 30 5
ACTIVATE * RESERVED
MOVE_N * 2
MOVE_NE * 3
MOVE_E * 6
MOVE_SE * 9
MOVE_S * 8
MOVE_SW * 7
MOVE_W * 4
MOVE_NW * 1
MOVE_IN * CH+
MOVE_OUT * CH-
BUTTON1_TOGGLE * 5
BUTTON1_TOGGLE * RADIO
BUTTON2_TOGGLE * VOL+
BUTTON3_TOGGLE * SOURCE
BUTTON1_CLICK * TV
BUTTON1_CLICK * VOL-
BUTTON3_CLICK * MUTE
# BUTTONx_CLICK, BUTTONx_UP, BUTTONx_DOWN are also possible
Just looking at this last file and the remote itself, I don't think this
is the right lircmd file. It is from
/usr/share/lirc-remotes/
hauppauge/lircmd.conf.hauppauge. I'm just wondering if the right file
might actually be
/usr/share/lirc-remotes/ microsoft/lircmd.conf.xbox
since this remote appears identical to the remote that came with my
son's 360.
Any help?
Thanks.
--
Mark Adams
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at
http://www.sourceforge.net/community/cca08