From owner-freebsd-bluetooth@FreeBSD.ORG Fri Nov 7 11:23:02 2014 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AB792728 for ; Fri, 7 Nov 2014 11:23:02 +0000 (UTC) Received: from mail-la0-x236.google.com (mail-la0-x236.google.com [IPv6:2a00:1450:4010:c03::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 19C001C9 for ; Fri, 7 Nov 2014 11:23:02 +0000 (UTC) Received: by mail-la0-f54.google.com with SMTP id s18so4306564lam.13 for ; Fri, 07 Nov 2014 03:23:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=mQtSxzqGa/lfN0RYtfY10NLQ9LrwdxFCX9xGOcP31kI=; b=VfNw1g44QTAXN8F8vyXVC+qbrjE3Xjc3MTLwXlRcHcfElXkrJLvUa7WHtWplyWrsC1 ZcGEzCbRNZE4ymivm8ry30D3M0DTtmf65ddhoPVLKA8QfFjPQ3wdjMXioe1MteRHNwi7 hQDYohOXNnTMuvQOCtOkHGAu/KSQ8fnYWKta4nPkfQng1pImEeS+T1FiTcQ8ItmUY2XF 3ygA5HU2sxKhfCfGA68wvFkkEIZ1oIiHE4YuuNc5c1ICdmAT5hiKWRCeL+aNfOz4NjaO Im5LCgVeNC7pJSuYJ4+vBFEcgrwMSKOJ186a3KQ0zvkyiVxBQU2DE8iDuJxDG816Yetj utlg== X-Received: by 10.152.1.130 with SMTP id 2mr1814511lam.89.1415359380167; Fri, 07 Nov 2014 03:23:00 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.16.7 with HTTP; Fri, 7 Nov 2014 03:22:19 -0800 (PST) From: george ember Date: Fri, 7 Nov 2014 13:22:19 +0200 Message-ID: Subject: Logitech K810 Bluetooth keyboard To: freebsd-bluetooth@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Nov 2014 11:23:02 -0000 Hi. I have a problem with my Bluetooth keyboard. Is a Logitech k810. The problem is the pairing process. Take hours to connect and lose pairing after reboot. So I must repair and wait. One tricky solution I found is to set no pin option and remove /var/db/bthidd.conf and /var/db/hcsecd.keys and restart bthidd and hcsecd service every time I reboot my computer. Take less time (~5-15 minutes) but is more acceptable. This is my configuration 1) cp /etc/defaults/bluetooth.device.conf /etc/bluetooth/ubt0.conf Edit ubt0 configuration file authentication_enable="NO" connectable="YES" discoverable="YES" hci_debug_level="4" l2cap_debug_level="4" local_name="lg" role_switch="YES" 2) sudo service bluetooth start ubt0 3) /etc/rc.conf hcsecd_enable="YES" hcsecd_config="/etc/bluetooth/hcsecd.conf" sdpd_enable="YES" bthidd_enable="YES" bthidd_config="/etc/bluetooth/bthidd.conf" 4) /boot/loader.conf vkbd_load="YES" ng_ubt_load="YES" ng_l2cap_load="YES" 5) install hcidump from ports 6) /etc/bluetooth/bthidd.conf device { bdaddr 00:1f:20:4d:f2:c5; control_psm 0x11; interrupt_psm 0x13; reconnect_initiate true; battery_power true; normally_connectable true; hid_descriptor { 0x05 0x01 0x09 0x06 0xa1 0x01 0x85 0x01 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 0x02 0x15 0x00 0x25 0x01 0x75 0x01 0x95 0x14 0x0a 0x94 0x01 0x0a 0x92 0x01 0x0a 0x83 0x01 0x0a 0x23 0x02 0x0a 0x8a 0x01 0x0a 0x82 0x01 0x0a 0x21 0x02 0x0a 0x30 0x00 0x0a 0x25 0x02 0x0a 0x23 0x02 0x0a 0x27 0x02 0x09 0xb6 0x09 0xb5 0x09 0xb8 0x09 0xcd 0x09 0xe9 0x09 0xea 0x09 0xe2 0x0a 0x24 0x02 0x09 0x30 0x81 0x02 0x95 0x01 0x75 0x04 0x81 0x03 0xc0 0x05 0x0c 0x09 0x01 0xa1 0x01 0x85 0x03 0x05 0x01 0x09 0x06 0xa1 0x02 0x05 0x06 0x09 0x20 0x15 0x00 0x26 0x14 0x00 0x75 0x08 0x95 0x01 0x81 0x02 0xc0 0xc0 0x05 0x01 0x09 0x80 0xa1 0x01 0x85 0x04 0x15 0x00 0x25 0x01 0x75 0x01 0x95 0x02 0x09 0x81 0x09 0x82 0x81 0x02 0x95 0x01 0x75 0x06 0x81 0x03 0xc0 0x05 0x0c 0x09 0x01 0xa1 0x01 0x85 0x05 0x05 0x01 0x09 0x06 0xa1 0x02 0x06 0x00 0xff 0x25 0x01 0x75 0x01 0x95 0x02 0x0a 0x03 0xfe 0x0a 0x04 0xfe 0x81 0x02 0x95 0x06 0x81 0x03 0xc0 0xc0 0x05 0x0c 0x09 0x01 0xa1 0x01 0x85 0xff 0x05 0x06 0x95 0x01 0x75 0x02 0x19 0x24 0x29 0x26 0x81 0x02 0x75 0x06 0x81 0x01 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 }; } 6) /etc/bluetooth/hcsecd.conf device { bdaddr 00:1f:20:4d:f2:c5; name "Logitech K810"; key nokey; # pin "702312"; pin nopin; } 7) /etc/bluetooth/hosts 00:1f:20:4d:f2:c5 lg-kbd 8) cp /dev/null /var/db/bthidd.hids After reboot my hcibump -x ember@FreeBSD ~ $ sudo hcidump -x Password: HCIDump - HCI packet analyzer ver 1.5 device: any snap_len: 65535 filter: 0xffffffffffffffff > HCI Event: Connect Request(0x04) plen 10 C5 F2 4D 20 1F 00 40 05 00 01 < HCI Command: Accept Connection Request(0x01|0x0009) plen 7 C5 F2 4D 20 1F 00 00 > HCI Event: Command Status(0x0f) plen 4 00 01 09 04 > HCI Event: Role Change(0x12) plen 8 00 C5 F2 4D 20 1F 00 00 > HCI Event: Connect Complete(0x03) plen 11 00 0B 00 C5 F2 4D 20 1F 00 01 00 < HCI Command: Write Link Policy Settings(0x02|0x000d) plen 4 0B 00 05 00 > HCI Event: Command Complete(0x0e) plen 6 01 0D 08 00 0B 00 > HCI Event: Link Key Request(0x17) plen 6 C5 F2 4D 20 1F 00 < HCI Command: Link Key Request Negative Reply(0x01|0x000c) plen 6 C5 F2 4D 20 1F 00 > HCI Event: Command Complete(0x0e) plen 10 01 0C 04 00 C5 F2 4D 20 1F 00 > HCI Event: Disconn Complete(0x05) plen 4 00 0B 00 13 > HCI Event: Connect Request(0x04) plen 10 C5 F2 4D 20 1F 00 40 05 00 01 < HCI Command: Accept Connection Request(0x01|0x0009) plen 7 C5 F2 4D 20 1F 00 00 > HCI Event: Command Status(0x0f) plen 4 00 01 09 04 > HCI Event: Role Change(0x12) plen 8 00 C5 F2 4D 20 1F 00 00 > HCI Event: Connect Complete(0x03) plen 11 00 0C 00 C5 F2 4D 20 1F 00 01 00 < HCI Command: Write Link Policy Settings(0x02|0x000d) plen 4 0C 00 05 00 > HCI Event: Command Complete(0x0e) plen 6 01 0D 08 00 0C 00 > HCI Event: Link Key Request(0x17) plen 6 C5 F2 4D 20 1F 00 < HCI Command: Link Key Request Negative Reply(0x01|0x000c) plen 6 C5 F2 4D 20 1F 00 > HCI Event: Command Complete(0x0e) plen 10 01 0C 04 00 C5 F2 4D 20 1F 00 > HCI Event: Disconn Complete(0x05) plen 4 00 0C 00 1 From owner-freebsd-bluetooth@FreeBSD.ORG Fri Nov 7 17:34:54 2014 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 18AA6B82 for ; Fri, 7 Nov 2014 17:34:54 +0000 (UTC) Received: from mail-wg0-x231.google.com (mail-wg0-x231.google.com [IPv6:2a00:1450:400c:c00::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9F104352 for ; Fri, 7 Nov 2014 17:34:53 +0000 (UTC) Received: by mail-wg0-f49.google.com with SMTP id x13so4281479wgg.36 for ; Fri, 07 Nov 2014 09:34:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=U/B7Ns9bnoo71+iAs5HA+Ho4VyngEm7v0m4umZLyQK8=; b=yEZD2GPJJOaPuMrOUUvbavAY0h8BIpYJKHXnXhm/XMCA546JNgLF90gE7ISEw2QHr/ xWm72lvDbHbZ6anTGBSnNewzEvyD+Uy3Kh8JP/dZFFAKd4LIzuqP/FFPKuvqbNFnPyxT KRc5x3n5wGbw1qikx/D9awcCmH1sgB5Jaj1grXq/sN2F1Gd0IBDI3Kvk/7YJ3BgBFfpE VgfFHWmIULvvsdZDynaf3fHBgf5/0c840FbR6OaWMzMau4eFWuhXft0UVNGAI9MNpklZ aype4AzfpVLXM9OOBfz2f4WWj7a2eMcdNaN1J/KIGkPVrLxv86ADs7/aL1i1/6X99yUu hVyQ== MIME-Version: 1.0 X-Received: by 10.194.24.103 with SMTP id t7mr17863548wjf.83.1415381330235; Fri, 07 Nov 2014 09:28:50 -0800 (PST) Received: by 10.27.170.2 with HTTP; Fri, 7 Nov 2014 09:28:50 -0800 (PST) In-Reply-To: References: Date: Fri, 7 Nov 2014 09:28:50 -0800 Message-ID: Subject: Re: Logitech K810 Bluetooth keyboard From: Maksim Yevmenkin To: george ember Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-bluetooth@freebsd.org" X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Nov 2014 17:34:54 -0000 On Fri, Nov 7, 2014 at 3:22 AM, george ember wrote: > Hi. I have a problem with my Bluetooth keyboard. Is a Logitech k810. The > problem is the pairing process. Take hours to connect and lose pairing > after reboot. So I must repair and wait. > One tricky solution I found is to set no pin option and remove > /var/db/bthidd.conf and /var/db/hcsecd.keys and restart bthidd and hcsecd > service every time I reboot my computer. > Take less time (~5-15 minutes) but is more acceptable. are you dual booting? i.e. switching OS and trying to use your keyboard in both OSs ? thanks max