-
Notifications
You must be signed in to change notification settings - Fork 127
Bluetooth auto reconnect service #1029
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
base: master
Are you sure you want to change the base?
Conversation
|
Thanks for the work, but I am a bit confused as to why this is necessary. If the controller is paired, it should be able to autoconnect without this service. |
|
It appears that Bluez don't support autoconnect for some bluetooth controller unless there is a bluetooth scan occuring. It was the case with the bluetooth dongle mentioned above. However, I tried to run a fresh chimeraos with another bluetooth dongle (this one) and didn't got any issue This service is a fix for controllers that need a scan for connecting devices |
|
I see, so it is hardware dependent. Thank you. I am not sure if it is a good idea to be scanning constantly like that. I will have to do some research and think about it. |
|
@alkazar Have you had a chance to consider this further? I've had to implement it myself locally to resolve the same issue as there seems to be no other viable solution for me (having to use a keyboard to manually disable/re-enable bluetooth to reconnect the controller everytime quickly fails family UAT). I'm surprised this hasn't been an issue for more people to be honest. I implemented the following; |
|
I bought a pci bluetooth/wifi card and this problem has been resolved for me. It is hardware dependent as far as I can tell. Maybe a nice compromise could be to add this service for the next release and keeping it disabled by default. We can also add an option to the web UI to enable/disable this service in case some user have this problem. I can start working on that if needed @alkazar |
|
@RowlaxX can you share which card you bought? Im having bt troubles also (with a fenvi card) |
|
@RowlaxX Bonne soirée et passe un excellent dimanche soir! |
|
As a compromise, I was thinking what if we run this service only for the first few minutes after startup? |
|
That sounds like a good compromise to me. Sadly a PCIe card is out of the question for me as I don't have enough slots. |
Motivation
Hi, after installing ChimeraOS, I was unable to connect my Xbox Series controller until I navigated to the bluetooth settings. It was very similar to this issue
Investigation
After searching the cause of this problem, it seems that a Bluetooth scan was triggered while navigating to the Gnome Bluetooth Settings, and disabled when leaving that page.
Later, I was able to reconnect my controller by using the command
bluetoothctl -t -1 scan onwithout navigating to the bluetooth settingsSolution
This PR add a simple systemd service that periodically scan for previously connected Bluetooth devices
I am now able to automatically reconnect my controller in the following cases :
Mention
It seems that Bluez allow for periodic scans in the config via
ScanIntervalAutoConnect&ScanWindowAutoConnectparameters (link).This could be a way cleaner solution, but I was unable to make them work.
Hardware & Software
Note
This is my first PR for Chimera so I may not have respected some design & architectural choice