<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
<br><div>> Date: Sun, 4 Dec 2011 08:13:29 +0000<br>> From: mlt@etruscott.co.uk<br>> To: mythtv-users@mythtv.org<br>> Subject: Re: [mythtv-users] LIRC problem after mythbuntu upgrade<br>> <br>> I've tried what I could see on the ubuntu site and I don't seem to be <br>> getting anywhere with this as most of them seem aimed at old versions <br>> and I understand that the way it has handled by the kernel has changed <br>> completely.<br>> <br>> is their any advice on trouble shooting, before my remote become a big <br>> stick...<br>> <br>> On 22/11/11 20:30, mlt@etruscott.co.uk wrote:<br>> > I have just updated my system to the latest mythbuntu, and it has <br>> > killed my remote - which is a mceusb via lirc.<br>> ><br>> > irw doesn't seem register any key presses and the red led indicator on <br>> > the receiver is almost permanently on, which makes me think that <br>> > somehow the kernel thinks it is something else...<br>> ><br>> > cat /proc/bus/input/devices gives:<br>> ><br>> > I: Bus=0003 Vendor=0471 Product=0815 Version=0000<br>> > N: Name="Media Center Ed. eHome Infrared Remote Transceiver (0471:0815)"<br>> > P: Phys=usb-0000:04:00.0-1<br>> > S: <br>> > Sysfs=/devices/pci0000:00/0000:00:1c.5/0000:04:00.0/usb3/3-1/3-1:1.0/rc/rc0/input4<br>> > U: Uniq=<br>> > H: Handlers=kbd event4<br>> > B: PROP=0<br>> > B: EV=100013<br>> > B: KEY=fff 0 200108fc32e 237605100000000 0 700158000 419200000001 <br>> > 9e968000000000 10000000<br>> > B: MSC=10<br>> ><br>> > This seems sane to me, but what do I know or I wouldn't be asking the <br>> > question.<br>> ><br>> ><br>> ><br>> ><br>> _______________________________________________<br>> mythtv-users mailing list<br>> mythtv-users@mythtv.org<br>> http://www.mythtv.org/mailman/listinfo/mythtv-users<br>----------EDIT---------<br>I am resending this message with all text files sent to pastebin because it got hold awaiting moderator's approval.<br>-------------<br><br>I resently entered the lirc world with mceusb on opensuse 11.4. I will
tell you the steps I took and I hope some or all apply to mythbuntu.<br>This
is not a guide, its a -from memory- list of the things I did to have my
lirc up and running, and since it is for opensuse, maybe not everything
will apply in your case.<br><br>I needed the ir-keytable program which for opensuse is in the v4l-utils package, but maybe mythbuntu provides it on its own.<br><br>When I run it, it shows:<br># ir-keytable <br>Found /sys/class/rc/rc0/ (/dev/input/event5) with:<br> Driver mceusb, table rc-rc6-mce<br> Supported protocols: NEC RC-5 RC-6 JVC SONY LIRC <br> Enabled protocols: RC-6 <br> Repeat delay = 500 ms, repeat period = 33 ms<br><br>You need the RC-6 protocol for mceusb (the type of protocol in mine is written in the battery compartment, very convenient).<br>If
the output of the ir-keytable command is not as above, i.e. the driver
is not mceusb and the table doesn't include rc6, you have to run:<br>#ir-keytable -c -w /etc/rc_keymaps/rc6_mce -p RC6,LIRC<br><br>The /etc/rc_keymaps/rc6-mce file is included in the v4l-utils package, or the one that includes ir-keytable for mythbuntu.<br><br><br>My
kernel is 2.6.37.1-1.2-desktop, which includes the mceusb module. So -
and you've probably heard it by now - you need lirc 0.9.0 which doesn't
provide it's own mceusb module any more.<br><br>I copied the whole modules folder just in case I'd mess things up:<br><br>sudo cp -dpR /lib/modules/`uname -r` /lib/modules/`uname -r`backup<br><br>Download the latest lirc from www.lirc.org and extract the source<br><br>$wget http://sourceforge.net/projects/lirc/files/LIRC/0.9.0/lirc-0.9.0.tar.bz2/download<br><br>$tar jxvf lirc-0.9.0.tar.bz2<br>$cd lirc-0.9.0<br><br>$./configure --with-driver=devinput --with-transmitter (the second option is if you want to use an ir-blaster, too)<br><br>If all goes ok, the last of the output will be:<br><br>"Your hardware does not require a special LIRC kernel module.<br><br>Now enter 'make' and 'make install' to compile and install the package."<br><br>Do as it says, <br>$make && sudo make install<br><br>You have to find which device is your ir-receiver:<br>Mine is:<br><br>$la /dev/input/by-id<br><br>Total 0<br>drwxr-xr-x 2 root root 120 Δεκ 3 17:35 .<br>drwxr-xr-x 4 root root 240 Δεκ 3 17:35 ..<br>lrwxrwxrwx 1 root root 9 Δεκ 3 17:35 usb-05af_Rx504B_Ver:3.03-event-kbd -> ../event0<br>lrwxrwxrwx 1 root root 9 Δεκ 3 17:35 usb-05af_Rx504B_Ver:3.03-event-mouse -> ../event1<br>lrwxrwxrwx 1 root root 9 Δεκ 3 17:35 usb-05af_Rx504B_Ver:3.03-mouse -> ../mouse0<br>lrwxrwxrwx
1 root root 9 Δεκ 3 17:35
usb-SMK_CORPORATION_MCE_TRANCEIVR_Emulator_Device_2006_PA100707131807G-event-if00
-> ../event5<br><br>The last device (usb-SMK_CORPORATION_MCE_TRANCEIVR_Emulator_Device_2006_PA100707131807G-event-if00) is the one I use.<br><br>opensuse
doesn't use /etc/lirc/hardware.conf. Instead it uses an
/etc/sysconfig/lirc file for lirc initialization. I will include it
because some variables will be the same<br><br>------------<br>http://pastebin.com/ubLcyHL2<br>----------<br>my /etc/lirc/lircd.conf:<br>cat /etc/lirc/lircd.conf<br><br>-----------<br>include "/etc/lirc/mceusb.conf"<br>-----------<br><br>I
installed the lirc-remotes package which installed under /usr/share a
lot of lircd.conf files for various remotes. I copied the
/usr/share/lirc/remotes/mceusb/lircd.conf.mceusb file to
/etc/lirc/mceusb.conf and I am including it to /etc/lirc/lircd.conf<br>The
configuration file for mceusb includes two remote definitions, mine
works with the OBSOLETE one, and this is the one I am including.<br><br>my /etc/lirc/mceusb.conf<br>-----------<br>http://pastebin.com/kLFqJwFZ<br>-----------<br><br>I
hope I covered all the necessary steps. Try to run lirc without
daemonising it, to see the output of the command. Substitute the device
with yours:<br><br>lircd --nodaemon --output=/var/run/lirc/lircd
--driver=devinput
--device=/dev/input/by-id/usb-SMK_CORPORATION_MCE_TRANCEIVR_Emulator_Device_2006_PA100707131807G-event-if00
<br><br>if it doesn't complain, there should be a /var/run/lirc/lircd socket created.<br>Try irw...<br>If
it sees your keys being pressed, then all is ok. Find the relevant
mythbuntu startup scripts and set the variables to the successfull ones.
Try starting it as a daemon and see if you have success.<br><br>Good Luck.<br><br><br>Lastly, I am including my /home/mythtv/.lircrc file, which I have customized, so check it before you decide you want to use it.<br># cat /home/mythtv/.lircrc<br>----------<br>http://pastebin.com/3jseKCbs<br>----------<br></div>                                            </div></body>
</html>