Forum
LIRC Issues - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Hardware (/forum-7.html)
+--- Forum: Remotes and CEC support (/forum-26.html)
+--- Thread: LIRC Issues (/thread-1852.html)

Pages: 1 2


LIRC Issues - Markcf105 - 6th Dec, 2013 01:48 PM

I have just converted from raspbmc to xbian. I am trying to get my IR receiver working. I was following the Tutorials:Configuring a remote, but am stuck at the beginning....

when i run this command:

/etc/init.d/lirc stop

I get:

bash: /etc/init.d/lirc: No such file or directory

What am I doing wrong?? this is a fresh install of xbian... My IR was working with raspbmc....

Thanks,

Mark

So I found a forum post that instructed to run the following:

apt-get install --reinstall xbian-package-lirc

So here is what happens now:

root@xbian:~# /etc/init.d/lirc stop
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service lirc stop

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the stop(8) utility, e.g. stop lirc
root@xbian:~# mode2
mode2: could not get file information for /dev/lirc0
mode2: default_init(): No such file or directory

If i run the "irw" command it does not generate outputs??

any thoughts??

Thanks

Mark


RE: LIRC Issues - mk01 - 6th Dec, 2013 08:17 PM

@Markcf105

XBian is using upstart and not sysv style booting. Jobs and services are located in /etc/init (not /etc/init.d) and new control commands are "stop …" "start …" "reload …."

so in your case now just run
Code:
stop lirc



RE: LIRC Issues - Markcf105 - 6th Dec, 2013 10:14 PM

okay so i have removed the .d and here is the message I am getting now:

root@xbian:/etc/lirc# stop lirc
lirc stop/waiting
root@xbian:/etc/lirc# mode2
mode2: could not get file information for /dev/lirc0
mode2: default_init(): No such file or director

thoughts??

thanks,

Mark


RE: LIRC Issues - mk01 - 6th Dec, 2013 10:36 PM

@Markcf105

you probably wanted to start lirc manually from command line? as if you stop the service, no Lirc will run so no ./dev/lirc0 can exist?


RE: LIRC Issues - Markcf105 - 6th Dec, 2013 10:45 PM

i am trying to follow the tutorial you have for IR remotes.

the first step is:

xbian@xbian:~# sudo su
root@xbian:~# /etc/init.d/lirc stop
root@xbian:~# mode2
space 989187
pulse 2650
space 894....

should I not be following this??

I have also been reading this artice http://forum.stmlabs.com/showthread.php?tid=5549

do I need to do this??


RE: LIRC Issues - Markcf105 - 7th Dec, 2013 12:21 AM

I had to follow this guide http://forum.stmlabs.com/showthread.php?tid=5549

and then the tutorial worked with the edits from the post above.

I now have an issue where if i press the right arrow it moves two positions not one.


RE: LIRC Issues - mk01 - 7th Dec, 2013 12:31 AM

if it is not working by default then probably yes

just wanted to say if you trying GPIO IR maybe whole problem is that lirc_rpi module is not loaded from /etc/modules during start.


RE: LIRC Issues - reacend - 11th Dec, 2014 07:08 AM

Hi Guys,
i have a working version of an Logitec Harmony One and Solidrun Cubox-i pro..

you have to add the /etc/lirc/lircd.conf the following line:
Quote:include "/home/xbian/lircd.conf.mceusb"

then make an:

Code:
cd /home/xbian/ && wget http://lirc.sourceforge.net/remotes/mceusb/lircd.conf.mceusb


Thanks again to the gns-online.de a co worker helped me with that issue..

regards,
reacend


RE: LIRC Issues - menakite - 11th Dec, 2014 07:41 AM

Hm it seems we already ship a mceusb.conf, but it's not referenced in the lircd.conf file.

As a test, can you remove the entry you've added to lircd.conf and instead add this one:
Code:
include "/etc/lirc/remotes/mceusb.conf"



RE: LIRC Issues - reacend - 11th Dec, 2014 07:47 AM

works also Smile


RE: LIRC Issues - menakite - 11th Dec, 2014 07:52 AM

(11th Dec, 2014 07:47 AM)reacend Wrote:  works also :)
Nice, thanks. I wasn't sure if it didn't work or you just didn't notice it existed.


RE: LIRC Issues - mk01 - 16th Dec, 2014 03:47 PM

@reacend @menakite

can we not update the relevant part in hardware.conf (autoloader) to make it work with logitech IDs in dmesg ?


RE: LIRC Issues - CurlyMo - 16th Dec, 2014 08:41 PM

If the user could just include the mceusb configuration w/o thinkering with the hardware definitions, it already works. Just as i expected for mceusb. So, i would just include all remotes in the lircd.conf by default.


RE: LIRC Issues - mk01 - 16th Dec, 2014 08:50 PM

@CurlyMo

I mixed two different things of course ...
hardware.conf is auto adapting lircd running params.

./remotes/* is about HW definitions, and this we want to include in /etc/lirc/lircd.conf by default. YES ? all existing but missing, or just mceusb for now ?


RE: LIRC Issues - CurlyMo - 16th Dec, 2014 08:56 PM

Just all on github? I think it were three of them that didn't have a lircd.conf include but did have a remote defintion.