2017-10-24, 19:22
Along the lines of longpress not working, I also have that problem on an Asus Chromebox M004U cn60 Celeron 2955U, running librelec 8.1.2
These keycodes all work perfectly for regular presses:
<key id="0xa6"> # Up button.
<key id="0xa7"> # Down button.
<key id="0xa9"> # Left button.
<key id="0xa8"> # Right button.
<key id="0x0b"> # select button.
<key id="0xd8"> # back button.
<key id="0x25"> # home button.
<key id="0x2c"> # hamburger 3 line button.
<key id="0xe2"> # Rewind button.
<key id="0xea"> # play/pause button.
<key id="0xe3"> # FF button.
So, for example, pressing the hamburger 3 line button, will correctly do NextSubtitle in this example:
<key id="0x2c">NextSubtitle</key>
but longpressing that same button will not do this SubtitleSearch, for example:
<key id="0x2c" mod="longpress">ActivateWindow(SubtitleSearch)</key>
and instead will just press NextSubtitle (0x2c) repeatedly, very fast.
Is this something to do with the 250ms threshold?
Do i need to resort to lirc? I'd rather not use LIRC if I didn't have to.
I see whiterat gave an example of lirc, but not sure if that method was working with longpress anyhow.
For completeness, here are my lirc codes:
# irw
67 0 KEY_UP devinput
6c 0 KEY_DOWN devinput
69 0 KEY_LEFT devinput
6a 0 KEY_RIGHT devinput
160 0 KEY_OK devinput
9e 0 KEY_BACK devinput
66 0 KEY_HOME devinput
171 0 KEY_TITLE devinput
a8 0 KEY_REWIND devinput
cf 0 KEY_PLAY devinput
d0 0 KEY_FASTFORWARD devinput
9e 0 KEY_BACK devinput
9e 0 KEY_BACK devinput
cf 0 KEY_PLAY devinput
These keycodes all work perfectly for regular presses:
<key id="0xa6"> # Up button.
<key id="0xa7"> # Down button.
<key id="0xa9"> # Left button.
<key id="0xa8"> # Right button.
<key id="0x0b"> # select button.
<key id="0xd8"> # back button.
<key id="0x25"> # home button.
<key id="0x2c"> # hamburger 3 line button.
<key id="0xe2"> # Rewind button.
<key id="0xea"> # play/pause button.
<key id="0xe3"> # FF button.
So, for example, pressing the hamburger 3 line button, will correctly do NextSubtitle in this example:
<key id="0x2c">NextSubtitle</key>
but longpressing that same button will not do this SubtitleSearch, for example:
<key id="0x2c" mod="longpress">ActivateWindow(SubtitleSearch)</key>
and instead will just press NextSubtitle (0x2c) repeatedly, very fast.
Is this something to do with the 250ms threshold?
Do i need to resort to lirc? I'd rather not use LIRC if I didn't have to.
I see whiterat gave an example of lirc, but not sure if that method was working with longpress anyhow.
For completeness, here are my lirc codes:
# irw
67 0 KEY_UP devinput
6c 0 KEY_DOWN devinput
69 0 KEY_LEFT devinput
6a 0 KEY_RIGHT devinput
160 0 KEY_OK devinput
9e 0 KEY_BACK devinput
66 0 KEY_HOME devinput
171 0 KEY_TITLE devinput
a8 0 KEY_REWIND devinput
cf 0 KEY_PLAY devinput
d0 0 KEY_FASTFORWARD devinput
9e 0 KEY_BACK devinput
9e 0 KEY_BACK devinput
cf 0 KEY_PLAY devinput