[SOLVED] lirc not working with mceusb2 remote

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] lirc not working with mceusb2 remote

Postby mark9117 » Sep 20th, '13, 23:34

I need a lirc guru if there is one around.

This remote used to work out of the box with XBMC, and with a little tweaking it worked in MythTV. As of Mageia 2 that all changed. Here are some important details:

Linux pvr 3.4.52-desktop-1.mga2 #1 SMP Thu Jul 4 07:31:09 UTC 2013 i686 i686 i386 GNU/Linux
# lsusb
Bus 003 Device 003: ID 1784:0001 TopSeed Technology Corp. eHome Infrared Transceiver

Code: Select all
# lsmod |grep lirc
ir_lirc_codec          12870  0
lirc_dev               19325  1 ir_lirc_codec
rc_core                26459  11 ir_lirc_codec,ir_rc5_decoder,ir_nec_decoder,ir_sony_decoder,mceusb,ir_mce_kbd_decoder,ir_jvc_decoder,ir_rc6_decoder,ir_sanyo_decoder,rc_rc6_mce


I am seeing /dev/lirc0 and have softlinked that to /dev/lirc.

/home/madams/.mythtv/lircrc (http://pastebin.com/kRzHkLzE)

/etc/lirc/lirc (http://pastebin.com/WCcSZPbQ)

Firing up "mode2" as root on the mythbox shows button presses. Running "irw" shows nothing, as does "ircat mythtv".

Can somebody suggest what I'm missing here?

Thanks.

Mark

Addendum: (damn you systemctl!)
Just noticed this:

Code: Select all
# systemctl status lircd.service
lircd.service - LSB: Linux Infrared Remote Control daemon
          Loaded: loaded (/etc/rc.d/init.d/lircd)
          Active: active (running) since Fri, 20 Sep 2013 15:19:49 -0600; 17min ago
         Process: 10513 ExecStop=/etc/rc.d/init.d/lircd stop (code=exited, status=0/SUCCESS)
         Process: 10530 ExecStart=/etc/rc.d/init.d/lircd start (code=exited, status=0/SUCCESS)
        Main PID: 10539 (lircd)
          CGroup: name=systemd:/system/lircd.service
                  └ 10539 lircd --device=/dev/lirc/0

Sep 20 15:33:02 pvr lircd-0.9.0[10539]: accepted new client on /var/run/lirc/lircd
Sep 20 15:33:02 pvr lircd-0.9.0[10539]: could not get file information for /dev/lirc/0
Sep 20 15:33:02 pvr lircd-0.9.0[10539]: default_init(): Not a directory
Sep 20 15:33:02 pvr lircd-0.9.0[10539]: Failed to initialize hardware
Sep 20 15:33:02 pvr lircd-0.9.0[10539]: removed client
Sep 20 15:33:24 pvr lircd-0.9.0[10539]: accepted new client on /var/run/lirc/lircd
Sep 20 15:33:24 pvr lircd-0.9.0[10539]: could not get file information for /dev/lirc/0
Sep 20 15:33:24 pvr lircd-0.9.0[10539]: default_init(): Not a directory
Sep 20 15:33:24 pvr lircd-0.9.0[10539]: Failed to initialize hardware
Sep 20 15:33:37 pvr lircd-0.9.0[10539]: removed client


Not entirely sure what systemctl is trying to tell me there.
I have this in /dev
Code: Select all
# ll /dev/lirc*
lrwxrwxrwx 1 root root     10 Sep 20 14:56 /dev/lirc -> /dev/lirc0
crw------- 1 root root 251, 0 Sep 20 08:42 /dev/lirc0
Last edited by mark9117 on Sep 20th, '13, 23:52, edited 1 time in total.
Let's just reboot everything all the time.
User avatar
mark9117
 
Posts: 395
Joined: Sep 12th, '11, 20:32
Location: Eastern New Mexico -- Not Hell, but you can see it from here.

Re: lirc not working with mceusb2 remote

Postby mark9117 » Sep 20th, '13, 23:52

Okay, call off the dogs.

I read what I posted above and found the error was in the config for /etc/sysconfig/lircd. Specifically I needed to comment out line 15:
#DEVICE=/dev/lirc/0

and uncomment line 19
DEVICE=/dev/lirc

Then I just restarted lircd.

Two observations:
1. My troubleshooting is greatly enhanced simply by trying to articulate the issue to someone else.

2. This issue has been plauging me for almost 2 years now. Shouldn't it be fixed so that it works out of the box?
Let's just reboot everything all the time.
User avatar
mark9117
 
Posts: 395
Joined: Sep 12th, '11, 20:32
Location: Eastern New Mexico -- Not Hell, but you can see it from here.

Re: lirc not working with mceusb2 remote

Postby junk_no_spam » Sep 21st, '13, 02:33

mark9117 wrote:Okay, call off the dogs.

I read what I posted above and found the error was in the config for /etc/sysconfig/lircd. Specifically I needed to comment out line 15:
#DEVICE=/dev/lirc/0

and uncomment line 19
DEVICE=/dev/lirc

Then I just restarted lircd.

Two observations:
1. My troubleshooting is greatly enhanced simply by trying to articulate the issue to someone else.


For me, it is posting for help, and about 2 minutes later finding the solution.

2. This issue has been plauging me for almost 2 years now. Shouldn't it be fixed so that it works out of the box?


No bug report means it takes longer to get fixed. :(
It almost worked out of the box on Mageia Release 3. Could be I could have made a configuration change in mythtv but what I did:

Created the tv remote key/code files.
Copied /usr/lib/systemd/system/lircd.service to /etc/systemd/system/lircd.service and changed
ExecStart=/usr/sbin/lircd --driver=default --device=/dev/lirc0
to ExecStart=/usr/sbin/lircd --driver=default --device=/dev/lirc0 -H udp -d 6546
Then just to play is safe:
systemctl --system daemon-reload
systemctl disable lircd.service
systemctl enable lircd.service
systemctl restart lircd.service

and now my remote works with MythTv :)
junk_no_spam
 
Posts: 32
Joined: Jan 26th, '12, 19:30

Re: lirc not working with mceusb2 remote

Postby doktor5000 » Sep 21st, '13, 09:59

mark9117 wrote:Two observations:
1. My troubleshooting is greatly enhanced simply by trying to articulate the issue to someone else.


Interestingly, this is often the case. If you describe a problem thoroughly and comprehensively
so that an outsider would understand it properly, really often this already contains important clues
to the solution or you can solve the problem yourself by reading the explanation.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18036
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] lirc not working with mceusb2 remote

Postby mark9117 » Oct 6th, '13, 08:36

Quick note: After 15 days uptime I rebooted the system and lirc stopped working. Chanted the line in /etc/sysconfig/lirc to:

Code: Select all
DEVICE=/dev/lirc0


Seems to have fixed it. Not sure why it regressed.

Really annoying.

Mark
Let's just reboot everything all the time.
User avatar
mark9117
 
Posts: 395
Joined: Sep 12th, '11, 20:32
Location: Eastern New Mexico -- Not Hell, but you can see it from here.


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest