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 thebluetoothctl menu:
<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:
List available transport
To list the available transport, run the following command from themenu transport submenu:
Get information about codec capabilities
To get information about the codec capabilities of a transport, run the following command from themenu transport submenu:
<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:
Set absolute volume
Ensure that the DUT and the remote device support the
setabsvolume feature.menu transport submenu:
-
<transport>is the transport path. -
[value]is the volume level.
<transport> /org/bluez/hci0/dev_D4_8A_39_78_27_41/sep1/fd2 as 0, run the following command:
Play an audio file
To play an audio file, run the following command from themenu player submenu:
Pause playback
To pause playback, run the following command from themenu player submenu:
Stop playback
To stop playback, run the following command from themenu player submenu:
Play the next audio file
To play the next audio file, run the following command from themenu player submenu:
Play the previous audio file
To play the previous audio file, run the following command from themenu player submenu:
Fast forward playback
To fast forward playback, run the following command from themenu player submenu:
Disconnect a remote device
To disconnect a remote device, run the following command from thebluetoothctl menu:
<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:
Other player functions
Themenu 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

