XBMC + lirc + MCE Remote problems.
#16
I may be having some IR interference problems, ignore my post for now.
Reply
#17
Yes I can confirm my problems are IR interference related. Apparently my TV uses LED backlighting and it is sending out enormous amounts of IR noise. It goes away and all works as expected when TV is turned off. I'm playing with backlighting/contrast/power saving settings now to find a happy medium.
Reply
#18
Sad 
I too am having no end of grief trying to get my IR receiver working on my Zotac Zbox ID11 under any XBMC live version running LIRC-0.8.6. I've followed many of blogs but alot our outdated and my issue appears to be related to the directory shift in the latest versions from /dev/lircd -> /var/run/lirc/lircd?

If I follow the instructions in this thread, I get the following error when running either;

mode2 --device=/dev/lirc
mode2 --device=/dev/lirc0

mode2: could not get file information for /dev/lirc
mode2: default_init(): No such file or directory

As I am Linux freshman, I'm not quite sure what response I'm supposed to get when running these lirc diagnostic commands and I've been going around in circles.

Some information that may assist:
The remote I'm using is this one http://lirc.sourceforge.net/remotes/aim/RC126 and I've added that string to the bottom of my lircd.conf.mceusb file.

lsusb lists the following:

Code:
Bus 005 Device 002: ID 147a:e03e Formosa Industrial Computing, Inc.
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 04f2:0841 Chicony Electronics Co., Ltd
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I've tried adding the e03e Formosa receiver into the lirc_mceusb.c file but this did not work either.

XBMC Live versions tried are:
9.11, XBMCFreaks versions http://is.gd/del09 (built on Lucid) and http://is.gd/del9A.
'irw' returns nothing
Tried 'ln -s /var/run/lirc/lircd /dev/lircd' found in another thread, that didn't help either.
Some diagnostic results below:
Code:
root@XBMCLive:~# lsmod | grep lirc
lirc_mceusb            12068  0
lirc_dev                8890  1 lirc_mceusb

Code:
xbmc@XBMCLive:~$ dmesg|grep lirc
[   15.487595] lirc_dev: IR Remote Control driver registered, major 61
[   15.496574] lirc_mceusb: Windows Media Center Edition USB IR Transceiver driver for LIRC 1.90
[   15.496586] lirc_mceusb: Daniel Melander <[email protected]>, Martin Blatter <[email protected]>, Dan C               onti <[email protected]>
[   15.496738] usbcore: registered new interface driver lirc_mceusb
[ 2215.065787] usbcore: deregistering interface driver lirc_mceusb
[ 2252.365019] lirc_dev: IR Remote Control driver registered, major 61
[ 2252.375669] lirc_mceusb: Windows Media Center Edition USB IR Transceiver driver for LIRC 1.90
[ 2252.375678] lirc_mceusb: Daniel Melander <[email protected]>, Martin Blatter <[email protected]>, Dan C               onti <[email protected]>
[ 2252.375754] usbcore: registered new interface driver lirc_mceusb
[ 2307.554344] usbcore: deregistering interface driver lirc_mceusb
[ 2397.731597] lirc_dev: IR Remote Control driver registered, major 61
[ 2397.740210] lirc_mceusb: Windows Media Center Edition USB IR Transceiver driver for LIRC 1.90
[ 2397.740220] lirc_mceusb: Daniel Melander <[email protected]>, Martin Blatter <[email protected]>, Dan C               onti <[email protected]>
[ 2397.740324] usbcore: registered new interface driver lirc_mceusb
xbmc@XBMCLive:~$ dmesg|grep lirc
[   15.487595] lirc_dev: IR Remote Control driver registered, major 61
[   15.496574] lirc_mceusb: Windows Media Center Edition USB IR Transceiver driver for LIRC 1.90
[   15.496586] lirc_mceusb: Daniel Melander <[email protected]>, Martin Blatter <[email protected]>, Dan Conti           <[email protected]>
[   15.496738] usbcore: registered new interface driver lirc_mceusb
[ 2215.065787] usbcore: deregistering interface driver lirc_mceusb
[ 2252.365019] lirc_dev: IR Remote Control driver registered, major 61
[ 2252.375669] lirc_mceusb: Windows Media Center Edition USB IR Transceiver driver for LIRC 1.90
[ 2252.375678] lirc_mceusb: Daniel Melander <[email protected]>, Martin Blatter <[email protected]>, Dan Conti           <[email protected]>
[ 2252.375754] usbcore: registered new interface driver lirc_mceusb
[ 2307.554344] usbcore: deregistering interface driver lirc_mceusb
[ 2397.731597] lirc_dev: IR Remote Control driver registered, major 61
[ 2397.740210] lirc_mceusb: Windows Media Center Edition USB IR Transceiver driver for LIRC 1.90
[ 2397.740220] lirc_mceusb: Daniel Melander <[email protected]>, Martin Blatter <[email protected]>, Dan Conti           <[email protected]>
[ 2397.740324] usbcore: registered new interface driver lirc_mceusb

