Jump to content
Flirc Forums

Recommended Posts

Posted (edited)

Hi,

When I pause a video in Kodi for a long time (couple of minutes) then I cannot unpause/resume the video using my remote+Flirc.
It simply doesnot respond to the remote/Flirc anymore.
When that situation happens I use the iPhone app "Sybu Kodi" or I plugin a real keyboard to unpause/resume the video and that works, 
and after that Kodi responds to the remote/Flirc again as well.
Any idea what might be causing this issue?
Apart from this issue my remote+Flirc is working fine all the time.
Any help is much appreciated, thanks and regards,

Jeroen.

My system:

- Flirc USB v2, FW Version: v4.10.5
- Xbox One Media Remote
- LibreELEC 12.0.2 with Kodi (Omega) v21.2 (LegacyGenericPC)

 

Flirc settings:

# flirc_util settings
flirc_util version 8fa330dc8741f2014de7af7f0761abb35ddadb65 [8fa330d+]
 Firmware Detected
 FW Version: v4.10.5
    SKU:     Flirc 2.0 [dori]
    Branch:  release
    Config:  release
    Hash:    0xF7261C8C

Settings:
  sleep detection:  always enabled
  noise canceler:   always enabled
  inter-key delay:  N/A for current firmware
  variant:          Flirc
  builtin profiles: NA
  Memory Info:      NA
  product sku:      Flirc 2.0 [dori]

Recorded Keys:
Index  hash       IK   ID  key
-----  --------   ---  --  ------------
    0  7174CC7E   054  01  .
    1  C0FD707E   054  01  escape
    2  50DA027E   054  01  c
    3  BF513A7E   054  01  return
    4  35D85E7E   053  01  up
    5  E39DBA7E   054  01  right
    6  C5B4F07E   054  01  down
    7  53C1287E   054  01  left
    8  4F2DCC7E   054  01  backspace
    9  83B4CC7E   054  01  e
   10  338DA87E   130  01  =
   11  C36A3A7E   130  01  -
   12  686DCC7E   130  01  F8
   13  9F1DBA7E   130  01  pageup
   14  2EFA4C7E   130  01  pagedown
   15  87CDCC7E   054  01  r
   16  83164C7E   055  01  s
   17  F7F13A7E   054  01  f
   18  01515E7E   054  01  ,
   19  95C14C7E   054  01  x
   20  8C1D4C7E   054  02  play/pause
 

Edited by JeroenD
Posted

I have also enabled Kodi debugging.

During normal operation when I press the play/pause button then the Kodi log file shows the following message:

2025-03-27 12:06:31.164 T:631975   debug <general>: HandleKey: play_pause (0xf0bd) pressed, window 12005, action is PlayPause

However when the video is in long pause (couple of minutes) then my Flirc is not responding anymore when I press a button and then this HandleKey debug message is NOT shown in the Kodi.log. 

Therefore I think this issue is a bug in the Flirc firmware.

What is the next step?

 

Posted
On 3/27/2025 at 4:19 AM, JeroenD said:

I have also enabled Kodi debugging.

During normal operation when I press the play/pause button then the Kodi log file shows the following message:

2025-03-27 12:06:31.164 T:631975   debug <general>: HandleKey: play_pause (0xf0bd) pressed, window 12005, action is PlayPause

However when the video is in long pause (couple of minutes) then my Flirc is not responding anymore when I press a button and then this HandleKey debug message is NOT shown in the Kodi.log. 

Therefore I think this issue is a bug in the Flirc firmware.

What is the next step?

 

When this happens, can you ssh into it and see if there are any logs?

Do a `dmesg` paste that here.

Also run a few commands and see what happens.
 

flirc_util unit_test

flirc_util settings

Let me know. 

Posted (edited)

Hi Jason,

Thanks for looking into this.

Here is the output of the "dmesg" ==>

https://paste.libreelec.tv/funky-barnacle.log

Below are the outputs of the flirc_util settings, device_log, unit_test and settings. 
As you can see, after doing the unit_test my recorded keys are lost and I have to re-load them from my configuration file.

macmini2018:~ # flirc_util settings
flirc_util version 8fa330dc8741f2014de7af7f0761abb35ddadb65 [8fa330d+]
 Firmware Detected
 FW Version: v4.10.5
    SKU:     Flirc 2.0 [dori]
    Branch:  release
    Config:  release
    Hash:    0xF7261C8C

Settings:
  sleep detection:  always enabled
  noise canceler:   always enabled
  inter-key delay:  N/A for current firmware
  variant:          Flirc
  builtin profiles: NA
  Memory Info:      NA
  product sku:      Flirc 2.0 [dori]

