Bug 11779 - No way to disable bluetooth
Summary: No way to disable bluetooth
Status: CLOSED OBSOLETE
Alias: None
Product: Drivers
Classification: Unclassified
Component: Bluetooth (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: drivers_bluetooth@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-18 02:55 UTC by Rogério Brito
Modified: 2012-05-22 14:56 UTC (History)
2 users (show)

See Also:
Kernel Version: 2.6.27
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Rogério Brito 2008-10-18 02:55:03 UTC
Distribution: Ubuntu intrepid
Hardware Environment: Notebook Itautec N8320
Software Environment: Ubuntu userland
Problem Description:

(This mail was sent to the linux-bluetooth@vger.kernel.org on the 8th of October no answer was received).

Dear developers,

I got this past july a notebook that has what seems to be a strange way
of dealing with wireless devices: there is a button (which I suspect is
called rfkill) that, when pressed, enables *both* bluetooth and wifi,
with the respective leds being lit.

I don't have any bluetooth device. Saving energy here is paramount as
the battery life is quite short.

According to the manual, under Windows Vista (which is what came with
the box, but which I never used), this button is supposed to cycle
between 4 states:

* both disabled;
* bluetooth enabled & wifi enabled;
* bluetooth disabled & wifi enabled;
* bluetooth enabled & wifi disabled.

Unfortunately, under Linux (tested with Ubuntu's 8.10 pre-releases,
which includes a kernel based on 2.6.27-rc*, if I understand it
correctly), it is all or nothing: both disabled or both enabled.

If I launch powertop, it recommends to disable bluetooth with
"hciconfig hci down; rmmod hci_usb", but the led of bluetooth is still
lit and I fear that the device is still drawing power from the battery. (Actually, it seems that the modules for bluetooth go renamed also).

Is there any way to get it to disable completely the device?

Just as extra information, this is an Itautec Note N8320 notebook, with
a Core 2 Duo T7250 CPU, ICH8 chipset and Intel's 3945abg wifi and a
Realtek GigE driven by r8169 module (which I still have not had the
opportunity to use).

If any further information is desired, please let me know. I can post
the dmesg logs, lspci output, lsusb, as I am really willing to get this
situation settled (and possibly working as on Windows as it was reported
by the support people from the manufacturer).

Again, if any further information is needed, please let me know. I can recompile the kernel to use a vanilla kernel, if needed.


Thanks, Rogério Brito.
Comment 1 Anonymous Emailer 2008-10-20 17:24:36 UTC
Reply-To: akpm@linux-foundation.org


(switched to email.  Please respond via emailed reply-to-all, not via the
bugzilla web interface).

(tap, tap - is this thing turned on?)

On Sat, 18 Oct 2008 02:55:03 -0700 (PDT)
bugme-daemon@bugzilla.kernel.org wrote:

> http://bugzilla.kernel.org/show_bug.cgi?id=11779
> 
>            Summary: No way to disable bluetooth
>            Product: Drivers
>            Version: 2.5
>      KernelVersion: 2.6.27
>           Platform: All
>         OS/Version: Linux
>               Tree: Mainline
>             Status: NEW
>           Severity: normal
>           Priority: P1
>          Component: Bluetooth
>         AssignedTo: drivers_bluetooth@kernel-bugs.osdl.org
>         ReportedBy: rbrito@ime.usp.br
> 
> 
> Distribution: Ubuntu intrepid
> Hardware Environment: Notebook Itautec N8320
> Software Environment: Ubuntu userland
> Problem Description:
> 
> (This mail was sent to the linux-bluetooth@vger.kernel.org on the 8th of
> October no answer was received).
> 
> Dear developers,
> 
> I got this past july a notebook that has what seems to be a strange way
> of dealing with wireless devices: there is a button (which I suspect is
> called rfkill) that, when pressed, enables *both* bluetooth and wifi,
> with the respective leds being lit.
> 
> I don't have any bluetooth device. Saving energy here is paramount as
> the battery life is quite short.
> 
> According to the manual, under Windows Vista (which is what came with
> the box, but which I never used), this button is supposed to cycle
> between 4 states:
> 
> * both disabled;
> * bluetooth enabled & wifi enabled;
> * bluetooth disabled & wifi enabled;
> * bluetooth enabled & wifi disabled.
> 
> Unfortunately, under Linux (tested with Ubuntu's 8.10 pre-releases,
> which includes a kernel based on 2.6.27-rc*, if I understand it
> correctly), it is all or nothing: both disabled or both enabled.
> 
> If I launch powertop, it recommends to disable bluetooth with
> "hciconfig hci down; rmmod hci_usb", but the led of bluetooth is still
> lit and I fear that the device is still drawing power from the battery.
> (Actually, it seems that the modules for bluetooth go renamed also).
> 
> Is there any way to get it to disable completely the device?
> 
> Just as extra information, this is an Itautec Note N8320 notebook, with
> a Core 2 Duo T7250 CPU, ICH8 chipset and Intel's 3945abg wifi and a
> Realtek GigE driven by r8169 module (which I still have not had the
> opportunity to use).
> 
> If any further information is desired, please let me know. I can post
> the dmesg logs, lspci output, lsusb, as I am really willing to get this
> situation settled (and possibly working as on Windows as it was reported
> by the support people from the manufacturer).
> 
> Again, if any further information is needed, please let me know. I can
> recompile the kernel to use a vanilla kernel, if needed.
> 
Comment 2 Anonymous Emailer 2008-10-20 19:08:39 UTC
Reply-To: David.Sainty@dtsp.co.nz

Andrew Morton wrote:
>> http://bugzilla.kernel.org/show_bug.cgi?id=11779
>>
>> According to the manual, under Windows Vista (which is what came with
>> the box, but which I never used), this button is supposed to cycle
>> between 4 states:
>>
>> * both disabled;
>> * bluetooth enabled & wifi enabled;
>> * bluetooth disabled & wifi enabled;
>> * bluetooth enabled & wifi disabled.
>>
>> Unfortunately, under Linux (tested with Ubuntu's 8.10 pre-releases,
>> which includes a kernel based on 2.6.27-rc*, if I understand it
>> correctly), it is all or nothing: both disabled or both enabled.
>>
>> If I launch powertop, it recommends to disable bluetooth with
>> "hciconfig hci down; rmmod hci_usb", but the led of bluetooth is still
>> lit and I fear that the device is still drawing power from the battery.
>> (Actually, it seems that the modules for bluetooth go renamed also).
>>
>>     
If the LED is on, it's obviously drawing at least enough power to light 
the LED :)

>> Is there any way to get it to disable completely the device?
>>
>>     

This is a guess, but probably turning it on and off has nothing to do 
with the bluetooth support, it's probably intended to be powered on and 
off through ACPI or something - it's probably very specific to that 
particular laptop.

However, "hciconfig hci down" should at least minimise any drain the 
device is causing.
Comment 3 Rogério Brito 2008-10-21 00:01:45 UTC
Hi, Andrew, David and others.

On Oct 21 2008, David Sainty wrote:
> Andrew Morton wrote:
> >>http://bugzilla.kernel.org/show_bug.cgi?id=11779
> >>
> >>According to the manual, under Windows Vista (which is what came with
> >>the box, but which I never used), this button is supposed to cycle
> >>between 4 states:
> >>
> >>* both disabled;
> >>* bluetooth enabled & wifi enabled;
> >>* bluetooth disabled & wifi enabled;
> >>* bluetooth enabled & wifi disabled.
> >>
> >>Unfortunately, under Linux (tested with Ubuntu's 8.10 pre-releases,
> >>which includes a kernel based on 2.6.27-rc*, if I understand it
> >>correctly), it is all or nothing: both disabled or both enabled.
> >>
> >>If I launch powertop, it recommends to disable bluetooth with
> >>"hciconfig hci down; rmmod hci_usb", but the led of bluetooth is still
> >>lit and I fear that the device is still drawing power from the battery.
> >>(Actually, it seems that the modules for bluetooth go renamed also).
> >>
> >>    
> If the LED is on, it's obviously drawing at least enough power to light 
> the LED :)

Indeed. :-)

> >>Is there any way to get it to disable completely the device?
>
> This is a guess, but probably turning it on and off has nothing to do 
> with the bluetooth support, it's probably intended to be powered on and 
> off through ACPI or something - it's probably very specific to that 
> particular laptop.

How can we chase this issue? I am willing to cooperate as much as possible,
with as much data that I can to get things straight. It's got an Intel ICH8
chipset here, with a Realtek rt8169-driven wired network. It's battery is
quite short under Linux. :-(

(And it seems that the gnome power indicator is confused when reading data
about the battery, since it sometimes shows the battery as completely
drained when it is actually charged and plugged on the AC outlet).

I really, really don't want to install Windows Vista for use, but I may
install it for debugging/reverse engineering/simulating the behaviour.

> However, "hciconfig hci down" should at least minimise any drain the 
> device is causing.

I may test it latter, but I'm scared. And this is what is preventing me
from using this notebook (as well as bug
http://bugzilla.kernel.org/show_bug.cgi?id=11717).

For this latter one I even provided a *video* of me pressing the power
button and the machine not waking up from suspend. :-( I can't think of
anything else that I can provice, but I'm willing to help here.


Thanks for any help,
Comment 4 Anonymous Emailer 2008-10-21 01:02:18 UTC
Reply-To: David.Sainty@dtsp.co.nz

Rog
Comment 5 Rogério Brito 2008-10-21 01:29:49 UTC
On Oct 21 2008, bugme-daemon@bugzilla.kernel.org wrote:
> http://bugzilla.kernel.org/show_bug.cgi?id=11779
> Rog?rio Brito wrote:
> > I may test it latter, but I'm scared. And this is what is preventing me
> > from using this notebook (as well as bug
> > http://bugzilla.kernel.org/show_bug.cgi?id=11717).
> >
> > For this latter one I even provided a *video* of me pressing the power
> > button and the machine not waking up from suspend. :-( I can't think of
> > anything else that I can provice, but I'm willing to help here.
> 
> It sounds like you have much worse issues with it than whether the 
> bluetooth adapter is drawing idle current - which should be dwarfed by 
> more heavyweight sinks like the WiFi transceiver.

The wifi is working fine (at least, as far as I can see).

> Sorry, I don't have any suggestions - though you could try asking the 
> manufacturer for support.

I can't get past the "first line" of support. :-( But I can generate all
data that is necessary here. Just ask and I will do whatever I can to get
things working smoothly.


Thanks, Rog
Comment 6 Rogério Brito 2008-11-06 11:32:17 UTC
Hi, David.

I have not received any response from you in the last few weeks.

On Oct 21 2008, David Sainty wrote:
> Rog
Comment 7 Rogério Brito 2009-03-20 04:53:10 UTC
Just a ping to let everybody know that I'm still here, ready for testing more stuff.

Now, it seems that the bluetooth side of things got restructured and just a single rmmod doesn't seem to be sufficient.
Comment 8 Rogério Brito 2009-06-09 04:55:33 UTC
Hi.

The notebook that I had this issue on is just back from repair (the DVD drive had died). I can test anything with it again.

Please, just let me know and I will test it.


Regards, Rogério Brito.
Comment 9 Alan 2012-05-22 14:55:54 UTC
Closing as obsolete. If this is still a problem please update versus a modern kernel rev.

Note You need to log in before you can comment on or make changes to this bug.