Bug 20637 - RT3290 Bluetooth driver not working
Summary: RT3290 Bluetooth driver not working
Status: RESOLVED INVALID
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Kernel and Drivers maintainers
QA Contact:
URL:
Whiteboard: MGA6TOO
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-05 15:11 CEST by Sébastien Morin
Modified: 2019-03-24 18:30 CET (History)
2 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments
lspcidrake -v output (4.89 KB, text/plain)
2017-04-05 15:14 CEST, Sébastien Morin
Details
lspcidrake -v output (mageia 6) (4.88 KB, text/plain)
2018-08-17 20:07 CEST, Sébastien Morin
Details
lspcidrake -v output (Cauldron) (4.89 KB, text/plain)
2018-10-14 20:40 CEST, Sébastien Morin
Details

Description Sébastien Morin 2017-04-05 15:11:55 CEST
Description of problem:

Ralink RT3290 driver concerns Wi-fi AND Bluetooth.
Wifi works perfectly, but Bluetooth doesn't work.


Version-Release number of selected component:

ralink-firmware RPM package is installed.
version: 20160914-1.mga5.nonfree


A solution may have been found for Ubuntu :
http://askubuntu.com/questions/756166/rt3290-ralink-driver-in-ubuntu

I haven't tested Mageia 6 - sta2, so I can't tell if this bug has been already fixed.

See lspcidrake log file attached.
Comment 1 Sébastien Morin 2017-04-05 15:14:35 CEST
Created attachment 9187 [details]
lspcidrake -v output

Information about the hardware used
Rémi Verschelde 2017-04-05 15:17:15 CEST

Assignee: bugsquad => kernel

Comment 2 Marja Van Waes 2018-07-25 13:07:19 CEST
Hi Sébastien,

Thank you for having taken the needed time to report this issue!

Did this bug get fixed? If so, please change its status to RESOLVED - FIXED

If it didn't, then we regret that we weren't able to fix it in Mageia 5. Mageia 5 has officially reached its End of Life on December 31st, 2017 https://blog.mageia.org/en/2017/11/07/mageia-5-eol-postponed/
It only continued to get important security updates since then, because we were waiting for the big Plasma5 update in Mageia 6, that fixed many of the Mageia 5 => 6 upgrade issues.

If you haven't seen that this bug got fixed, then please check whether this bug still exists in Mageia 6. If it does, then please change the Version (near the top, at the left) to "6". If you know it exists in Cauldron, then change Version to Cauldron. If you see it in both Cauldron and Mageia 6, then please set Version to Cauldron and add MGA6TOO on the Whiteboard.

==> If you didn't reset your password after February 2018, then you'll need to reset it here https://identity.mageia.org/forgot_password to be able to log in and comment in this report. <==

CC: (none) => marja11

Comment 3 Sébastien Morin 2018-08-17 20:06:44 CEST
Hello,

This bug has not been fixed yet in Mageia 6.

ralink-firmware RPM package is installed.
version: 20180606-1.mga6.nonfree

See the attached file for the new version of lspcidrake -v output
Comment 4 Sébastien Morin 2018-08-17 20:07:47 CEST
Created attachment 10319 [details]
lspcidrake -v output (mageia 6)
Sébastien Morin 2018-08-17 20:08:12 CEST

Version: 5 => 6

Comment 5 Sébastien Morin 2018-10-14 20:40:37 CEST
Created attachment 10403 [details]
lspcidrake -v output (Cauldron)

Hello,

This bug hasn't been fixed in Cauldron either.

$ rpm -qa | grep "ralink"
ralink-firmware-20180606-2.mga7.nonfree

See the attached file for the lspcidrake -v output on Cauldron
Sébastien Morin 2018-10-14 20:41:05 CEST

Version: 6 => Cauldron

papoteur 2018-11-01 18:58:49 CET

Whiteboard: (none) => MGA6TOO
CC: (none) => yves.brungard_mageia

Comment 6 katnatek 2019-02-05 20:46:24 CET
This is a more update version of the dkms module suggested as workarround 
https://github.com/loimu/rtbth-dkms
Comment 7 katnatek 2019-02-06 19:12:06 CET
Other workaround reported in blogdrake.net 

