Note

The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.

Difference between revisions of "Bluetooth"

From Funtoo
Jump to navigation Jump to search
Line 27: Line 27:
== Software ==
== Software ==


* You need to install these packages:
* Add these use-flags into your package.use:
** net-wireless/bluez
* app-mobilephone/obexftp bluetooth
** sys-fs/obexfs
<syntaxhighlight lang=bash> root# echo "app-mobilephone/obexftp bluetooth" >> /etc/portage/package.use  </syntaxhighlight>
* <syntaxhighlight lang=bash> root# emerge bluez </syntaxhighlight>
* dev-libs/openobex bluetooth
* <syntaxhighlight lang=bash> root# emerge obexfs </syntaxhighlight>
<syntaxhighlight lang=bash> root# echo "dev-libs/openobex bluetooth" >> /etc/portage/package.use  </syntaxhighlight>
Additionally you can globally enable bluetooth use flag in your make.conf, but this is not required. Dont forget to run emerge -uDN @world if you enable bluetooth use flag globally.
file /etc/portage/make.conf:
<syntaxhighlight lang=bash> USE="bluetooth" </syntaxhighlight>


You need to install these packages:
* net-wireless/bluez
<syntaxhighlight lang=bash> root# emerge bluez </syntaxhighlight>
* sys-fs/obexfs
<syntaxhighlight lang=bash> root# emerge obexfs </syntaxhighlight>
* add your user to plugdev group:
* add your user to plugdev group:
* <syntaxhighlight lang=bash> root# gpasswd -a user plugdev </syntaxhighlight>
<syntaxhighlight lang=bash> root# gpasswd -a user plugdev </syntaxhighlight>
 
* dont forget to add these use-flags into your package.use:
** app-mobilephone/obexftp bluetooth
** dev-libs/openobex bluetooth
 
* Additionally you can globally enable bluetooth use flag in your make.conf, but this is not required. Dont forget to run emerge -uDN @world if you enable bluetooth use flag globally.


== Bluetooth Service ==
== Bluetooth Service ==

Revision as of 19:27, October 31, 2015

Bluetooth

Bluetooth is a wireless technology standard for exchanging data over short distances. It is using short-wavelength UHF radio waves in the ISM band from 2.4 to 2.485 GHz. It was developed by Ericsson in 1994. Today it is used mostly to connect peripherals and smartphones to your computer.

Kernel configuration

  • Enable these options in your kernel:
[*] Networking support --->
     <M>   Bluetooth subsystem support --->
             [*]    Bluetooth Classic (BR/EDR) features
             <M>   RFCOMM protocol support
             [*]     RFCOMM TTY support
             <M>   BNEP protocol support
             [*]     Multicast filter support
             [*]     Protocol filter support
             <M>   CMTP protocol support
             <M>   HIDP protocol support
             [*]    Bluetooth Low Energy (LE) features
             <M> Bluetooth 6LoWPAN support
             [*]   Export Bluetooth internals in debugfs
                   Bluetooth device drivers --->
                     <M> HCI USB driver
                     <M> HCI UART driver
     <M>   RF switch subsystem support --->

Software

  • Add these use-flags into your package.use:
  • app-mobilephone/obexftp bluetooth
 root# echo "app-mobilephone/obexftp bluetooth" >> /etc/portage/package.use
  • dev-libs/openobex bluetooth
 root# echo "dev-libs/openobex bluetooth" >> /etc/portage/package.use

Additionally you can globally enable bluetooth use flag in your make.conf, but this is not required. Dont forget to run emerge -uDN @world if you enable bluetooth use flag globally. file /etc/portage/make.conf:

 USE="bluetooth"

You need to install these packages:

  • net-wireless/bluez
 root# emerge bluez
  • sys-fs/obexfs
 root# emerge obexfs
  • add your user to plugdev group:
 root# gpasswd -a user plugdev

Bluetooth Service

  • add bluetooth service to default runlevel:
    •  rc-update add bluetooth default
      
  • start bluetooth service:
    •  rc-service bluetooth start
      

Controller Setup

  • execute following command:
bluetoothctl
  • description of commands inside bluetoothctl:
  • to get help

help

  • List available controllers

list