Recorded Keys:
Index  hash       IK   ID  key
-----  --------   ---  --  ------------
    0  7174CC7E   054  01  .
    1  C0FD707E   054  01  escape
    2  50DA027E   054  01  c
    3  BF513A7E   054  01  return
    4  35D85E7E   053  01  up
    5  E39DBA7E   054  01  right
    6  C5B4F07E   054  01  down
    7  53C1287E   054  01  left
    8  4F2DCC7E   054  01  backspace
    9  83B4CC7E   054  01  e
   10  338DA87E   130  01  =
   11  C36A3A7E   130  01  -
   12  686DCC7E   130  01  F8
   13  9F1DBA7E   130  01  pageup
   14  2EFA4C7E   130  01  pagedown
   15  87CDCC7E   054  01  r
   16  8C1D4C7E   054  02  play/pause
   17  F7F13A7E   054  01  f
   18  01515E7E   054  01  ,
   19  95C14C7E   054  01  x
   20  83164C7E   055  01  s
macmini2018:~ #

macmini2018:~ # flirc_util device_log
<1>malloc_addblock(49): Heap Block: 0x20001CD0 - 0x20003BFF (7k)
<3>ir_finished(72): too many edges
<3>ir_finished(72): too many edges
<3>ir_finished(72): too many edges
<3>ir_finished(72): too many edges
<3>ir_finished(72): too many edges
<3>ir_finished(72): too many edges
<3>ir_finished(72): too many edges
<3>ir_finished(72): too many edges
<3>ir_finished(72): too many edges
<3>ir_finished(72): too many edges
<3>ir_finished(72): too many edges
<3>ir_finished(72): too many edges
<3>ir_finished(72): too many edges
<3>ir_finished(72): too many edges
<3>ir_finished(72): too many edges
macmini2018:~ #

macmini2018:~ # flirc_util unit_test
[E] lib/libflirc/firmware/fw_4.0.c fl_ver4_set_interrupt(369): timeout
[E] lib/libflirc/firmware/fw_4.2.c _fl_unit_test(132): error recording test0
Flirc Not Okay
macmini2018:~ #

macmini2018:~ # flirc_util settings
flirc_util version 8fa330dc8741f2014de7af7f0761abb35ddadb65 [8fa330d+]
 Firmware Detected
 FW Version: v4.10.5
    SKU:     Flirc 2.0 [dori]
    Branch:  release
    Config:  release
    Hash:    0xF7261C8C

Settings:
  sleep detection:  always enabled
  noise canceler:   always enabled
  inter-key delay:  N/A for current firmware
  variant:          Flirc
  builtin profiles: NA
  Memory Info:      NA
  product sku:      Flirc 2.0 [dori]

Recorded Keys:
Index  hash       IK   ID  key
-----  --------   ---  --  ------------
macmini2018:~ #

Edited by JeroenD
Posted
1 hour ago, JeroenD said:

@jason ,

Any idea what might be causing the issue?

Do you need more logs / info? If so then please let me know what more you need.

Thanks.

This is really crazy. Does this happen every time?

I don’t see anything in dmesg. 

Can you do a flirc_utility device log before this happens and after it happens. I may need to send you some special firmware to get more logs. The only way a device can lose its memory is if it’s sent a special command. Or memory gets corrupted, and the way that happens is if something writes to memory… But it would also say in the device log if it found corrupt memory.

Are you doing anything custom like running the utility in the background or as a startup script, etc?

 

Posted (edited)

@jason,

 

This happens indeed every time I do a unit test.
I just repeated again following commands: device_log, settings, unit_test, settings, device_log.
As you can see below again my key recordings are lost.

I am not doing anything custom at all. I am not using the utility, not in background and not in script. I am happy to install the special firmware to get the extra logs (however you have to tell me how to install it, because normally I do this only with the GUI).

macmini2018:~ # flirc_util device_log
<3>ir_finished(72): too many edges
<3>ir_finished(72): too many edges
<3>ir_finished(72): too many edges
<3>ir_finished(72): too many edges
macmini2018:~ #

macmini2018:~ # flirc_util settings
flirc_util version 8fa330dc8741f2014de7af7f0761abb35ddadb65 [8fa330d+]
 Firmware Detected
 FW Version: v4.10.5
    SKU:     Flirc 2.0 [dori]
    Branch:  release
    Config:  release
    Hash:    0xF7261C8C

Settings:
  sleep detection:  always enabled
  noise canceler:   always enabled
  inter-key delay:  N/A for current firmware
  variant:          Flirc
  builtin profiles: NA
  Memory Info:      NA
  product sku:      Flirc 2.0 [dori]

