0

I have used instructions given in same question but got this

make -C /lib/modules/4.15.0-38-generic/build M=/home/shubham/tmp/rtbth modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-38-generic'
  CC [M]  /home/shubham/tmp/rtbth/rtbth_core_bluez.o
/home/shubham/tmp/rtbth/rtbth_core_bluez.c: In function ‘rtbt_hps_iface_init’:
/home/shubham/tmp/rtbth/rtbth_core_bluez.c:381:22: error: ‘HCI_BREDR’ undeclared (first use in this function); did you mean ‘HCI_RESET’?
     hdev->dev_type = HCI_BREDR;
                      ^~~~~~~~~
                      HCI_RESET
/home/shubham/tmp/rtbth/rtbth_core_bluez.c:381:22: note: each undeclared identifier is reported only once for each function it appears in
scripts/Makefile.build:332: recipe for target '/home/shubham/tmp/rtbth/rtbth_core_bluez.o' failed
make[2]: *** [/home/shubham/tmp/rtbth/rtbth_core_bluez.o] Error 1
Makefile:1551: recipe for target '_module_/home/shubham/tmp/rtbth' failed
make[1]: *** [_module_/home/shubham/tmp/rtbth] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-38-generic'
Makefile:24: recipe for target 'all' failed
make: *** [all] Error 2

What to do with this?

1 Answer 1

2

This is easy,fast and worked greatly for me: https://webwiks.com/techcorner/get-ralink-rt3290-bluetooth-work-in-linux/

Step 1: Download the Ralink rt3290 bluetooth Driver Package Now the first step is to download the ralink rt3290 bluetooth Linux driver (rtbth-dkms) package. Download this driver file from below link:

for Ubuntu 18.04:

https://launchpadlibrarian.net/389907029/rtbth-dkms_3.9.6~git20180923-1~bionic~ppa1_amd64.deb (updated wrt link above)

Please Note: The current deb package of Ralink rt3290 bluetooth is only available for x64 based distribution for 32bit distors you need to manually compile the bluetooth package for more please follow this link.

Step 2: Install Ralink rt3290 bluetooth Driver After you have downloaded driver file, the next step is to install the driver package, Although you can install driver package via command line but we recommend Gdebi as it can install any debian package within seconds. If you don’t have Gdebi installer then please install it via Software center or just open terminal by pressing Ctrl+Alt+T and type the below code:

sudo apt-get install Gdebi

Press Enter and when the installation succeed, Open the rtbth-dkms.deb file via Gdebi install and install the package.

Step 3: Run the Ralink rt3290 bluetooth module (rtbth) As you have completed above steps, now just after the installation finish, the next step is to check the bluetooth module- by typing below cmd in terminal:

sudo modprobe rtbth

Soon as you launch this command you will get message “init complete” this indicates that your module have been successfully loaded. If the terminal doesn’t gives you any output then its advisable to please check your bluetooth area whether the ubuntu detects bluetooth or not. (If it doesn’t then read the below steps)

If the first command doesn’t works then toogle your WiFi switch on off and again type:

sudo modprobe rtbth

or:

sudo modprobe -r rtbth

And, Press Enter, You will see your Wireless or Bluetooth light which indicates your rt3290 bluetooth activated and you can now use your bluetooth adapter.

Step 4: Auto-Load Ralink rt3290 (rtbth) module at startup Now, the final step is to auto load the rtbth module at startup which prevents you from activating module at every boot. For that you need to add the module in modules.conf file.

All you have to do is to find Kernel module file and its Located in /etc/modules-load.d/modules.conf

You can manually Browse this file in Nautilus or any other file manager. All you have to do is to run File Manager in Terminal by typing the command:

Sudo nautilus

or:

sudo su & nautilus

But if find this difficult then type in terminal:

sudo gedit /etc/modules-load.d/modules.conf

Then, Press Enter.

It will open the notepad file of modules.conf and after that enter rtbth at end of file.

Just click on save and restart your PC and see if the modules load automatically.

Good Luck!

6
  • 1
    On AskUbuntu, it's always good practice to list out the solution steps directly in your answer, and provide a link to credit the original source. (This way, if the link you provided is no longer available in the future, your answer is still relevant).
    – Enterprise
    Nov 19, 2018 at 15:50
  • 1
    Hope it's better now. First reply ever :)
    – user894786
    Nov 19, 2018 at 18:04
  • 2
    N.B. As of January 2020, the download link for 18.04 has changed to webwiks.com/downloads/rtbth-dkms_3.9.6_bionic_amd64.deb
    – mdhansen
    Jan 20, 2020 at 16:23
  • Also, if, like me, you installed a dual-boot Ubuntu on a machine you know had a bluetooth card, but it doesn't work in Ubuntu, sudo lshw -html > ~/Desktop/hardwarelist.html, then search for bluetooth to find your card type.
    – mdhansen
    Jan 20, 2020 at 16:26
  • Tested and verified to be working on 6th March, 2020 till step 3. I am able to connect to wireless earphone via blue-tooth after discovery and pairing. Kernel : 4.15.0-88-generic, on Ubuntu 18.04 LTS (latest updated) lspci -knn | grep Net -A2; lsusb Network controller [0280]: Ralink corp. RT3290 Wireless 802.11n 1T/1R PCIe [1814:3290] Subsystem: Foxconn International, Inc. RT3290 Wireless 802.11n 1T/1R PCIe [105b:e055] Kernel driver in use: rt2800pci
    – Aritra
    Mar 6, 2020 at 15:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.