Lirc Failed to initialize
#1
Hello all. Ive been using xbmc and lirc for a few years now and love it! However just recently xbmc and lirc have been very picky...For some reason i have not tracked down yet lirc stops working in xbmc but remains working in other programs like mythfrontend. For a while i thought it might be another program "taking over" the lirc devise and not allowing xbmc to get control..but im starting to think otherwise.

I am running arch linux 64 bit fully updated and currently using the xbmc in the arch linux repositories. I have previously compiled my own xbmc and never had this issue...will try to manually compile here soon and see if it helps.

*UPDATE* manually recompiling latest git(on dharma branch) did not fix this Sad Sad

Here is a debug log: http://pastebin.com/dKUyGJb9

Code:
ls -hal /dev/lirc*
crw------- 1 root root 251, 0 Mar 27 01:45 /dev/lirc0
lrwxrwxrwx 1 root root     19 Mar 27 02:26 /dev/lircd -> /var/run/lirc/lircd

Code:
irw
000000037ff07bee 00 VolDown mceusb
000000037ff07bee 01 VolDown mceusb
000000037ff07bee 00 VolDown mceusb
000000037ff07bee 01 VolDown mceusb
000000037ff07be1 00 Up mceusb
000000037ff07be1 01 Up mceusb
000000037ff07be0 00 Down mceusb
000000037ff07be0 01 Down mceusb
000000037ff07bde 00 Right mceusb
000000037ff07bde 01 Right mceusb

Code:
lsmod |grep -i lirc
ir_lirc_codec           4203  0
lirc_dev                9759  1 ir_lirc_codec
ir_core                14718  9 ir_lirc_codec,ir_sony_decoder,ir_jvc_decoder,ir_rc6_decoder,rc_rc6_mce,ir_rc5_decoder,ir_nec_decoder,mceusb

Code:
lsmod |grep -i mce
rc_rc6_mce              1396  0
mceusb                 11167  0
ir_core                14718  9 ir_lirc_codec,ir_sony_decoder,ir_jvc_decoder,ir_rc6_decoder,rc_rc6_mce,ir_rc5_decoder,ir_nec_decoder,mceusb
usbcore               139496  5 mceusb,usbhid,uhci_hcd,ehci_hcd
Reply
#2
For whats its worth...i was talking in the irc room today and topfs2 pointed out that xbmc would stop setting up lirc if it failed to use inotify. For anyone else experiencing this...here is a cheap quick hack until the devs work out a more elegant solution.

he provided a patch http://pastebin.com/ZDhSJXkB

and told me to apply it with
Code:
git am <patchname>

But i was unable to apply this patch to latest dharma so i had to manually edit a file...not a big deal.

From the xbmc git root(where configure and the Makefile are)
Code:
nano +160 guilib/common/LIRC.cpp
and add m_bInitialized = true;

so it ends up looking like this:
Code:
if (fcntl(m_inotify_fd, F_SETFL, opts) != -1)
                {
                 [b] m_bInitialized = true;[/b]
                  // Set an inotify watch on the lirc device
                  if ((m_inotify_wd = inotify_add_watch(m_inotify_fd, m_deviceName.c_str(), IN_DELETE_SELF)) != -1)
                  {
                    m_bInitialized = true;
                    CLog::Log(LOGINFO, "LIRC %s: sucessfully started", __FUNCTION__);
                  }

i know this is a dirty cheap hack...but for me it seems to have fixed it. Nothing sucked more then laying down to watch some tv before bed only to not have your remote work. I hope this helps someone else out as much as it did me.
Reply

Logout Mark Read Team Forum Stats Members Help
Lirc Failed to initialize0