Forum
Remote not smooth - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Hardware (/forum-7.html)
+--- Forum: Remotes and CEC support (/forum-26.html)
+--- Thread: Remote not smooth (/thread-489.html)



Remote not smooth - benh - 21st Feb, 2013 07:57 PM

In Alpha 4 and 5 my xbox 1 remote doesn't behave smoothly. If I am pressing down quickly in a list, it may miss some presses and do some double presses (or maybe it's just catching up).

Makes typing letters difficult in the virtual keyboard.

I think this didn't happen in Alpha 3, but can't be certain (can try it out if it helps). Doesn't happen in Raspbmc and I know they used to have an issue with double key presses but fixed it by removing a setting that was increasing the xbmc priority. Does xbian have something like this in place?

Ben


RE: Remote not smooth - CurlyMo - 21st Feb, 2013 08:01 PM

Can you post the output of this command when logging into ssh:
Code:
irw



RE: Remote not smooth - benh - 21st Feb, 2013 08:48 PM

when I pressed the down arrow 10 times I got this:

xbian@xbian ~ $ irw
00000000000000a7 00 DOWN Microsoft_Xbox
00000000000000a7 01 DOWN Microsoft_Xbox
00000000000000a7 02 DOWN Microsoft_Xbox
00000000000000a7 03 DOWN Microsoft_Xbox
00000000000000a7 04 DOWN Microsoft_Xbox
00000000000000a7 05 DOWN Microsoft_Xbox
00000000000000a7 06 DOWN Microsoft_Xbox
00000000000000a7 07 DOWN Microsoft_Xbox
00000000000000a7 08 DOWN Microsoft_Xbox
00000000000000a7 09 DOWN Microsoft_Xbox
00000000000000a7 0a DOWN Microsoft_Xbox
00000000000000a7 0b DOWN Microsoft_Xbox
00000000000000a7 0c DOWN Microsoft_Xbox
00000000000000a7 0d DOWN Microsoft_Xbox
00000000000000a7 0e DOWN Microsoft_Xbox
00000000000000a7 0f DOWN Microsoft_Xbox
00000000000000a7 10 DOWN Microsoft_Xbox
00000000000000a7 11 DOWN Microsoft_Xbox
00000000000000a7 12 DOWN Microsoft_Xbox
00000000000000a7 13 DOWN Microsoft_Xbox
00000000000000a7 14 DOWN Microsoft_Xbox


RE: Remote not smooth - CurlyMo - 21st Feb, 2013 08:52 PM

Do the following:

Code:
sudo nano /etc/lirc/remotes/xbox.conf

Change the header to this:

Code:
one 0 0
  zero 0 0
  gap 163983
  toggle_bit_mask 0x0
  suppress_repeat 10

Then restart Lirc:
Code:
sudo /etc/init.d/lirc restart

Check with irw how many repeat you get know and if necessary increase or decrease that value.


RE: Remote not smooth - benh - 21st Feb, 2013 09:06 PM

Now I get the following, but the issue is still there and maybe worse. If I leave a half to one second between key presses there is no issue, but if I try and press about 4 times per second there is a delay, then catchup?? I will experiment with different suppress_repeat values.

xbian@xbian /etc/lirc/remotes $ irw
00000000000000a7 00 DOWN Microsoft_Xbox
00000000000000a7 01 DOWN Microsoft_Xbox
00000000000000a7 02 DOWN Microsoft_Xbox
00000000000000a7 03 DOWN Microsoft_Xbox
00000000000000a7 04 DOWN Microsoft_Xbox
00000000000000a7 05 DOWN Microsoft_Xbox
00000000000000a7 06 DOWN Microsoft_Xbox
00000000000000a7 07 DOWN Microsoft_Xbox
00000000000000a7 08 DOWN Microsoft_Xbox
00000000000000a7 09 DOWN Microsoft_Xbox
00000000000000a7 0a DOWN Microsoft_Xbox
00000000000000a7 0b DOWN Microsoft_Xbox
00000000000000a7 0c DOWN Microsoft_Xbox

I can press different keys as fast as I want and there is no problem, eg if I press "down", "up, "down", "up".... really fast, all key presses are registered in irw and visually.

If I press "down" very slowly 10 times - all fine
If I press "down" a bit quicker 10 times - it goes about 15 times
If I press "down" very quickly 10 times - it goes about 7-8 times
If I press "down" even quicker 10 times - it goes about 4-5 times

This is consistent and in irw it seems to be registering 10 key presses each time.

Ben

I tried a few values: 10, 1, 20, 5, 7 and none fixed the issue.

The value of 1 was similar to not having suppress_repeat in at all, the higher the value, the more key presses appeared to be missed - 20 showed only one line in irw when I pressed 10 times fast and one one line of movement in xbmc.

When pressing a bit fast (and you see more button presses than you pressed) if feels like xbmc is trying to interpret it as "hold" rather than a "press", so like a hold there is an initial delay, then some quick movement. Pressing even quicker (which results in less presses than you pressed) feels like the hold is being started again before it has time to move. That could all be crap though.

Ben


RE: Remote not smooth - benh - 21st Feb, 2013 10:50 PM

I have also found out that there are settings that can be added to advancedsettings.xml - remotedelay (which looks to be the same as suppress_repeat) and remoterepeat.

I'll play around with these tomorrow.

Ben


RE: Remote not smooth - CurlyMo - 21st Feb, 2013 11:08 PM

I wanted to suggest these two settings from withing XBMC indeed. Let me know.