If you have windows/linux dual boot, boot first in windows and make sure the bluetooth is enabled.
Then reboot and now boot in linux
Comment 8 Sébastien Morin 2019-02-06 20:12:02 CET
If you can read French, there was quite a comprehensive attempt to make loimu's rtbth-dksm work on my computer last October/November.
See the French-speaking forum if you want to follow the thread thanks to the commands (I was guided step by step, really) :
https://www.mageialinux-online.org/forum/topic-25509+pilote-ralink-rt3290-wifi-ok-pas-de-bluetooth.php

The bluetooth seems to be enabled, but in the end no connection to any BT device can be established.
I haven't had a windows partition on any of my computers for years now... even that HP laptop was bought with a Linux system on it, therefore I am unable to tell if it works with windows.
Comment 9 katnatek 2019-02-07 00:42:31 CET
(In reply to Sébastien Morin from comment #8)
> If you can read French, there was quite a comprehensive attempt to make
> loimu's rtbth-dksm work on my computer last October/November.
> See the French-speaking forum if you want to follow the thread thanks to the
> commands (I was guided step by step, really) :
> https://www.mageialinux-online.org/forum/topic-25509+pilote-ralink-rt3290-
> wifi-ok-pas-de-bluetooth.php
> 
> The bluetooth seems to be enabled, but in the end no connection to any BT
> device can be established.
> I haven't had a windows partition on any of my computers for years now...
> even that HP laptop was bought with a Linux system on it, therefore I am
> unable to tell if it works with windows.

I make a dkms package for mageia 6, test if works on mageia 7

https://copr-be.cloud.fedoraproject.org/results/katnatek/blogdrake/mageia-6-x86_64/00855694-rtbth-dkms/rtbth-dkms-3.9.7-0.1git20181210.bdk.mga6.x86_64.rpm

Or rebuild from the src.rpm
https://copr-be.cloud.fedoraproject.org/results/katnatek/blogdrake/mageia-6-x86_64/00855694-rtbth-dkms/rtbth-dkms-3.9.7-0.1git20181210.bdk.mga6.src.rpm
Comment 10 Sébastien Morin 2019-02-22 05:17:51 CET
I tested today the RPM provided by katnatek in comment 9 but it didn't work.
I haven't tried rebuilding a RPM for Cauldron using the SRPM.
After reboot, there was still no bluetooth interface available on the DE.

This is the install log:

Creating symlink /var/lib/dkms/rtbth/3.9.7-0.1git20181210.bdk.mga6/source ->
                 /usr/src/rtbth-3.9.7-0.1git20181210.bdk.mga6

DKMS: add Completed.

Preparing kernel 4.20.11-desktop-2.mga7 for module build:
(This is not compiling a kernel, just preparing kernel symbols)
Storing current .config to be restored when complete
Running Generic preparation routine
make mrproper.......
using /proc/config.gz
make oldconfig....(bad exit status: 2)
make prepare.....(bad exit status: 2)

Building module:
cleaning build area....
make -j4 KERNELRELEASE=4.20.11-desktop-2.mga7 KDIR=/lib/modules/4.20.11-desktop-2.mga7/build......
cleaning build area....
cleaning kernel tree (make mrproper)......

DKMS: build Completed.

rtbth.ko.xz:
 - Installation
   - Installing to /lib/modules/4.20.11-desktop-2.mga7/dkms/rtbth/

depmod.........

DKMS: install Completed.
init complete
#
Comment 11 katnatek 2019-02-23 02:34:17 CET
(In reply to Sébastien Morin from comment #10)
Did you unblock the bluetooh ?

as root
rfkill unblock bluetooth
Comment 12 katnatek 2019-02-23 02:54:39 CET
(In reply to Sébastien Morin from comment #10)
Forget to say this must be compiled and used only for x86_64 systems (the sources contain 64bit binaries)
I have to comment BuildArch:  x86_64 to make the src.rpm in my i586 system and upload the src.rpm to copr
Comment 13 Sébastien Morin 2019-02-23 20:32:51 CET
(In reply to katnatek from comment #11)
> as root
> rfkill unblock bluetooth

I just tried that and it changed nothing.
Rebooted the computer and nothing changed either: still no bluetooth available from Plasma System Configuration.

(And yes, this was compiled on a 64bit system)
Comment 14 katnatek 2019-02-23 22:33:48 CET
(In reply to Sébastien Morin from comment #13)
Sad to read that, thank you for your testing
May be you have to consider a small windows installation to enable the bluetooth in windows and see if after that works in linux
Comment 15 Sébastien Morin 2019-02-24 07:01:48 CET
Don't be sad, this Ralink RT3290 has proven to be #§!@ in many distros ;)

Just before I try to install windows on that computer so that I can check if the bluetooth really works, here are a few indications, just for the record:

$ uname -romi
4.20.12-desktop-1.mga7 x86_64 x86_64 GNU/Linux

$ rpm -qa | grep ralink
ralink-firmware-20190221-1.mga7.nonfree

$ rpm -qa | grep rtbth
rtbth-dkms-3.9.7-0.1git20181210.bdk.mga6

# ps -ajx | grep rtbt
14301 14827 14826 12162 pts/0    14826 S+       0   0:00 grep --color rtbt
# pkill -2 rtbt
# rmmod rtbth
rmmod: ERROR: Module rtbth is not currently loaded
# modprobe rtbth
modprobe: ERROR: could not insert 'rtbth': Exec format error
mknod: /dev/rtbth: Le fichier existe
# Open dev fail: No such device or address

# hciconfig dev
Can't get device info: No such device

# bluetoothctl 
Agent registered
[bluetooth]# devices
No default controller available
[bluetooth]#

On the tests I made using help from the French forum, I had the controller recognized and the bluetooth icon appear in Plasma, so the results were slightly better, even though I could pair with the bluetooth speaker afterwards.

I will keep you informed about how this goes with windows
Comment 16 katnatek 2019-02-24 19:28:03 CET
(In reply to Sébastien Morin from comment #15)
I see some errors related to one of the scripts, i will make some changes and new package.
Comment 17 katnatek 2019-02-24 20:27:14 CET
(In reply to Sébastien Morin from comment #15)
Here is new version of the SRPM, i change /etc/modprobe.d/ralink-bt.conf to revised one, i hope works this time

https://copr-be.cloud.fedoraproject.org/results/katnatek/blogdrake/mageia-6-x86_64/00862099-rtbth-dkms/rtbth-dkms-3.9.7-0.2git20181210.bdk.mga6.x86_64.rpm
Comment 18 katnatek 2019-02-24 21:09:08 CET
(In reply to Sébastien Morin from comment #15)
Best try this version, i also fixed the dkms.conf

https://copr-be.cloud.fedoraproject.org/results/katnatek/blogdrake/mageia-6-x86_64/00862109-rtbth-dkms/rtbth-dkms-3.9.7-0.3git20181210.bdk.mga6.src.rpm
Comment 19 Sébastien Morin 2019-02-25 04:45:17 CET
Thank you katnatek,
unfortunately, your second build doesn't seem to make any difference :-(
and build #3 doesn't even install:

# LC_ALL=C urpmi rtbth-dkms-3.9.7-0.3git20181210.bdk.mga6.src.rpm 
please use --buildrequires or --install-src, defaulting to --buildrequires


warning: rtbth-dkms-3.9.7-0.3git20181210.bdk.mga6.src.rpm: Header V3 RSA/SHA1 Signature, key ID 20b7fd3d: NOKEY
The following package has bad signature:
rtbth-dkms-3.9.7-0.3git20181210.bdk.mga6.src.rpm: Invalid signature (NOT OK (no key): rtbth-dkms-3.9.7-0.3git20181210.bdk.mga6.src.rpm: Header V3 RSA/SHA1 Signature, key ID 20b7fd3d: NOKEY)
Do you want to continue installation ? (y/N) y
#
Comment 20 katnatek 2019-02-25 19:34:26 CET
(In reply to Sébastien Morin from comment #19)
Sorry i forgot to say you have to rebuild , i make it for you ;)

https://copr-be.cloud.fedoraproject.org/results/katnatek/blogdrake/mageia-cauldron-x86_64/00862347-rtbth-dkms/rtbth-dkms-3.9.7-0.3git20181210.bdk.mga7.x86_64.rpm

I let the source rpm, just i case because i'm not sure the

modprobe: ERROR: could not insert 'rtbth': Exec format error

Is fixed by this version, i read that yo can force the use of the module, maybe some with more knowledge want tom take my work and fixit 

https://copr-be.cloud.fedoraproject.org/results/katnatek/blogdrake/mageia-cauldron-x86_64/00862347-rtbth-dkms/rtbth-dkms-3.9.7-0.3git20181210.bdk.mga7.src.rpm
Comment 21 Sébastien Morin 2019-03-01 07:21:17 CET
Sorry about that: it was very silly of me and I didn't even see it was a SRPM!

Thank you for this new RPM that you built for me. It is still not working: no icon in the taskbar, no bluetooth adapter found in KDE's System Configuration.

I tried to install a windows OS but this was much harder than expected. The version I tried to install was too old to deal with my hdd, so I will have to try with a more recent version.

Also tried the two AUR packages on a fresh install of Manjaro but that didn't work either.

It seems this bluetooth driver still needs some tweaking, I'm not sure it has to do with the packaging at all.


This is the log from the latest attempt:

Creating symlink /var/lib/dkms/rtbth/3.9.7-0.3git20181210.bdk.mga7/source ->
                 /usr/src/rtbth-3.9.7-0.3git20181210.bdk.mga7

DKMS: add Completed.

Preparing kernel 4.20.13-desktop-1.mga7 for module build:
(This is not compiling a kernel, just preparing kernel symbols)
Storing current .config to be restored when complete
Running Generic preparation routine
make mrproper.......
using /proc/config.gz
make oldconfig....(bad exit status: 2)
make prepare.....(bad exit status: 2)

Building module:
cleaning build area....
make -j4 KERNELRELEASE=4.20.13-desktop-1.mga7 KDIR=/lib/modules/4.20.13-desktop-1.mga7/build......
cleaning build area....
cleaning kernel tree (make mrproper)......

DKMS: build Completed.

rtbth.ko.xz:
 - Installation
   - Installing to /lib/modules/4.20.13-desktop-1.mga7/dkms/rtbth/

depmod.........

Saving old initrd as /boot/initrd-4.20.13-desktop-1.mga7_old.img
Making new initrd as /boot/initrd-4.20.13-desktop-1.mga7.img
(If next boot fails, revert to the _old initrd image)
mkinitrd................
libkmod: kmod_config_parse: /etc/modprobe.d/ralink-bt.conf line 3: ignoring bad line starting with '['
libkmod: kmod_config_parse: /etc/modprobe.d/ralink-bt.conf line 4: ignoring bad line starting with 'rtbt'
libkmod: kmod_config_parse: /etc/modprobe.d/ralink-bt.conf line 3: ignoring bad line starting with '['
libkmod: kmod_config_parse: /etc/modprobe.d/ralink-bt.conf line 4: ignoring bad line starting with 'rtbt'

DKMS: install Completed.
Comment 22 katnatek 2019-03-01 19:25:06 CET
(In reply to Sébastien Morin from comment #21)
Don't worry, about that, i just add cauldron chroot to my copr, no big deal :D

4th version, i start to understand how works the syntax of the conf file

RPM
https://copr-be.cloud.fedoraproject.org/results/katnatek/blogdrake/mageia-cauldron-x86_64/00863831-rtbth-dkms/rtbth-dkms-3.9.7-0.4git20181210.bdk.mga7.x86_64.rpm

SRPM
https://copr-be.cloud.fedoraproject.org/results/katnatek/blogdrake/mageia-cauldron-x86_64/00863831-rtbth-dkms/rtbth-dkms-3.9.7-0.4git20181210.bdk.mga7.src.rpm
Comment 23 Sébastien Morin 2019-03-02 06:40:41 CET
Hi,
Thank you for this 4th version but it is still not working :-(
I'm not sure it is related but when I first rebooted after installing this 4th version, the wifi didn't work at first. But I rebooted again and the wifi was back. Bluetooth is still not recognized in the KDE System Configuration.
Comment 24 katnatek 2019-03-02 19:29:32 CET
(In reply to Sébastien Morin from comment #23)
That sucks, well i keep watching this and the git of rtbth, if any updates come i will make another release, i think i make all the possible with this version.
Comment 25 Sébastien Morin 2019-03-24 18:30:56 CET
(In reply to Sébastien Morin from comment #8)
> I haven't had a windows partition on any of my computers for years now...
> even that HP laptop was bought with a Linux system on it, therefore I am
> unable to tell if it works with windows.

Well, I installed Win10 on this laptop today... The driver was installed (from the internet), and the bluetooth was active and could detect the speaker... but the pairing failed again and again!
It is now obvious that my problem is a hardware problem.
We need another laptop with the same hardware to test your RPM, katnatek.

Closing as invalid.

Status: NEW => RESOLVED
Resolution: (none) => INVALID


Note You need to log in before you can comment on or make changes to this bug.