From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CFA19C433EF for ; Mon, 23 May 2022 11:46:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235040AbiEWLqb convert rfc822-to-8bit (ORCPT ); Mon, 23 May 2022 07:46:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235110AbiEWLq2 (ORCPT ); Mon, 23 May 2022 07:46:28 -0400 Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97D0645799 for ; Mon, 23 May 2022 04:46:25 -0700 (PDT) Received: (Authenticated sender: hadess@hadess.net) by mail.gandi.net (Postfix) with ESMTPSA id 260AD1BF214; Mon, 23 May 2022 11:46:22 +0000 (UTC) Message-ID: <04aa8b0ecab7c02f515149da0128780d92f6e95d.camel@hadess.net> Subject: Re: Battery indication for Logitech devices From: Bastien Nocera To: Nestor Lopez Casado , Filipe =?ISO-8859-1?Q?La=EDns?= Cc: Marcos Alano , HID CORE LAYER Date: Mon, 23 May 2022 13:46:22 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.44.1 (3.44.1-1.fc36) MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org On Mon, 2022-04-04 at 12:12 +0200, Bastien Nocera wrote: > On Mon, 2022-04-04 at 09:10 +0200, Nestor Lopez Casado wrote: > > Hello, > > > > I've got this from asking internally: > > > > " The information should be accurate in both BAS and HIDPP > > interfaces. > > However, today the BAS interface is limited. VersionĀ  2.0 will be > > better but not yet released. As you have access to the HIDPP, I > > recommend using only this one. Like this, the type of connection > > can > > be ignored (BLE or USB dongle) " > > As per the patch I just sent (HID: logitech-hidpp: Add Signature > M650), > it will unfortunately be difficult to disable the battery reporting > directly from bluetoothd. > > We can detect whether a Bluetooth device supports HID++, as it has a > GATT attribute with a Logitech specific UUID[1] (more info/specs > welcome), but not all the HID++ capable Bluetooth devices seem to be > detected by the kernel and they need to be added to a list. > > Ideally, the kernel could enable HID++ support for all the Bluetooth > HID++-capable devices, and we could easily block reporting in upower > or > bluetoothd without having to care at runtime about whether there's a > separate battery reporting interface because we could assume it was > always there. > > Any ideas on how to do that? Asking this again. Is there a full list somewhere of all the Bluetooth devices that support HID++ or a way to detect them so we can avoid the piecemeal approach currently taken: https://lore.kernel.org/linux-input/20220404100311.3304-1-hadess@hadess.net/ Once we know for certain what all those Logitech devices are, we can start blocking them in upower or bluez. Cheers