Bluetooth ON/OFF button switches OFF automatically
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | OEM Priority Project |
High
|
Unassigned | ||
| | One Hundred Papercuts |
Medium
|
Unassigned | ||
| | gnome-control-center (Ubuntu) |
Medium
|
Unassigned | ||
| | Trusty |
Medium
|
Unassigned | ||
| | unity-control-center (Ubuntu) |
Medium
|
Unassigned | ||
| | Trusty |
Medium
|
Bin Li | ||
Bug Description
[Impact]
* On trusty, we met this issue, you can't turn on/off bluetooth, it affected the other OEM project which needed by Lenovo, HP and Dell.
[Test Case]
* open the unity-control-
I am on ThinkPad T61 with Ubuntu 13.10 installed. I disabled bluetooth on startup by adding:
"echo disable > /proc/acpi/
to /etc/rc.local. When I open gnome-control-
[ 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-
ProcVersionSign
Uname: Linux 3.11.0-12-generic x86_64
NonfreeKernelMo
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_
LANG=en_GB.UTF-8
SHELL=/bin/bash
SourcePackage: gnome-control-
UpgradeStatus: No upgrade log present (probably fresh install)
usr_lib_
activity-
deja-dup 27.3.1-0ubuntu1
gnome-
gnome-
gnome-
[Regression Potential]
* The patch was already accepted in lp:unity-control-center, just cherry picked into trusty, so no potential regression.
Related branches
- Lars Karlitski (community): Approve on 2015-04-09
- Sebastien Bacher: Approve on 2015-04-09
- Mathieu Trudel-Lapierre: Abstain on 2015-04-08
-
Diff: 72 lines (+19/-0)1 file modifiedpanels/bluetooth/cc-bluetooth-panel.c (+19/-0)
- Sebastien Bacher: Approve on 2015-09-16
-
Diff: 87 lines (+26/-0)2 files modifieddebian/changelog (+7/-0)
panels/bluetooth/cc-bluetooth-panel.c (+19/-0)
| alkamid (adamkli) wrote : | #1 |
| Launchpad Janitor (janitor) wrote : | #2 |
| Changed in gnome-control-center (Ubuntu): | |
| status: | New → Confirmed |
| Sergio Benjamim (sergio-br2) wrote : | #3 |
There is a workaround for this:
sudo rfkill unblock bluetooth
| tags: | added: trusty |
| Changed in gnome-control-center (Ubuntu): | |
| importance: | Undecided → Medium |
| Changed in hundredpapercuts: | |
| importance: | Undecided → Medium |
| status: | New → Confirmed |
I'm seeing this bug on Ubuntu GNOME 13.10
| Chris Kankiewicz (phlak) wrote : | #5 |
This bug is also present in Ubuntu 14.04 as of 2014-03-27.
| Corasol (corasol) wrote : | #6 |
Same problem on a Thinkpad X230 running Ubuntu 14.04. This bug was not present on 13.10.
| Joris Claassen (jorisc90) wrote : | #7 |
Happens on a Thinkpad T440s running Ubuntu Gnome 14.10.
| Yu Ning (yuningdodo) wrote : | #8 |
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.
| Yu Ning (yuningdodo) wrote : | #9 |
forgot to mention the patch is for u-c-c, and I only have it tested on the trusty branch: lp:unity-control-center/14.04
| Launchpad Janitor (janitor) wrote : | #10 |
Status changed to 'Confirmed' because the bug affects multiple users.
| Changed in unity-control-center (Ubuntu): | |
| status: | New → Confirmed |
The attachment "block-
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]
| tags: | added: patch |
| GH (chili-g) wrote : | #12 |
vivid 15.04 Beta 2 has same bug on lenovo t450s.
The "sudo rfkill unblock bluetooth" workaround seems to work.
| Yu Ning (yuningdodo) wrote : | #13 |
Hi guys, I have converted my patch (comment #8) to a merge proposal, could anyone help review it? Thanks in advance.
| Sebastien Bacher (seb128) wrote : | #14 |
do you know if that's an issue impacting upstream as well and if it could be sent to GNOME for gnome-control-
| Yu Ning (yuningdodo) wrote : | #15 |
Let me install a gnome desktop and have a try. Will update later.
| Yu Ning (yuningdodo) wrote : | #16 |
I installed gnome desktop on ubuntu trusty, and can also reproduce the issue in gnome-control-
The package version is:
gnome-control-
$ gnome-control-
gnome-control-
| Yu Ning (yuningdodo) wrote : | #17 |
I'll also try with latest upstream version.
| Yu Ning (yuningdodo) wrote : | #18 |
The issue is also reproduced in ubuntu gnome daily image [1], the package version is 1:3.14.2-2ubuntu3
[1]: http://
| Yu Ning (yuningdodo) wrote : | #19 |
Tested with gnome live [1], the issue is not reproduced, the g-c-c version is 3.16.0.
I also checked the source code [2], looks like the issue is already fixed via a redesign [3]. The upstream tracker for the redesign is https:/
[1]: https:/
[2]: https:/
[3]: https:/
| Sebastien Bacher (seb128) wrote : | #20 |
@Yu, thanks for testing with the newest version, did the redesign address it the same was as you did or differently? In any case should be fine to use your change
| Yu Ning (yuningdodo) wrote : | #21 |
@Sebastien, I just made a quick check for the redesigned code, yes, it does similar blocking&unblocking on power_callback(), that is also what my patch does.
| Launchpad Janitor (janitor) wrote : | #22 |
This bug was fixed in the package unity-control-
---------------
unity-control-
[ Yu Ning ]
* Block power callback unless it's triggered by the user. (LP:
#1248720)
-- CI Train Bot <email address hidden> Fri, 10 Apr 2015 14:09:49 +0000
| Changed in unity-control-center (Ubuntu): | |
| status: | Confirmed → Fix Released |
| Nara Huang (narahuang) wrote : | #23 |
I could also reproduce this issue on 14.04.2,
unity-control-
| affects: | gnome-control-center → oem-priority |
| Bin Li (binli) wrote : | #24 |
@seb128,
Could we also put this patch into trusty? Thanks!
| Changed in oem-priority: | |
| importance: | Undecided → High |
| Sebastien Bacher (seb128) wrote : | #25 |
@Bin, yes that should be fine, can you update the bug to be SRU compliant (impact/test case/regression potential statements, see https:/
Note that I'm on holidays starting today so you might want to subscribe sponsors or ask on #ubuntu-desktop for sponsoring once it's ready for review
| Bin Li (binli) wrote : | #26 |
@seb128,
Sorry for late, I've requested a merge request, thanks for your time!
| description: | updated |
| Changed in unity-control-center (Ubuntu Trusty): | |
| assignee: | nobody → Bin Li (binli) |
| status: | New → In Progress |
| Will Cooke (willcooke) wrote : | #27 |
Hi Bin, we still need the standard info as per comment #25. We can sponsor the update but it will be rejected without the information requested. Let us know once that's done and we will move it forward on our side.
| Bin Li (binli) wrote : | #28 |
@Will,
I have updated the description before, but not obviously, I re-updated again, is it ok? :)
And the source code was already approved now.
Thanks a lot!
| description: | updated |
| Sebastien Bacher (seb128) wrote : | #29 |
thanks, I've sponsored the SRU, it's waiting for review next
| Launchpad Janitor (janitor) wrote : | #30 |
Status changed to 'Confirmed' because the bug affects multiple users.
| Changed in gnome-control-center (Ubuntu Trusty): | |
| status: | New → Confirmed |
| Changed in gnome-control-center (Ubuntu): | |
| status: | Confirmed → New |
| Changed in gnome-control-center (Ubuntu): | |
| status: | New → Confirmed |
| Changed in gnome-control-center (Ubuntu): | |
| status: | Confirmed → New |
| Changed in unity-control-center (Ubuntu Trusty): | |
| status: | In Progress → Fix Committed |
Hello alkamid, or anyone else affected,
Accepted unity-control-
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-
Further information regarding the verification process can be found at https:/
| tags: | added: verification-needed |
| Changed in gnome-control-center (Ubuntu Trusty): | |
| importance: | Undecided → Medium |
| Changed in unity-control-center (Ubuntu): | |
| importance: | Undecided → Medium |
| Changed in unity-control-center (Ubuntu Trusty): | |
| importance: | Undecided → Medium |
| Rohan "HEXcube" Villoth (hexcube) wrote : | #33 |
Tried to reproduce the error on my Dell M15 with Broadcom 4313 wireless card, but I couldn't. It seems the bug only affects Thinkpad notebooks. I tried to force the bug anyway but couldn't find an equivalent of /proc/acpi/
| Bin Li (binli) wrote : | #34 |
I've installed the new package from trusty-proposed, the version is 20150916-0ubuntu1.
| tags: |
added: verification-done removed: verification-needed |
| Launchpad Janitor (janitor) wrote : | #35 |
This bug was fixed in the package unity-control-
---------------
unity-control-
[ Ning Yu ]
* Block power callback unless it's triggered by the user.(LP: #1248720)
[ CI Train Bot ]
* No-change rebuild.
-- Sebastien Bacher <email address hidden> Wed, 16 Sep 2015 09:33:42 +0000
| Changed in unity-control-center (Ubuntu Trusty): | |
| status: | Fix Committed → Fix Released |
| Chris J Arges (arges) wrote : Update Released | #36 |
The verification of the Stable Release Update for unity-control-
| Changed in oem-priority: | |
| status: | New → Fix Released |
| Launchpad Janitor (janitor) wrote : | #37 |
Status changed to 'Confirmed' because the bug affects multiple users.
| Changed in gnome-control-center (Ubuntu): | |
| status: | New → Confirmed |


Status changed to 'Confirmed' because the bug affects multiple users.