Jonas Dreßler
109e2968e2
status/bluetooth: Use BlueZ state to determine whether bluetooth is on
...
There's two ways bluetooth can be powered off/on for us: One way is to
go via airplane mode (which uses rfkill), and the second way is to tell
BlueZ to turn off the device. Now rfkill always has the final say on
whether bluetooth is off, BlueZ OTOH has the final say on whether
bluetooth is on.
This means when we want to know whether bluetooth is turned on, we only
have to ask BlueZ, so simply read this._client.default_adapter_powered
for that.
For turning bluetooth on or off we use rfkill, but when turning it on,
make sure it's turned on in Bluez, too.
FTR, this is exactly the same way the Bluetooth panel in Settings
handles this.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2188 >
2022-02-18 19:10:18 +00:00
..
2022-02-12 12:29:52 +00:00
2022-02-18 19:10:18 +00:00
2022-02-12 12:29:52 +00:00
2022-01-25 20:03:01 +00:00
2020-06-30 13:42:18 +00:00
2022-02-12 12:29:52 +00:00
2022-02-12 12:29:52 +00:00
2022-02-07 14:12:04 +00:00
2022-02-12 12:29:52 +00:00
2022-02-12 14:31:10 +00:00
2022-01-21 10:44:37 -03:00
2021-02-03 20:19:29 +01:00
2022-02-14 11:52:58 -03:30
2022-02-14 13:36:35 +00:00
2020-03-29 12:56:33 +00:00
2020-03-23 15:27:47 +00:00
2021-03-08 09:21:25 +00:00
2022-02-16 20:08:44 +00:00
2022-02-12 14:15:21 +01:00
2022-01-29 01:16:30 +01:00
2022-02-02 17:22:20 +01:00
2021-02-17 15:45:01 +00:00
2022-02-12 12:29:52 +00:00
2022-02-11 16:24:01 +00:00
2022-02-12 12:29:52 +00:00
2022-02-12 12:29:52 +00:00
2022-02-01 14:30:24 +00:00
2021-06-29 22:47:58 +02:00
2022-01-02 16:24:14 +01:00
2022-01-21 10:44:37 -03:00
2021-09-01 14:55:47 +00:00
2020-11-16 18:04:23 +00:00
2022-02-12 12:29:52 +00:00
2022-02-12 02:54:57 +05:00
2022-01-27 22:16:50 +01:00
2022-02-12 12:29:52 +00:00
2021-11-16 23:34:38 +00:00
2022-02-12 14:36:54 +00:00
2022-02-12 12:29:52 +00:00
2022-02-12 12:29:52 +00:00
2022-02-01 14:30:24 +00:00
2022-02-12 12:29:52 +00:00
2022-02-12 12:29:52 +00:00
2022-02-12 15:28:52 +00:00
2022-02-12 12:29:52 +00:00
2022-02-16 20:08:44 +00:00
2022-02-12 12:29:52 +00:00
2021-02-03 09:55:29 +01:00
2022-02-12 14:36:54 +00:00
2022-02-12 12:29:52 +00:00
2021-05-18 13:42:52 +00:00
2022-02-13 13:25:42 +00:00
2022-02-12 12:29:52 +00:00
2022-02-12 12:29:52 +00:00
2022-02-12 12:29:52 +00:00
2022-02-17 09:05:10 +03:00
2022-02-12 12:29:52 +00:00
2022-02-12 12:29:52 +00:00
2021-02-17 02:31:32 +01:00
2022-02-12 14:36:54 +00:00
2022-02-12 02:54:57 +05:00
2021-07-30 14:17:07 +00:00
2022-02-12 12:29:52 +00:00
2022-01-29 01:16:29 +01:00
2022-01-31 22:09:28 +00:00
2022-01-29 01:16:30 +01:00
2021-12-04 16:21:31 +00:00
2022-02-12 12:29:52 +00:00
2020-12-17 21:46:41 +01:00
2021-11-17 10:24:47 +00:00
2020-03-26 18:52:10 +00:00
2022-02-12 15:28:52 +00:00
2022-02-12 00:20:54 +00:00
2021-04-28 14:29:19 +02:00
2022-02-01 12:11:54 +00:00
2021-12-22 18:27:07 +00:00
2022-01-05 15:44:28 +00:00
2022-02-12 15:28:52 +00:00
2021-05-25 12:43:32 -03:00
2020-12-02 15:10:29 +00:00