From owner-freebsd-bluetooth@FreeBSD.ORG Sun Mar 30 10:08:16 2008 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C14D41065672 for ; Sun, 30 Mar 2008 10:08:16 +0000 (UTC) (envelope-from gamato@users.sf.net) Received: from slimak.dkm.cz (smtp.dkm.cz [62.24.64.34]) by mx1.freebsd.org (Postfix) with SMTP id 1FB738FC25 for ; Sun, 30 Mar 2008 10:08:15 +0000 (UTC) (envelope-from gamato@users.sf.net) Received: (qmail 85736 invoked by uid 0); 30 Mar 2008 10:08:13 -0000 Received: from r5h118.net.upc.cz (HELO ?192.168.111.3?) (86.49.7.118) by smtp.dkm.cz with SMTP; 30 Mar 2008 10:08:13 -0000 Message-ID: <47EF668D.1080003@users.sf.net> Date: Sun, 30 Mar 2008 12:08:13 +0200 From: mato User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.12) Gecko/20080305 SeaMonkey/1.1.8 MIME-Version: 1.0 To: Maksim Yevmenkin References: <47ED9AC5.4050505@users.sf.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bluetooth@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: Logitech V470 Bluetooth Mouse on FreeBSD ? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Mar 2008 10:08:16 -0000 Maksim Yevmenkin wrote: > Martin, > > >> I'm considering buying Logitech V470 Bluetooth Mouse. >> Does anyone have any experience with using this mouse on FreeBSD please ? >> > > chances are it will work. i personally never tried this particular > model, but bluetooth mice from different manufacturers (for example > apple and microsoft) are known to work. > > thanks, > max > Hi Max, I've just bought the mouse and it works, partially. Well, I couldn't find anything in the handbook but google helped. However, the mouse has 4-way wheel but horizontal scrolling doesn't work. I've got the following in my xorg.conf: Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "auto" Option "Device" "/dev/sysmouse" Option "ZAxisMapping" "4 5 6 7" EndSection Any ideas pls ? Apart from that I noticed double clicks don't work in console. With regards, Martin From owner-freebsd-bluetooth@FreeBSD.ORG Sun Mar 30 10:25:43 2008 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BB1C2106566B for ; Sun, 30 Mar 2008 10:25:43 +0000 (UTC) (envelope-from gamato@users.sf.net) Received: from slimak.dkm.cz (smtp.dkm.cz [62.24.64.34]) by mx1.freebsd.org (Postfix) with SMTP id 4413F8FC28 for ; Sun, 30 Mar 2008 10:25:43 +0000 (UTC) (envelope-from gamato@users.sf.net) Received: (qmail 9479 invoked by uid 0); 30 Mar 2008 10:25:42 -0000 Received: from r5h118.net.upc.cz (HELO ?192.168.111.3?) (86.49.7.118) by smtp.dkm.cz with SMTP; 30 Mar 2008 10:25:41 -0000 Message-ID: <47EF6AA5.60403@users.sf.net> Date: Sun, 30 Mar 2008 12:25:41 +0200 From: mato User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.12) Gecko/20080305 SeaMonkey/1.1.8 MIME-Version: 1.0 To: Maksim Yevmenkin References: <47DBE7A4.3060006@users.sf.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bluetooth@freebsd.org Subject: Re: BT issues X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Mar 2008 10:25:43 -0000 Maksim Yevmenkin wrote: > Hello, > > >> I've got two questions regarding bluetooth in FreeBSD: >> >> 1) I'd like to start rfcomm_pppd automatically upon connecting my BT >> dongle. I know about /etc/devd.conf but from my understanding only one >> action takes place and there's already action for ubt device and so I don't >> know how to trigger my script. >> > > you do not really have to do it. you can run rfcomm_pppd even if no > bluetooth devices are connected to the system. basically, all you need > to do is to run both sdpd and rfcomm_pppd bound to wildcard (aka ANY) > bd_addr. > > 1) to enable sdpd at boot time just add to your /etc/rc.conf the following line > > sdpd_enanble="YES" > > this should start sdpd on boot automatically. to start/stop sdpd at run time use > > /etc/rc.d/sdpd start/stop > > 2) please cut and paste the following rc script into > /etc/rc.d/rfcomm_pppd_server > > == > > #!/bin/sh > # > # $FreeBSD$ > # > > # PROVIDE: rfcomm_pppd_server > # REQUIRE: DAEMON sdpd > # BEFORE: LOGIN > # KEYWORD: nojail > > . /etc/rc.subr > > name="rfcomm_pppd_server" > rcvar=`set_rcvar` > command="/usr/sbin/rfcomm_pppd" > command_args="-s" > start_precmd="rfcomm_pppd_server_prestart" > required_modules="ng_btsocket" > > rfcomm_pppd_server_prestart() > { > if [ -n "${rfcomm_pppd_server_bd_addr}" ]; then > command_args="${command_args} -a ${rfcomm_pppd_server_bd_addr}" > fi > > command_args="${command_args} -C ${rfcomm_pppd_server_channel:-1}" > > command_args="${command_args} -l > ${rfcomm_pppd_server_label:-rfcomm-server}" > > if checkyesno rfcomm_pppd_server_register_sp ; then > command_args="${command_args} -S" > fi > > if checkyesno rfcomm_pppd_server_register_dun ; then > command_args="${command_args} -D" > fi > } > > load_rc_config $name > run_rc_command "$1" > > == > > 3) to enable rfcomm_pppd server at boot time just add to your > /etc/rc.conf the following line > > rfcomm_pppd_server_enanble="YES" > rfcomm_pppd_server_channel=1 # EDIT THIS IF NEEDED > rfcomm_pppd_server_label="rfcomm-server" # EDIT THIS IF NEEDED > rfcomm_pppd_server_register_sp="NO" > rfcomm_pppd_server_register_dun="NO" > > this should start rfcomm_pppd server on boot automatically. to > start/stop rfcomm_pppd server at run time use > > /etc/rc.d/rfcomm_pppd start/stop > > >> 2) I've got two ppp.conf profiles, one for FreeBSD and one for Windows. >> When I connect FreeBSD laptop via rfcomm_pppd it works and caches the hcsec >> key. But if I try to connect Windows machine, it asks for password and it >> seems the key is changed as from that time I cannot connect FreeBSD machine >> and I have to remove hcsecd.keys and restart hcsecd. Why and what can be >> done about it ? >> > > I'm not really sure what are you trying to do. before giving any > suggestions, i'd like to see hcsecd.conf and hcidump that shows the > problem with authentication. > > thanks, > max > > p.s. please keep freebsd-bluetooth@ in the cc list > Hallo Max, 1) I did'n know it. Thanks for your explanation. I used it the same way only I ran rfcomm_pppd manually. And btw will the provided rc.d script be included in FreeBSD ? 2) What am I trying to do ? Well, I set up internet sharing on my home laptop via BT and I can use it from my other laptop. Now, it works when my other (work) laptop runs FreeBSD. When I boot the other laptop in to Windows it asks me for PIN and then it works OK. But when I boot in to FreeBSD again I cannot connect and I have to reinitialise as explained in my original email. So to me it seems connecting from Windows somehow changes stored key which is unusable for subsequent FreeBSD uses. If this explanation is not enough, I can try to capture and provide hcidump for you. Cheers, Martin From owner-freebsd-bluetooth@FreeBSD.ORG Mon Mar 31 15:31:04 2008 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 158D3106564A for ; Mon, 31 Mar 2008 15:31:04 +0000 (UTC) (envelope-from yousif@alumni.jmu.edu) Received: from coruscant.far-far-away.com (coruscant.far-far-away.us [70.91.196.65]) by mx1.freebsd.org (Postfix) with SMTP id 9BFFC8FC31 for ; Mon, 31 Mar 2008 15:31:03 +0000 (UTC) (envelope-from yousif@alumni.jmu.edu) Received: (qmail 30922 invoked from network); 31 Mar 2008 11:06:08 -0400 Received: from unknown (HELO alderaan) (68.162.198.134) by coruscant.far-far-away.us with SMTP; 31 Mar 2008 11:06:08 -0400 Message-ID: <7EF0BFD7B7B548278898917CCD636B26@alderaan> From: "Yousif Hassan" To: "mato" , "Maksim Yevmenkin" References: <47ED9AC5.4050505@users.sf.net> <47EF668D.1080003@users.sf.net> In-Reply-To: <47EF668D.1080003@users.sf.net> Date: Mon, 31 Mar 2008 11:04:27 -0400 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Windows Mail 6.0.6000.16480 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16545 Cc: freebsd-bluetooth@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: Logitech V470 Bluetooth Mouse on FreeBSD ? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2008 15:31:04 -0000 > However, the mouse has 4-way wheel but horizontal scrolling doesn't work. > I've got the following in my xorg.conf: > > Section "InputDevice" > Identifier "Mouse0" > Driver "mouse" > Option "Protocol" "auto" > Option "Device" "/dev/sysmouse" > Option "ZAxisMapping" "4 5 6 7" > EndSection > > Any ideas pls ? > > Apart from that I noticed double clicks don't work in console. If memory serves, the latter issue is a limitation in the FreeBSD bluetooth stack, so it's not related to your mouse. I believe the fomer issue as well, but I am not as certain as for the double-click problem. --Y From owner-freebsd-bluetooth@FreeBSD.ORG Mon Mar 31 16:52:01 2008 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DA75F1065671 for ; Mon, 31 Mar 2008 16:52:01 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by mx1.freebsd.org (Postfix) with ESMTP id 6F5008FC13 for ; Mon, 31 Mar 2008 16:52:01 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by fg-out-1718.google.com with SMTP id 16so1773083fgg.35 for ; Mon, 31 Mar 2008 09:52:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=YMUgJRFHPEMG39J7g3Y7eR+61zYb5596ECW+GXrepeQ=; b=ApcrxAeXkxoKy65X9dlld0DZOE/NpPkbeyel0kIw314vkNhfQY6MsIMgY1PmL4p2LMovQkfai1Ody5yjM9pKeTm3KhXo4vfCqcatkKWTGwUELX3nOEUA9TahyMxs+MBcOzdJoWrl8gthVlWEp3CYWjO01AYzRKE2Q6WqPeg/Zag= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XxSoNOpz910FOGt4ESavkUTSZgrK4hfXGM60ss8We2+cVQ9nLBI5R1dkHAJqTotclL3csCaXZ8X8WOJDV255c37S/y9Si23mpfZ5C+zmfKC4eMsyLZsR5OaT+PfujmDZGYFQjpDgJhWkGPJgMwK1LDqPiVa/Xy/5RkeWxkvwMWs= Received: by 10.86.59.2 with SMTP id h2mr4614542fga.78.1206982320221; Mon, 31 Mar 2008 09:52:00 -0700 (PDT) Received: by 10.86.71.15 with HTTP; Mon, 31 Mar 2008 09:52:00 -0700 (PDT) Message-ID: Date: Mon, 31 Mar 2008 08:52:00 -0800 From: "Maksim Yevmenkin" To: mato In-Reply-To: <47EF668D.1080003@users.sf.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47ED9AC5.4050505@users.sf.net> <47EF668D.1080003@users.sf.net> Cc: freebsd-bluetooth@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: Logitech V470 Bluetooth Mouse on FreeBSD ? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2008 16:52:02 -0000 Martin, > I've just bought the mouse and it works, partially. > Well, I couldn't find anything in the handbook but google helped. > > However, the mouse has 4-way wheel but horizontal scrolling doesn't work. > I've got the following in my xorg.conf: > > Section "InputDevice" > Identifier "Mouse0" > Driver "mouse" > Option "Protocol" "auto" > Option "Device" "/dev/sysmouse" > Option "ZAxisMapping" "4 5 6 7" > EndSection > > Any ideas pls ? as Iain already pointed out, you might try adding 'Option "Buttons" "7"'. also it would be nice if you post hid descriptor for the mouse from your /etc/bluetooth/bthidd.conf > Apart from that I noticed double clicks don't work in console. yes, from bthidd(8) man page KNOWN LIMITATIONS The bthidd daemon currently does not handle key auto repeat and double click mouse events. Those events work under X(7) just fine, but not in text console. thanks, max From owner-freebsd-bluetooth@FreeBSD.ORG Mon Mar 31 17:38:56 2008 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DFAA9106564A for ; Mon, 31 Mar 2008 17:38:56 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.190]) by mx1.freebsd.org (Postfix) with ESMTP id 6E3218FC23 for ; Mon, 31 Mar 2008 17:38:56 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by fk-out-0910.google.com with SMTP id b27so2687759fka.11 for ; Mon, 31 Mar 2008 10:38:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=3wFaIM1Uewi3YtXu2PU+Hsfnwp0mG1OgOfZPMCiDWxU=; b=IyRDsoCeAksoqiY6WyRuyELGbbxXyZXDnaxiGtObjgbxbP2nUZwYffZ0FsbF2LB393+JAATy+8QFeToTUmoQA9aDXyKh1LTf/8DF4JettlfuMHwxx9EhSgE96V32bs8xjTaWfnFoxF//NG0mmxmy+WPspyR9mtPEkSQD5S0qPkw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=JwhQZCsGF+C8IcpuJx1zPxBN/cqVSZwRT90GqwLFZnMABnsNu6h4kICnsp7dimVTuY9MB3AN1WW4F9+mH+qy865x2gOy3GD1/l/ODGBM/xZBrxkJKlC4NQOs8XTw1sBnuKJWCaphmp7vbVXQFU4qMepYOTkdjh2jgpNWVkWyu+M= Received: by 10.82.174.20 with SMTP id w20mr16052778bue.38.1206985134399; Mon, 31 Mar 2008 10:38:54 -0700 (PDT) Received: by 10.86.71.15 with HTTP; Mon, 31 Mar 2008 10:38:54 -0700 (PDT) Message-ID: Date: Mon, 31 Mar 2008 09:38:54 -0800 From: "Maksim Yevmenkin" To: mato In-Reply-To: <47EF6AA5.60403@users.sf.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47DBE7A4.3060006@users.sf.net> <47EF6AA5.60403@users.sf.net> Cc: freebsd-bluetooth@freebsd.org Subject: Re: BT issues X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2008 17:38:57 -0000 Hello, [...] > 1) I did'n know it. Thanks for your explanation. I used it the same way > only I ran rfcomm_pppd manually. And btw will the provided rc.d script be > included in FreeBSD ? eventually :) i want do give some time to people to try it and give feedback. > 2) What am I trying to do ? Well, I set up internet sharing on my home > laptop via BT and I can use it from my other laptop. Now, it works when my > other (work) laptop runs FreeBSD. When I boot the other laptop in to > Windows it asks me for PIN and then it works OK. But when I boot in to > FreeBSD again I cannot connect and I have to reinitialise as explained in my > original email. So to me it seems connecting from Windows somehow changes > stored key which is unusable for subsequent FreeBSD uses. > If this explanation is not enough, I can try to capture and provide hcidump > for you. 1) what is in your /etc/bluetooth/hcsecd.conf (on both freebsd machines)? 2) can you create (with hcidump -w trace) and send to me hcidump trace that shows the problem after you boot from windows back to freebsd? also, as i explained to you, using the same device under two different operating systems is a bit of a challenge. os is in charge of initiating "pairing" process and storing link keys. just because you pairing the same two devices does not mean that you will get the same link key every time. as i explained to you, the best way to make it work is to make sure link key is shared between both oses. thanks, max From owner-freebsd-bluetooth@FreeBSD.ORG Mon Mar 31 19:25:28 2008 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A1D6106566B for ; Mon, 31 Mar 2008 19:25:28 +0000 (UTC) (envelope-from gamato@users.sf.net) Received: from slimak.dkm.cz (smtp.dkm.cz [62.24.64.34]) by mx1.freebsd.org (Postfix) with SMTP id 6C1B68FC16 for ; Mon, 31 Mar 2008 19:25:27 +0000 (UTC) (envelope-from gamato@users.sf.net) Received: (qmail 24609 invoked by uid 0); 31 Mar 2008 19:19:58 -0000 Received: from r5j117.net.upc.cz (HELO ?86.49.9.117?) (86.49.9.117) by smtp.dkm.cz with SMTP; 31 Mar 2008 19:19:58 -0000 Message-ID: <47F1395D.5090003@users.sf.net> Date: Mon, 31 Mar 2008 21:19:57 +0200 From: mato User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.12) Gecko/20080305 SeaMonkey/1.1.8 MIME-Version: 1.0 To: Iain Hibbert References: <47DBE7A4.3060006@users.sf.net> <47EF6AA5.60403@users.sf.net> <1206902625.989759.1963.nullmailer@galant.ukfsn.org> In-Reply-To: <1206902625.989759.1963.nullmailer@galant.ukfsn.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bluetooth@freebsd.org Subject: Re: BT issues X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2008 19:25:28 -0000 Hi Iain, Iain Hibbert wrote: > On Sun, 30 Mar 2008, mato wrote: > > >> 2) What am I trying to do ? Well, I set up internet sharing on my home laptop >> via BT and I can use it from my other laptop. Now, it works when my other >> (work) laptop runs FreeBSD. When I boot the other laptop in to Windows it >> asks me for PIN and then it works OK. But when I boot in to FreeBSD again I >> cannot connect and I have to reinitialise as explained in my original email. >> So to me it seems connecting from Windows somehow changes stored key which is >> unusable for subsequent FreeBSD uses. >> > > the pairing is between the Bluetooth controllers (the actual dongle) but > the Link Key is generally held in the OS so dual booting can be > troublesome. In FreeBSD it is stored and supplied by hcsecd and you can > edit it, but naturally Windows does not know about that so it makes a new > link key and then FreeBSD does not know what it is. > > Yeah, and imho that's quite useful feature of Windows in this case -- it first tries its stored link key and if it doesn't work it'll ask for PIN and will generate a new link key. Even if FreeBSD has no facility or desire to interactively ask for PIN, I can imagine it could at least try and regenerate link key from PIN which would help in this case. > There are some ways around this, in order of bestness: > > - make no authentication necessary (ie no pairing) (dangerous) > > No. > - set the PIN to be a fixed PIN so that a new link key will be generated > each time (I don't know if Windows can do this either) (its not a great > solution) > > I'm not aware of this possibility. How can I make FreeBSD regenerate link key each time ? It's not an issue with Windows as it asks for PIN when pairing fails. > - hack into Windows and find the link key, store this in your hcsecd file > and all should be well. (I think there is a way to do this with Windows > but I didn't find it) > > I've no idea how to do this. And it wouldn't help in the following scenario -- I've got a guest who would like to connect to the internet via my BT sharing and once doing it she would make my FreeBSD regenerate the link key and I'm in the same situation as now (except that I cannot possibly hack link keys in Windows of my visitors). > - store the link key in the device, so that the OS does not need to know > about it. > > I've no idea how to do it and if it is possible at all. > I wrote a program that does this last for NetBSD called btkey(1) - > although it will not work directly on FreeBSD (the config file we use is > different) it should not be difficult to port it, at least enough to store > a link key into the device. > > (see cvsweb.netbsd.org .. src/usr.bin/btkey) > > regards, > iain > Cheers, Martin From owner-freebsd-bluetooth@FreeBSD.ORG Mon Mar 31 19:29:55 2008 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 383F9106567F for ; Mon, 31 Mar 2008 19:29:55 +0000 (UTC) (envelope-from gamato@users.sf.net) Received: from slimak.dkm.cz (smtp.dkm.cz [62.24.64.34]) by mx1.freebsd.org (Postfix) with SMTP id 9AAAF8FC30 for ; Mon, 31 Mar 2008 19:29:54 +0000 (UTC) (envelope-from gamato@users.sf.net) Received: (qmail 57718 invoked by uid 0); 31 Mar 2008 19:29:49 -0000 Received: from r5j117.net.upc.cz (HELO ?86.49.9.117?) (86.49.9.117) by smtp.dkm.cz with SMTP; 31 Mar 2008 19:29:49 -0000 Message-ID: <47F13BAD.9060808@users.sf.net> Date: Mon, 31 Mar 2008 21:29:49 +0200 From: mato User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.12) Gecko/20080305 SeaMonkey/1.1.8 MIME-Version: 1.0 To: Iain Hibbert References: <47ED9AC5.4050505@users.sf.net> <47EF668D.1080003@users.sf.net> <1206904241.480342.891.nullmailer@galant.ukfsn.org> In-Reply-To: <1206904241.480342.891.nullmailer@galant.ukfsn.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bluetooth@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: Logitech V470 Bluetooth Mouse on FreeBSD ? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2008 19:29:55 -0000 Iain Hibbert wrote: > On Sun, 30 Mar 2008, mato wrote: > > >> Section "InputDevice" >> Identifier "Mouse0" >> Driver "mouse" >> Option "Protocol" "auto" >> Option "Device" "/dev/sysmouse" >> Option "ZAxisMapping" "4 5 6 7" >> EndSection >> > > FWIW this at least is probably correct, but I found that last year when I > bought an "Apple Mighty Mouse" I still had some trouble because the > bsd_mouse driver for X was not handling the Z direction. Of course, this > was on NetBSD/wsmouse so it is different but the bsd_mouse.c file s the > same handler. > > Also you may need > Option "Buttons" "7" > > I hadn't found this option in xorg.conf manual. Thanks. Unfortunately it did not help in this case. >> Any ideas pls ? >> > > also, I think bthidd does not handle the Z direction**. Note that > sometimes a mouse will present the horizontal component of the scroll ball > as "Consumer/PAN" instead of "Generic Desktop/Z" > > hth, > iain > > ** confusingly, HUG_WHEEL is the vertical scroll and HUG_Z is horizontal > but the vertical scroll is internally called Z and sometimes HUG_Z is the > vertical direction when there is no HUG_WHEEL. > Well, this mouse of mine presents itself exactly as you said ... Input id=2 size=12 count=1 page=Generic_Desktop usage=X Variable Relative, log ical range -2047..2047 Input id=2 size=12 count=1 page=Generic_Desktop usage=Y Variable Relative, log ical range -2047..2047 Input id=2 size=8 count=1 page=Generic_Desktop usage=Wheel Variable Relative, logical range -127..127 Input id=2 size=8 count=1 page=Consumer usage=AC_Pan Variable Relative, logica l range -127..127 What can be done about it ?? Cheers, Martin From owner-freebsd-bluetooth@FreeBSD.ORG Mon Mar 31 19:33:11 2008 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A2A4C1065672 for ; Mon, 31 Mar 2008 19:33:11 +0000 (UTC) (envelope-from gamato@users.sf.net) Received: from slimak.dkm.cz (smtp.dkm.cz [62.24.64.34]) by mx1.freebsd.org (Postfix) with SMTP id 1F1438FC1A for ; Mon, 31 Mar 2008 19:33:10 +0000 (UTC) (envelope-from gamato@users.sf.net) Received: (qmail 45238 invoked by uid 0); 31 Mar 2008 19:32:17 -0000 Received: from r5j117.net.upc.cz (HELO ?86.49.9.117?) (86.49.9.117) by smtp.dkm.cz with SMTP; 31 Mar 2008 19:32:17 -0000 Message-ID: <47F13C41.2030506@users.sf.net> Date: Mon, 31 Mar 2008 21:32:17 +0200 From: mato User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.12) Gecko/20080305 SeaMonkey/1.1.8 MIME-Version: 1.0 To: Maksim Yevmenkin References: <47ED9AC5.4050505@users.sf.net> <47EF668D.1080003@users.sf.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bluetooth@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: Logitech V470 Bluetooth Mouse on FreeBSD ? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2008 19:33:11 -0000 Maksim Yevmenkin wrote: > Martin, > > >> I've just bought the mouse and it works, partially. >> Well, I couldn't find anything in the handbook but google helped. >> >> However, the mouse has 4-way wheel but horizontal scrolling doesn't work. >> I've got the following in my xorg.conf: >> >> Section "InputDevice" >> Identifier "Mouse0" >> Driver "mouse" >> Option "Protocol" "auto" >> Option "Device" "/dev/sysmouse" >> Option "ZAxisMapping" "4 5 6 7" >> EndSection >> >> Any ideas pls ? >> > > as Iain already pointed out, you might try adding 'Option "Buttons" > "7"'. also it would be nice if you post hid descriptor for the mouse > from your /etc/bluetooth/bthidd.conf > > >> Apart from that I noticed double clicks don't work in console. >> > > yes, from bthidd(8) man page > > KNOWN LIMITATIONS > The bthidd daemon currently does not handle key auto repeat and double > click mouse events. Those events work under X(7) just fine, but not in > text console. > > thanks, > max > Hi Max, Option Buttons did not help me. :-( $ bthidcontrol -a mato-mouse query device { bdaddr 00:07:61:a7:64:15; 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 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 }; } $ bthidcontrol -a mato-mouse dump Collection page=Generic_Desktop usage=Mouse Collection page=Generic_Desktop usage=Pointer Input id=2 size=1 count=1 page=Button usage=Button_1 Variable, logical range 0 ..1 Input id=2 size=1 count=1 page=Button usage=Button_2 Variable, logical range 0 ..1 Input id=2 size=1 count=1 page=Button usage=Button_3 Variable, logical range 0 ..1 Input id=2 size=1 count=1 page=Button usage=Button_4 Variable, logical range 0 ..1 Input id=2 size=1 count=1 page=Button usage=Button_5 Variable, logical range 0 ..1 Input id=2 size=1 count=1 page=Button usage=Button_6 Variable, logical range 0 ..1 Input id=2 size=1 count=1 page=Button usage=Button_7 Variable, logical range 0 ..1 Input id=2 size=1 count=1 page=Button usage=Button_8 Variable, logical range 0 ..1 Input id=2 size=12 count=1 page=Generic_Desktop usage=X Variable Relative, log ical range -2047..2047 Input id=2 size=12 count=1 page=Generic_Desktop usage=Y Variable Relative, log ical range -2047..2047 Input id=2 size=8 count=1 page=Generic_Desktop usage=Wheel Variable Relative, logical range -127..127 Input id=2 size=8 count=1 page=Consumer usage=AC_Pan Variable Relative, logica l range -127..127 End collection End collection Input id=16 size=8 count=6 page=Microsoft usage=0x0001, logical range 0..255 Output id=16 size=8 count=6 page=Microsoft usage=0x0001, logical range 0..255 Collection page=Microsoft usage=0x0001 From owner-freebsd-bluetooth@FreeBSD.ORG Mon Mar 31 19:48:01 2008 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 12C9B1065672 for ; Mon, 31 Mar 2008 19:48:01 +0000 (UTC) (envelope-from gamato@users.sf.net) Received: from slimak.dkm.cz (smtp.dkm.cz [62.24.64.34]) by mx1.freebsd.org (Postfix) with SMTP id 7607E8FC1D for ; Mon, 31 Mar 2008 19:48:00 +0000 (UTC) (envelope-from gamato@users.sf.net) Received: (qmail 45686 invoked by uid 0); 31 Mar 2008 19:47:55 -0000 Received: from r5j117.net.upc.cz (HELO ?86.49.9.117?) (86.49.9.117) by smtp.dkm.cz with SMTP; 31 Mar 2008 19:47:55 -0000 Message-ID: <47F13FEB.10503@users.sf.net> Date: Mon, 31 Mar 2008 21:47:55 +0200 From: mato User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.12) Gecko/20080305 SeaMonkey/1.1.8 MIME-Version: 1.0 To: Maksim Yevmenkin References: <47DBE7A4.3060006@users.sf.net> <47EF6AA5.60403@users.sf.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bluetooth@freebsd.org Subject: Re: BT issues X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2008 19:48:01 -0000 Maksim Yevmenkin wrote: > >> 2) What am I trying to do ? Well, I set up internet sharing on my home >> laptop via BT and I can use it from my other laptop. Now, it works when my >> other (work) laptop runs FreeBSD. When I boot the other laptop in to >> Windows it asks me for PIN and then it works OK. But when I boot in to >> FreeBSD again I cannot connect and I have to reinitialise as explained in my >> original email. So to me it seems connecting from Windows somehow changes >> stored key which is unusable for subsequent FreeBSD uses. >> If this explanation is not enough, I can try to capture and provide hcidump >> for you. >> > > 1) what is in your /etc/bluetooth/hcsecd.conf (on both freebsd machines)? > > 2) can you create (with hcidump -w trace) and send to me hcidump trace > that shows the problem after you boot from windows back to freebsd? > > also, as i explained to you, using the same device under two different > operating systems is a bit of a challenge. os is in charge of > initiating "pairing" process and storing link keys. just because you > pairing the same two devices does not mean that you will get the same > link key every time. as i explained to you, the best way to make it > work is to make sure link key is shared between both oses. > > thanks, > max > 1) my home computer (the one with the internet connection) has: device { bdaddr 00:09:dd:50:0f:0a; name "Mato Edimax"; key nokey; pin "1234"; } my work computer has: device { bdaddr 00:16:41:12:09:53; name "Mato D820"; key nokey; pin "1234"; } Well, actually I've got the same hcsecd.conf with all the entries in both computers. 2) Just to be sure -- on which computer to run hcidump ? I do not know how to share link keys between FreeBSD and Windows. Also, as explained in my previous email, there are situations when sharing a link key is not a choice. However, Windows can manage this as it asks for PIN key when connection initiation fails. While I don't expect FreeBSD asking for a PIN, it might be quite useful if it could automatically (upon a connection establishing failure) throw away its stored link key and recreate it from PIN as Windows does. This would definitely help as it is basically what I have to do manually after each Windows run (that is to say .. stop hcsecd, rm hcsecd.keys, start hcsecd). With regards, Martin From owner-freebsd-bluetooth@FreeBSD.ORG Tue Apr 1 00:03:53 2008 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 05AF71065671 for ; Tue, 1 Apr 2008 00:03:53 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.153]) by mx1.freebsd.org (Postfix) with ESMTP id 80E978FC14 for ; Tue, 1 Apr 2008 00:03:52 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by fg-out-1718.google.com with SMTP id 16so1913724fgg.35 for ; Mon, 31 Mar 2008 17:03:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=lFhtcOvhP5cTf2IpJiPKXqUPjQ5Iyg3f8+D7stibyAI=; b=Ntng4K1TQCLHpe//z1jCEm62iPmIB4o30p9zyVr9cPHtRcuBVp6mPlO5YVCuYMNz9x779WKi5LGIowHIfRIahR1/JHANYGC1riF7TvPErgTZXh9k113A8ecJn5aSyUp7z40oOZhKRFUZowB49tJq2B67N0c9/vyo82mUWGXFrwc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=FoZedkD2VDCfUjulyT0u+GiPwxE44WT9BRaJAdqGFbsl4hDuCsEe/PlNljyR2oeqieBuziOBazjJUzycocjXB8fiVZ0w9cm8P83Xd5+mtfVlOVBxMbk2aTjFE2811+JtEBI2ktGZR4zfoC+UbFd66/ZBcBDRs/me70JrlvXb0Vc= Received: by 10.86.31.18 with SMTP id e18mr4889400fge.68.1207008228643; Mon, 31 Mar 2008 17:03:48 -0700 (PDT) Received: by 10.86.71.15 with HTTP; Mon, 31 Mar 2008 17:03:48 -0700 (PDT) Message-ID: Date: Mon, 31 Mar 2008 16:03:48 -0800 From: "Maksim Yevmenkin" To: mato In-Reply-To: <47F13FEB.10503@users.sf.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47DBE7A4.3060006@users.sf.net> <47EF6AA5.60403@users.sf.net> <47F13FEB.10503@users.sf.net> Cc: freebsd-bluetooth@freebsd.org Subject: Re: BT issues X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2008 00:03:53 -0000 [...] > > 1) what is in your /etc/bluetooth/hcsecd.conf (on both freebsd machines)? > > > > 2) can you create (with hcidump -w trace) and send to me hcidump trace > > that shows the problem after you boot from windows back to freebsd? > > > > also, as i explained to you, using the same device under two different > > operating systems is a bit of a challenge. os is in charge of > > initiating "pairing" process and storing link keys. just because you > > pairing the same two devices does not mean that you will get the same > > link key every time. as i explained to you, the best way to make it > > work is to make sure link key is shared between both oses. > > > > 1) > > my home computer (the one with the internet connection) has: > > device { > bdaddr 00:09:dd:50:0f:0a; > name "Mato Edimax"; > key nokey; > pin "1234"; > } > > my work computer has: > > device { > bdaddr 00:16:41:12:09:53; > name "Mato D820"; > key nokey; > pin "1234"; > } > > Well, actually I've got the same hcsecd.conf with all the entries in both > computers. ok, that is fine. please try to do the following. please run "hcidump -w trace1" on your sever while doing this. 1) boot your work computer into windows. pair both freebsd server and your work computer (running windows); 2) stop hcsecd; 3) now, on your freebsd server look into the /var/db/hcsecd.keys file and find a link key for your work computer (using your work computer's bd_addr) 4) change hcsecd config on your freebsd server to and use link key from (3) above, i.e. on freebsd server replace entry for your work computer with something like device { bdaddr ; name "work computer"; key 0x; pin nopin; } 5) restart hcsecd and try to connect from your work computer (running windows) to your freebsd server and make sure it works; 6) send me the trace1 file now reboot your work computer into freebsd and do the following. please run "hcidump -w trace2" on your sever while doing this. 1) stop hcsecd 2) edit the hcsecd.conf file on the work computer (running freebsd) and replace entry for the freebsd server with something like device { bdaddr ; name "SERVER computer"; key 0x; pin nopin; } 3) restart hcsecd and try to connect 4) send me the trace2 file > Just to be sure -- on which computer to run hcidump ? read above > I do not know how to share link keys between FreeBSD and Windows. Also, as > explained in my previous email, there are situations when sharing a link key > is not a choice. you have to share the link key. there is no other way. hcsecd is not setup to support multiple link keys between the same pair of the devices. here what i think is going on. lets say you boot your work computer into windows first. now, when you try to pair devices, both server and work computer generate a unique link key and save it locally. windows probably puts in somewhere in the registry and freebsd server saves it in the /var/db/hcsecd.key file. lets call this link key "key1". now, lets say you have booted freebsd on your work computer. at this point hcsecd, running on your work computer, has no idea about link key "key1" that you have generated while running windows on the same work computer. however, freebsd server _KNOWS_ about link key "key1" and assumes that this is a valid key for your work computer (well, technically, it is a valid key to use with bluetooth device with given bd_addr); now, when you try to initiate connection from your work computer (running freebsd) to your server computer, the server computer will try to use link key "key1". the server computer has no idea that the same bd_addr is now controlled by different os. since your work computer does not know anything about link key "key1", it will reject the key. because you have configured the pin code, hcsecd will try to generate another unique link key and will update its database. lets call it link key "key2". at the end, both freebsd work computer and freebsd server computer will end up with the same link key "key2". finally, you boot windows on your work computer again. when you try to connect to the server computer, widows will use link key "key1". of course, the server computer will reject the key (because it was replaced with link key "key2" while you were running freebsd on your work computer). i'm not sure what will happen on windows side, it may simply fail to connect or it make ask for a pin again. if the later is true, another link key will be generated and freebsd server will update its database with it. > However, Windows can manage this as it asks for PIN key when connection > initiation fails. While I don't expect FreeBSD asking for a PIN, it might > be quite useful if it could automatically (upon a connection establishing > failure) throw away its stored link key and recreate it from PIN as Windows > does. This would definitely help as it is basically what I have to do > manually after each Windows run (that is to say .. stop hcsecd, rm > hcsecd.keys, start hcsecd). it already does that in background. like i explained, the rules are 1) use link key (if configured or found in /var/db/hcsecd.key) file 2) if there are no link key or received negative link key reply use pin code 3) if no pin code configured - fail thanks, max From owner-freebsd-bluetooth@FreeBSD.ORG Tue Apr 1 00:16:32 2008 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EC6CC106564A for ; Tue, 1 Apr 2008 00:16:31 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by mx1.freebsd.org (Postfix) with ESMTP id 72D138FC12 for ; Tue, 1 Apr 2008 00:16:31 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by fg-out-1718.google.com with SMTP id 16so1918116fgg.35 for ; Mon, 31 Mar 2008 17:16:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=A5rmMExsWmcvqkCk3ch/CzuLg36E/eL0LkCC0FzrNtQ=; b=VtP5HZ8ZdaV+hZ1+++reSTOL04YPkKAN3CXSG7Y4vy1sl9Sh7fbr/aF4x4gRtQr+7RL3hNKTTJFMAx2I/jsNftLVzdHVrUpTn1fE9eYCDUiLQUIGG+s6nslzj2oCvj92QWLeZBEucx9FBBc081Oi9GyeipmyixlQtf08ODdS2TE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Pqshu+o53NqX16hqqJ7QpbWxc9QxtO7K+vDqb/oLeRTygaiOzRz4RRlJrHt6Rark9+3QydH32wuSG/vwBt5bmKpIzyqyar+ohpNYDRqlpXd/x1a7rA/hMsjnArJAAkNm3bIrUc5ZrD12pSx0c9WezjO0XkI5WAqVOSvIQYlLcOc= Received: by 10.86.89.4 with SMTP id m4mr4926748fgb.14.1207008990045; Mon, 31 Mar 2008 17:16:30 -0700 (PDT) Received: by 10.86.71.15 with HTTP; Mon, 31 Mar 2008 17:16:29 -0700 (PDT) Message-ID: Date: Mon, 31 Mar 2008 16:16:29 -0800 From: "Maksim Yevmenkin" To: mato In-Reply-To: <47F1395D.5090003@users.sf.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47DBE7A4.3060006@users.sf.net> <47EF6AA5.60403@users.sf.net> <1206902625.989759.1963.nullmailer@galant.ukfsn.org> <47F1395D.5090003@users.sf.net> Cc: freebsd-bluetooth@freebsd.org Subject: Re: BT issues X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2008 00:16:32 -0000 [...] > > the pairing is between the Bluetooth controllers (the actual dongle) but > > the Link Key is generally held in the OS so dual booting can be > > troublesome. In FreeBSD it is stored and supplied by hcsecd and you can > > edit it, but naturally Windows does not know about that so it makes a new > > link key and then FreeBSD does not know what it is. > > Yeah, and imho that's quite useful feature of Windows in this case -- it > first tries its stored link key and if it doesn't work it'll ask for PIN and > will generate a new link key. hcsecd on freebsd does exactly the same > Even if FreeBSD has no facility or desire to interactively ask for PIN, I > can imagine it could at least try and regenerate link key from PIN which > would help in this case. it does that > > - set the PIN to be a fixed PIN so that a new link key will be generated > > each time (I don't know if Windows can do this either) (its not a great > > solution) > > I'm not aware of this possibility. How can I make FreeBSD regenerate link > key each time ? > It's not an issue with Windows as it asks for PIN when pairing fails. like i said, the rules are - use link if present, the use pin code if present. > > - hack into Windows and find the link key, store this in your hcsecd file > > and all should be well. (I think there is a way to do this with Windows > > but I didn't find it) > > I've no idea how to do this. And it wouldn't help in the following > scenario -- I've got a guest who would like to connect to the internet via > my BT sharing and once doing it she would make my FreeBSD regenerate the > link key and I'm in the same situation as now (except that I cannot possibly > hack link keys in Windows of my visitors). it is perfectly fine with visitor, unless visitor does not dual boot, or unless you share your bluetooth dongle between multiple computers. the only way around this is to share the keys between oses/computers, or program link keys directly into the device itself. see read/write_stored_link_key commands in hccontrol. > > - store the link key in the device, so that the OS does not need to know > > about it. > > I've no idea how to do it and if it is possible at all. read above, i.e. read/write_stored_link_key commands in hccontrol. > > I wrote a program that does this last for NetBSD called btkey(1) - > > although it will not work directly on FreeBSD (the config file we use is > > different) it should not be difficult to port it, at least enough to store > > a link key into the device. > > > > (see cvsweb.netbsd.org .. src/usr.bin/btkey) hccontrol was able to do this on freebsd since day 1 thanks, max From owner-freebsd-bluetooth@FreeBSD.ORG Tue Apr 1 00:24:40 2008 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EAA1D1065C06 for ; Tue, 1 Apr 2008 00:24:40 +0000 (UTC) (envelope-from plunky@rya-online.net) Received: from smtp02.one2one.net (smtp02.one2one.net [149.254.192.174]) by mx1.freebsd.org (Postfix) with ESMTP id 8A3618FC2B for ; Tue, 1 Apr 2008 00:24:40 +0000 (UTC) (envelope-from plunky@rya-online.net) Received: from [127.0.0.1] (helo=localhost) by localhost.localdomain with esmtp (Exim 4.50) id 1Jg2Vf-0001fF-BM; Sun, 30 Mar 2008 19:44:03 +0100 Received: from localhost.localdomain ([127.0.0.1]) by localhost (smtpbeckt01 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06147-10; Sun, 30 Mar 2008 19:44:02 +0100 (BST) Received: from [10.35.37.32] (helo=rya-online.net) by localhost.localdomain with smtp (Exim 4.50) id 1Jg2Vc-0001f4-Kq; Sun, 30 Mar 2008 19:44:02 +0100 Received: (nullmailer pid 1760 invoked by uid 1000); Sun, 30 Mar 2008 18:43:46 -0000 Date: Sun, 30 Mar 2008 19:43:45 +0100 (BST) To: mato In-Reply-To: <47EF6AA5.60403@users.sf.net> References: <47DBE7A4.3060006@users.sf.net> <47EF6AA5.60403@users.sf.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Message-Id: <1206902625.989759.1963.nullmailer@galant.ukfsn.org> From: Iain Hibbert X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at example.com X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: plunky@rya-online.net X-SA-Exim-Scanned: No (on localhost.localdomain); SAEximRunCond expanded to false Cc: freebsd-bluetooth@freebsd.org Subject: Re: BT issues X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2008 00:24:41 -0000 On Sun, 30 Mar 2008, mato wrote: > 2) What am I trying to do ? Well, I set up internet sharing on my home laptop > via BT and I can use it from my other laptop. Now, it works when my other > (work) laptop runs FreeBSD. When I boot the other laptop in to Windows it > asks me for PIN and then it works OK. But when I boot in to FreeBSD again I > cannot connect and I have to reinitialise as explained in my original email. > So to me it seems connecting from Windows somehow changes stored key which is > unusable for subsequent FreeBSD uses. the pairing is between the Bluetooth controllers (the actual dongle) but the Link Key is generally held in the OS so dual booting can be troublesome. In FreeBSD it is stored and supplied by hcsecd and you can edit it, but naturally Windows does not know about that so it makes a new link key and then FreeBSD does not know what it is. There are some ways around this, in order of bestness: - make no authentication necessary (ie no pairing) (dangerous) - set the PIN to be a fixed PIN so that a new link key will be generated each time (I don't know if Windows can do this either) (its not a great solution) - hack into Windows and find the link key, store this in your hcsecd file and all should be well. (I think there is a way to do this with Windows but I didn't find it) - store the link key in the device, so that the OS does not need to know about it. I wrote a program that does this last for NetBSD called btkey(1) - although it will not work directly on FreeBSD (the config file we use is different) it should not be difficult to port it, at least enough to store a link key into the device. (see cvsweb.netbsd.org .. src/usr.bin/btkey) regards, iain From owner-freebsd-bluetooth@FreeBSD.ORG Tue Apr 1 05:45:20 2008 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 24F0A1065672 for ; Tue, 1 Apr 2008 05:45:20 +0000 (UTC) (envelope-from root@mmu.edu.my) Received: from staff.cyber.mmu.edu.my (staff.cyber.mmu.edu.my [203.106.62.12]) by mx1.freebsd.org (Postfix) with ESMTP id A2E788FC18 for ; Tue, 1 Apr 2008 05:45:19 +0000 (UTC) (envelope-from root@mmu.edu.my) Received: by staff.cyber.mmu.edu.my (Postfix, from userid 0) id D9CC74D525E; Tue, 1 Apr 2008 13:32:36 +0800 (MYT) Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by mmu.edu.my (Postfix) with ESMTP id 6D6D655E4CA for ; Sat, 29 Mar 2008 09:53:52 +0800 (MYT) Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 25F7A155C1D; Sat, 29 Mar 2008 01:53:24 +0000 (UTC) (envelope-from owner-freebsd-mobile@freebsd.org) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 016C010656D1; Sat, 29 Mar 2008 01:53:23 +0000 (UTC) (envelope-from owner-freebsd-mobile@freebsd.org) Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0BBD0106564A for ; Sat, 29 Mar 2008 01:53:17 +0000 (UTC) (envelope-from gamato@users.sf.net) Received: from slimak.dkm.cz (smtp.dkm.cz [62.24.64.34]) by mx1.freebsd.org (Postfix) with SMTP id 9E2868FC20 for ; Sat, 29 Mar 2008 01:53:16 +0000 (UTC) (envelope-from gamato@users.sf.net) Received: (qmail 80723 invoked by uid 0); 29 Mar 2008 01:26:35 -0000 Received: from r5h118.net.upc.cz (HELO ?192.168.111.2?) (86.49.7.118) by smtp.dkm.cz with SMTP; 29 Mar 2008 01:26:35 -0000 Message-ID: <47ED9AC5.4050505@users.sf.net> Date: Sat, 29 Mar 2008 02:26:29 +0100 From: martinko User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.12) Gecko/20080305 SeaMonkey/1.1.8 MIME-Version: 1.0 To: freebsd-bluetooth@freebsd.org, freebsd-mobile@freebsd.org Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Sender: owner-freebsd-mobile@freebsd.org Errors-To: owner-freebsd-mobile@freebsd.org Cc: Subject: Logitech V470 Bluetooth Mouse on FreeBSD ? X-BeenThere: freebsd-bluetooth@freebsd.org List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2008 05:45:20 -0000 Hallo lists, I'm considering buying Logitech V470 Bluetooth Mouse. Does anyone have any experience with using this mouse on FreeBSD please ? Cheers, Martin PS: Please CC me as I'm not on the lists. _______________________________________________ freebsd-mobile@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-mobile To unsubscribe, send any mail to "freebsd-mobile-unsubscribe@freebsd.org" From owner-freebsd-bluetooth@FreeBSD.ORG Tue Apr 1 06:20:18 2008 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B2CE91065671; Tue, 1 Apr 2008 06:20:18 +0000 (UTC) (envelope-from root@mmu.edu.my) Received: from staff.cyber.mmu.edu.my (staff.cyber.mmu.edu.my [203.106.62.12]) by mx1.freebsd.org (Postfix) with ESMTP id ED1AD8FC1F; Tue, 1 Apr 2008 06:20:17 +0000 (UTC) (envelope-from root@mmu.edu.my) Received: by staff.cyber.mmu.edu.my (Postfix, from userid 0) id D16E94D5119; Tue, 1 Apr 2008 14:19:04 +0800 (MYT) Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by mmu.edu.my (Postfix) with ESMTP id C44CC55E4C7 for ; Sun, 30 Mar 2008 01:21:04 +0800 (MYT) Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 4C2FE14FCF4; Sat, 29 Mar 2008 17:20:49 +0000 (UTC) (envelope-from owner-freebsd-mobile@freebsd.org) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id F038F10656D0; Sat, 29 Mar 2008 17:20:46 +0000 (UTC) (envelope-from owner-freebsd-mobile@freebsd.org) Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 34024106566B for ; Sat, 29 Mar 2008 17:20:43 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.153]) by mx1.freebsd.org (Postfix) with ESMTP id B206F8FC1B for ; Sat, 29 Mar 2008 17:20:42 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by fg-out-1718.google.com with SMTP id 16so769655fgg.35 for ; Sat, 29 Mar 2008 10:20:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=zbHgj4VLoEyXWguI5e1dU+9KCXx+IPz4xY69stY5tfI=; b=qt3GqTYFKD3/7LYZApvVuZ7R98bZfcKUxGFhHy+cI6z39+mtdQhqu1RusSlneB3lZu/eQGzq4p8dmip4o7Y0/LX7Kbsp9Ba/k92rqVOKEs4+ibAbXka6x0bLiLKM+TnzdEQ07hZ6OuLWJyBWnA6HWEm/8/yGNJM/2Vg6V+yPvfQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hWb/LiyIAyKpEp4EccjfF6cG5W47UmtLqqu31t4lVLLYpK9slNR3tb8ADn3cNyHt6PVbR3EanEFYImWynxqs2zI+AngTvULJYBwbZYh4TLGCgWRWVhc/OeQPcjvY8ojFP1zoA+mc5oN9RjztCl6Dlirz/i7jh9cSXQ+g8+/E6N0= Received: by 10.86.28.5 with SMTP id b5mr2811029fgb.76.1206809648902; Sat, 29 Mar 2008 09:54:08 -0700 (PDT) Received: by 10.86.71.15 with HTTP; Sat, 29 Mar 2008 09:54:08 -0700 (PDT) Message-ID: Date: Sat, 29 Mar 2008 09:54:08 -0700 From: "Maksim Yevmenkin" To: martinko In-Reply-To: <47ED9AC5.4050505@users.sf.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47ED9AC5.4050505@users.sf.net> X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Sender: owner-freebsd-mobile@freebsd.org Errors-To: owner-freebsd-mobile@freebsd.org Cc: freebsd-bluetooth@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: Logitech V470 Bluetooth Mouse on FreeBSD ? X-BeenThere: freebsd-bluetooth@freebsd.org List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2008 06:20:18 -0000 Martin, > I'm considering buying Logitech V470 Bluetooth Mouse. > Does anyone have any experience with using this mouse on FreeBSD please ? chances are it will work. i personally never tried this particular model, but bluetooth mice from different manufacturers (for example apple and microsoft) are known to work. thanks, max _______________________________________________ freebsd-mobile@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-mobile To unsubscribe, send any mail to "freebsd-mobile-unsubscribe@freebsd.org" From owner-freebsd-bluetooth@FreeBSD.ORG Tue Apr 1 06:21:37 2008 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 41D42106566B; Tue, 1 Apr 2008 06:21:37 +0000 (UTC) (envelope-from root@mmu.edu.my) Received: from staff.cyber.mmu.edu.my (staff.cyber.mmu.edu.my [203.106.62.12]) by mx1.freebsd.org (Postfix) with ESMTP id BE5438FC19; Tue, 1 Apr 2008 06:21:36 +0000 (UTC) (envelope-from root@mmu.edu.my) Received: by staff.cyber.mmu.edu.my (Postfix, from userid 0) id DF0024D4B3D; Tue, 1 Apr 2008 14:20:14 +0800 (MYT) Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by mmu.edu.my (Postfix) with ESMTP id E2BD255E4C2 for ; Sun, 30 Mar 2008 18:08:45 +0800 (MYT) Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 0E42A14E731; Sun, 30 Mar 2008 10:08:25 +0000 (UTC) (envelope-from owner-freebsd-mobile@freebsd.org) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 826A110656D3; Sun, 30 Mar 2008 10:08:23 +0000 (UTC) (envelope-from owner-freebsd-mobile@freebsd.org) Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BCEC01065671 for ; Sun, 30 Mar 2008 10:08:16 +0000 (UTC) (envelope-from gamato@users.sf.net) Received: from slimak.dkm.cz (smtp.dkm.cz [62.24.64.34]) by mx1.freebsd.org (Postfix) with SMTP id 1B14E8FC23 for ; Sun, 30 Mar 2008 10:08:15 +0000 (UTC) (envelope-from gamato@users.sf.net) Received: (qmail 85736 invoked by uid 0); 30 Mar 2008 10:08:13 -0000 Received: from r5h118.net.upc.cz (HELO ?192.168.111.3?) (86.49.7.118) by smtp.dkm.cz with SMTP; 30 Mar 2008 10:08:13 -0000 Message-ID: <47EF668D.1080003@users.sf.net> Date: Sun, 30 Mar 2008 12:08:13 +0200 From: mato User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.12) Gecko/20080305 SeaMonkey/1.1.8 MIME-Version: 1.0 To: Maksim Yevmenkin References: <47ED9AC5.4050505@users.sf.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Sender: owner-freebsd-mobile@freebsd.org Errors-To: owner-freebsd-mobile@freebsd.org Cc: freebsd-bluetooth@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: Logitech V470 Bluetooth Mouse on FreeBSD ? X-BeenThere: freebsd-bluetooth@freebsd.org List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2008 06:21:37 -0000 Maksim Yevmenkin wrote: > Martin, > > >> I'm considering buying Logitech V470 Bluetooth Mouse. >> Does anyone have any experience with using this mouse on FreeBSD please ? >> > > chances are it will work. i personally never tried this particular > model, but bluetooth mice from different manufacturers (for example > apple and microsoft) are known to work. > > thanks, > max > Hi Max, I've just bought the mouse and it works, partially. Well, I couldn't find anything in the handbook but google helped. However, the mouse has 4-way wheel but horizontal scrolling doesn't work. I've got the following in my xorg.conf: Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "auto" Option "Device" "/dev/sysmouse" Option "ZAxisMapping" "4 5 6 7" EndSection Any ideas pls ? Apart from that I noticed double clicks don't work in console. With regards, Martin _______________________________________________ freebsd-mobile@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-mobile To unsubscribe, send any mail to "freebsd-mobile-unsubscribe@freebsd.org" From owner-freebsd-bluetooth@FreeBSD.ORG Wed Apr 2 17:17:28 2008 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5708A1065673 for ; Wed, 2 Apr 2008 17:17:28 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.231]) by mx1.freebsd.org (Postfix) with ESMTP id 025B28FC14 for ; Wed, 2 Apr 2008 17:17:27 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by wr-out-0506.google.com with SMTP id 50so1833234wra.13 for ; Wed, 02 Apr 2008 10:17:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=jYw7vo3DDuiHe4O4t8X3PVPZISBz25kFkJJdzxrgLY0=; b=d6KpcQ5s7CA1lJIt7aCbn1ohZH/j0slGccf8Q9VYxTbMHKtttGsm31bllZaABBBea7BfAYZEwi+vo/IqgL27JPxyYP2JkjLBD+FFicNl16HQI9wKhvKSbZc6OXdpGnLsRjayCUV7a9EvYvEFJtBHvsYAwBh7szrE90kUj+UT5vw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=gLLIylFWK1xbUAqu8kHwZwDOKE9fgrowMdh3EKfzKH1kn7o/IH0o4TKuEvfOZWx560RZm3X9kTfmzDSsFNQLISJF7LYdjBpYRsmQspWghwr/tYy3Gi+Uy/WNd11oOZb/BEz3uve3kTo69Z9Crr2+gQXmDvkyhlkYHtQyIfOCbeM= Received: by 10.141.15.19 with SMTP id s19mr5158537rvi.75.1207156646581; Wed, 02 Apr 2008 10:17:26 -0700 (PDT) Received: by 10.140.192.20 with HTTP; Wed, 2 Apr 2008 10:17:26 -0700 (PDT) Message-ID: Date: Wed, 2 Apr 2008 09:17:26 -0800 From: "Maksim Yevmenkin" To: "Iain Hibbert" In-Reply-To: <1207142908.576787.1033.nullmailer@galant.ukfsn.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47ED9AC5.4050505@users.sf.net> <47EF668D.1080003@users.sf.net> <1206904241.480342.891.nullmailer@galant.ukfsn.org> <47F13BAD.9060808@users.sf.net> <1207142908.576787.1033.nullmailer@galant.ukfsn.org> Cc: freebsd-bluetooth@freebsd.org, mato , freebsd-mobile@freebsd.org Subject: Re: Logitech V470 Bluetooth Mouse on FreeBSD ? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Apr 2008 17:17:28 -0000 On 4/2/08, Iain Hibbert wrote: > On Mon, 31 Mar 2008, mato wrote: > > > Well, this mouse of mine presents itself exactly as you said ... > > > > Input id=2 size=12 count=1 page=Generic_Desktop usage=X Variable Relative, > > Input id=2 size=12 count=1 page=Generic_Desktop usage=Y Variable Relative, > > wow thats a sensitive mouse, 12 bit movements! :) amazing what you can get these days, huh? :) > > Input id=2 size=8 count=1 page=Generic_Desktop usage=Wheel Variable > > Input id=2 size=8 count=1 page=Consumer usage=AC_Pan Variable Relative, > > What can be done about it ?? > > I don't know - bthidd(4) could grow the support for AC_Pan fairly easily > but I don't know how you would get that into the kernel - the mouse_info > structure has no W direction and the ioctl would need to be versioned if > the structure was extended as there was no padding.. exactly Iain. parsing hid messages in bthidd(8) and extracting all the data is trivial. the question is how to feed those data into the kernel. right now, bthidd(8) uses console ioctl to feed data into the kernel. as you pointed out, mouse_info structure (specifically mouse_data union) does not have have w direction. > btw just to make you feel better I should say that sideways scroll does > not always work in applications; eg GThumb considers the extra buttons > to be 'next' and 'prev' instead and sideways scroll just jumps to the next > picture. i have a wired usb apple mighty mouse here and horizontal scrolling does not work for me at all. quick look at ums(4) showed that it does not export w data (it tries to locate both wheel and z axis, however it does not look for ac_pan axis). so, it appears that we need to teach moused(8), sysmouse(4) and mice drivers about second wheel. it appears to be a somewhat bigger chunk of work. thanks, max > > > iain > From owner-freebsd-bluetooth@FreeBSD.ORG Thu Apr 3 12:11:57 2008 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B1480106564A for ; Thu, 3 Apr 2008 12:11:57 +0000 (UTC) (envelope-from plunky@rya-online.net) Received: from smtp02.one2one.net (smtp02.one2one.net [149.254.192.174]) by mx1.freebsd.org (Postfix) with ESMTP id 66C078FC22 for ; Thu, 3 Apr 2008 12:11:57 +0000 (UTC) (envelope-from plunky@rya-online.net) Received: from [127.0.0.1] (helo=localhost) by localhost.localdomain with esmtp (Exim 4.50) id 1Jh319-0000Sy-DS; Wed, 02 Apr 2008 14:28:43 +0100 Received: from localhost.localdomain ([127.0.0.1]) by localhost (smtpbeckt01 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01600-10; Wed, 2 Apr 2008 14:28:43 +0100 (BST) Received: from [10.32.45.24] (helo=rya-online.net) by localhost.localdomain with smtp (Exim 4.50) id 1Jh317-0000Su-C4; Wed, 02 Apr 2008 14:28:42 +0100 Received: (nullmailer pid 1170 invoked by uid 1000); Wed, 02 Apr 2008 13:28:28 -0000 Date: Wed, 2 Apr 2008 14:28:28 +0100 (BST) To: mato In-Reply-To: <47F13BAD.9060808@users.sf.net> References: <47ED9AC5.4050505@users.sf.net> <47EF668D.1080003@users.sf.net> <1206904241.480342.891.nullmailer@galant.ukfsn.org> <47F13BAD.9060808@users.sf.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Message-Id: <1207142908.576787.1033.nullmailer@galant.ukfsn.org> From: Iain Hibbert X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at example.com X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: plunky@rya-online.net X-SA-Exim-Scanned: No (on localhost.localdomain); SAEximRunCond expanded to false Cc: freebsd-bluetooth@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: Logitech V470 Bluetooth Mouse on FreeBSD ? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2008 12:11:57 -0000 On Mon, 31 Mar 2008, mato wrote: > Well, this mouse of mine presents itself exactly as you said ... > > Input id=2 size=12 count=1 page=Generic_Desktop usage=X Variable Relative, > Input id=2 size=12 count=1 page=Generic_Desktop usage=Y Variable Relative, wow thats a sensitive mouse, 12 bit movements! :) > Input id=2 size=8 count=1 page=Generic_Desktop usage=Wheel Variable > Input id=2 size=8 count=1 page=Consumer usage=AC_Pan Variable Relative, > > What can be done about it ?? I don't know - bthidd(4) could grow the support for AC_Pan fairly easily but I don't know how you would get that into the kernel - the mouse_info structure has no W direction and the ioctl would need to be versioned if the structure was extended as there was no padding.. btw just to make you feel better I should say that sideways scroll does not always work in applications; eg GThumb considers the extra buttons to be 'next' and 'prev' instead and sideways scroll just jumps to the next picture. iain From owner-freebsd-bluetooth@FreeBSD.ORG Thu Apr 3 12:11:58 2008 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 540C61065671 for ; Thu, 3 Apr 2008 12:11:58 +0000 (UTC) (envelope-from plunky@rya-online.net) Received: from smtp02.one2one.net (smtp02.one2one.net [149.254.192.174]) by mx1.freebsd.org (Postfix) with ESMTP id 0CCBE8FC23 for ; Thu, 3 Apr 2008 12:11:57 +0000 (UTC) (envelope-from plunky@rya-online.net) Received: from [127.0.0.1] (helo=localhost) by localhost.localdomain with esmtp (Exim 4.50) id 1Jh34c-0000WU-Lf; Wed, 02 Apr 2008 14:32:18 +0100 Received: from localhost.localdomain ([127.0.0.1]) by localhost (smtpbeckt01 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01872-08; Wed, 2 Apr 2008 14:32:18 +0100 (BST) Received: from [10.32.45.24] (helo=rya-online.net) by localhost.localdomain with smtp (Exim 4.50) id 1Jh34a-0000WP-Cw; Wed, 02 Apr 2008 14:32:18 +0100 Received: (nullmailer pid 1331 invoked by uid 1000); Wed, 02 Apr 2008 13:32:04 -0000 Date: Wed, 2 Apr 2008 14:32:04 +0100 (BST) To: mato In-Reply-To: <47F13FEB.10503@users.sf.net> References: <47DBE7A4.3060006@users.sf.net> <47EF6AA5.60403@users.sf.net> <47F13FEB.10503@users.sf.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Message-Id: <1207143124.467349.1017.nullmailer@galant.ukfsn.org> From: Iain Hibbert X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at example.com X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: plunky@rya-online.net X-SA-Exim-Scanned: No (on localhost.localdomain); SAEximRunCond expanded to false Cc: freebsd-bluetooth@freebsd.org Subject: Re: BT issues X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2008 12:11:58 -0000 On Mon, 31 Mar 2008, mato wrote: > However, Windows can manage this as it asks for PIN key when connection > initiation fails. While I don't expect FreeBSD asking for a PIN, it might be > quite useful if it could automatically (upon a connection establishing > failure) throw away its stored link key and recreate it from PIN as Windows > does. btw That would be the wrong thing to do. The stored link key is the 'password' for the remote BDADDR to connect to your services and it is possible on many devices to change the bluetooth device address (BDADDR) You don't want to make it so that a remote attacker can just cause a 'password' reset by pretending to be an authorised device, and this is the reason PINs should not be permanently stored.. iain From owner-freebsd-bluetooth@FreeBSD.ORG Thu Apr 3 17:02:04 2008 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5859D1065671 for ; Thu, 3 Apr 2008 17:02:04 +0000 (UTC) (envelope-from markhobden@gmail.com) Received: from el-out-1112.google.com (el-out-1112.google.com [209.85.162.179]) by mx1.freebsd.org (Postfix) with ESMTP id E91DE8FC24 for ; Thu, 3 Apr 2008 17:02:03 +0000 (UTC) (envelope-from markhobden@gmail.com) Received: by el-out-1112.google.com with SMTP id v27so1633493ele.12 for ; Thu, 03 Apr 2008 10:02:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=Nigv5gvrmYz4SjTNuKEKkIDf4LM57PwsWivWEqUDKV4=; b=t8yQ742gjId/FrwyWrdIr+s652rjaFV6/7X6XRyWsoGAPbHWIlUiJTq1Z7aewje41HDqc9J9Ur6gKkfvZQrWf7ddkk3VV4tFRpurXQZt0NYuQDtJTy3XT2Xte0nmXiHq40m8bsYYx1WRtitOVa8q1U/soV9O2yq0hwEnTJye944= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=l6+wKnBcBM4uAOHnm5W0JQwEbJ9dNvVdHu60r20UWT7lTCloYy81k4+eFiJ9pCk74fpXLq+lcZ6ta0NCttIQ3/7nZ4QxhJc9iz7F1mSr6+eDGjznSbIKzKfSUgZd+hVIEDLrLQwh5SurYOMOTYNxdpeWrE/Mnp1krI2iLy6LXJ0= Received: by 10.114.109.1 with SMTP id h1mr82964wac.35.1207240608600; Thu, 03 Apr 2008 09:36:48 -0700 (PDT) Received: by 10.114.146.10 with HTTP; Thu, 3 Apr 2008 09:36:40 -0700 (PDT) Message-ID: Date: Thu, 3 Apr 2008 17:36:40 +0100 From: "Mark Hobden" To: "Maksim Yevmenkin" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47ED9AC5.4050505@users.sf.net> <47EF668D.1080003@users.sf.net> <1206904241.480342.891.nullmailer@galant.ukfsn.org> <47F13BAD.9060808@users.sf.net> <1207142908.576787.1033.nullmailer@galant.ukfsn.org> Cc: freebsd-bluetooth@freebsd.org, mato , freebsd-mobile@freebsd.org Subject: Re: Logitech V470 Bluetooth Mouse on FreeBSD ? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2008 17:02:04 -0000 On 02/04/2008, Maksim Yevmenkin wrote: > > I don't know - bthidd(4) could grow the support for AC_Pan fairly easily > > but I don't know how you would get that into the kernel - the mouse_info > > structure has no W direction and the ioctl would need to be versioned if > > the structure was extended as there was no padding.. > > exactly Iain. parsing hid messages in bthidd(8) and extracting all the > data is trivial. the question is how to feed those data into the > kernel. right now, bthidd(8) uses console ioctl to feed data into the > kernel. as you pointed out, mouse_info structure (specifically > mouse_data union) does not have have w direction. > > > btw just to make you feel better I should say that sideways scroll does > > not always work in applications; eg GThumb considers the extra buttons > > to be 'next' and 'prev' instead and sideways scroll just jumps to the next > > picture. > > i have a wired usb apple mighty mouse here and horizontal scrolling > does not work for me at all. quick look at ums(4) showed that it does > not export w data (it tries to locate both wheel and z axis, however > it does not look for ac_pan axis). > > so, it appears that we need to teach moused(8), sysmouse(4) and mice > drivers about second wheel. it appears to be a somewhat bigger chunk > of work. > > thanks, > max Hi Martin, I have a patch somewhere at home that manages to do all of the above. I had planned to re-wite part of it to not require increasing the size of an xorg structure I changed - but it doesn't look like I will have time to do that for a while. At present it applies on top of the uhidev patches but it probably wouldn't be too difficult to get it to apply without them. I have been using it for a little while now and its been working fine for me. I will try and clean it up and document what needs to be re-compiled to get it working and then post it sometime in the next few days. Kind Regards, Mark Hobden. From owner-freebsd-bluetooth@FreeBSD.ORG Fri Apr 4 19:03:52 2008 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A1AF1065671 for ; Fri, 4 Apr 2008 19:03:52 +0000 (UTC) (envelope-from gamato@users.sf.net) Received: from slimak.dkm.cz (smtp.dkm.cz [62.24.64.34]) by mx1.freebsd.org (Postfix) with SMTP id A5E3B8FC18 for ; Fri, 4 Apr 2008 19:03:51 +0000 (UTC) (envelope-from gamato@users.sf.net) Received: (qmail 80097 invoked by uid 0); 4 Apr 2008 19:03:49 -0000 Received: from r5j117.net.upc.cz (HELO ?192.168.11.3?) (86.49.9.117) by smtp.dkm.cz with SMTP; 4 Apr 2008 19:03:49 -0000 Message-ID: <47F67B95.4060402@users.sf.net> Date: Fri, 04 Apr 2008 21:03:49 +0200 From: mato User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.13) Gecko/20080402 SeaMonkey/1.1.9 MIME-Version: 1.0 To: Maksim Yevmenkin , freebsd-bluetooth@freebsd.org References: <47DBE7A4.3060006@users.sf.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: BT issues X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2008 19:03:52 -0000 Maksim Yevmenkin wrote: > 2) please cut and paste the following rc script into > /etc/rc.d/rfcomm_pppd_server > > == > > #!/bin/sh > # > # $FreeBSD$ > # > > # PROVIDE: rfcomm_pppd_server > # REQUIRE: DAEMON sdpd > # BEFORE: LOGIN > # KEYWORD: nojail > > . /etc/rc.subr > > name="rfcomm_pppd_server" > rcvar=`set_rcvar` > command="/usr/sbin/rfcomm_pppd" > command_args="-s" > start_precmd="rfcomm_pppd_server_prestart" > required_modules="ng_btsocket" > > rfcomm_pppd_server_prestart() > { > if [ -n "${rfcomm_pppd_server_bd_addr}" ]; then > command_args="${command_args} -a ${rfcomm_pppd_server_bd_addr}" > fi > > command_args="${command_args} -C ${rfcomm_pppd_server_channel:-1}" > > command_args="${command_args} -l > ${rfcomm_pppd_server_label:-rfcomm-server}" > > if checkyesno rfcomm_pppd_server_register_sp ; then > command_args="${command_args} -S" > fi > > if checkyesno rfcomm_pppd_server_register_dun ; then > command_args="${command_args} -D" > fi > } > > load_rc_config $name > run_rc_command "$1" > > == > > 3) to enable rfcomm_pppd server at boot time just add to your > /etc/rc.conf the following line > > rfcomm_pppd_server_enanble="YES" > rfcomm_pppd_server_channel=1 # EDIT THIS IF NEEDED > rfcomm_pppd_server_label="rfcomm-server" # EDIT THIS IF NEEDED > rfcomm_pppd_server_register_sp="NO" > rfcomm_pppd_server_register_dun="NO" > > this should start rfcomm_pppd server on boot automatically. to > start/stop rfcomm_pppd server at run time use > > /etc/rc.d/rfcomm_pppd start/stop > > Hi Max, Thanks for the script but I would need it expanded a bit. The thing is that because I connect both FreeBSD and Windows as clients I had to create 2 slightly different ppp.conf labels (it didn't work for me with one label only). Therefore I created 2 simple scripts, each starting rfcomm_pppd with different label on different channel. Then I run them manually or automatically from cron at startup. Do you think it would be possible to cover situations like mine within your script ? Something like specifying for instance rfcomm_pppd_server_channel="1,2" .. ? Cheers, Martin From owner-freebsd-bluetooth@FreeBSD.ORG Fri Apr 4 19:11:29 2008 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5214B1065676 for ; Fri, 4 Apr 2008 19:11:29 +0000 (UTC) (envelope-from gamato@users.sf.net) Received: from slimak.dkm.cz (smtp.dkm.cz [62.24.64.34]) by mx1.freebsd.org (Postfix) with SMTP id A64B08FC15 for ; Fri, 4 Apr 2008 19:11:28 +0000 (UTC) (envelope-from gamato@users.sf.net) Received: (qmail 26941 invoked by uid 0); 4 Apr 2008 19:11:27 -0000 Received: from r5j117.net.upc.cz (HELO ?192.168.11.3?) (86.49.9.117) by smtp.dkm.cz with SMTP; 4 Apr 2008 19:11:27 -0000 Message-ID: <47F67D5F.7030103@users.sf.net> Date: Fri, 04 Apr 2008 21:11:27 +0200 From: mato User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.13) Gecko/20080402 SeaMonkey/1.1.9 MIME-Version: 1.0 To: Iain Hibbert References: <47ED9AC5.4050505@users.sf.net> <47EF668D.1080003@users.sf.net> <1206904241.480342.891.nullmailer@galant.ukfsn.org> <47F13BAD.9060808@users.sf.net> <1207142908.576787.1033.nullmailer@galant.ukfsn.org> In-Reply-To: <1207142908.576787.1033.nullmailer@galant.ukfsn.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bluetooth@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: Logitech V470 Bluetooth Mouse on FreeBSD ? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2008 19:11:29 -0000 Iain Hibbert wrote: > On Mon, 31 Mar 2008, mato wrote: > > >> Well, this mouse of mine presents itself exactly as you said ... >> >> Input id=2 size=12 count=1 page=Generic_Desktop usage=X Variable Relative, >> Input id=2 size=12 count=1 page=Generic_Desktop usage=Y Variable Relative, >> > > wow thats a sensitive mouse, 12 bit movements! :) > > Well, I don't know how much is it -- 12 bits across what ? 1 inch ? Anyway, I must say that mouse is quite sensitive and I'd like to adjust it a bit as it's sometimes difficult to control. However, I've no idea how to achieve this. Any suggestions please ? >> Input id=2 size=8 count=1 page=Generic_Desktop usage=Wheel Variable >> Input id=2 size=8 count=1 page=Consumer usage=AC_Pan Variable Relative, >> >> What can be done about it ?? >> > > I don't know - bthidd(4) could grow the support for AC_Pan fairly easily > but I don't know how you would get that into the kernel - the mouse_info > structure has no W direction and the ioctl would need to be versioned if > the structure was extended as there was no padding.. > > btw just to make you feel better I should say that sideways scroll does > not always work in applications; eg GThumb considers the extra buttons > to be 'next' and 'prev' instead and sideways scroll just jumps to the next > picture. > > iain > Well, I would expect "better" applications would allow to configure those extra buttons. Anyway, it's a bit shame having these cool buttons with no way to use them. :-( Regards, Martin From owner-freebsd-bluetooth@FreeBSD.ORG Fri Apr 4 19:20:57 2008 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 39DA0106564A for ; Fri, 4 Apr 2008 19:20:57 +0000 (UTC) (envelope-from gamato@users.sf.net) Received: from slimak.dkm.cz (smtp.dkm.cz [62.24.64.34]) by mx1.freebsd.org (Postfix) with SMTP id 8FECC8FC19 for ; Fri, 4 Apr 2008 19:20:56 +0000 (UTC) (envelope-from gamato@users.sf.net) Received: (qmail 13402 invoked by uid 0); 4 Apr 2008 19:20:55 -0000 Received: from r5j117.net.upc.cz (HELO ?192.168.11.3?) (86.49.9.117) by smtp.dkm.cz with SMTP; 4 Apr 2008 19:20:55 -0000 Message-ID: <47F67F97.9040908@users.sf.net> Date: Fri, 04 Apr 2008 21:20:55 +0200 From: mato User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.13) Gecko/20080402 SeaMonkey/1.1.9 MIME-Version: 1.0 To: Iain Hibbert References: <47DBE7A4.3060006@users.sf.net> <47EF6AA5.60403@users.sf.net> <47F13FEB.10503@users.sf.net> <1207143124.467349.1017.nullmailer@galant.ukfsn.org> In-Reply-To: <1207143124.467349.1017.nullmailer@galant.ukfsn.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bluetooth@freebsd.org Subject: Re: BT issues X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2008 19:20:57 -0000 Iain Hibbert wrote: > On Mon, 31 Mar 2008, mato wrote: > > >> However, Windows can manage this as it asks for PIN key when connection >> initiation fails. While I don't expect FreeBSD asking for a PIN, it might be >> quite useful if it could automatically (upon a connection establishing >> failure) throw away its stored link key and recreate it from PIN as Windows >> does. >> > > btw That would be the wrong thing to do. The stored link key is the > 'password' for the remote BDADDR to connect to your services and it is > possible on many devices to change the bluetooth device address (BDADDR) > > You don't want to make it so that a remote attacker can just cause a > 'password' reset by pretending to be an authorised device, and this is the > reason PINs should not be permanently stored.. > > iain > Well, I haven't thought of this and you've got a point. On the other hand, stored link key doesn't have to be reset. I can imagine that if the link key didn't work FreeBSD could fall back to PIN as it does in the beginning and only if PINs matched new link key would be stored. Thus attacker would need to know the PIN which is normally not likely. Also, PIN can and should be longer and even composed of alphanumerals. Well, at least this is what Windows do AFAIK -- when link key was changed they pop up dialogue asking for (new) PIN. The only problem I see now is with devices with predefined or, worse, set-in-stone PINs. :-/ Regards, Martin From owner-freebsd-bluetooth@FreeBSD.ORG Fri Apr 4 20:10:58 2008 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CE55E1065670 for ; Fri, 4 Apr 2008 20:10:57 +0000 (UTC) (envelope-from gamato@users.sf.net) Received: from slimak.dkm.cz (smtp.dkm.cz [62.24.64.34]) by mx1.freebsd.org (Postfix) with SMTP id 3D4888FC12 for ; Fri, 4 Apr 2008 20:10:56 +0000 (UTC) (envelope-from gamato@users.sf.net) Received: (qmail 85356 invoked by uid 0); 4 Apr 2008 20:10:55 -0000 Received: from r5j117.net.upc.cz (HELO ?192.168.11.3?) (86.49.9.117) by smtp.dkm.cz with SMTP; 4 Apr 2008 20:10:55 -0000 Message-ID: <47F68B4F.4080706@users.sf.net> Date: Fri, 04 Apr 2008 22:10:55 +0200 From: mato User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.13) Gecko/20080402 SeaMonkey/1.1.9 MIME-Version: 1.0 To: Maksim Yevmenkin References: <47ED9AC5.4050505@users.sf.net> <47EF668D.1080003@users.sf.net> <1206904241.480342.891.nullmailer@galant.ukfsn.org> <47F13BAD.9060808@users.sf.net> <1207142908.576787.1033.nullmailer@galant.ukfsn.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bluetooth@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: Logitech V470 Bluetooth Mouse on FreeBSD ? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2008 20:10:58 -0000 Maksim Yevmenkin wrote: > On 4/2/08, Iain Hibbert wrote: > >> On Mon, 31 Mar 2008, mato wrote: >> >>> Input id=2 size=8 count=1 page=Generic_Desktop usage=Wheel Variable >>> Input id=2 size=8 count=1 page=Consumer usage=AC_Pan Variable Relative, >>> What can be done about it ?? >>> >> I don't know - bthidd(4) could grow the support for AC_Pan fairly easily >> but I don't know how you would get that into the kernel - the mouse_info >> structure has no W direction and the ioctl would need to be versioned if >> the structure was extended as there was no padding.. >> > > exactly Iain. parsing hid messages in bthidd(8) and extracting all the > data is trivial. the question is how to feed those data into the > kernel. right now, bthidd(8) uses console ioctl to feed data into the > kernel. as you pointed out, mouse_info structure (specifically > mouse_data union) does not have have w direction. > > >> btw just to make you feel better I should say that sideways scroll does >> not always work in applications; eg GThumb considers the extra buttons >> to be 'next' and 'prev' instead and sideways scroll just jumps to the next >> picture. >> > > i have a wired usb apple mighty mouse here and horizontal scrolling > does not work for me at all. quick look at ums(4) showed that it does > not export w data (it tries to locate both wheel and z axis, however > it does not look for ac_pan axis). > > so, it appears that we need to teach moused(8), sysmouse(4) and mice > drivers about second wheel. it appears to be a somewhat bigger chunk > of work. > > The current situation seems to me not ideal and rather complicated. You said bthidd injects messages directly to kernel. I don't know what the consequences are but I noticed the following ... When I run moused my BT mouse works in console (except double clicks etc.). Unfortunately, because I wanted extra functionality from my Synaptics touchpad I installed x11-drivers/synaptics port which required disabling moused which handled the touchpad as ps/2 mouse. Now synaptics works great in X11 but it doesn't work in console at all and my BT mouse doesn't work in console either. But if I plug in a USB mouse devd runs moused and suddenly my BT mouse works in console too. Funny but very inconvenient, I can tell you. Fortunately I don't work in console that much anymore. With regards, Martin