hciconfig(1)
π Name π
Okay bestie, this is the hciconfig(1) page from the Linux System Administration manual, and it's literally here to configure Bluetooth devices. Like, hciconfig β Configure Bluetooth devices, periodt. π
β¨ SYNOPSIS β¨
hciconfig -h
hciconfig [-a]
hciconfig [-a] hciX [COMMAND [PARAMETERS]]
π DESCRIPTION π
hciconfig(1) is used to configure Bluetooth devices. hciX is the name of a Bluetooth device installed in the system. If hciX is not given, hciconfig prints name and basic information about all the Bluetooth devices installed in the system. Vibe check: that's the whole-device overview, no cap.
If hciX is given but no command is given, it prints basic information on device hciX only. Basic information is interface type, BD address, ACL MTU, SCO MTU, flags (up, init, running, raw, page scan enabled, inquiry scan enabled, inquiry, authentication enabled, encryption enabled). All of those details, bestie β none skipped. π«Ά
πΈ OPTIONS πΈ
-a,--allβ Print features, packet type, link policy, link mode, class, Version other than the basic info.-h,--helpβ Show help options.
π¦ COMMANDS π¦
This is the iconic command list, and it's giving main character energy. π
upβ Open and initialize HCI device.downβ Close HCI device.resetβ Reset HCI device.rstatβ Reset statistic counters.authβ Enable authentication (sets device to security mode 3).noauthβ Disable authentication.encryptβ Enable encryption (sets device to security mode 3).noencryptβ Disable encryption.secmgrβ Enable security manager (current kernel support is limited). Lowkey a caveat, bestie.nosecmgrβ Disable security manager.piscanβ Enable page and inquiry scan.noscanβ Disable page and inquiry scan.iscanβ Enable inquiry scan, disable page scan.pscanβ Enable page scan, disable inquiry scan.ptype [type]β With notype, displays the current packet types. Otherwise, all the packet types specified bytypeare set.typeis a comma-separated list of packet types, where the possible packet types areDM1,DM3,DM5,DH1,DH3,DH5,HV1,HV2,HV3.name [name]β With noname, prints local name. Otherwise, sets local name toname.class [class]β With noclass, prints class of device. Otherwise, sets class of device toclass.classis a 24-bit hex number describing the class of device, as specified in section 1.2 of the Bluetooth Assigned Numbers document.voice [voice]β With novoice, prints voice setting. Otherwise, sets voice setting tovoice.voiceis a 16-bit hex number describing the voice setting.iac [iac]β With noiac, prints the current IAC setting. Otherwise, sets the IAC toiac.inqtpl [level]β With nolevel, prints out the current inquiry transmit power level. Otherwise, sets inquiry transmit power level tolevel.inqmode [mode]β With nomode, prints out the current inquiry mode. Otherwise, sets inquiry mode tomode.0β Standard Inquiry1β Inquiry with RSSI2β Inquiry with RSSI or Extended Inquiry
inqdata [data]β With nodata, prints out the current inquiry data. Otherwise, sets inquiry data todata.inqtype [type]β With notype, prints out the current inquiry scan type. Otherwise, sets inquiry scan type totype.inqparams [win:int]β With nowin:int, prints inquiry scan window and interval. Otherwise, sets inquiry scan window towinslots and inquiry scan interval tointslots.pageparms [win:int]β With nowin:int, prints page scan window and interval. Otherwise, sets page scan window towinslots and page scan interval tointslots.pageto [to]β With noto, prints page timeout. Otherwise, sets page timeout totoslots.afhmode [mode]β With nomode, prints out the current AFH mode. Otherwise, sets AFH mode tomode.0β Enable1β Disable
sspmode [mode]β With nomode, prints out the current Simple Pairing mode. Otherwise, sets Simple Pairing mode tomode.0β Enable1β Disable
aclmtu mtu:pktβ Sets ACL MTU tomtubytes and ACL buffer size topktpackets.scomtu mtu:pktβ Sets SCO MTU tomtubytes and SCO buffer size topktpackets.delkey <bdaddr>β This command deletes the stored link key forbdaddrfrom the device.oobdataβ Get local OOB data (invalidates previously read data). Heads up, bestie.commandsβ Display supported commands.featuresβ Display device features.versionβ Display version information.revisionβ Display revision information.lm [mode]β With nomode, prints link mode.CENTRALorPERIPHERALmean, respectively, to ask to become central or to remain peripheral when a connection request comes in. The additional keywordACCEPTmeans that baseband connections will be accepted even if there are no listeningAF_BLUETOOTHsockets.modeisNONEor a comma-separated list of keywords, where possible keywords areCENTRALandACCEPT.NONEsets link policy to the default behaviour of remaining peripheral and not accepting baseband connections when there are no listeningAF_BLUETOOTHsockets. IfCENTRALis present, the device will ask to become central if a connection request comes in. IfACCEPTis present, the device will accept baseband connections even when there are no listeningAF_BLUETOOTHsockets.block <bdaddr>β Add a device to the reject listunblock <bdaddr>β Remove a device from the reject listlerandaddr <bdaddr>β Set LE Random Addressleadv [type]β Enable LE Advertising.0β Connectable undirected advertising (default)3β Non connectable undirected advertising
noleadvβ Disable LE Advertisinglestatesβ Display the supported LE states
π RESOURCES π
The resource is literally <http://www.bluez.org> β iykyk. β¨
π REPORTING BUGS π
Send bug reports to <linux-bluetooth@vger.kernel.org>. Do it, bestie. π«Ά
π Author π
The absolute legends behind this page are Maxim Krasnyansky <maxk@qualcomm.com>, Marcel Holtmann <marcel@holtmann.org>, and Fabrizio Gennari <fabrizio.gennari@philips.com>. Icons, honestly. π
π Copyright π
Free use of this software is granted under the terms of the GNU Lesser General Public Licenses (LGPL). Slay. π
π This iconic page is from BlueZ, dated Nov 11, 2002, and it's the hciconfig(1) manual β bye bestie! π
π¦ where this page comes from
- arch rolling: bluez-deprecated-tools 5.87-2 Β· GPL-2.0-only
- nixpkgs unstable: bluez 5.87
- ubuntu stonking: bluez 5.87-4 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms