dx-packages team mailing list archive
-
dx-packages team
-
Mailing list archive
-
Message #06054
[Bug 1126108] Re: Indicator disappears entirely when disabling / turning off bluetooth
@charlemagne86 The patch in #13 is for an older version of indicator-
bluetooth, the latest code is quite different so the patch will not
work.
I have been looking in the code and the newly added 'supported' option
would work and thought I would update the ticket to show that it is
possible with simple changes.
=== modified file 'src/bluez.vala'
void on_default_adapter_changed (string? object_path)
{
clear_adapter ();
+ supported = object_path != null;
=== modified file 'src/desktop.vala'
- visible = bluetooth.enabled && settings.get_boolean("visible");
+ visible = (bluetooth.enabled || bluetooth.supported) && settings.get_boolean("visible");
However this uncovers a bug whereby turning bluetooth on/off from
indicator or settings works only once then fails on further attempts and
stays off with only a restart of the bluetooth service fixing the issue.
The requirement that hiding the indicator when no adaptor is physically
available is also possible but need to do a bit more testing as the
above issue confused things.
--
You received this bug notification because you are a member of DX
Packages, which is subscribed to indicator-bluetooth in Ubuntu.
https://bugs.launchpad.net/bugs/1126108
Title:
Indicator disappears entirely when disabling / turning off bluetooth
Status in “indicator-bluetooth” package in Ubuntu:
Confirmed
Bug description:
Bug 1116289 made the BT indicator disappear when there is no hardware.
However, with that version I now also have it disappear when my
existing BT hardware is merely disabled. I. e. I disable BT from the
indicator, then it disappears, leaving me no obvious method to turn it
back on again. I can re-enabble it in control-center, and then the
indicator comes back.
I think when it sees no actual BT hardware it ought to check rfkill
whether there is disabled BT hardware:
$ grep -r . /sys/class/rfkill/rfkill0/{type,state,soft,persistent}
/sys/class/rfkill/rfkill0/type:bluetooth
/sys/class/rfkill/rfkill0/state:1
/sys/class/rfkill/rfkill0/soft:0
/sys/class/rfkill/rfkill0/persistent:1
After disabling BT from the indicator, "soft" changes to 1:
$ grep -r . /sys/class/rfkill/rfkill0/{type,state,soft,persistent}
/sys/class/rfkill/rfkill0/type:bluetooth
/sys/class/rfkill/rfkill0/state:0
/sys/class/rfkill/rfkill0/soft:1
/sys/class/rfkill/rfkill0/persistent:1
ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: indicator-bluetooth 0.0.6-0ubuntu1
ProcVersionSignature: Ubuntu 3.8.0-6.13-generic 3.8.0-rc7
Uname: Linux 3.8.0-6-generic x86_64
ApportVersion: 2.8-0ubuntu4
Architecture: amd64
Date: Fri Feb 15 12:08:26 2013
EcryptfsInUse: Yes
InstallationDate: Installed on 2013-02-08 (7 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Alpha amd64 (20130207.1)
MarkForUpload: True
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=de_DE.UTF-8
SHELL=/bin/bash
SourcePackage: indicator-bluetooth
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/indicator-bluetooth/+bug/1126108/+subscriptions