Skip to main content

Prerequisites

Before you begin, set up your device and go to the required menu as described in Set up the device for A2DP functions.

Connect a remote device

To connect a remote device, run the following command from the bluetoothctl menu:
Parameters <bt_address> is the Bluetooth address of the remote device. Example To connect to a paired remote device with <bt_address> D4:8A:39:78:27:41, run the following command:
Sample output

List available transport

To list the available transport, run the following command from the menu transport submenu:
Sample output

Get information about codec capabilities

To get information about the codec capabilities of a transport, run the following command from the menu transport submenu:
Parameters <transport> is the transport path. Example To get information about the codec capabilities of <transport> /org/bluez/hci0/dev_D4_8A_39_78_27_41/sep1/fd2, run the following command:
Sample output

Set absolute volume

Ensure that the DUT and the remote device support the setabsvolume feature.
To set the absolute volume of a transport, run the following command from the menu transport submenu:
Parameters
  • <transport> is the transport path.
  • [value] is the volume level.
Example To set the absolute volume of <transport> /org/bluez/hci0/dev_D4_8A_39_78_27_41/sep1/fd2 as 0, run the following command:
Sample output

Play an audio file

To play an audio file, run the following command from the menu player submenu:
Sample output

Pause playback

To pause playback, run the following command from the menu player submenu:
Sample output

Stop playback

To stop playback, run the following command from the menu player submenu:
Sample output

Play the next audio file

To play the next audio file, run the following command from the menu player submenu:
Sample output

Play the previous audio file

To play the previous audio file, run the following command from the menu player submenu:
Sample output

Fast forward playback

To fast forward playback, run the following command from the menu player submenu:
Sample output

Disconnect a remote device

To disconnect a remote device, run the following command from the bluetoothctl menu:
Parameters <bt_address> is the Bluetooth address of the remote device. Example To disconnect a paired remote device with <bt_address> D4:8A:39:78:27:41, run the following command:
Sample output

Other player functions

The menu player submenu offers other functions that enable you to:
  • Shuffle tracks
  • Rewind an audio file
  • Repeat a single track, all tracks, or a playlist
  • Switch the equalizer on or off
  • Search a track