From owner-freebsd-mobile@FreeBSD.ORG Mon Apr 7 17:05:48 2008 Return-Path: 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 81E451065675 for ; Mon, 7 Apr 2008 17:05:48 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.184]) by mx1.freebsd.org (Postfix) with ESMTP id 029D68FC23 for ; Mon, 7 Apr 2008 17:05:47 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by fk-out-0910.google.com with SMTP id b27so2487826fka.11 for ; Mon, 07 Apr 2008 10:05:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; 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=MScQjqaZux+RdVNJKNmmS9uVZucEUDecH42PwJYk1tI=; b=EVa9esDWIF7SIXgVQtzEEtZQovPhy6owfJYxolzrlFSpeqU4DBqbuSHzod32pZ8hBYKloH+AkkcNSvzmC+v7KwD7k8w3A0iBeTBenRDNeGogyCCW95uKUrlAQ7jiMHiHXeG6SlgRW88dTe81t3bFinn1d+Kn3bBNvtVT3KuxrXE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Bo9LnXoQQfLwDOYycJmGvt3t3gi4CUn7WYmNNS5LvJeWHpzbTOW+Tm+WIqhXR8FoQiFN6rSjs83kIi0ryMN7v+HMHnTBYj6uYS/jGxXT1Lx7YrWsWCy5jbUSQlSO2tmF37xS6ch0NMznz1lW2zda/8tYoyn17hG9PKR19Kv6iQQ= Received: by 10.82.166.9 with SMTP id o9mr1280834bue.55.1207587944615; Mon, 07 Apr 2008 10:05:44 -0700 (PDT) Received: by 10.86.71.15 with HTTP; Mon, 7 Apr 2008 10:05:44 -0700 (PDT) Message-ID: Date: Mon, 7 Apr 2008 09:05:44 -0800 From: "Maksim Yevmenkin" To: mato In-Reply-To: <47F68B4F.4080706@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> <1206904241.480342.891.nullmailer@galant.ukfsn.org> <47F13BAD.9060808@users.sf.net> <1207142908.576787.1033.nullmailer@galant.ukfsn.org> <47F68B4F.4080706@users.sf.net> Cc: freebsd-bluetooth@freebsd.org, Iain Hibbert , freebsd-mobile@freebsd.org Subject: Re: Logitech V470 Bluetooth Mouse on FreeBSD ? X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Apr 2008 17:05:48 -0000 [...] > > 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. freebsd offers something called sysmouse(4). it allows the console and the user process (such as xorg) to share the mouse. if you use sysmouse(4) in xorg - the mouse will be shared between both console and xorg. if you use specific mouse driver (such as ums(4)) you will need to put /dev/ums0 in your xorg.conf and use appropriate xorg mouse driver. in the later case, the mouse will not be shared and will not work in the console. bthidd(8) uses console ioctl's to feed bluetooth mouse events into the kernel (i.e. feed events to sysmouse(4)). this way we automatically share bluetooth mouse between console and xorg. however, because sysmouse(4) protocol lacks knowledge about all the fancy buttons and wheels we can not pass this data to xorg. basically we are limited to whatever sysmouse(4) protocol knows about. currently, it is not possible to use bluetooth mouse directly from xorg/whatever, because there is no device node for it. in other words, there is no /dev/btmsX device node that feeds data in some protocol to consumers. i guess, it would be possible to write virtual mouse vms(4) driver (similar to virtual keyboard driver vkbd(4)) that would simply be used to pass through mouse data in, say, microsoft protocol or something like that. however, i think it would be better to add another level of operation to sysmouse(4) and change protocol so it can accommodate future extensions. thanks, max > > With regards, > > Martin >