The officially official Devuan Forum!

You are not logged in.

#1 2023-09-16 12:26:10

ra33
Member
Registered: 2023-09-13
Posts: 10  

bluetooth

How to connect/install bluetooth?

Offline

#2 2023-09-16 15:50:55

alexkemp
Member
Registered: 2018-05-14
Posts: 338  

Re: bluetooth

This is your menu (I never actually use it, but the bluetooth/stable metapackage appears to be the one to install):

$ apt search bluetooth
Sorting... Done
Full Text Search... Done
anyremote/stable 6.7.3-3 amd64
  Remote control daemon for applications using Bluetooth, IrDA or Wi-Fi

ayatana-indicator-bluetooth/stable 22.9.1-1 amd64
  Ayatana Indicator for managing Bluetooth devices

bluedevil/stable 4:5.27.5-2 amd64
  KDE Bluetooth stack

blueman/stable,now 2.3.5-2+b1 amd64 [installed]
  Graphical bluetooth manager

bluemon/stable 1.4-8 amd64
  Activate or deactivate programs based on Bluetooth link quality

bluetooth/stable,now 5.66-1 all [installed]
  Bluetooth support (metapackage)

bluez/stable,now 5.66-1 amd64 [installed,automatic]
  Bluetooth tools and daemons

bluez-alsa-utils/stable 4.0.0-2 amd64
  Bluetooth Audio ALSA Backend (utils)

bluez-cups/stable 5.66-1 amd64
  Bluetooth printer driver for CUPS

bluez-firmware/stable 1.2-9 all
  Firmware for Bluetooth devices

bluez-hcidump/stable 5.66-1 amd64
  Analyses Bluetooth HCI packets

bluez-meshd/stable 5.66-1 amd64
  bluetooth mesh daemon

bluez-source/stable 5.66-1 all
  Source code for the BlueZ Linux Bluetooth stack

bluez-tools/stable 2.0~20170911.0.7cb788c-4 amd64
  Set of tools to manage Bluetooth devices for linux

btscanner/stable 2.1-9 amd64
  ncurses-based scanner for Bluetooth devices

firmware-realtek-rtl8723cs-bt/stable 20181104-2 all
  Bluetooth firmware for Realtek RTL8723CS

gir1.2-gnomebluetooth-3.0/stable 42.5-3 amd64
  Introspection data for GnomeBluetooth

gnome-bluetooth/stable 42~3.34.5-10 all
  GNOME Bluetooth Send To app - transitional package

gnome-bluetooth-3-common/stable 42.5-3 all
  GNOME Bluetooth 3 common files

gnome-bluetooth-common/stable 3.34.5-10 all
  GNOME Bluetooth common files

gnome-bluetooth-sendto/stable 42.5-3 amd64
  GNOME Bluetooth Send To app

gnome-shell-extension-bluetooth-quick-connect/stable 33-1 all
  GNOME Shell extension to connect paired Bluetooth devices

go-bluetooth/stable 5.60-3+b4 amd64
  Golang bluetooth client based on bluez DBus interfaces (program)

golang-github-muka-go-bluetooth-dev/stable 5.60-3 all
  Golang bluetooth client based on bluez DBus interfaces (library)

golang-github-paypal-gatt-dev/stable 0.0~git20151011.4ae819d-3 all
  building Bluetooth Low Energy peripherals

libasound2-plugin-bluez/stable 4.0.0-2 amd64
  Bluetooth Audio ALSA Backend (plugins)

libbluetooth-dev/stable 5.66-1 amd64
  Development files for using the BlueZ Linux Bluetooth library

libbluetooth3/stable,now 5.66-1 amd64 [installed,automatic]
  Library to use the BlueZ Linux Bluetooth stack

libbtbb-dev/stable 2018.12.R1-1 amd64
  Bluetooth baseband decoding library - development files

libbtbb1/stable 2018.12.R1-1 amd64
  Bluetooth baseband decoding library

libgnome-bluetooth-3.0-13/stable 42.5-3 amd64
  GNOME Bluetooth 3 support library

libgnome-bluetooth-3.0-dev/stable 42.5-3 amd64
  GNOME Bluetooth 3 library - development files

libgnome-bluetooth-dev/stable 3.34.5-10 amd64
  GNOME Bluetooth tools - support library development files

