Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2418801rdb; Mon, 20 Nov 2023 10:10:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IEbupTLR/B6OBkGtlk/Ccu+M0zm5ekIOsCEHnecZKABRVNKjIArSDkAuZjpzvYCJgnxAEBD X-Received: by 2002:a17:903:50d:b0:1cc:449b:689e with SMTP id jn13-20020a170903050d00b001cc449b689emr8925368plb.20.1700503847434; Mon, 20 Nov 2023 10:10:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700503847; cv=none; d=google.com; s=arc-20160816; b=PzjKL2zA5ddUPN7EdOOV8epvmig0ErkUXMo77+f5KsALLZUT6l+14DDI7iaDLgsJ5L MeDilyK3jm0n53HqAzZBDu9D3LZPTRQ519R37fQOWIXRemI4h2qNRu+IdeoRbs/RRaW/ ydXDy0uQDJ7vCIDwo7NuOjcaMMuYjUNkCPm7gKGm3+dDK2gcG3l3w/XqCYDpthvGpBRs nl3/STQ7Of1fAQocf+lLkoyplCJUrNbAMHvhL6yjpKSWhRjvpCjRfq4zd40V4nl+3m5v MlJrh1wej6PpkvtoIW8dtvjYLeayAqRGuEwY9yUicCcqXejK1nGRQTbDTqt4ImcrDZCI XGjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=31MoVkIPxAne/3Fz38zNWNgojSRG/FGUT+u9NE/0sro=; fh=ZG4MVDvr86UILKFCK1sKXgt0idORihelnggDfvNctT8=; b=EFeY8qpCd8cfjJZaOouNe4usDRsqpDQdrfWvG/F+QR0MSWeWW06+cFsrK9MuDUhHsV mSAOdGUwntPryxyStG4h/4UreeyONhVu+U43JtHKof7dQeZ1dZDqziShRyu8SleD15EP kqA/kmLe+LcVeyCT3hGxYH4k0Zv1ljWcCp3FuHSRPvP7oB3OgTD11jJ3R2rX4yBPdQhI W7bcOcSdo6Bwvtq2t4O9/zgVRdeJyB4RTauy4zxmxSGo7l3cEC8J9GsSo5tANMb3P9h3 pCPhNBpuI+mpUX/TC0gNvgT6ggKUDa1KR4/kgSVS5JZ3BMYhzRBZBfZIpZFnLzEG0g9n FFOQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth+bounces-143-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-143-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=harvard.edu Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id j9-20020a170903024900b001bda57935fasi8830204plh.64.2023.11.20.10.10.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 10:10:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-143-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth+bounces-143-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-143-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=harvard.edu Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id A2199282527 for ; Mon, 20 Nov 2023 18:10:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8AFF03035C; Mon, 20 Nov 2023 18:10:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=none X-Original-To: linux-bluetooth@vger.kernel.org Received: from netrider.rowland.org (netrider.rowland.org [192.131.102.5]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 21F63CF for ; Mon, 20 Nov 2023 10:10:29 -0800 (PST) Received: (qmail 1457695 invoked by uid 1000); 20 Nov 2023 13:10:29 -0500 Date: Mon, 20 Nov 2023 13:10:29 -0500 From: Alan Stern To: Paul Menzel Cc: Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-pm@vger.kernel.org, Hans de Goede , Mike Jones Subject: Re: Qualcomm Atheros QCA61x4 keeps drawing 0.85 W despite Bluetooth being disable in GNOME Message-ID: <41253614-764e-4e95-b052-a46bf5587c29@rowland.harvard.edu> References: <22494842-a785-4151-915d-6f3a677d96cb@molgen.mpg.de> <1f3cb0cc-4bb0-471f-a785-a5d237cd46a3@rowland.harvard.edu> Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Mon, Nov 20, 2023 at 08:52:19AM +0100, Paul Menzel wrote: > Dear Alan, > > > Than you again for your quick reply. > > Am 20.11.23 um 03:26 schrieb Alan Stern: > > On Sun, Nov 19, 2023 at 11:09:32PM +0100, Paul Menzel wrote: > > > $ sudo modprobe btusb > > > > > $ grep . /sys/bus/usb/devices/1-3/power/* > > > /sys/bus/usb/devices/1-3/power/active_duration:119053224 > > > /sys/bus/usb/devices/1-3/power/async:enabled > > > /sys/bus/usb/devices/1-3/power/autosuspend:2 > > > /sys/bus/usb/devices/1-3/power/autosuspend_delay_ms:2000 > > > /sys/bus/usb/devices/1-3/power/connected_duration:148065372 > > > /sys/bus/usb/devices/1-3/power/control:auto > > > /sys/bus/usb/devices/1-3/power/level:auto > > > /sys/bus/usb/devices/1-3/power/persist:1 > > > /sys/bus/usb/devices/1-3/power/runtime_active_kids:0 > > > /sys/bus/usb/devices/1-3/power/runtime_active_time:119060567 > > > /sys/bus/usb/devices/1-3/power/runtime_enabled:enabled > > > /sys/bus/usb/devices/1-3/power/runtime_status:active > > > /sys/bus/usb/devices/1-3/power/runtime_suspended_time:28831453 > > > /sys/bus/usb/devices/1-3/power/runtime_usage:0 > > > /sys/bus/usb/devices/1-3/power/wakeup:disabled > > > ``` > > > > Hmmm. It's not immediately clear why the device isn't being suspended. > > The btusb driver does support autosuspend. > > > > Can you also post the output from > > > > grep . /sys/bus/usb/devices/1-3:*/power/* > > > > with the driver module loaded? I should have asked for it before. > > ``` > $ sudo modprobe btusb > $ sudo dmesg | tail -9 > [319747.390712] r8152 4-1.2:1.0 enx18dbf22dccf3: carrier on > [320256.946094] bluetooth hci0: firmware: direct-loading firmware > qca/rampatch_usb_00000302.bin > [320256.949333] Bluetooth: hci0: using rampatch file: > qca/rampatch_usb_00000302.bin > [320256.949349] Bluetooth: hci0: QCA: patch rome 0x302 build 0x3e8, firmware > rome 0x302 build 0x111 > [320256.949643] usbcore: registered new interface driver btusb > [320257.308935] bluetooth hci0: firmware: direct-loading firmware > qca/nvm_usb_00000302.bin > [320257.309043] Bluetooth: hci0: using NVM file: qca/nvm_usb_00000302.bin > [320257.336220] Bluetooth: hci0: HCI Enhanced Setup Synchronous Connection > command is advertised, but not supported. > [320257.638188] Bluetooth: MGMT ver 1.22 > $ /sbin/rfkill > ID TYPE DEVICE SOFT HARD > 1 wlan phy0 blocked unblocked > 28 bluetooth hci0 blocked unblocked > $ grep . /sys/bus/usb/devices/1-3:*/power/* > /sys/bus/usb/devices/1-3:1.0/power/async:enabled > /sys/bus/usb/devices/1-3:1.0/power/runtime_active_kids:0 > /sys/bus/usb/devices/1-3:1.0/power/runtime_enabled:enabled > /sys/bus/usb/devices/1-3:1.0/power/runtime_status:suspended > /sys/bus/usb/devices/1-3:1.0/power/runtime_usage:0 > /sys/bus/usb/devices/1-3:1.1/power/async:enabled > /sys/bus/usb/devices/1-3:1.1/power/runtime_active_kids:0 > /sys/bus/usb/devices/1-3:1.1/power/runtime_enabled:enabled > /sys/bus/usb/devices/1-3:1.1/power/runtime_status:suspended > /sys/bus/usb/devices/1-3:1.1/power/runtime_usage:0 > ``` Again, nothing out of the ordinary. Maybe dynamic debugging will give us a clue. Try doing this: Unload the btusb module. echo module usbcore +p >/sys/kernel/debug/dynamic_debug/control Load the btusb module Make sure that Bluetooth is turned off in Gnome Wait a few seconds echo module usbcore -p >/sys/kernel/debug/dynamic_debug/control Then let's see what the dmesg log contains for that time period. Also, please post the output from "lsusb -v" for the Bluetooth device. Alan Stern