You are not logged in.

#1 2010-05-19 00:12:48

SiegeMachine
Member
Registered: 2009-03-26
Posts: 157

Bluetooth issues

I noticed that in the wireless page for laptops that if the wireless adapter is turned off in windows that the card is then off when you boot into linux. This seems to be the issue I'm having with my bluetooth though.  If bluetooth is turned off in windows to preserve laptop battary life then when I boot into Linux it doesn't detect that I have a bluetooth card though I know its there.  Is there a way to force turn on the bluetooth adaptor using the command line or do I have to boot into windows everytime and start bluetooth again because I forgot to turn it back on last time?

Offline

#2 2010-05-19 00:30:24

demian
Member
From: Frankfurt, Germany
Registered: 2009-05-06
Posts: 709

Re: Bluetooth issues

Usually there's a control file.
For instance, on a thinkpad, there's /proc/acpi/ibm/bluetooth and /sys/devices/platform/thinkpad_acpi/bluetooth_enable.
I'm guessing that windows blocks the wireless extensions of the device(s) so that you'd have to use something like this in your /etc/rc.local:

bt=/sys/devices/platform/thinkpad_acpi/bluetooth_enable
([ $(cat $bt) = 0 ] && rfkill unblock bluetooth && echo 1 > $bt) &

Last edited by demian (2010-05-19 00:31:28)


no place like /home
github

Offline

#3 2010-05-19 01:07:10

SiegeMachine
Member
Registered: 2009-03-26
Posts: 157

Re: Bluetooth issues

Well I found a

/sys/devices/pci0000\:00/0000\:00\:1a.0/usb1/1-1/1-1.1/1-1.1.3/1-1.1.3\:1.0/bluetooth/hci0/

which contains a few files such as

address  features      idle_timeout   name     sniff_max_interval  type
class    hci_revision  inquiry_cache  power    sniff_min_interval  uevent
device   hci_version   manufacturer   rfkill0  subsystem

but there isn't something quite like you have

Offline

#4 2010-05-19 01:08:49

SiegeMachine
Member
Registered: 2009-03-26
Posts: 157

Re: Bluetooth issues

Also, being a laptop and being battary conscious I have Powertop which shows

hciconfig hci0 down ; rmmod hci_usb

I'm wondering if 'down' can be replaced with 'up'  to enable it when its been shut down by windows?

Offline

#5 2010-05-19 01:10:45

SiegeMachine
Member
Registered: 2009-03-26
Posts: 157

Re: Bluetooth issues

Well using blueman-applet I can turn the adaptor on and off within Linux but that is only if the adaptor is on from the windows side in the first place.  So my issue is that I can't use my usb mouse because blueman-applet wont show up if the  card is actually off from the windows side and I have no way of enabling it from linux.

Offline

#6 2010-05-19 05:22:36

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,354

Re: Bluetooth issues

Check out rfkill, I think it does the same thing and can reverse what's been done.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#7 2010-05-21 19:49:33

SiegeMachine
Member
Registered: 2009-03-26
Posts: 157

Re: Bluetooth issues

rfkill doesn't show the bluetooth adaptor built into my laptop when it is turned off in windows which is why blueman-applet doesn't show up because linux isn't detecting a bluetooth device. If I have bluetooth on in windows but turned off in linux then rfkill detects the adaptor.

Last edited by SiegeMachine (2010-05-21 19:49:54)

Offline

Board footer

Powered by FluxBB