libgnome-bluetooth-doc/stable 42.5-3 all
  GNOME Bluetooth 3 support library - reference docs

libgnome-bluetooth-ui-3.0-13/stable 42.5-3 amd64
  GNOME Bluetooth 3 UI support library

libgnome-bluetooth-ui-3.0-dev/stable 42.5-3 amd64
  GNOME Bluetooth UI 3 library - development files

libgnome-bluetooth13/stable 3.34.5-10 amd64
  GNOME Bluetooth tools - support library

libldacbt-abr-dev/stable 2.0.2.3+git20200429+ed310a0-4 amd64
  LDAC Bluetooth ABR library (development)

libldacbt-abr2/stable 2.0.2.3+git20200429+ed310a0-4 amd64
  LDAC Bluetooth ABR library (shared library)

libldacbt-enc-dev/stable 2.0.2.3+git20200429+ed310a0-4 amd64
  LDAC Bluetooth encoder library (development)

libldacbt-enc2/stable,now 2.0.2.3+git20200429+ed310a0-4 amd64 [installed,automatic]
  LDAC Bluetooth encoder library (shared library)

libnet-bluetooth-perl/stable 0.41-4 amd64
  Perl interface to Bluetooth libraries

libqt5bluetooth5/stable 5.15.8-2 amd64
  Qt Connectivity Bluetooth module

libqt5bluetooth5-bin/stable 5.15.8-2 amd64
  Qt Connectivity Bluetooth module helper binaries

libqt6bluetooth6/stable 6.4.2-1 amd64
  Qt 6 Connectivity Bluetooth library

libqt6bluetooth6-bin/stable 6.4.2-1 amd64
  Qt 6 Connectivity Bluetooth module helper binaries

libspa-0.2-bluetooth/stable 0.3.65-3 amd64
  libraries for the PipeWire multimedia server - bluetooth plugins

libubertooth-dev/stable 2018.12.R1-5.1 amd64
  Shared library for Bluetooth experimentation - development files

libubertooth1/stable 2018.12.R1-5.1 amd64
  Shared library for Bluetooth experimentation

nuntius/stable 0.2.0-5+b2 amd64
  share notifications from Android phone or tablet via Bluetooth or LAN

pulseaudio-module-bluetooth/stable,now 16.1+dfsg1-2+b1 amd64 [installed,automatic]
  Bluetooth module for PulseAudio sound server

python-bleak-doc/stable 0.20.2-1 all
  Bluetooth Low Energy platform agnostic client (Documentation)

python3-bleak/stable 0.20.2-1 all
  Bluetooth Low Energy platform agnostic client

python3-bluez/stable 0.23-5.1+b1 amd64
  Python 3 wrappers around BlueZ for rapid bluetooth development

python3-gattlib/stable 0~20210616-1+b1 amd64
  Bluetooth LE GATT library for Python 3

python3-home-assistant-bluetooth/stable 1.10.0-1 amd64
  Home Assistant Bluetooth Models and Helpers

python3-pyqt5.qtbluetooth/stable 5.15.9+dfsg-1 amd64
  Python bindings for Qt Bluetooth module

python3-pyqt6.qtbluetooth/stable 6.4.2-1 amd64
  Python bindings for Qt 6 Bluetooth module

qml-module-qtbluetooth/stable 5.15.8-2 amd64
  Qt Connectivity module - Bluetooth QML module

rfkill/stable 2.38.1-5devuan1+b1 amd64
  tool for enabling and disabling wireless devices

ubertooth/stable 2018.12.R1-5.1 amd64
  2.4 GHz wireless development platform for Bluetooth experimentation

ukui-bluetooth/stable 1.0.2.1-1+b1 amd64
  Bluetooth manager for UKUI desktop environment

Last edited by alexkemp (2023-09-16 15:51:49)

Offline

#3 2023-09-18 03:56:57

ra33
Member
Registered: 2023-09-13
Posts: 10  

Re: bluetooth

And what exactly are the packages you need to put in, it appears in the menu on the left but is inactive when you click on it!

Offline

#4 2023-09-18 08:32:04

alexkemp
Member
Registered: 2018-05-14
Posts: 338  

Re: bluetooth

You appear to believe that I have the metaphysical ability to remotely view & operate your desktop & computer contents & setup. Allow me to reassure you that I have not (yet) achieved that level of being. You will, therefore, need to laboriously inform me on your system setup & configuration.

