-
Notifications
You must be signed in to change notification settings - Fork 118
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
Latency and polling rate issue when booting after shutdown (not reboot) #520
Comments
This is most likely an issue with bluez or the Bluetooth driver. So xpadneo cannot solve this but I can give a few hints:
Also check here: There may be a problem with restoring proper latency values. For the changes to take effect, you may need to reboot your computer, completely remove your controller from bluez, then pair it again. I'm pretty sure that is a third party problem because xpadneo itself cannot cause such problems. We are only handling events from lower driver layers (Bluetooth, HID) and do not delay any events. But there's a hint in dmesg:
Please upgrade the firmware of your controller. This often solves a lot of issues with connectivity and latency. You are still on a version that is known to have issues with various Bluetooth chipsets. |
Hello,
|
Then this is most likely an incomplete proper initialization of the Bluetooth stack on cold start. May be an issue with your UEFI firmware, may be an issue with the linux-firmware package, may be an issue with the Bluetooth kernel drivers, and may actually also be an issue with older Xbox controller firmwares. I suggest checking for firmware updates first (UEFI, linux-firmware, Xbox controller), then maybe report to the bluez project. |
Re-opening just as a reminder for me: We should probably document the expecting numbers of this test so people can verify their setup. From previous tests, the controller should be able to handle an event rate of 100 Hz: it seems to be the cycle interval the controller uses internally. This is also the minimum supported rate of the haptic programming interface. Controllers connected via Bluetooth may go as low as 20 Hz according to some bug reports (that's why our rumble programming is fixed at 20 Hz currently, otherwise the firmware may crash). We cannot control the reporting rate, tho. Thus we cannot fix the problem initially described in this report. |
Version of xpadneo
xpadneo-dkms 0.9.7-1 (aur)
Controller Model
Connection mode
Installed Software
Protocol Information
Please help us identify at which layer the problem can be found if you want
to report mapping errors or if the controller fails to be detected:
evtest
is showing issues (describe the issues below)BTN_NORTH
andBTN_WEST
are intentionally swappedjstest
is showing issues (describe the issues below)gamepad-tool
is showing issues (post console output below)Please describe how it is failing below in the next sections.
Severity / Impact
Describe the Bug
After installation of xpadneo followed by a reboot, the controller works as expected, same case if i reboot the system (laptop) and test again. But after powering off and turning on using the power button, the polling rate goes down and latency spikes. But then if I reboot everything goes back to normal.
Again if I shut down (not reboot) and power on again, the latency increases and polling rate goes down.
I have checked using dmesg that xpadneo is loaded and working after reboots and shutdown. The controller also vibrates on connect in both scenarios and the sensitive triggers also work.
I am testing Polling rate using Polling by Gamepadla.
Steps to Reproduce
Install xpadneo, reboot the computer and test, controller works fine and stays persistent across reboots. But after powering off the system and turning it on manually, the polling rates goes down and latency jumps from 5-6ms to ~20ms.
Expected Behavior
The Polling rate and latency should remain same even after power down the system and turning it back on.
Screenshots / GIFs / Videos
System Information
# xxd -c20 -g1 /sys/module/hid_xpadneo/drivers/hid:xpadneo/0005:045E:*/report_descriptor | tee >(cksum)
Controller and Bluetooth Information
I am testing using a laptop computer and using the built-in network adapter, maybe that is why i am unable to get bluetooth info from lsusb, so providing the network adapter info instead:
Network controller [0280]: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter [168c:0042] (rev 31)
Subsystem: AzureWave Device [1a3b:2b51]
-btmon-after reboot (normal state).txt
-btmon-after manual power on.txt
-dmesg-after reboot (normal state).txt
-dmesg-after manual power on.txt
Additional Context
The text was updated successfully, but these errors were encountered: