Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

choppy/steppy input of analoge (delayed refresh of digital buttons as well) #297

Closed
2 tasks done
T3cube opened this issue Jun 7, 2021 · 7 comments
Closed
2 tasks done
Labels
0 | type: third party bug 1 | state: dirty fix The issue is fixed, but in a dirty way

Comments

@T3cube
Copy link

T3cube commented Jun 7, 2021

Version of xpadneo

xpadneo-dkms-git 0.9.r63.gf17a4e2-1

Severity / Impact

basically makes it unusible

  • I've read the docs and the bug reporting instructions
  • I don't know how to
    troubleshoot this further.

Describe the bug

the input apears to be choppy and refresh a several times a second instead of have fluid motions for analog inputs

Steps to Reproduce

connect the controller via wireless, monitor the controller via any program (reproducable for event and js)

Expected behavior

the analog controlls should be smoother instead of steppy

Screenshots/Gifs

how it feels and looks (this is wireless). this is rather choppy
https://user-images.githubusercontent.com/70706789/120945645-d2302080-c707-11eb-87c1-88ca71deee07.mp4

how it should feel and look (this is wired). this is very smooth
https://user-images.githubusercontent.com/70706789/120945653-d9572e80-c707-11eb-901b-e24bcd7113ac.mp4

System information

# Linux Valicity 5.12.9-arch1-1 #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000 x86_64 GNU/Linux
# xxd: /sys/module/hid_xpadneo/drivers/hid:xpadneo/0005:045E:*/report_descriptor: No such file or directory
4294967295 0

Controller and Bluetooth information

xpadneo-lsusb.txt
xpadneo-dmesg.txt
xpadneo-btmon.txt

Additional context

this is a series x controller, i just updated the firmware. (i just got it today)

@kakra
Copy link
Collaborator

kakra commented Jun 7, 2021

I ordered this hardware myself and can look into it soonish. Apparently, the mp4 videos do not give a clue about smoothness although they are 60 fps. The controllers itself seem to use an internal clock of 100 Hz, it should be fast enough to be smooth.

This may be an issue of how bluez implements the device stack using a virtual uhid device in user-space before the kernel has a chance to handle it with xpadneo. This would be something we cannot fix in xpadneo.

Some ideas:

  • You are using kernel 5.12: Ensure, ERTM is enabled (if you upgraded from an older xpadneo version, the disable-hack may still be in place).
  • Check if any background Bluetooth services are running, kdeconnect in particular (or its Gnome counterpart).
  • Check if kernel 5.10 LTS is any different.
  • Ensure that no Bluetooth inquiries are running in the background, try turning nearby Bluetooth devices off for the duration of testing.

@T3cube
Copy link
Author

T3cube commented Jun 7, 2021

I checked other issues before made this issue. I tried switching from the lts kernel as a troubleshooting step. I enabled ertm (reverted the workaround). The only bluetooth service i have making the requests is bluez. I didnot install kdeconnect(also can confirm it is not installed on the system). I also picked up a new Bluetooth dongle because my previous one had issues with continuous scanning and receiving information in a smooth manner that was very noticeable when using something like a wii remote. And it also literally fell apart so I can no longer test with it. I made sure that no other Bluetooth devices were running (or at least picked up) and I disabled discovery once the controller was connected to see if that would make a change.

Would you like me to post the changes that I made to my Bluetooth main.conf? I had to make some in order to avoid the connect disconnect pairing loop.

@kakra
Copy link
Collaborator

kakra commented Jun 7, 2021

Could be useful, please attach your main.conf and identify the changes you made.

@T3cube
Copy link
Author

T3cube commented Jun 8, 2021

main.conf.txt
good old grep --invert-match to show everything uncommented.

@kakra
Copy link
Collaborator

kakra commented Jun 17, 2021

Is it this problem? bluez/bluez#156

@kakra kakra added this to Known in Bluetooth issues via automation Jun 17, 2021
@T3cube
Copy link
Author

T3cube commented Jun 17, 2021

main.conf.txt
that sounds about right.

here is the main.conf for bluez (oops, i see i already shared it. my mistake)

@kakra
Copy link
Collaborator

kakra commented Jun 20, 2021

We found a possible solution for this by setting the LE connection latency manually, but it doesn't persist across reconnects yet. It's documented in the above linked bluez issue.

@kakra kakra pinned this issue Jun 20, 2021
@kakra kakra closed this as completed in 4fa679b Jun 25, 2021
@kakra kakra moved this from Known to Fixed by kernel/bluez settings in Bluetooth issues Jun 27, 2021
@kakra kakra added 1 | state: dirty fix The issue is fixed, but in a dirty way and removed 1 | state: work in progress 0 | type: hardware support Support third-party hardware and clones labels Jun 27, 2021
kakra added a commit to kakra/xpadneo that referenced this issue Nov 17, 2021
It looks like the new Xbox Series X|S controller doesn't set its BLE
connection parameters properly. The problem is currently evaluated in
the bluez project. Until it's officially resolved, let's document a
work-around.

See-also: bluez/bluez#156
Fixes: atar-axis#297
Maybe-fixes: atar-axis#290
Signed-off-by: Kai Krakow <kai@kaishome.de>
@kakra kakra unpinned this issue Apr 10, 2022
kakra added a commit that referenced this issue May 26, 2022
It looks like the new Xbox Series X|S controller doesn't set its BLE
connection parameters properly. The problem is currently evaluated in
the bluez project. Until it's officially resolved, let's document a
work-around.

See-also: bluez/bluez#156
Fixes: #297
Maybe-fixes: #290
Signed-off-by: Kai Krakow <kai@kaishome.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 | type: third party bug 1 | state: dirty fix The issue is fixed, but in a dirty way
Projects
Bluetooth issues
  
Fixed by kernel/bluez settings
Development

No branches or pull requests

2 participants