GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
* Sign Up! *

Support
Customer Portal
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
BTAVCTPD(8) FreeBSD System Manager's Manual BTAVCTPD(8)

btavctpdMedia control for Bluetooth devices

btavctpd [-d] [-p] -h bthostname

The btavctpd daemon can be used to allow local media players to be controlled via the control buttons found on Bluetooth devices such as headsets and speakers.

It can control players either via libplayerctl (available in ) or otherwise using xdotool. If using xdotool(1), btavctpd will emit key press events for the X11 keys XF86AudioPlay, XF86AudioPause, XF86AudioNext and XF86AudioPrev. In the latter case the daemon must be launched from within an X11 session.

, --no-daemon
Do not daemonise and don't detach from the controlling terminal.
Use libplayerctl to control the local media player.
, --hostname bthostname
Connect to the given Bluetooth address or hostname.

/etc/bluetooth/hosts
List of Bluetooth hostnames and their addresses

Run in the background and connect to a device called “headphones” listed in /etc/bluetooth/hosts using playerctl to control the media players:

$ btavctpd -p -h headphones

Errors are logged to syslogd and unless the -d flag is set also to stderr. Syslog output should end up in /var/log/daemon.log.

Nico Sonack aka. herrhotzenplotz <nsonack@herrhotzenplotz.de>

The AVCTP protocol implementation is likely buggy and not strictly compliant to the Bluetooth SIG spec. In case you hit any weirdnesses or detect protocol errors please report them either via E-Mail to me or on Microsoft© GitHub™.

You can use hcidump(1) from the ports tree to record the transactions with the HCI and analyse the traffic in Wireshark:

# rm -f bork.pcap
# hcidump -i ubt0hci -w bork.pcap
# chown user:user bork.pcap
$ wireshark bork.pcap

This is how I dissected the traffic for debugging purposes.

August 16, 2025 FreeBSD 15.1-RELEASE-p1

Search for    or go to Top of page |  Section 8 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.