Recorded Keys:
Index  hash       IK   ID  key
-----  --------   ---  --  ------------
    0  7174CC7E   054  01  .
    1  C0FD707E   054  01  escape
    2  50DA027E   054  01  c
    3  BF513A7E   054  01  return
    4  35D85E7E   053  01  up
    5  E39DBA7E   054  01  right
    6  C5B4F07E   054  01  down
    7  53C1287E   054  01  left
    8  4F2DCC7E   054  01  backspace
    9  83B4CC7E   054  01  e
   10  338DA87E   130  01  =
   11  C36A3A7E   130  01  -
   12  686DCC7E   130  01  F8
   13  9F1DBA7E   130  01  pageup
   14  2EFA4C7E   130  01  pagedown
   15  87CDCC7E   054  01  r
   16  8C1D4C7E   054  02  play/pause
   17  F7F13A7E   054  01  f
   18  01515E7E   054  01  ,
   19  95C14C7E   054  01  x
   20  83164C7E   055  01  s
macmini2018:~ #

macmini2018:~ # flirc_util unit_test
[E] lib/libflirc/firmware/fw_4.2.c _fl_unit_test(172): can't find hash: test2
Flirc Not Okay
macmini2018:~ #

macmini2018:~ # flirc_util settings
flirc_util version 8fa330dc8741f2014de7af7f0761abb35ddadb65 [8fa330d+]
 Firmware Detected
 FW Version: v4.10.5
    SKU:     Flirc 2.0 [dori]
    Branch:  release
    Config:  release
    Hash:    0xF7261C8C

Settings:
  sleep detection:  always enabled
  noise canceler:   always enabled
  inter-key delay:  N/A for current firmware
  variant:          Flirc
  builtin profiles: NA
  Memory Info:      NA
  product sku:      Flirc 2.0 [dori]

Recorded Keys:
Index  hash       IK   ID  key
-----  --------   ---  --  ------------
macmini2018:~ #

macmini2018:~ # flirc_util device_log
macmini2018:~ #

 

Edited by JeroenD
Posted
On 4/1/2025 at 8:52 AM, JeroenD said:

@jason,

 

This happens indeed every time I do a unit test.
I just repeated again following commands: device_log, settings, unit_test, settings, device_log.
As you can see below again my key recordings are lost.

I am not doing anything custom at all. I am not using the utility, not in background and not in script. I am happy to install the special firmware to get the extra logs (however you have to tell me how to install it, because normally I do this only with the GUI).

macmini2018:~ # flirc_util device_log
<3>ir_finished(72): too many edges
<3>ir_finished(72): too many edges
<3>ir_finished(72): too many edges
<3>ir_finished(72): too many edges
macmini2018:~ #

macmini2018:~ # flirc_util settings
flirc_util version 8fa330dc8741f2014de7af7f0761abb35ddadb65 [8fa330d+]
 Firmware Detected
 FW Version: v4.10.5
    SKU:     Flirc 2.0 [dori]
    Branch:  release
    Config:  release
    Hash:    0xF7261C8C

Settings:
  sleep detection:  always enabled
  noise canceler:   always enabled
  inter-key delay:  N/A for current firmware
  variant:          Flirc
  builtin profiles: NA
  Memory Info:      NA
  product sku:      Flirc 2.0 [dori]

Recorded Keys:
Index  hash       IK   ID  key
-----  --------   ---  --  ------------
    0  7174CC7E   054  01  .
    1  C0FD707E   054  01  escape
    2  50DA027E   054  01  c
    3  BF513A7E   054  01  return
    4  35D85E7E   053  01  up
    5  E39DBA7E   054  01  right
    6  C5B4F07E   054  01  down
    7  53C1287E   054  01  left
    8  4F2DCC7E   054  01  backspace
    9  83B4CC7E   054  01  e
   10  338DA87E   130  01  =
   11  C36A3A7E   130  01  -
   12  686DCC7E   130  01  F8
   13  9F1DBA7E   130  01  pageup
   14  2EFA4C7E   130  01  pagedown
   15  87CDCC7E   054  01  r
   16  8C1D4C7E   054  02  play/pause
   17  F7F13A7E   054  01  f
   18  01515E7E   054  01  ,
   19  95C14C7E   054  01  x
   20  83164C7E   055  01  s
macmini2018:~ #

macmini2018:~ # flirc_util unit_test
[E] lib/libflirc/firmware/fw_4.2.c _fl_unit_test(172): can't find hash: test2
Flirc Not Okay
macmini2018:~ #

macmini2018:~ # flirc_util settings
flirc_util version 8fa330dc8741f2014de7af7f0761abb35ddadb65 [8fa330d+]
 Firmware Detected
 FW Version: v4.10.5
    SKU:     Flirc 2.0 [dori]
    Branch:  release
    Config:  release
    Hash:    0xF7261C8C

