Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Aug 2016 07:27:42 +0200
From:      David Demelier <demelier.david@gmail.com>
To:        freebsd-bluetooth@freebsd.org
Subject:   Can not get logitech m535 to work properly
Message-ID:  <CAO%2BPfDc7eGavoNEYAn2KM7VGFXuVv10CL4w-XN3r-EBCVNYw2g@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hello,

I've bought a new bluetooth mouse to replace my old logitech v470
which is dying.

It's a logitech m535 very close to the old one, but I can't get it to work.

I've done exactly the same steps.

1. search it

I press the discovery mode of the bluetooth mouse and run:

# hccontrol inquiry
Inquiry result, num_responses=1
Inquiry result #0
        BD_ADDR: 00:1f:20:f7:97:dd
        Page Scan Rep. Mode: 0x1
        Page Scan Period Mode: 00
        Page Scan Mode: 00
        Class: 00:25:80
        Clock offset: 0x43e2
Inquiry complete. Status: No error [00]

2. add an entry into the /etc/bluetooth/hcsecd.conf

(beginning of the file unchanged, appended this to it)

device {
        bdaddr  00:1f:20:f7:97:dd;
        name    "Logitech M535";
        key     nokey;
        pin     nopin;
}

Restart the service:

# service hcsecd restart (the mouse is still blinking fast)

3. connect the bthidd to it

# bthidcontrol -a 00:1f:20:f7:97:dd query > /etc/bluetooth/bthidd.conf
# bthidcontrol -a 00:1f:20:f7:97:dd known
# service bthidd restart

Now the mouse is still blinking and can not get it to work. Put the
mouse off and restart and doing some bthidcontrol -a query can get it
to work sometimes but it does not reconnect at all.

If I shut the mouse off and on it blinks again, but slower than the
discovery mode. I've also tried to use "0000" pin with not more luck.

Sometimes the bthidcontrol query emits this error:

Could not perform SDP query on the device 00:1f:20:f7:97:dd. File exists (17)

This is the output of /etc/bluetooth/bthidd.conf

device {
        bdaddr                  00:1f:20:f7:97:dd;
        control_psm             0x11;
        interrupt_psm           0x13;
        reconnect_initiate      true;
        battery_power           true;
        normally_connectable    false;
        hid_descriptor          {
                0x05 0x01 0x09 0x02 0xa1 0x01 0x85 0x02
                0x09 0x01 0xa1 0x00 0x05 0x09 0x19 0x01
                0x29 0x08 0x15 0x00 0x25 0x01 0x75 0x01
                0x95 0x08 0x81 0x02 0x05 0x01 0x09 0x30
                0x09 0x31 0x16 0x01 0xf8 0x26 0xff 0x07
                0x75 0x0c 0x95 0x02 0x81 0x06 0x09 0x38
                0x15 0x81 0x25 0x7f 0x75 0x08 0x95 0x01
                0x81 0x06 0x05 0x0c 0x0a 0x38 0x02 0x75
                0x08 0x95 0x01 0x81 0x06 0xc0 0xc0 0x05
                0x0c 0x09 0x01 0xa1 0x01 0x85 0x03 0x05
                0x06 0x09 0x20 0x15 0x00 0x26 0x64 0x00
                0x75 0x08 0x95 0x01 0x81 0x02 0xc0 0x06
                0x00 0xff 0x09 0x01 0xa1 0x01 0x85 0x10
                0x75 0x08 0x95 0x06 0x15 0x00 0x26 0xff
                0x00 0x09 0x01 0x81 0x00 0x09 0x01 0x91
                0x00 0xc0 0x06 0x00 0xff 0x09 0x02 0xa1
                0x01 0x85 0x11 0x75 0x08 0x95 0x13 0x15
                0x00 0x26 0xff 0x00 0x09 0x02 0x81 0x00
                0x09 0x02 0x91 0x00 0xc0 0x05 0x01 0x09
                0x06 0xa1 0x01 0x85 0x04 0x75 0x01 0x95
                0x08 0x05 0x07 0x19 0xe0 0x29 0xe7 0x15
                0x00 0x25 0x01 0x81 0x02 0x95 0x01 0x75
                0x08 0x81 0x03 0x95 0x05 0x75 0x01 0x05
                0x08 0x19 0x01 0x29 0x05 0x91 0x02 0x95
                0x01 0x75 0x03 0x91 0x03 0x95 0x06 0x75
                0x08 0x15 0x00 0x26 0xff 0x00 0x05 0x07
                0x19 0x00 0x29 0xff 0x81 0x00 0xc0 0x05
                0x0c 0x09 0x01 0xa1 0x01 0x85 0x05 0x15
                0x00 0x25 0x01 0x75 0x01 0x95 0x02 0x0a
                0x25 0x02 0x0a 0x24 0x02 0x81 0x02 0x95
                0x01 0x75 0x06 0x81 0x03 0xc0
        };
}

The mouse works fine on Linux though.

Regards,

-- 
Demelier David



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAO%2BPfDc7eGavoNEYAn2KM7VGFXuVv10CL4w-XN3r-EBCVNYw2g>