You are not logged in.

#1 2011-01-24 20:22:35

bagheera
Member
Registered: 2009-06-13
Posts: 84

bluetooth hci0 soft blocked if not turned on before arch boot

Hi, i have problem with arch and bluetooth on msi wind u100. I have installed bluez package. dbus, hal, bluetooth daemons are running. If i switch bt module on before arch boot, it's being detected and it is working fine with KDE bluedevil. Remote devices are detected, i can transfer files, etc. I can switch bt off and on by pressing fn+f11 combination. And it's still ok.
BUT if bluetooth function is OFF during boot time, and i turn in on later, in no way bluedevil can detect the adapter.
Restarting dbus, hal, bluetooth daemons is not helping.

logs:
when i turn bt off

Jan 24 21:13:37 msi kernel: usb 5-1: USB disconnect, address 3
Jan 24 21:13:37 msi bluetoothd[3893]: HCI dev 0 unregistered
Jan 24 21:13:37 msi bluetoothd[3893]: Stopping hci0 event socket

when i turn bt back on

Jan 24 21:15:57 msi kernel: usb 5-1: new full speed USB device using uhci_hcd and address 5
Jan 24 21:15:57 msi bluetoothd[3893]: HCI dev 0 registered
Jan 24 21:15:57 msi bluetoothd[3893]: Listening for HCI events on hci0
[bagheera@msi ~]hciconfig dev
hci0:   Type: BR/EDR  Bus: USB
        BD Address: 00:00:00:00:00:00  ACL MTU: 0:0  SCO MTU: 0:0
        DOWN 
        RX bytes:0 acl:0 sco:0 events:0 errors:0
        TX bytes:0 acl:0 sco:0 commands:0 errors:0

IF BT IS ON BEFORE ARCH BOOT

[bagheera@msi ~]$ hciconfig dev
hci0:   Type: BR/EDR  Bus: USB
        BD Address: 00:21:85:B1:DA:AC  ACL MTU: 310:10  SCO MTU: 64:8
        UP RUNNING PSCAN ISCAN 
        RX bytes:673 acl:0 sco:0 events:23 errors:0
        TX bytes:349 acl:0 sco:0 commands:23 errors:0

So it seems to be not detected properly, so i typed:

[bagheera@msi ~]$ sudo hciconfig hci0 reset
Can't init device hci0: Operation not possible due to RF-kill (132)

hmm, let's c what rfkill says:

[bagheera@msi ~]$ rfkill list
0: hci0: Bluetooth
        Soft blocked: yes
        Hard blocked: no

soft blocked?

[bagheera@msi ~]$ sudo rfkill unblock bluetooth
[bagheera@msi ~]$ rfkill list
0: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no
[bagheera@msi ~]$ sudo hciconfig hci0 reset
[bagheera@msi ~]$ hciconfig dev
hci0:   Type: BR/EDR  Bus: USB
        BD Address: 00:21:85:B1:DA:AC  ACL MTU: 310:10  SCO MTU: 64:8
        UP RUNNING PSCAN ISCAN 
        RX bytes:673 acl:0 sco:0 events:23 errors:0
        TX bytes:349 acl:0 sco:0 commands:23 errors:0

Why it is being soft blocked?

I made a little workaround for that and made sh script in /usr/local/bin with:

rfkill unblock bluetooth
hciconfig hci0 reset

Last edited by bagheera (2011-01-24 21:54:39)


arch linux user

Offline

Board footer

Powered by FluxBB