Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp150525rwe; Fri, 26 Aug 2022 02:28:58 -0700 (PDT) X-Google-Smtp-Source: AA6agR4zNoHIVkRB/FkOAkr/I1paf/E0Bdy1u9+aa2TxBSrBejaosoVYB0NfZc7bpFLkYRfEHjxB X-Received: by 2002:a17:906:6a0a:b0:73d:6c6a:1b8f with SMTP id qw10-20020a1709066a0a00b0073d6c6a1b8fmr4833769ejc.240.1661506138521; Fri, 26 Aug 2022 02:28:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661506138; cv=none; d=google.com; s=arc-20160816; b=SdD/B/znls/0c9KVyXOl45R8u8mIzpdelrwW9hE1vOeglB4qNqPjxZOTvwTxODzO3R xTicex+1W4eTdbulxe5rvUsGHY86cgmYAxnQz3qPaLCsEqaE12ACnPQeIojjJOv3IoKQ vETTzYLzTbdFGWYPGdB/jJVhABQVsGBsOTzzkWnLVZXiwT59o1FZsgD5oSJLXrUvqfte XBcpGLkyNZ6sGbFwQfWNruH+9UWtawdxUund9BnMLhwtagNBkhWL+EFZLyaFSzXAsoNs vsjk0Eov+hcR3gSaoCgvyhT+uErw9XuCdDlY2nwpOXkZm9aqKcChgcNZMpQ3dqGWIWmN 1BCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=RU8JV5rLORX/Tv5e/ghvL8xKOfBZemwc5AcjsIlVsfI=; b=oE88gFprABfjDRmKxnXWO9xoLEuG7hcppbPuEKqsEYSZJaPqpBVlzOnnaq6xfUUwE6 RGlLmMHSjG7FniRWxt/v/ADhi7yFmvsiLRo9mDb+eVE5dNmRrxHIU/kxfpExRvO2MqfR heIlFWLQbo8ZTnQwgxbufiWHKkTY3mHxmpg1/NsQMrzI5G7g49ux0GLJCVYtRH5Zt9z+ vp8YEcwqX98gb2FOZrj4CDhNb+S3zEATognudUsGOR7QGHpsnOeplQu9ph4rwwwNiCx4 vbozUCqFgMKNrSpBXehBJHZ3c2MWo17/d8NAy8PrRjhNJ7uOvb5RRhYUTu+5VZBy/2ty 6jkw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s5-20020a50ab05000000b00445ec7d3a9dsi1024624edc.419.2022.08.26.02.28.32; Fri, 26 Aug 2022 02:28:58 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343996AbiHZJZm convert rfc822-to-8bit (ORCPT + 99 others); Fri, 26 Aug 2022 05:25:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343736AbiHZJZG (ORCPT ); Fri, 26 Aug 2022 05:25:06 -0400 Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23696ADCFA for ; Fri, 26 Aug 2022 02:25:04 -0700 (PDT) Received: (Authenticated sender: hadess@hadess.net) by mail.gandi.net (Postfix) with ESMTPSA id B3FD0C000B; Fri, 26 Aug 2022 09:25:02 +0000 (UTC) Message-ID: <1a7f6a809b74444ce64150fc6ad6e6506dd10d9b.camel@hadess.net> Subject: Re: [PATCH] adapter: Implement PowerState property From: Bastien Nocera To: Luiz Augusto von Dentz Cc: "linux-bluetooth@vger.kernel.org" Date: Fri, 26 Aug 2022 11:25:02 +0200 In-Reply-To: References: <6422b1f3f94e959917f919af20a2aa43b4c13a89.camel@hadess.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.44.4 (3.44.4-1.fc36) MIME-Version: 1.0 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, 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 On Thu, 2022-08-25 at 16:06 -0700, Luiz Augusto von Dentz wrote: > Hi Bastien, > > On Thu, Aug 25, 2022 at 8:32 AM Bastien Nocera > wrote: > > > > On Thu, 2022-08-25 at 15:26 +0200, Bastien Nocera wrote: > > > This property should allow any program to show the transitional > > > state, > > > not just the one that requested the change, and will also show > > > transitional states that were the results of other system > > > changes, > > > like > > > rfkill changes. > > > > Looks like the bot doesn't like where I put those comments. > > > > If anyone can comment on the API I used, and I'll iterate the > > actual > > implementation. I'd like the API to be settled by the time GNOME 43 > > ships, so we can rely on it there. > > I wonder what are you actually after with these changes, in most > cases > I'd say the changes shall just be queued, anyway perhaps the problem > was something related to: > > https://git.kernel.org/pub/scm/bluetooth/bluez.git/commit/?id=ede7b915980fbc80eff80aa189c35ca016956c61 > That helps with one of the problems I ran into (resetting the transitional state on failure), thanks. What I'm after is a transitional state when the Bluetooth adapter is being powered on, as it can take more than "an instant" (aka 200msec) to turn on, and sometimes much longer. Users in that transition period can wonder why the adapter is already on but not usable, or still off. This is even worse if the enablement doesn't work, as it could show that the device was on/available for a time before stopping being available, depending on which option the UI developer took, which is obviously not true. I updated the patch for the latest git and completed the commit message, let me know if that helps.