Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp9955974rwp; Thu, 20 Jul 2023 12:14:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlGl0Z3fyzuMwMS9JWzRjqQBvzBkk8N1/HMz0pwbK+/YDfryYdN5VJUaZdFsx/qFr88xtIiu X-Received: by 2002:ac2:5635:0:b0:4fd:ca73:dc17 with SMTP id b21-20020ac25635000000b004fdca73dc17mr2799962lff.54.1689880479108; Thu, 20 Jul 2023 12:14:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689880479; cv=none; d=google.com; s=arc-20160816; b=DuToEZl+tgYQkQPrk6S+CQJCwLOxu0w+/O4ZvRX+VvUuWM/0rO/DLFLDCyNjI6/47H F3Hc9H0MwVMl3ZwXPRxVPnfdPcSkhaqWFRBQX9rxs+EOYDYJlg6F4hVp7XCLMNGw16Ec cZLj+mvTBRybb+78VIKKao7PIi2DLjLS+LgkMfT4+PzvOkki/4m0/7oZyTKrkktKD4VG NgYZlRC847SzG1pXLmYdFHusq2+3wFAfSL/J3F/YIAmiCs8BAsEbhc1b2a/F47kAUQoU QM5K2rQ7Vnky+QXJNFzjeqCsTAXUhebIxxt6G1llib+0C5ozUbvK3DXCwGSZba185ZDz pGYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from:dkim-signature; bh=9/+mox3v2KbxXdDwh9oMGpsXq/Zi8ycYrIlIRRzL0a4=; fh=V2LL5OuZUBGeSu6TXDWykcThOoazTGUpkln19rrO2KM=; b=XvybDIcol4nDOvD3KH5sJgkejw0HmYJz1ZOo71x940uOqEosGpJPNKSOnLd2gx6Rpf w6jxq8bger6Wu92CHVDO4wvXT5e9D/zoWYoasVaHMdYoupu+7o0fxHKJ4uPKEM1g13Jv JIGHcRNHBZKdYO5VxPXZCXD+/EUbyfs1YzMKTu+QEXqykl/B0UihhK6n7oVRc0wjLhCo doPNzghLkJ6eYauuwiu5pPU+aOuADh/rE5ldwMFOFS3ICByVQ5wDs9bD6duGNCCSlSxn MKdnW15RoQB1ZHq8lilmfZ4e0BR/5uRB1ookjwGxSi16Hpmx06fw0KdJX4hh3RdZX8cI //ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="UCN0Ye/1"; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b3-20020a05640202c300b0051e186a6fadsi1191770edx.227.2023.07.20.12.14.14; Thu, 20 Jul 2023 12:14:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="UCN0Ye/1"; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230022AbjGTTCl (ORCPT + 99 others); Thu, 20 Jul 2023 15:02:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230042AbjGTTCi (ORCPT ); Thu, 20 Jul 2023 15:02:38 -0400 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36F7E2D51 for ; Thu, 20 Jul 2023 12:02:31 -0700 (PDT) Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-6689430d803so771676b3a.0 for ; Thu, 20 Jul 2023 12:02:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689879750; x=1690484550; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=9/+mox3v2KbxXdDwh9oMGpsXq/Zi8ycYrIlIRRzL0a4=; b=UCN0Ye/1Dj2O2vzSLL3zQkrHIEwDbvH4rF15zJBgFDeN6hN1AelC4skT0WoQPMQG9U 68sJwc7/573z17dlcqvm6N/45jnYrcVESZ2BlINMOuaI2j5VZmnHe2j3JVmcQgBT4M0q UQeGqEVZNjfNFJkoSUsY4EQKszC4eApY19Uu794zamGDa/1qqTW4zI2iIi/KZPWz+gsr 619F6V1XsCOWCGQeUjV6JHEtJeE0XTbPYr47W2Bb9Pd+Bnd4SrWEy3I+C6PgOCPFcNq/ UyKnA7A2sUz2lf9Qtzd39kyrGaWX+sSIHZTRQ+3diQGEWdhXODdbVbD2f2ElRfYID2xk S/xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689879750; x=1690484550; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=9/+mox3v2KbxXdDwh9oMGpsXq/Zi8ycYrIlIRRzL0a4=; b=innifFa/uUNnRhW4ZPYuIhruU2m5rp6sgqD6KgDLL0cRORoUWKQxUftT4sNH2fqPmy 54X3Aftr6TjFbY+jvQDGQpjdnkTcq4SpIEb4+DGzCtmULwTNSY4UUr4LRDUQnFAxmw+l Omc7NpRktH/Wm6GQBBNCoZAdbrRjgt4tqxlcpKtwdUPNuSNy2ak6+wMF8pi374JYvbLE XBpj9dQRlciV42imlVA4AM/80UIAuvBVIc1gV09ts8y/dR1/tZx62fHJxyxCcau08zPJ 3Xd667Z6ePWNJDIXksRw649c9ExJ1X/VzO3OffFIwNDKWaIQzm4m/V7gLV+pW/KudbD6 5D7A== X-Gm-Message-State: ABy/qLY7LArVeueVuUgINkM/0j9awdyg+yqo59/36zA/y98lSe1XsEIS fCT3cYIm5eKUGvbN1E4JYa30Qbw32Dc= X-Received: by 2002:a05:6a00:1808:b0:668:8705:57dd with SMTP id y8-20020a056a00180800b00668870557ddmr3413232pfa.28.1689879749742; Thu, 20 Jul 2023 12:02:29 -0700 (PDT) Received: from lvondent-mobl4.. (c-71-236-201-58.hsd1.or.comcast.net. [71.236.201.58]) by smtp.gmail.com with ESMTPSA id s3-20020aa78283000000b00682a9325ffcsm1544496pfm.5.2023.07.20.12.02.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jul 2023 12:02:29 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [BlueZ PATCH v5 1/3] btmgmt: Add man page Date: Thu, 20 Jul 2023 12:02:26 -0700 Message-ID: <20230720190228.446570-1-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Luiz Augusto von Dentz This adds btmgmt.rst which is then converted to btmgmt.1 using rst2man. --- Makefile.tools | 5 +-- tools/btmgmt.rst | 79 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+), 2 deletions(-) create mode 100644 tools/btmgmt.rst diff --git a/Makefile.tools b/Makefile.tools index 7d9697001b75..c1de187bf72b 100644 --- a/Makefile.tools +++ b/Makefile.tools @@ -347,7 +347,8 @@ profiles_iap_iapd_SOURCES = profiles/iap/main.c profiles_iap_iapd_LDADD = gdbus/libgdbus-internal.la $(GLIB_LIBS) $(DBUS_LIBS) if MANPAGES -man_MANS += tools/rctest.1 tools/l2ping.1 tools/btattach.1 tools/isotest.1 +man_MANS += tools/rctest.1 tools/l2ping.1 tools/btattach.1 tools/isotest.1 \ + tools/btmgmt.1 endif if MESH @@ -468,7 +469,7 @@ manual_pages += tools/hciattach.1 tools/hciconfig.1 \ tools/hcitool.1 tools/hcidump.1 \ tools/rfcomm.1 tools/sdptool.1 tools/ciptool.1 \ tools/rctest.1 tools/l2ping.1 tools/btattach.1 \ - tools/bdaddr.1 tools/isotest.1 + tools/bdaddr.1 tools/isotest.1 tools/btmgmt.1 if HID2HCI udevdir = $(UDEV_DIR) diff --git a/tools/btmgmt.rst b/tools/btmgmt.rst new file mode 100644 index 000000000000..0159ee128f62 --- /dev/null +++ b/tools/btmgmt.rst @@ -0,0 +1,79 @@ +====== +btmgmt +====== + +------------------------------------- +interactive bluetooth management tool +------------------------------------- + +:Version: BlueZ +:Copyright: Free use of this software is granted under ther terms of the GNU + Lesser General Public Licenses (LGPL). +:Date: July 2023 +:Manual section: 1 +:Manual group: Linux System Administration + +SYNOPSIS +======== + +**btmgmt** [--options] [commands] + +DESCRIPTION +=========== + +**btmgmt(1)** 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 since 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 as it may result in +unexpected behavior. + +OPTIONS +======= + +:-i/--index: Specify adapter index +:-m-/-monitor: Enable monitor output +:-t/--timeout: Timeout in seconds for non-interactive mode +:-v/--version: Display version +:-i/--init-script: Init script file +:-h/--help: Display help + +COMMANDS +======== + +:main: See **bluetoothctl-mgmt(1)** +:monitor: See **bluetoothctl-monitor(1)** + +AUTOMATION +========== + +Two common ways to automate the tool are to pass the commands directly like in +the follow example: + +.. code-block:: + + btmgmt <