Re: [PATCH] adapter: Implement PowerState property

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Bastien,

On Tue, Aug 30, 2022 at 9:59 AM Bastien Nocera <hadess@xxxxxxxxxx> wrote:
>
> 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 ;)

off-rfkill sounds fine to me, btw introduce it as experimental so we
can still make changes if need to.

-- 
Luiz Augusto von Dentz



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux