BTMGMT(1)
π¦ btmgmt: interactive bluetooth management tool π¦
Okay so welcome to BTMGMT(1), bestie β this is the Linux System Administration page for btmgmt, the interactive bluetooth management tool. Group-chat summary: it's lowkey powerful, highkey a little dangerous if you're not supposed to be there, and it wants you to know the rules. π
β¨ NAME β¨
btmgmt β interactive bluetooth management tool
πΈ SYNOPSIS πΈ
btmgmt [--options] [commands]
π DESCRIPTION π
btmgmt(1) is the interactive bluetooth management tool. The tool issues commands to the Kernel using the Bluetooth Management socket. Some commands may require net-admin capability in order to work, because the Bluetooth Management interface is considered a low-level interface meant for the likes of bluetoothd(8).
β οΈ It is not recommended for applications to use it directly β that may result in unexpected behavior. No cap, this is giving "look, don't touch unless you know what you're doing" energy. π
π OPTIONS π
-i/--indexβ specify adapter index. Pick your adapter, bestie. π¦-m-/-monitorβ enable monitor output. Yes, the page spells it exactly like that β I'm not fixing it. π-t/--timeoutβ timeout in seconds for non-interactive mode. So it knows when to stop waiting. β³-v/--versionβ display version. Vibe check: which version are we on? β-i/--init-scriptβ init script file. Point it at your script. π-h/--helpβ display help. The classic. π
π COMMANDS π
mainβ seebluetoothctl-mgmt(1). πmonitorβ seebluetoothctl-monitor(1). π§
β AUTOMATION β
There are two common ways to automate the tool. One is to pass the commands directly, like in the follow example:
btmgmt <<EOF
list
show
EOF
Or create a script and pass it as init-script:
$ vi test-script.bt
list
show
quit
: wq
$ btmgmt --init-script=test-script
π«Ά RESOURCES π«Ά
http://www.bluez.org β that's the BlueZ home base, bestie. π
π REPORTING BUGS π
linux-bluetooth@vger.kernel.org β send bug reports here. π¬
π COPYRIGHT π
Free use of this software is granted under the terms of the GNU Lesser General Public Licenses (LGPL). π
That's the whole BTMGMT(1) page, bestie β source/version BlueZ, dated July 2023. Bye and slay responsibly πβ¨
π¦ where this page comes from
- centos-stream 9: bluez 5.87+2.git8750129efca8-1.el9 Β· GPLv2+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms