Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp5694ybj; Wed, 6 May 2020 10:21:31 -0700 (PDT) X-Google-Smtp-Source: APiQypKXa1FMzy0BV1GETiiJ+sPGau4eNLEeMx8L+R/aLt15MSK0aHm0fynLQtjrbGimb7BJAEgi X-Received: by 2002:a05:6402:1f6:: with SMTP id i22mr8289040edy.271.1588785690968; Wed, 06 May 2020 10:21:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588785690; cv=none; d=google.com; s=arc-20160816; b=NvJy/eNo3FoWs1Na1ZgrbJvIg8VzYyPT4GMvg3RsZJnjGK+oTbz4XKCaEkfmbP/7Ow DYJ2MB/Oi2w5RAxvT5mfqCH405Owdt8EnTaJxMb8GW22Lie6aXsnbr0+9B/3ahp2hLa/ KKlZWiCWubTRR8VGbY96pk3L64oP5EVFrA+BNEVy3hxXUZ3rj0M/vmdmysELMSo9WAAR 30zGYPBShIU7Z/fSlmTB0+dXIde4yKK+5Tafam2rdblk0w4cZimSng+TGv+YGF+xGAV2 NwPA2HnugLIDQLpDwSCGiBbZsf7GeFiI0GUwmw842hduub46wIXS4G0oY7iRn18nXjwm tPnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=+oPpI8WtB3+Ne5pQ6mtyjv6Ahl5JMZGDvc5gLgmToyE=; b=anRzfgAiOv4OueHflRIBsNL2gQ7VKrI8k/s4YScD1EVAihHyny8Q21PB4j3euCbTS+ PXhw5pKx/mSpwgypkuiMbjSA/hVFcdXGtSDZf1uoPIkcxtysK04s3iNwiOFUC9+E8m3X Gi/lIu2zGWgrX3Hcqer3DunRfQPbUfi73qlS4gp5wyTWYReFaJFdbj7Ud4HzqYooEhi0 RDA75jYWKqMuSmy80BSFwHhdm0FQb+CNueQTKJ2k4ud1+KGnPr445+kiGRAzWgspLCdf 7Y4g+0eSR/4UJmedoR9GcRt9AHVJJWhqQJ3dSAm/fapz99DpOEA1ixiH2a5NYByMa15Q PbVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=JepQFdlJ; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c21si1612901ejk.82.2020.05.06.10.20.59; Wed, 06 May 2020 10:21:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=JepQFdlJ; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728466AbgEFRSZ (ORCPT + 99 others); Wed, 6 May 2020 13:18:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726093AbgEFRSY (ORCPT ); Wed, 6 May 2020 13:18:24 -0400 Received: from mail-ot1-x344.google.com (mail-ot1-x344.google.com [IPv6:2607:f8b0:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 283B1C061A0F for ; Wed, 6 May 2020 10:18:24 -0700 (PDT) Received: by mail-ot1-x344.google.com with SMTP id g19so1997388otk.5 for ; Wed, 06 May 2020 10:18:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=+oPpI8WtB3+Ne5pQ6mtyjv6Ahl5JMZGDvc5gLgmToyE=; b=JepQFdlJGX2tfWowwYM05zzcZd26WPPdyzudZSMsvZ5SKuwLXdpqnHrjSHhYPELfKp xnquWYGmgSJSdBN1WF1U8n764f5Rx428Zjoe2FsS+YAT32TYiWxym/adRtiuD3a9PSVC AFMgzoO+ch104vcB8BVuLIExZO9FOE5OJb+c0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=+oPpI8WtB3+Ne5pQ6mtyjv6Ahl5JMZGDvc5gLgmToyE=; b=gBOWzMLmN3TETri+YtKHa/yAKzb/fQk+M7bL5GKIb8LZPZDpjpsEZMRKPadjMtxVCQ lOwRPu1m7oZoTXmsX5RyE3r/D7+Xqgngi0US2tnwPniCYWdfIKbclPyr5HAD50/4KVCd ESRtBcE4tCE2JyugEzVCG0Z1tVVs1BLUQIUPyiDUM9xduzPlFPk0a9kkMPTze4PQIUPa kwYNX/sGmMH/Jv2v/w1XrIKkowZqhL5SYFbWu4fKmWKq1zZ/OeG/evgDNnsK++4NW9s4 tO7YnxDf/6w6PfqWt5dG4M5CUeMXfI6QM7AtO4zOx9oKREOeMO6NWcRDxjaZGjlAPlXP vbUg== X-Gm-Message-State: AGi0PuYr6Pb6wPHq4Fl9l/0bRQECjIv0pieivavJKWLir68EQTo3aQiT +6A17cxQUNmPCvT1mEuBJykScpP3g8X0pOWAK2ObuQ== X-Received: by 2002:a05:6830:1d9c:: with SMTP id y28mr7896292oti.280.1588785503519; Wed, 06 May 2020 10:18:23 -0700 (PDT) MIME-Version: 1.0 References: <20200501215352.23858-1-sonnysasaka@chromium.org> <4A9E7F0B-4AB8-4330-BB2B-1A0EAA4EFDE8@holtmann.org> In-Reply-To: From: Sonny Sasaka Date: Wed, 6 May 2020 10:18:11 -0700 Message-ID: Subject: Re: [PATCH] build: Add option to disable battery profile To: Luiz Augusto von Dentz Cc: Bastien Nocera , Marcel Holtmann , "linux-bluetooth@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Marcel/Luiz, Thanks for the feedback. We in Chrome OS are going to re-evaluate the need for this, so we can hold off the decision for now. Generally, these are some aspects we want to consider: * For Chrome OS, we already have a working code for battery indicator via BlueZ's general GATT API, but it's much simpler to just use BlueZ's internal battery service API for our battery indicator feature. If we can migrate to this, we don't need this build option. * For other platforms, I think it's good to have more control over what profiles are handled internally by BlueZ, since they may want to use the profile directly and they can't do that if BlueZ monopolizes the profile. There may also be some needs to do this on Chrome OS actually, since Web Bluetooth has some sample use cases to read Battery Level (https://googlechrome.github.io/samples/web-bluetooth/battery= -level.html). We will discuss those and other factors first and let you know whether we need this patch. Thanks again for the responses! On Wed, May 6, 2020 at 9:44 AM Luiz Augusto von Dentz wrote: > > Hi Sonny, > > On Wed, May 6, 2020 at 9:35 AM Luiz Augusto von Dentz > wrote: > > > > Hi Marcel, Bastien, > > > > On Wed, May 6, 2020 at 7:14 AM Bastien Nocera wrote= : > > > > > > On Wed, 2020-05-06 at 13:24 +0200, Marcel Holtmann wrote: > > > > I have a little bit concern splitting this since battery service an= d > > > > HoG are kinda connected. Wouldn=E2=80=99t it be better we have a cl= eaner > > > > interface. Maybe we should actually integrate cleanly with > > > > /dev/upower or similar. > > > > > > Wat? > > > > I guess Marcel was refering to something like uhid though Im not sure > > that exists, or does it? That said one alternative would make uhid > > integrate the battery status, but I guess devices can also expose this > > over hid directly so I wonder if we can translate the Battery Service > > status to hid power strength that way we don't need any communication > > over D-Bus. > > Btw, Im fine with the option to disable building the battery plugin > since platforms may not have a use for it, so except if there are some > strong reason against it I will apply the patch. > > -- > Luiz Augusto von Dentz