← Back to team overview

desktop-packages team mailing list archive

[Bug 1248720] Re: Bluetooth ON/OFF button switches OFF automatically

 

The issue can also be reproduced on my 14.04, by adding some prints in
the source code I found it's cause by a logic trap:

1. we click the switch in the u-c-c bt panel to turn on the bt
2. in the widget's "notify::active" callback it set the BT state to unblocked
3. the BT "state-changed" callback is triggered with {state: unblocked, powered: off}, in this callback it will update the UI
4. in such a case step 2 is triggered again but this time it set the BT state to blocked.

So after a long repetition the final status is BT is turned off again.
Actually I'm wondering if it will run into an endless dead loop under
special condition.

Anyway in my side I could fix, or maybe only workaround, the issue with
the attached patch, it will temporarily block the widget's
"notify::active" callback in the bt killswitch callbacks, so we won't
run into step 2 after step 3.

** Patch added: "block-power-callback-unless-its-triggered-by-user.patch"
   https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/1248720/+attachment/4306992/+files/block-power-callback-unless-its-triggered-by-user.patch

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-control-center in Ubuntu.
https://bugs.launchpad.net/bugs/1248720

Title:
  Bluetooth ON/OFF button switches OFF automatically

Status in One Hundred Papercuts:
  Confirmed
Status in gnome-control-center package in Ubuntu:
  Confirmed
Status in unity-control-center package in Ubuntu:
  New

Bug description:
  I am on ThinkPad T61 with Ubuntu 13.10 installed. I disabled bluetooth
  on startup by adding:

  "echo disable > /proc/acpi/ibm/bluetooth"

  to /etc/rc.local. When I open gnome-control-center -> Bluetooth and
  click on the "ON/OFF" switch button, it switches on for a fraction of
  a second and then switches back to off. Below are dmesg lines
  corresponding to this event:

  [   94.028110] usb 3-1: new full-speed USB device number 5 using uhci_hcd
  [   94.194320] usb 3-1: New USB device found, idVendor=0a5c, idProduct=2110
  [   94.194325] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
  [   94.194328] usb 3-1: Product: BCM2045B
  [   94.194330] usb 3-1: Manufacturer: Broadcom Corp
  [   94.388169] usb 3-1: USB disconnect, device number 5

  
  The workaround is to type "turn connectivity on/off" combination of my keyboard (FN+F5) -- then both wireless and bluetooth go off, and when I type it again, bluetooth comes back ON.

  ProblemType: Bug
  DistroRelease: Ubuntu 13.10
  Package: gnome-control-center 1:3.6.3-0ubuntu45
  ProcVersionSignature: Ubuntu 3.11.0-12.19-generic 3.11.3
  Uname: Linux 3.11.0-12-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 2.12.5-0ubuntu2.1
  Architecture: amd64
  Date: Wed Nov  6 20:41:45 2013
  EcryptfsInUse: Yes
  InstallationDate: Installed on 2013-10-18 (19 days ago)
  InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
  MarkForUpload: True
  ProcEnviron:
   LANGUAGE=en_GB:en
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_GB.UTF-8
   SHELL=/bin/bash
  SourcePackage: gnome-control-center
  UpgradeStatus: No upgrade log present (probably fresh install)
  usr_lib_gnome-control-center:
   activity-log-manager          0.9.7-0ubuntu4
   deja-dup                      27.3.1-0ubuntu1
   gnome-control-center-datetime 13.10.0+13.10.20131023.2-0ubuntu1
   gnome-control-center-signon   0.1.7~+13.10.20130724.1-0ubuntu1
   gnome-control-center-unity    1.3+13.10.20131004-0ubuntu1

To manage notifications about this bug go to:
https://bugs.launchpad.net/hundredpapercuts/+bug/1248720/+subscriptions