csr8510 disable_ertm by default #117

Closed
opened 2019-09-23 17:07:05 +02:00 by riwale · 6 comments
riwale commented 2019-09-23 17:07:05 +02:00 (Migrated from github.com)

As suggested, i bought a couple of bluetooth csr8510 dongles.

They only work as expected when "enhanced retransmission mode" is turned off. PAN / A2DP and simple HID devices connect, then disconnect again without the module paramater set.

I have not found an option to disable it by default in the kernel, most guides recommend sysfutils to disable it on reboot.

You can add a file to /etc/modprobe.d though and disable it:

sudo echo "options bluetooth disable_ertm=Y" > /etc/modprobe.d/bluetooth.conf

HID, A2DP and BNEP/PAN works fine after that.

As suggested, i bought a couple of bluetooth csr8510 dongles. They only work as expected when "enhanced retransmission mode" is turned off. PAN / A2DP and simple HID devices connect, then disconnect again without the module paramater set. I have not found an option to disable it by default in the kernel, most guides recommend sysfutils to disable it on reboot. You can add a file to /etc/modprobe.d though and disable it: sudo echo "options bluetooth disable\_ertm=Y" > /etc/modprobe.d/bluetooth.conf HID, A2DP and BNEP/PAN works fine after that.
SolidEva commented 2019-10-09 07:58:06 +02:00 (Migrated from github.com)

I'll have a new built image with this fix uploaded in a couple days, if you have a chance you can test that out. Will be Alpha 16

I'll have a new built image with this fix uploaded in a couple days, if you have a chance you can test that out. Will be Alpha 16
ghost commented 2019-10-31 08:33:47 +01:00 (Migrated from github.com)

I have tested the new build. You need to add the user to the bluetooth group also, this is unfortunately not done automatically after installing blueman / bluetoothctl.

Those packages are not really taking up much space and i guess if you advocate bluetooth dongles csr8510 this could be done during install of xfce to make things easier.

I have tested the new build. You need to add the user to the bluetooth group also, this is unfortunately not done automatically after installing blueman / bluetoothctl. Those packages are not really taking up much space and i guess if you advocate bluetooth dongles csr8510 this could be done during install of xfce to make things easier.
ghost commented 2019-10-31 19:37:02 +01:00 (Migrated from github.com)

So, bluetooth works in most cases after fixing groups. But ertm is still enabled by default. To confirm:

cat /sys/module/bluetooth/parameters/disable_ertm
N

in later releases.

I guess the modprobe way isn't working, sysfsutils seems to be needed to have it disabled across reboots.

apt install sysfsutils

echo "module/bluetooth/parameters/disable_ertm = 1" > /etc/sysfs.conf

afterwards:

cat /sys/module/bluetooth/parameters/disable_ertm
Y

I know this is not needed by most users, but i like to cater to every use-case.

So, bluetooth works in most cases after fixing groups. But ertm is still enabled by default. To confirm: cat /sys/module/bluetooth/parameters/disable_ertm N in later releases. I guess the modprobe way isn't working, sysfsutils seems to be needed to have it disabled across reboots. apt install sysfsutils echo "module/bluetooth/parameters/disable_ertm = 1" > /etc/sysfs.conf afterwards: cat /sys/module/bluetooth/parameters/disable_ertm Y I know this is not needed by most users, but i like to cater to every use-case.
riwale commented 2019-11-01 07:52:10 +01:00 (Migrated from github.com)

@rk-zero both tips work, will close this issue

@rk-zero both tips work, will close this issue
SolidEva commented 2019-11-19 05:42:01 +01:00 (Migrated from github.com)

Reopened so that the fix can be put into PrawnOS. Thanks for the testing and additional information @rk-zero. I'll add the user to the bluetooth group and fix how disable_ertm gets set. I think I'm going to hold off on installing any specific bluetooth software (blueman/bluetoothctl) until I can thoroughly test it myself.

Reopened so that the fix can be put into PrawnOS. Thanks for the testing and additional information @rk-zero. I'll add the user to the bluetooth group and fix how `disable_ertm` gets set. I think I'm going to hold off on installing any specific bluetooth software (blueman/bluetoothctl) until I can thoroughly test it myself.
SolidEva commented 2019-12-03 03:41:09 +01:00 (Migrated from github.com)

Applied new fix in 6bdd2abbaf, closing

Applied new fix in 6bdd2abbaffddae6fc7242a62527d5f9d8c5f210, closing
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ev4/PrawnOS#117
No description provided.