I am currently setting up Kodibuntu on a Dell 7010 i5 using Kodi 16.1 with Ubuntu 14.04.4 as the base OS.
I am currently trying to map the OSMC remote [from the store] and having problems with the context and information buttons. Using Keymap Editor I have attempted to map the buttons in the following locations but the actual keypress isn’t being recognised.
Global/Navigation - Show Info & Context Menu
Videos/Navigation - Show Info & Context Menu
Video OSD/Navigation - Show Info & Context Menu
I don’t have the config for the remote so can’t use LIRC and irrecord to check the button code and create a custom remotes.xml file.
Can anyone offer any assistance please? I love the simplicity and feel of the OSMC remote and don’t really want to have to replace it.
Does your version of Kodibuntu use systemd? If so this is quite trivial, as our OSMC x64 remote packages can be used, and I can give some simple instructions on this
dpkg: error processing package amd64-remote-osmc (--install):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
Errors were encountered while processing:
amd64-remote-osmc
And
root@Kodi:~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
libafpclient0 libftdi1 libhdb9-heimdal libkdc2-heimdal libntdb1
libshairport1 python-ntdb python-support setserial
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
amd64-remote-osmc
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 1,488 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 162589 files and directories currently installed.)
Removing amd64-remote-osmc (1.2.1) ...
Removing 'diversion of /etc/lirc/lircd.conf to /etc/lirc/lircd.conf.distributed by amd64-remote-osmc
I assume the errors have resulted in non-installation of the required package.
Right, apparently it doesn’t work on KodiBuntu but does on Debian:
# dpkg -l | grep osmc
ii amd64-eventlircd-osmc 1.2.0 amd64 eventlircd for OSMC
ii amd64-lirc-osmc 0.9.0-5 amd64 lirc for osmc
ii amd64-remote-osmc 1.2.1 amd64 Remote support for OSMC, achieved with lirc and eventlircd
So I will rebuild the box with Debian instead and see how that goes. I’ll report back ASAP.
Just read above about your Ubuntu version. 14.04 still uses Upstart, which is why you are having problems. You can build eventlircd manually, it is a bit tricky but probably easier than rebuilding your entire system.
I’ll probably write a more generic driver for Linux in the future
Ok so clean install of Debian 8, installed Kodi Jarvis and the above listed files and now have no remote functions at all
h4rri@Kodi:~$ dpkg -l | grep osmc
ii amd64-eventlircd-osmc 1.2.0 amd64 eventlircd for OSMC
ii amd64-lirc-osmc 0.9.0-5 amd64 lirc for osmc
ii amd64-remote-osmc 1.2.1 amd64 Remote support for OSMC, achieved with lirc and eventlircd
I’d like to see a system log to show verification of the detection of the dongle and if any udev rules were triggered. This worked for another user under Debian Jessie.
udevadm monitor should certainly show activity hotplugging the dongle
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 005: ID 2252:1037
Bus 001 Device 003: ID 05e3:0718 Genesys Logic, Inc. IDE/SATA Adapter
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 413c:2107 Dell Computer Corp.
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Last few lines of dmesg are:
[ 301.546205] usb 1-1.4: new low-speed USB device number 5 using ehci-pci
[ 301.647664] usb 1-1.4: New USB device found, idVendor=2252, idProduct=1037
[ 301.647668] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 301.647671] usb 1-1.4: Product: USB Keyboard Mouse
[ 301.647673] usb 1-1.4: Manufacturer: HBGIC Technology Co., Ltd.
[ 301.652480] input: HBGIC Technology Co., Ltd. USB Keyboard Mouse as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4/1-1.4:1.0/0003:2252:1037.0004/input/input19
[ 301.652747] hid-generic 0003:2252:1037.0004: input,hidraw1: USB HID v1.10 Keyboard [HBGIC Technology Co., Ltd. USB Keyboard Mouse] on usb-0000:00:1a.0-1.4/input0
[ 301.657822] input: HBGIC Technology Co., Ltd. USB Keyboard Mouse as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4/1-1.4:1.1/0003:2252:1037.0005/input/input20
[ 301.658144] hid-generic 0003:2252:1037.0005: input,hidraw2: USB HID v1.10 Mouse [HBGIC Technology Co., Ltd. USB Keyboard Mouse] on usb-0000:00:1a.0-1.4/input1
[ 301.704786] input: eventlircd as /devices/virtual/input/input21
systemctl status eventlircd
● eventlircd.service - eventlircd remote support
Loaded: loaded (/lib/systemd/system/eventlircd.service; enabled)
Active: active (running) since Sat 2016-06-25 11:07:07 BST; 6h ago
Process: 854 ExecStartPost=/bin/sh -c for f in /var/run/lirc/lircd-*.sh; do if [ -e $f ]; then s=$(basename $f .sh | sed 's/lircd-//g'); systemctl start lircd_helper@$s; fi; done (code=exited, status=0/SUCCESS)
Process: 570 ExecStartPre=/bin/mkdir -p /var/run/lirc (code=exited, status=0/SUCCESS)
Main PID: 853 (eventlircd)
CGroup: /system.slice/eventlircd.service
└─853 /usr/sbin/eventlircd --evmap=/etc/eventlircd.d --socket=/var...
After a systemctl enable eventlircd:
systemctl status eventlircd
● eventlircd.service - eventlircd remote support
Loaded: loaded (/lib/systemd/system/eventlircd.service; enabled)
Active: active (running) since Sat 2016-06-25 11:07:07 BST; 6h ago
Main PID: 853 (eventlircd)
CGroup: /system.slice/eventlircd.service
└─853 /usr/sbin/eventlircd --evmap=/etc/eventlircd.d --socket=/var/run/lirc/lircd --r...