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 🌈

⭐ 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. πŸ“¬

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