Linux Kodi stops responding to remote but irw shows activity
#1
I've been having an issue where my remote will stop working after some time. For example, I will pause a show with the remote, wait a few minutes, and then Kodi will no longer respond to the remote. If I exit out of Kodi and re-launch, the remote works again.

I've captured some debug info immediately after it occurred again, hopefully somebody can help point me in the right direction.

System info:
Code:

tv@htpc:~$ lircd --version
lircd 0.9.0
tv@htpc:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.3 LTS"
tv@htpc:~$ kodi --version
17.6 Git:20121104-a9a7a20 Media Center Kodi
Copyright © 2005-2013 Team Kodi - http://kodi.tv

dmesg:
Code:

tv@htpc:~$ dmesg -T | grep lirc
[Sun Nov 17 08:15:09 2019] lirc_dev: IR Remote Control driver registered, major 241
[Sun Nov 17 08:15:09 2019] lirc lirc0: lirc_dev: driver ir-lirc-codec (ite-cir) registered at minor = 0
[Sun Nov 17 08:15:09 2019] lirc lirc1: lirc_dev: driver ir-lirc-codec (streamzap) registered at minor = 1
[Sun Nov 17 08:20:57 2019]  i2c_algo_bit fb_sys_fops rc_streamzap soundcore idma64 virt_dma streamzap ecdh_generic syscopyarea sysfillrect sysimgblt intel_lpss_pci shpchp intel_lpss intel_pch_thermal ir_rc6_decoder rc_rc6_mce ir_lirc_codec lirc_dev ite_cir rc_core video acpi_pad mac_hid sch_fq_codel coretemp parport_pc ppdev sunrpc lp parport ip_tables x_tables autofs4 hid_logitech_hidpp hid_logitech_dj usbhid hid e1000e ahci sdhci_pci ptp sdhci pps_core libahci pinctrl_sunrisepoint
[Mon Dec  2 08:05:46 2019] lirc lirc1: lirc_dev: driver ir-lirc-codec (streamzap) registered at minor = 1
[Mon Dec  2 08:06:03 2019] lirc lirc1: lirc_dev: driver ir-lirc-codec (streamzap) registered at minor = 1

Kodi wasn't responding to the remote anymore, but irw still showed activity:
Code:

tv@htpc:~$ irw
00000000000028d4 00 KEY_DOWN Streamzap_PC_Remote
00000000000028d4 01 KEY_DOWN Streamzap_PC_Remote
00000000000028d4 02 KEY_DOWN Streamzap_PC_Remote
00000000000028d0 00 KEY_UP Streamzap_PC_Remote
00000000000028d0 01 KEY_UP Streamzap_PC_Remote
00000000000028d0 02 KEY_UP Streamzap_PC_Remote

mode2 shows activity as well:
Code:

root@htpc:~# mode2 -d /dev/lirc0
space 16777215
pulse 868
space 850
pulse 841
space 850
pulse 833
space 850
pulse 1666

Here's the kodi log entry from when I pressed pause on the remote, waited ~8 minutes, and then the remote did not work so I used the keyboard to resume watching:
Code:

04:01:49.982 T:140514086664320   DEBUG: LIRC: Update - NEW at 2779431:00000000000028d8 00 KEY_PAUSE Streamzap_PC_Remote (KEY_PAUSE)
04:01:49.982 T:140514086664320   DEBUG: OnKey: blue (0xe6) pressed, action is Pause
04:01:49.982 T:140513618142976   DEBUG: CAnnouncementManager - Announcement: OnPause from xbmc
04:01:49.982 T:140514086664320   DEBUG: ------ Window Init (DialogSeekBar.xml) ------
04:01:49.983 T:140513618142976   DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnPause
04:01:49.983 T:140514086664320   DEBUG: ------ Window Init (Custom_1109_TopBarOverlay.xml) ------
04:01:50.012 T:140512531052288   DEBUG: CDVDAudio:Tongueause - pausing audio stream
04:01:50.524 T:140511566350080 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
04:09:59.158 T:140514086664320 WARNING: Previous line repeats 1 times.
04:09:59.158 T:140514086664320   DEBUG: Keyboard: scancode: 0x41, sym: 0x0020, unicode: 0x0020, modifier: 0x0
04:09:59.158 T:140514086664320   DEBUG: OnKey: space (0xf020) pressed, action is Pause
04:09:59.158 T:140513618142976   DEBUG: CAnnouncementManager - Announcement: OnPlay from xbmc
04:09:59.158 T:140513618142976   DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnPlay
04:09:59.158 T:140514086664320   DEBUG: Keyboard: scancode: 0x41, sym: 0x0020, unicode: 0x0000, modifier: 0x0
04:09:59.161 T:140512531052288   DEBUG: CDVDAudio::Resume - resume audio stream
04:09:59.163 T:140513599055616   DEBUG: ActiveAE - start sync of audio stream

Any help would be greatly appreciated!
Reply
#2
Not an issue I've ever had but, have you tried a later version of Kodi ?  17.6 is two years old.
Learning Linux the hard way !!
Reply
#3
(2019-12-03, 13:51)black_eagle Wrote: Not an issue I've ever had but, have you tried a later version of Kodi ?  17.6 is two years old.

Thanks for the suggestion. I installed the latest Kodi 19.0 which installed kodi-x11, which in turn also upgraded lirc.

So now I have the following lirc packages:
Code:

root@htpc:~# apt list --installed | grep lirc

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

liblirc-client0/bionic,now 0.10.0-2 amd64 [installed,automatic]
liblirc0/bionic,now 0.10.0-2 amd64 [installed,automatic]
liblircclient0/bionic,now 0.10.0-2 amd64 [installed]
lirc/bionic,now 0.10.0-2 amd64 [installed]
lirc-compat-remotes/bionic,bionic,now 0.9.0-1 all [installed]

After sorting out the lirc 0.9.x -> 0.10.x changes (I had been using an older lirc as a [url="https://twosortoftechguys.wordpress.com/2018/07/24/make-lirc-work-in-ubuntu-18-04/"]workaround[/url]) the issue seems to be fixed! The remote continues to work after periods of being idle. As part of this, I also ditched my Streamzap IR receiver and I'm just using the built in one on my Intel NUC. Not sure exactly which change fixed it, but at least it's fixed. Thanks again.
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi stops responding to remote but irw shows activity0