Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp4437985rwe; Tue, 30 Aug 2022 10:04:00 -0700 (PDT) X-Google-Smtp-Source: AA6agR5//2IO4I6QLiYMdxUdChKhzEOnVv6u+npbHTV8DjQjx2asAOBxaI1bs7Zj1XySlnVGuVRc X-Received: by 2002:a05:6a00:1ac7:b0:52f:4e43:5ace with SMTP id f7-20020a056a001ac700b0052f4e435acemr22269948pfv.59.1661879039939; Tue, 30 Aug 2022 10:03:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661879039; cv=none; d=google.com; s=arc-20160816; b=v/M3JAX2vYMdkCaD8Ai3Kli4dKIOasQOVMONKtaGxdBNArJ6t+xJ6tcwVXpstt5HP9 baFcf8CNtXYChjrnvihz0NpatPetG2LSG/h0LRAunectkaekeYOo0EtWuaF8WOh+Q97I issuQzrmnEeqgNi5GeSPIoUjW8lNilsCCq3QEQPAWgJqzwv9i0YvScPQEftHEqEKY4BC edLr/LAnpPq+ML8mu+X9uZZI8or6oIaaMWsxcf3+/JNfyPk+p6m/oBimnpgiGsq4+Gk2 WfFPe5ZgDoDgmiCrvdfQqyuDdDtZha39THGe7WjcCbtsF5RYMcnhAtbwQCgHzfajDA2E pa2w== 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=959jiFB+BwdKkmqpSyQNDuJrzSgDxxWDXuGkQnoeVSQ=; b=ZRUjfveRLziXhwdsJ7OyosG56AW3VNL7Z5TyHWkMlsJGmIjMv+JHlPmWsjAAqp/tAZ pRjO1WL1Z7YDNKUcnV9xt/ZhGjGRl1Rm9aDppUxhDYD+yWVOJZjqEIhz5Uwj/Fw5tZaf 83gFENBmM3eQ03FHvATAQgp1wjLsXd0K4ZRiN3GakuhPxqK2BHou4boWll9P78e0gFWB N7rbo0MU/3eIkR+mm7ZcPaOKo0HgtpwQtqWAjVpdWJUQ+SQ5bWj2Rp0SejL+fH32A3Fw g737+Zx4VJPmVcwsNVmigmx/HSDkodMYVgkkNhiAzEtPYaUvBmz1RJJC3AQa3VQMijPh E9yw== 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 u4-20020a170902e80400b001754064ac48si14932plg.620.2022.08.30.10.03.36; Tue, 30 Aug 2022 10:03:59 -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 S230491AbiH3RAA convert rfc822-to-8bit (ORCPT + 99 others); Tue, 30 Aug 2022 13:00:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229685AbiH3Q7h (ORCPT ); Tue, 30 Aug 2022 12:59:37 -0400 Received: from relay12.mail.gandi.net (relay12.mail.gandi.net [217.70.178.232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89ABEDB07D for ; Tue, 30 Aug 2022 09:59:27 -0700 (PDT) Received: (Authenticated sender: hadess@hadess.net) by mail.gandi.net (Postfix) with ESMTPSA id 7369B200003; Tue, 30 Aug 2022 16:59:25 +0000 (UTC) Message-ID: <7cc9c749f6e87e5feff30c16422665f10549def6.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: Tue, 30 Aug 2022 18:59:25 +0200 In-Reply-To: <039331637535e9cb0c1f9df777cd18d5e34cfe27.camel@hadess.net> References: <039331637535e9cb0c1f9df777cd18d5e34cfe27.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, RCVD_IN_MSPIKE_H2,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 Mon, 2022-08-29 at 11:47 +0200, Bastien Nocera wrote: > The rfkill calls made by GNOME are usually sent to all the rfkill > devices, rather than targeted at blocking a single adapter. So the > adapter state isn't super interesting in this case, as all the > devices > will be either blocked (computer with no platform rfkill), or gone > from > the USB bus (computer with a platform rfkill). > > > The good thing about using a string property here is that we can > extend > it. One thing we can do though, to make extensibility easier, is take > a > leaf out of the icon naming specification, and use prefixes to encode > the expected state in case the software isn't new enough to know > about > a property. > > For example: > - "on" > - "off" > - "on-disabling" (transitioning from on to off) > - "off-enabling" (transitioning from off to on) > > So we could easily add: > - "off-rfkill" (off and blocked) > > Let me know what you think. Poking again, as I really need to land this soon (and by soon I mean last week ;)