Commit: 58021a665b7f608e20096328bb28e24d3fe8bf0d
Parent: abf5ba6b80add53a4617ffdd06ac2102095347c2
Author: Bastien Nocera <hadess@hadess.net>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2022-09-01 21:43:35
Tree: 9632ca7b8c2593a506ae5d7ab925271b235d8d4d

adapter: Implement PowerState property This property should allow any program to show whether an adapter is in the process of being turned on. As turning on an adapter isn't instantaneous, it's important that the UI reflects the transitional state of the adapter's power, and doesn't assume the device is already turned on but not yet working, or still off despite having requested for it to be turned on, in both cases making the UI feel unresponsive. This can also not be implemented in front-ends directly as, then, the status of an adapter wouldn't be reflected correctly in the Settings window if it's turned on in the system menu. Implementing it in the front-ends would also preclude from having feedback about the state of the adapter when bluetoothd is the one powering up the adapter after the rfkill was unblocked. See https://gitlab.gnome.org/GNOME/gnome-bluetooth/-/issues/121 and the original https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5773

Diffstat

M src/adapter.c | 139 ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - -

1 files changed, 128 insertions(+), 11 deletions(-)

View Full Diff | Patch