Offline

#5 2023-09-18 12:22:32

boughtonp
Member
From: UK
Registered: 2023-01-19
Posts: 212  
Website

Re: bluetooth

Start by running inxi --system --bluetooth --extra 3 (or inxi -SExxx) and showing the results here (within [code]..[/code] tags to preserve formatting).

If inxi isn't installed, install it. You may need to be root to get bluetooth info, and you can also try rfkill list as root to confirm the hardware is active.

Last edited by boughtonp (2023-09-18 12:23:22)


3.1415P265E589T932E846R64338

Offline

#6 2023-09-18 13:33:18

ra33
Member
Registered: 2023-09-13
Posts: 10  

Re: bluetooth

System:
  Host: ra33 Kernel: 6.1.0-12-amd64 arch: x86_64 bits: 64 compiler: gcc
    v: 12.2.0 Desktop: Xfce v: 4.18.1 tk: Gtk v: 3.24.36 info: xfce4-panel
    wm: xfwm v: 4.18.0 vt: 7 dm: SLiM v: 1.4.0 Distro: Devuan GNU/Linux 5
    (daedalus)
Bluetooth:
  Device-1: Broadcom BCM20702A0 type: USB driver: btusb v: 0.8 bus-ID: 7-3:2
    chip-ID: 0a5c:21fb class-ID: fe01 serial: 28C2DD9070FD
  Report: hciconfig ID: hci0 rfk-id: 1 state: up address: 28:C2:DD:90:70:FD
    bt-v: 2.1 lmp-v: 4.0 sub-v: 220e hci-v: 4.0 rev: 1000

CPU: quad core AMD A8 PRO-7150B R5 10 Compute Cores 4C+6G (-MT MCP-)
speed/min/max: 1121/1100/1900 MHz Kernel: 6.1.0-12-amd64 x86_64 Up: 5h 52m
Mem: 2498.2/6878.4 MiB (36.3%) Storage: 119.24 GiB (25.0% used) Procs: 181
Shell: Bash inxi: 3.3.26

rfkill list command not found

Offline

#7 2023-09-18 15:29:32

alexkemp
Member
Registered: 2018-05-14
Posts: 338  

Re: bluetooth

$ apt search rfkill
Sorting... Done
Full Text Search... Done
gir1.2-urfkill-0.5/stable 0.5.0-7+b1 amd64
  GObject introspection data for the urfkill library

liburfkill-glib-dev/stable 0.5.0-7+b1 amd64
  wireless killswitch management library (development files)

liburfkill-glib0/stable 0.5.0-7+b1 amd64
  wireless killswitch management library

liburfkill-glib0-dbg/stable 0.5.0-7+b1 amd64
  wireless killswitch management library (debug symbols)

>>> rfkill/stable 2.38.1-5devuan1+b1 amd64            <<<
>>>  tool for enabling and disabling wireless devices <<<

rfkill-dbgsym/stable 2.38.1-5devuan1+b1 amd64
  debug symbols for rfkill

urfkill/stable 0.5.0-7+b1 amd64
  wireless killswitch management daemon for laptops

Did it occur to you to search/locate/install this?

The world that you have been born into causes most folks to become mindless slaves. It is up to you to drag yourself up into becoming a self-starter. Why not start now?

$ sudo apt install rfkill
[sudo] password for alexk: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  rfkill
# …
$ sudo rfkill list
0: phy0: Wireless LAN
	Soft blocked: yes
	Hard blocked: no
1: hci0: Bluetooth
	Soft blocked: no
	Hard blocked: no

Offline

#8 2023-09-19 02:52:08

ra33
Member
Registered: 2023-09-13
Posts: 10  

Re: bluetooth

sudo rfkill list
0: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no
1: hci0: Bluetooth
    Soft blocked: no
    Hard blocked: no

this is the conclusion

Offline

#9 2023-09-19 07:25:10

alexkemp
Member
Registered: 2018-05-14
Posts: 338  

Re: bluetooth

Splendid. Thankyou.

As I said before, I've never used (nor want to use) Bluetooth. However, you now know that your hardware is accessible & ready.

I'm sure that there are guides on the 'net for howto use Bluetooth under Devuan/Debian (or write one yourself).

Offline

#10 2023-09-19 12:52:01

ra33
Member
Registered: 2023-09-13
Posts: 10  

Re: bluetooth

If you don't know(don't want) how to help, I'll wait for help here!

Offline

#11 2023-09-19 13:23:24

boughtonp
Member
From: UK
Registered: 2023-01-19
Posts: 212  
Website

Re: bluetooth

You'll be waiting a long time unless you actually provide details on what you are trying to do.

Your Bluetooth would seem to be working.

How to use it is different for attaching a mouse/keyboard, or transferring files, or playing audio via a speaker, or receiving GPS data, or ..., etc.

Again, we cannot read your mind - you need to provide details (both in the title and first post) rather than have people squeeze the information out of you.

A search that combines "bluetooth" with "xfce" and whatever you're actually trying may well provide the answer - if not, detail what you're trying, and where you're stuck. (If you're following any guides, include the links; but beware guides for Ubuntu or Arch which may be common but may do things differently to Devuan.)

Last edited by boughtonp (2023-09-19 13:24:34)


3.1415P265E589T932E846R64338

Offline

#12 2023-09-24 09:55:31

ra33
Member
Registered: 2023-09-13
Posts: 10  

Re: bluetooth

I'm only oriented to the help here. the bluetooth is not showing up at all, and I'd like to connect wireless headphones, that's what I need!

Offline

#13 2023-09-24 11:14:55

ralph.ronnquist
Administrator
From: Battery Point, Tasmania, AUS
Registered: 2016-11-30
Posts: 1,236  

Re: bluetooth

You need firstly to install bluez. This package and it's sub packages handles the actual connectivity between the computer and the headphones. Conceptually bluez represents the computer endpoint for the "wireless wiring' to your headphones.

In addition to that, you need the pieces of software that links the sound system with the bluez device management. This part depends on which sound system you are using.

Plain alsa or pulsaudio are possibly the two main alternatives for audio setup, but there are others.

For plain alsa you would need the bluez-alsa-utils package which implements the "virtual soundcard" that plays to and records from bluethooth headsets. It will also need manual configuration changes to tell the sound system how to channel audio through it.

For pulsaudio you instead would need the pulsaudio-module-bluetooth package. Upon installation it updates the pulseaudio configuration to some extent but there might also still be additional hands-on needed. I no longer use pulsaudio though so someone else will need to guide you for that.

Offline

#14 2023-09-25 02:38:51

ra33
Member
Registered: 2023-09-13
Posts: 10  

Re: bluetooth

What are you using? I'll do it the way you set it up!

Offline

#15 2023-09-25 04:07:55

ralph.ronnquist
Administrator
From: Battery Point, Tasmania, AUS
Registered: 2016-11-30
Posts: 1,236  

Re: bluetooth

This was kind of convenient for me as I have very recently migrated to daedalus myself and hadn't yet set up bluetooth here. To do so, I did as follows:

# apt-get install --no-install-recommends alsa-utils blueman bluez-alsa-utils

That provides a virual soundcard named bluealsa for alsa, and this uses dbus to obtain the headphone "sink" from the bluetooth device management (actually bluez) with blueman as a handy GUI tool for operating the bluetooth devices.

bluez-alsa-utils unfortunately installs as if systemd would be around, so some additional hands-on is needed for registering the bluealsa dbus service. You need to add the following text file:

Add /usr/share/dbus-1/system-services/org.bluealsa.service

[D-BUS Service]
Name=org.bluealsa
User=root
Exec=/usr/bin/bluealsa -p a2dp-sink -p a2dp-source -S

and then run

# service dbus reload

Then you run blueman as non-root user for the device management, to pair and connect the headphones. (Keep it running in the background, though if it works well it install a control button in the panel)

Note that you need the mac address for the headphones for playing to them. (E.g, after pairing you can bring up the "info" page for the headphones by right-clicking, and there select and copy the "Address" line for later pasting).

For testing this you may try the following (with your mac address rather than mine):

$ aplay -D bluealsa:30:21:DC:50:9E:89 /usr/share/sounds/alsa/Rear_Center.wav

Next, if you want to direct audio to bluealsa by default, you may state that in your ~/.asoundrc, eg:

pcm.!default headphones

pcm.headphones {
    type bluealsa
    device 30:21:DC:50:9E:89
    profile a2dp
}

There's a lot to be known about alsa configuration....

Offline

Board footer