Any help that could be provided would be greatly appreciated as the remote issue and the wake in S3 from USB issues are the only two things stopping me from putting into production and retiring my old Xbox!
Reply
#19
Code:
irrecord: could not get file information for /dev/lirc0
irrecord: default_init(): No such file or directory
irrecord: could not init hardware (lircd running ? --> close it, check permissions)
xbmc@XBMCLive:~$ irw
^C
xbmc@XBMCLive:~$ grep lirc /var/log/daemon.log
Jul  4 19:51:49 XBMCLive lircd-0.8.6[1054]: lircd(default) ready, using /var/run/lirc/lircd
Jul  4 19:52:16 XBMCLive lircd-0.8.6[1054]: accepted new client on /var/run/lirc/lircd
Jul  4 19:52:16 XBMCLive lircd-0.8.6[1054]: could not get file information for /dev/lirc0
Jul  4 19:52:16 XBMCLive lircd-0.8.6[1054]: default_init(): No such file or directory
Jul  4 19:52:16 XBMCLive lircd-0.8.6[1054]: Failed to initialize hardware
Jul  4 20:00:20 XBMCLive lircd-0.8.6[868]: lircd(default) ready, using /var/run/lirc/lircd
Jul  4 20:00:31 XBMCLive lircd-0.8.6[868]: accepted new client on /var/run/lirc/lircd
Jul  4 20:00:31 XBMCLive lircd-0.8.6[868]: could not get file information for /dev/lirc0
Jul  4 20:00:31 XBMCLive lircd-0.8.6[868]: default_init(): No such file or directory
Jul  4 20:00:31 XBMCLive lircd-0.8.6[868]: Failed to initialize hardware
Jul  4 20:08:18 XBMCLive lircd-0.8.6[859]: lircd(default) ready, using /var/run/lirc/lircd
Jul  4 20:08:28 XBMCLive lircd-0.8.6[859]: accepted new client on /var/run/lirc/lircd
Jul  4 20:08:28 XBMCLive lircd-0.8.6[859]: could not get file information for /dev/lirc0
Jul  4 20:08:28 XBMCLive lircd-0.8.6[859]: default_init(): No such file or directory
Jul  4 20:08:28 XBMCLive lircd-0.8.6[859]: Failed to initialize hardware
Jul  4 20:10:55 XBMCLive lircd-0.8.6[859]: caught signal
Jul  4 20:27:48 XBMCLive lircd-0.8.6[1399]: lircd(default) ready, using /var/run/lirc/lircd
Jul  4 20:34:13 XBMCLive lircd-0.8.6[1399]: accepted new client on /var/run/lirc/lircd
Jul  4 20:34:13 XBMCLive lircd-0.8.6[1399]: could not get file information for /dev/lirc0
Jul  4 20:34:13 XBMCLive lircd-0.8.6[1399]: default_init(): No such file or directory
Jul  4 20:34:13 XBMCLive lircd-0.8.6[1399]: Failed to initialize hardware
Jul  4 20:34:39 XBMCLive lircd-0.8.6[1399]: removed client
xbmc@XBMCLive:~$
Reply
#20
I'm having remote issues as well

Purchased a MCE remote on Ebay. Branded Acer. RC6 on the back

lsusb shows a SMK Manufacturing device
irw seems to show all the correct buttons when I press them (e.g. long code 00 LiveTV mceusb)

However, the remote does not seem to do anything outside of irw.

I've read elsewhere that I may need "lirc_mceusb2" but I don't know how to install it or why irw would be showing the correct codes.