Settings:
  sleep detection:  always enabled
  noise canceler:   always enabled
  inter-key delay:  N/A for current firmware
  variant:          Flirc
  builtin profiles: NA
  Memory Info:      NA
  product sku:      Flirc 2.0 [dori]

Recorded Keys:
Index  hash       IK   ID  key
-----  --------   ---  --  ------------
macmini2018:~ #

macmini2018:~ # flirc_util device_log
macmini2018:~ #

 

PM me your address, let's see if this is fixed in hardware, before we return this one.

Posted (edited)

@jason,

Today I received the new device, many thanks for that!

I recorded the keys and all works fine except that I still have the unpause video issue :-(

Also I performed a "flirc_util unit_test" with the new device and after that the key recordings are lost, same as with the old device.

In the Flirc Windows GUI, I reloaded the configuration, and retrieved the Device Log (selected from the File menu).

It says something about broken hashtable.  See below.

Tue Apr 8 2025 19:00:20
Flirc GUI Version v3.27.16
Operating System: Windows
*** Device Disconnected *** 
*** Device Connected *** 
Firmware Version: v4.10.6
SKU: Flirc 2.0 [marlin]
Git Hash: 0x6b1ed7e7
<1>malloc_addblock(49): Heap Block: 0x20001CD0 - 0x20003BFF (7k)
<3>hashtable_ready(270): RB table CRC Mismatch: 0x32EF6B1C != 0xFFFFFFFF
<3>iospirit_eep_init(313): hashtable broken, formatting

Screenshot 2025-04-08 190924.jpg

Edited by JeroenD
typo
  • 2 weeks later...
Posted

@jason,

I have plugged the Flirc USB directly into my machine this time and run the same flirc_util commands.

However it doesn't make a difference. After doing a unit_test the recorded keys are still lost again, and I have to reload them in the Flirc GUI.

When I retrieve the Device Log in the GUI it again mentions the broken hashtable.

Do you have an explanation for this? Is there anything else you want me to do?

 

macmini2018:~ # flirc_util device_log
<1>malloc_addblock(49): Heap Block: 0x20001CD0 - 0x20003BFF (7k)
macmini2018:~ #
macmini2018:~ # flirc_util settings
flirc_util version 8fa330dc8741f2014de7af7f0761abb35ddadb65 [8fa330d+]
 Firmware Detected
 FW Version: v4.10.6
    SKU:     Flirc 2.0 [marlin]
    Branch:  release
    Config:  release
    Hash:    0x6B1ED7E7

Settings:
  sleep detection:  always enabled
  noise canceler:   always enabled
  inter-key delay:  N/A for current firmware
  variant:          Flirc
  builtin profiles: NA
  Memory Info:      NA
  product sku:      Flirc 2.0 [marlin]

Recorded Keys:
Index  hash       IK   ID  key
-----  --------   ---  --  ------------
    0  C0FD707E   054  01  escape
    1  83164C7E   054  01  s
    2  50DA027E   053  01  c
    3  BF513A7E   054  01  return
    4  35D85E7E   054  01  up
    5  E39DBA7E   054  01  right
    6  C5B4F07E   054  01  down
    7  53C1287E   054  01  left
    8  4F2DCC7E   054  01  backspace
    9  83B4CC7E   054  01  e
   10  338DA87E   130  01  =
   11  C36A3A7E   130  01  -
   12  686DCC7E   130  01  F8
   13  9F1DBA7E   130  01  pageup
   14  2EFA4C7E   130  01  pagedown
   15  87CDCC7E   054  01  r
   16  8C1D4C7E   054  02  play/pause
   17  F7F13A7E   054  01  f
   18  01515E7E   054  01  ,
   19  95C14C7E   054  01  x
   20  7174CC7E   054  01  .
macmini2018:~ #
macmini2018:~ # flirc_util unit_test
Flirc Okay
macmini2018:~ #
macmini2018:~ # flirc_util settings
flirc_util version 8fa330dc8741f2014de7af7f0761abb35ddadb65 [8fa330d+]
 Firmware Detected
 FW Version: v4.10.6
    SKU:     Flirc 2.0 [marlin]
    Branch:  release
    Config:  release
    Hash:    0x6B1ED7E7

Settings:
  sleep detection:  always enabled
  noise canceler:   always enabled
  inter-key delay:  N/A for current firmware
  variant:          Flirc
  builtin profiles: NA
  Memory Info:      NA
  product sku:      Flirc 2.0 [marlin]

Recorded Keys:
Index  hash       IK   ID  key
-----  --------   ---  --  ------------
macmini2018:~ #

 

image.png.7dac3180506dd7eae05cdc5d011778a9.png

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...