GNOME Bugzilla – Bug 662384
Connection switches in Bluetooth menu are not functioning
Last modified: 2012-01-24 18:36:19 UTC
I have a Bluetooth device paired with my Laptop (an A2DP sound device). Even when it is connected and active, the Bluetooth menu in gnome-shell shows the connection as "off". Likewise, when the device is not active, trying to activate is using the slider in the menu has no effect.
I guess you have the same problem with the Bluetooth control panel you can open by choosing Bluetooth settings in the menu? How do you activate Bluetooth ? via the hardware switch ?
No, g-c-c always shows the connection status correctly and also allows me to turn on and off. I always have my BT running, I don't use the HW switch.
So that's really a bug in the Shell. Could you try enabling the Bluetooth via the slider in the menu, and then attach here your ~/.xsession-errors file?
I 'm affected too by this bug with an A2DP sound device in Gnome-Shell. I can only manage connection at this device from the bluetooth wizard ; not with the slider in the menu : the slider may move and rest in the two states (connection off or on) but has no effect on the bluetooth connection. Manipulating the slider leaves no entry in my xsession-errors file.
Me too, can't connect to a pair of bluetooth headphones using GS's panel menu. Using g-c-c works as expected and I can connect and disconnect the headphones. The relevant part of .xsession-errors is JS ERROR: !!! Exception in callback for signal: toggled JS ERROR: !!! message = '"menuitem is not defined"' JS ERROR: !!! lineNumber = '230' JS ERROR: !!! fileName = '"/usr/share/gnome-shell/js/ui/status/bluetooth.js"' JS ERROR: !!! stack = '"([object Object],true)@/usr/share/gnome-shell/js/ui/status/bluetooth.js:230 _emit("toggled",true)@/usr/share/gjs-1.0/signals.js:124 ()@/usr/share/gnome-shell/js/ui/popupMenu.js:796 ([object _private_Clutter_Event])@/usr/share/gnome-shell/js/ui/popupMenu.js:788 ([object _private_Shell_GenericContainer],[object _private_Clutter_Event])@/usr/share/gnome-shell/js/ui/popupMenu.js:81 "' This is on Arch Linux - Gnome 3.2.1
Created attachment 203325 [details] [review] Fix bluetooth connection from Gnome Shell's panel on 3.2.1 The error from .xsession-errors is due to an undefined menuitem in js/ui/bluetooth.js:_buildDeviceSubMenu. The simple patch attached fixes it and works on my laptop running Gnome 3.2.1. I am not sure if patches for Gnome 3.2.1 are welcomed, but I though that this simple one won't kill a cat and hence I uploaded it. Can anybody experiencing this problem try it on Gnome 3.2.1? Please note that js/ui/bluetooth.js as of master already does the right thing and should work :)
Still getting the same bug, using gnome-shell 3.2.2 Same output as before, almost: JS ERROR: !!! Exception in callback for signal: toggled JS ERROR: !!! message = '"menuitem is not defined"' JS ERROR: !!! lineNumber = '213' JS ERROR: !!! fileName = '"/usr/share/gnome-shell/js/ui/status/bluetooth.js"' JS ERROR: !!! stack = '"([object Object],true)@/usr/share/gnome-shell/js/ui/status/bluetooth.js:213 _emit("toggled",true)@/usr/share/gjs-1.0/signals.js:124 ()@/usr/share/gnome-shell/js/ui/popupMenu.js:796 ([object _private_Clutter_Event])@/usr/share/gnome-shell/js/ui/popupMenu.js:788 ([object _private_Shell_GenericContainer],[object _private_Clutter_Event])@/usr/share/gnome-shell/js/ui/popupMenu.js:81 Archlinux - Gnome 3.2.2
It wasn't fixed in 3.2.2. Try using the simple patch in the previous comment, it should work. I patched the file manually after having updated Gnome Shell and I have a working bluetooth menu in the panel, it is a matter of editing /usr/share/gnome-shell/js/ui/status/bluetooth.js and changing one line.
Have you tried committing it in the source code and not only here in the Bugzilla?
The patch is in git, it just wasn't backported for 3.2.2.
Fixed in git master - would have backported to 3.2.2 if I had noticed the proposal, but at this point I'm not expecting to do a 3.2.3 *** This bug has been marked as a duplicate of bug 663891 ***