Bluetooth works only when I am connected to internet by cable (RJ45) or by WiFi.

I have installed OpenSUSE with KDE and Bluetooth works only when I am connected to internet by cable (RJ45) or by WiFi. The bluetooth icon dosen’t appear at all when I am not connected to internet. Then when I got conected the bluetooth icon appears.

I have tested it with GNOME and the bluetooth icon appears but it is disabled until I got connected to internet by cable or WiFi.

Why is this happening and how can I solve it. Please help.

On Thu, 12 Jul 2012 04:16:02 +0000, robertohanus wrote:

> Why is this happening and how can I solve it. Please help.

Please tell us about your hardware and the version of openSUSE that
you’re using. Without that information, we’re “shooting in the dark”
guessing what might be wrong.

Jim

Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

I have this problem with OpenSUSE 12.1, I haven’t tested what happend with earlier versions of OpenSUSE.

The computer is:
Notebook PC HP 430

Network adapter:
Atheros AR9285 802.11b/g/n WiFi Adapter
Atheros AR3011 Bluetooth 3.0 + HS Adapter

To know my network adapter I have used Windows 7. I don’t know how to see my network adapter in OpenSUSE.

If you need more information please reply.

Thanks a lot.

Maybe the solution is to install an earlier version of OpenSUSE. Please tell me what version do you recomend me.

Hi
What’s the output from the commad;


rfkill

You might need to install rfkill. The bluetooth might be softblocked,
or do you have a Fn+Function key to enable or hardware switch.


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 3.0.34-0.7-default
up 2 days 17:34, 4 users, load average: 0.21, 0.40, 0.45
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

First I try “rfkill” command and didn’t work because rfkill wasn’t istalled.
Then I did “zypper install rfkill”. That installed rfkill on my system.

when i do “rfkill list” I got the next output:

linux-wkrt:/home/gooduser # rfkill list
0: hp-wifi: Wireless LAN
Soft blocked: no
Hard blocked: no
1: hp-bluetooth: Bluetooth
Soft blocked: no
Hard blocked: no
2: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
3: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no

I have ascertain that Fn+Funcion key is enabled and that is confirmed by the “rfkill list” output when it says “Hard blocked: no”

The output of the command “hciconfig” is:

linux-wkrt:/home/gooduser # hciconfig
hci0: Type: BR/EDR Bus: USB
BD Address: 74:DE:2B:F2:93:ED ACL MTU: 1022:8 SCO MTU: 121:3
DOWN
RX bytes:164249 acl:10601 sco:0 events:255 errors:0
TX bytes:1209 acl:12 sco:0 commands:56 errors:0

Then I do “hciconfig hci0 up”, next I do “hciconfig” and get this output:

linux-wkrt:/home/gooduser # hciconfig
hci0: Type: BR/EDR Bus: USB
BD Address: 74:DE:2B:F2:93:ED ACL MTU: 1022:8 SCO MTU: 121:3
UP RUNNING
RX bytes:64073 acl:4019 sco:0 events:209 errors:0
TX bytes:1542 acl:24 sco:0 commands:68 errors:0

when I do “hcitool scan” I have to press my bluetooth mouse connect button and I get the next output:

linux-wkrt:/home/gooduser # hcitool scan
Scanning …
00:C0:DF:00:31:A8 M. Traveler 900BT

When I do “hcitool cc --role=s 00:C0:DF:00:31:A8” I got the next output:

linux-wkrt:/home/gooduser # hcitool cc --role=s 00:C0:DF:00:31:A8
Can’t create connection: Input/output error

After all this I can’t get my buetooth mouse to work, and bluetooth options are disabled when I click on bluetooth icon.

Then I get connected to internet by cable or WiFi and option of the bluetooth icon appears and my buetooth mouse start to work.

The thing is what I am going to do when I need to use my notebook in a place without internet connection.

But sudently when everything was lost I noticed something!!!

When I get connected to internet and my bluetooth mouse starts to work and I do command “hciconfig” I get next output:

linux-wkrt:/home/gooduser # hciconfig
hci0: Type: BR/EDR Bus: USB
BD Address: 74:DE:2B:F2:93:ED ACL MTU: 1022:8 SCO MTU: 121:3
UP RUNNING PSCAN
RX bytes:57454 acl:3589 sco:0 events:173 errors:0
TX bytes:1267 acl:13 sco:0 commands:62 errors:0

If you compare this output of hciconfig with the output I got before you can see that it says “UP RUNNING” but not “PSCAN”

And finally this is the solution:

Disable Internet conection and reboot the system.
Then do the next commands:
hciconfig hci0 up
hciconfig hci0 pscan

and with this you can activate bluetooth without an active internet connection.

The only thing to do is to include this last two commands in a initialization file.

we can edit /etc/init.d/boot.local and include:
hciconfig hci0 up
hciconfig hci0 pscan

with this we can activate bluetooth functions regardless if you are conected or not to internet.

If you have any comment just make a reply.

Thank a lot for your suggestions. The rfkill comment was very important for me to start to find a solution. Without your help I will never would find the solution.

Thanks a lot.