What have I done wrong.
Reply
#21
Hi I am running kodibuntu and I installed lirc, and configured it with some buttons, but it doesn't work.
In terminal I tried mode2 --device=/dev/lirc0
I saw some random numbers, so I think the hardware and the driver work fine.
When I try irw, there isn't any number on the screen.
Here are some files:


My hardware.conf file:

# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="Home-brew (16x50 UART compatible serial port)"
REMOTE_MODULES="lirc_dev lirc_serial"
REMOTE_DRIVER=""
REMOTE_DEVICE="/dev/lirc0"
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF=""
REMOTE_LIRCD_ARGS=""

#Chosen IR Transmitter
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_SOCKET=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""

#Disable kernel support.
#Typically, lirc will disable in-kernel support for ir devices in order to
#handle them internally. Set to false to prevent lirc from disabling this
#in-kernel support.
#DISABLE_KERNEL_SUPPORT="true"

#Enable lircd
START_LIRCD="true"

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD="false"

#Try to load appropriate kernel modules
LOAD_MODULES="true"

# Default configuration files for your hardware if any
LIRCMD_CONF=""

#Forcing noninteractive reconfiguration
#If lirc is to be reconfigured by an external application
#that doesn't have a debconf frontend available, the noninteractive
#frontend can be invoked and set to parse REMOTE and TRANSMITTER
#It will then populate all other variables without any user input
#If you would like to configure lirc via standard methods, be sure
#to leave this set to "false"
FORCE_NONINTERACTIVE_RECONFIGURATION="false"
START_LIRCMD=""


My lircd.conf file:

# Please make this file available to others
# by sending it to <[email protected]>
#
# this config file was automatically generated
# using lirc-0.9.0(default) on Tue Jan 27 22:28:20 2015
#
# contributed by
#
# brand: pioneer2
# model no. of remote control:
# devices being controlled by this remote:
#

begin remote

name pioneer2
bits 32
flags SPACE_ENC|CONST_LENGTH
eps 30
aeps 100

header 8555 4176
one 603 1522
zero 603 471
ptrail 603
gap 91234
toggle_bit_mask 0x0

begin codes
KEY_UP 0xC53A9966 0xF50A4FB0
KEY_DOWN 0xC53A9966 0xF50ACF30
KEY_LEFT 0xC53A9966 0xF50AC639
KEY_RIGHT 0xC53A9966 0xF50A26D9
end codes

end remote


My Lircmap.xml file:

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<!--
This file contains the mapping of LIRC keys to XBMC keys used in Keymap.xml
-->
<!-- -->
<!-- How to add remotes -->
<!-- <remote device="name_Lirc_calls_the_remote"> -->
<!-- -->
<!--
For the commands the layout following layout is used
-->
<!-- <XBMC_COMMAND>LircButtonName</XBMC_COMMAND> -->
<!-- -->
<!--
For a list of XBMC_COMMAND's check out the <remote> sections of keymap.xml
-->
<lircmap>
<remote device="pioneer2">
<left>KEY_LEFT</left>
<right>KEY_RIGHT</right>
<up>KEY_UP</up>
<down>KEY_DOWN</down>
</remote>
</lircmap>

I have a serial IR receiver and I use it through my internal COM port.
Please help me to solve this problem. Sorry but I'm new in linux, and in English too. Thanks.
Reply
#22
(2015-01-28, 00:33)taylorb9301 Wrote: Hi I am running kodibuntu and I installed lirc, and configured it with some buttons, but it doesn't work.

Did you record the buttons yourself using irrecord or did you copy your configuration from somewhere? If you copied the configuration from somewhere, try to record the buttons yourself.


(2015-01-28, 00:33)taylorb9301 Wrote: In terminal I tried mode2 --device=/dev/lirc0
I saw some random numbers, so I think the hardware and the driver work fine.

A lot has changed since 2010 and sometimes a kernel ir keytable prevents lircd from working properly. In this case you have to uninstall all the ir keytable tools.


(2015-01-28, 00:33)taylorb9301 Wrote: When I try irw, there isn't any number on the screen.
Here are some files:

Well, if mode2 works it's already a good sign. Did you try to launch lircd manually as described in my post above: http://forum.kodi.tv/showthread.php?tid=...#pid300834
Reply

Logout Mark Read Team Forum Stats Members Help
XBMC + lirc + MCE Remote problems.0