Forum

Full Version: Remote not smooth
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Can you post the output of this command when logging into ssh:
Code:
irw
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
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.
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
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
I wanted to suggest these two settings from withing XBMC indeed. Let me know.
Reference URL's