CIR Repeat Keys - How does XBMC get the key presses?
#1
Hi Folks,

So I was testing my remote with the ir-keytable -t command and I've been having a lot of issues with repeat key strokes (its a universal controller programmed as a DVR box). So to test I mapped a key to the "S" letter and went into XBMC to test. I thought XBMC would use the key event but seems like it uses each event on its own:

PHP Code:
sudo ir-keytable -t
Testing events
Pleasepress CTRL-C to abort.
1389033864.246134event MSCscancode 84790a
1389033864.246134
event key downKEY_S (0x001f)
1389033864.246134event sync
1389033864.257855
event MSCscancode 84790a
1389033864.257855
event sync
1389033864.354524
event MSCscancode 84790a
1389033864.354524
event sync
1389033864.365171
event MSCscancode 84790a
1389033864.365171
event sync
1389033864.461888
event MSCscancode 84790a
1389033864.461888
event sync
1389033864.473672
event MSCscancode 84790a
1389033864.473672
event sync
1389033864.674052
event MSCscancode 84790a
1389033864.674052
event sync
1389033864.783880
event key downKEY_S (0x001f)
1389033864.783880event sync
1389033864.923849
event key upKEY_S (0x001f

So as you can see, the CIR saw 6 scancodes immediately but only issues the Key_S down 2 times (I think, i'm pretty sure one is declarative so it decoded the signal is one down, and then the key up). XBMC on the other hand typed the command 6 times....

This is the output of the ir-keytable command:

PHP Code:
Found /sys/class/rc/rc0/ (/dev/input/event3with:
        
Driver ite-cirtable rc-rc6-mce
        Supported protocols
NEC RC-5 RC-6 JVC SONY SANYO LIRC other
        Enabled protocols
NEC RC-6
        Repeat delay 
540 msrepeat period 1000 ms 

This is the command in my rc.local:

PHP Code:
ir-keytable --/home/omar/.config/sony --delay 540 --period 1000 

And my advancedsettings.xml (which I don't think applies to this since its emulating key strokes but felt like worth a shot):

PHP Code:
<advancedsettings>
  <
useddsfanart>true</useddsfanart>
  <
cputempcommand>cputemp</cputempcommand>
  <
gputempcommand>gputemp</gputempcommand>
  <
samba>
    <
clienttimeout>30</clienttimeout>
  </
samba>
  <
network>
    <
disableipv6>true</disableipv6>
  </
network>
  <
remotedelay>540</remotedelay>
  <
remoterepeat>800</remoterepeat>
</
advancedsettings

Could you folks help me fix this repeat key bug, its incredibly frustrating!

Thanks!
Reply
#2
So has anybody found no cure for this? It is unusable on my mint install, I had to go back to windows and event ghost.

one key press...

PHP Code:
Shrew ken # ir-keytable -t
Testing eventsPleasepress CTRL-C to abort.
1393800147.666067event MSCscancode 800f0418
1393800147.666067
event key downKEY_SPACE (0x0039)
1393800147.666067event sync
 1393800147.772999
event MSCscancode 800f0418
1393800147.772999
event sync
1393800147.878070
event MSCscancode 800f0418
1393800147.878070
event sync
1393800147.985014
event MSCscancode 800f0418
1393800147.985014
event sync
1393800148.150059
event MSCscancode 800f0418
1393800148.150059
event sync
        1393800148.401673
event key upKEY_SPACE (0x0039)
1393800148.401673event sync 
Reply
#3
I did. Installed LIRC and used KT as a bridge. That works wonderfully Smile
Reply

Logout Mark Read Team Forum Stats Members Help
CIR Repeat Keys - How does XBMC get the key presses?0