After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 691151 - bluetooth switch doesn't work in Power panel
bluetooth switch doesn't work in Power panel
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Power
git master
Other Linux
: Normal normal
: ---
Assigned To: Richard Hughes
Control-Center Maintainers
3.10
: 691730 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-01-04 20:16 UTC by Jeremy Bicha
Modified: 2013-12-06 11:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Try to fix bluetooth handling (2.17 KB, patch)
2013-01-05 04:13 UTC, Matthias Clasen
committed Details | Review
power: Use g-s-d's rfkill for Bluetooth (7.75 KB, patch)
2013-11-28 16:51 UTC, Bastien Nocera
committed Details | Review

Description Jeremy Bicha 2013-01-04 20:16:34 UTC
I built gnome-control-center from jhbuild an hour ago. I'm using Ubuntu with glib 2.35.3, GTK 3.7.2, and bluez 4.101

Enabling and disabling Bluetooth from the Power panel doesn't work, but it works in the Bluetooth panel.


(gnome-control-center:15603): GLib-CRITICAL **: `sv' is not a valid GVariant format string

(gnome-control-center:15603): GLib-CRITICAL **: g_variant_new: assertion `valid_format_string (format_string, TRUE, NULL) && format_string[0] != '?' && format_string[0] != '@' && format_string[0] != '*' && format_string[0] != 'r'' failed
Comment 1 Matthias Clasen 2013-01-05 04:13:20 UTC
Created attachment 232808 [details] [review]
Try to fix bluetooth handling

We need to ensure that bluetoothd is activated, otherwise the
default adapter might not be present. Unfortunately, this is
not enough to make the switch actually have the same effect
as the shell menuitem.
Comment 2 Jeremy Bicha 2013-01-05 06:13:36 UTC
Adding the parentheses to sv fixes the format_string error, but the rest of the patch doesn't seem to make much of a difference (the Bluetooth switch still doesn't work).
Comment 3 Matthias Clasen 2013-01-05 15:32:29 UTC
depends on how you define 'works'. It does succeed in changing the 'Powered' property of the default adapter. What effect that has on the actual hw, I don't know.
Comment 4 Matthias Clasen 2013-01-05 15:48:24 UTC
Attachment 232808 [details] pushed as 1d68105 - Try to fix bluetooth handling
Comment 5 Jeremy Bicha 2013-01-05 16:18:45 UTC
(In reply to comment #3)
> depends on how you define 'works'. It does succeed in changing the 'Powered'
> property of the default adapter. What effect that has on the actual hw, I don't
> know.

By "works" I mean the Bluetooth toggle in Power seems to have zero effect on the Bluetooth toggle in Bluetooth or the Bluetooth toggle in GNOME Shell's top bar (or vice versa, turning Bluetooth on or off in those other two places has no effect on the Bluetooth switch in Power).

Therefore, I don't think this bug should be marked "fixed" yet.
Comment 6 Richard Hughes 2013-07-16 16:56:22 UTC
I think Jasper moved the BT switch functionality to g-s-d now, right?
Comment 7 Bastien Nocera 2013-07-19 19:22:25 UTC
(In reply to comment #6)
> I think Jasper moved the BT switch functionality to g-s-d now, right?

Nope, only the airplane mode functionality was moved, but moving the code to g-s-d is probably a good idea so that we don't need to replicate it in gnome-control-center and gnome-shell.
Comment 8 Bastien Nocera 2013-11-28 16:45:09 UTC
*** Bug 691730 has been marked as a duplicate of this bug. ***
Comment 9 Bastien Nocera 2013-11-28 16:51:51 UTC
Created attachment 263044 [details] [review]
power: Use g-s-d's rfkill for Bluetooth
Comment 10 Bastien Nocera 2013-12-06 11:04:06 UTC
Attachment 263044 [details] pushed as f020b73 - power: Use g-s-d's rfkill for Bluetooth