Kodi: issues with lirc and ir remote

This forum is for topics dealing with problems with software specifically in the ARMv7h repo.

Kodi: issues with lirc and ir remote

Postby motorxx » Sat Nov 07, 2015 7:53 am

Hello

I am totally pissed with this issue. I have searched in the web and although have read lots of entries, I am still not able to solve it.

My remote is a Hama mce.
When I run "irw" I get strange commands as output:
$this->bbcode_second_pass_code('', '
12345679885
^@^E^[[5
')

It seems that the ir remote is recognized as keyboard.

Doing ls /dev/input/by-id/
    usb-05a4_9881-event-kbd
    usb-05a4_9881-if01-mouse
    usb-05a4_9881-if01-event-mouse

I have edited /etc/lirc/hardware.conf
$this->bbcode_second_pass_code('', '
REMOTE_DRIVER="devinput"
REMOTE_DEVICE="usb-05a4_9881-event-kbd"
')

and also $this->bbcode_second_pass_code('', 'modprobe mceusb')

But I always get the same outputs in irw after reboot

I have used before this remote with Openelec and irw was giving me correct keystrokes ouput.

Any idea how to solve this? I am lost. Thanks
motorxx
 
Posts: 17
Joined: Thu Nov 05, 2015 1:42 pm

Re: Kodi: issues with lirc and ir remote

Postby motorxx » Tue Nov 10, 2015 7:51 am

Hello,

I am trying with ir-keytables. but I have no success. I get the following message:

    /sys/class/rc/: No such file or directory

If I load mceusb to the kernel, I get the following message:

    Couldn't find any node at /sys/class/rc/rc*.

Anyone knows how to solve this issue?

Thanks.
motorxx
 
Posts: 17
Joined: Thu Nov 05, 2015 1:42 pm

Re: Kodi: issues with lirc and ir remote

Postby graysky » Sat Nov 14, 2015 12:12 pm

graysky
Developer
 
Posts: 1880
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Kodi: issues with lirc and ir remote

Postby motorxx » Sat Nov 14, 2015 9:04 pm

Thanks for the reference.
I have done some progress. I am able to read the ir remote with lirc, but not all the buttons.
I will investigate with what you have pointed.
motorxx
 
Posts: 17
Joined: Thu Nov 05, 2015 1:42 pm

Re: Kodi: issues with lirc and ir remote

Postby graysky » Sun Nov 15, 2015 3:26 pm

If you blacklisted those modules, and if hitting buttons on the remote no longer show up in a shell, you need only setup your specific remote's config file and define actions to the specific programs you want to use. See: https://wiki.archlinux.org/index.php/LIRC
graysky
Developer
 
Posts: 1880
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Kodi: issues with lirc and ir remote

Postby motorxx » Tue Nov 17, 2015 6:55 am

Uninstalled lircd.

I found out that kodi supports directly the use of the remote better than using lirc (as far as I have been able to configure). I have used the addon keymap editor to map some missing buttons.

I had troubble with lircd in order irw to read all the key presses. Some where comming under /dev/input/event0 (keyboard) and some others under /dev/input event1. A key press was also showing different keys simultaniously in irw (with different codes in *.lircd.conf)

Thanks for helping.
motorxx
 
Posts: 17
Joined: Thu Nov 05, 2015 1:42 pm

Re: Kodi: issues with lirc and ir remote

Postby graysky » Fri Nov 20, 2015 11:08 pm

If you're interested in revisiting lirc, for multiple keypresses: https://wiki.archlinux.org/index.php/LI ... using_Xorg
graysky
Developer
 
Posts: 1880
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Kodi: issues with lirc and ir remote

Postby bmentink » Mon Nov 30, 2015 2:18 am

Hi All,

I have one of those mac silver remotes which works great on my x86 machines on Arch, but not ARM.

I should be seeing the device:$this->bbcode_second_pass_quote('', ' ')/dev/input/by-id/usb-Apple_Computer__Inc._IR_Receiver-event-ir

but it is not there ..

The driver is loaded:
$this->bbcode_second_pass_code('', 'lsmod
Module Size Used by
joydev 9122 0
hid_appleir 3135 0
smsc95xx 18507 0
usbnet 22626 1 smsc95xx
spi_s3c64xx 14784 0
ina231_sensor 9052 0
s3c2410_wdt 7652 0
ip_tables 11987 0
')

It just won't present the input device. Anyone have any clues as to what is missing?
Is it that the kernel needs some config modules enabled for this?
bmentink
 
Posts: 81
Joined: Mon Sep 12, 2011 2:51 am

Re: Kodi: issues with lirc and ir remote

Postby bmentink » Mon Nov 30, 2015 11:56 pm

An update to my issue:

I have found I have a $this->bbcode_second_pass_quote('', '/')dev/usb/hiddev0
device when I plug in the sensor... and I have created the required hardware.conf file.

However, when I go to record the key codes with irrecord, the cpu locks up and I have to reboot.

I have been following the latter part of the guide here: http://wiki.awkwardtv.org/wiki/Apple_TV_Linux_IR_Howto
Normally I would expect the usbhid modules to be loaded, but I guess it is built in as when I try to load it with modprobe, nothing happens.
bmentink
 
Posts: 81
Joined: Mon Sep 12, 2011 2:51 am


Return to ARMv7h

Who is online

Users browsing this forum: No registered users and 19 guests