LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   kernel will not allow authentication with bluetooth mouse (http://www.linuxquestions.org/questions/linux-software-2/kernel-will-not-allow-authentication-with-bluetooth-mouse-836013/)

page_seven 10-03-2010 11:30 PM

kernel will not allow authentication with bluetooth mouse
 
I have bluetoothd, hidd, and bluez-simple-agent running. I click my mouse, and bluez-simple-agent never asks to authenticate or for a PIN. Before, bluez was working for me. It broke when I paired my mouse to a LiveCD session of Ubuntu Lucid Lynx.

using bluez 4.71

This is what shows up in syslog:

Code:

Oct  3 20:15:32 lo bluetoothd[10063]: link_key_request (sba=XX:XX:XX:XX:XX:XX, dba=XX:XX:XX:XX:XX:XX)
Oct  3 20:15:32 lo bluetoothd[10063]: src/security.c:link_key_request() kernel auth requirements = 0x04
Oct  3 20:15:32 lo bluetoothd[10063]: src/security.c:link_key_request() link key type = 0x00

Edit: here is what comes back when I enter 'hidd --connect XX:XX:XX:XX:XX:XX' where XX:XX... = my mouse address
Code:

Can't create HID control channel: Connection refused
And here is hcidump -V
Code:

HCI sniffer - Bluetooth packet analyzer ver 1.42
device: hci0 snap_len: 1028 filter: 0xffffffffffffffff
> HCI Event: Connect Request (0x04) plen 10
    bdaddr XX:XX:XX:XX:XX:XX class 0x002580 type ACL
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
    bdaddr XX:XX:XX:XX:XX:XX role 0x00
    Role: Master
> HCI Event: Command Status (0x0f) plen 4
    Accept Connection Request (0x01|0x0009) status 0x00 ncmd 1
> HCI Event: Role Change (0x12) plen 8
    status 0x00 bdaddr XX:XX:XX:XX:XX:XX role 0x00
    Role: Master
> HCI Event: Connect Complete (0x03) plen 11
    status 0x00 handle 46 bdaddr XX:XX:XX:XX:XX:XX type ACL encrypt 0x00
< HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2
    handle 46
> HCI Event: Page Scan Repetition Mode Change (0x20) plen 7
    bdaddr XX:XX:XX:XX:XX:XX mode 1
> HCI Event: Command Status (0x0f) plen 4
    Read Remote Supported Features (0x01|0x001b) status 0x00 ncmd 1
< HCI Command: Remote Name Request (0x01|0x0019) plen 10
    bdaddr XX:XX:XX:XX:XX:XX mode 2 clkoffset 0x0000
> HCI Event: Link Key Request (0x17) plen 6
    bdaddr XX:XX:XX:XX:XX:XX
> HCI Event: Read Remote Supported Features (0x0b) plen 11
    status 0x00 handle 46
    Features: 0xbc 0x02 0x04 0x38 0x08 0x00 0x00 0x00
> HCI Event: Command Status (0x0f) plen 4
    Remote Name Request (0x01|0x0019) status 0x00 ncmd 1
< HCI Command: Link Key Request Reply (0x01|0x000b) plen 22
    bdaddr XX:XX:XX:XX:XX:XX key CE6E607B2145D3EEDFD6C998EBC78107
> HCI Event: Command Complete (0x0e) plen 10
    Link Key Request Reply (0x01|0x000b) ncmd 1
    status 0x00 bdaddr XX:XX:XX:XX:XX:XX
> HCI Event: Remote Name Req Complete (0x07) plen 255
    status 0x00 bdaddr XX:XX:XX:XX:XX:XX name '<name>'s mouse'
> HCI Event: Disconn Complete (0x05) plen 4
    status 0x00 handle 46 reason 0x05
    Reason: Authentication Failure

I do not wish to use bluez-gnome-applet, etc. to try to fix this.

taxtropel 10-04-2010 04:31 PM

did you try reseting the mouse? or taking the batteries out for a bit first?

page_seven 10-04-2010 11:30 PM

I left the batteries out for ~10 min. No difference when I put them back in, same messages.

page_seven 10-05-2010 01:54 PM

downgraded to bluez-4.70, now it works


All times are GMT -5. The time now is 05:29 PM.