Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Dec 2007 14:28:23 -0500
From:      Martin Cracauer <cracauer@cons.org>
To:        freebsd-x11@freebsd.org
Subject:   Mouse event merging for several mice, how does it work?
Message-ID:  <20071210192823.GA88826@cons.org>

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

--+QahgC5+KEYLbs62
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Can somebody explain to me how this works, which software layer does
it?

- when you have a notebook with a touchpad
- and a USB mouse
- then X11 will use both
- you don't have to have a xorg.conf that mentions both, it's
  automatic, and you can plug the USB mouse in and out all you want.

This was a fairly recent feature of XFree, I remember that around 2002
I had to use a ServerConfig with primary and second pointer to get
this going at the time.  I remember Linux and FreeBSD got the
"merging" around the same time.

I never understood which software layer did this merging, I don't
think it's the X server.  I have to fix it in RELENG_6, apparently,
see appended message.

Martin
-- 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Martin Cracauer <cracauer@cons.org>   http://www.cons.org/cracauer/
FreeBSD - where you want to go, today.      http://www.freebsd.org/

--+QahgC5+KEYLbs62
Content-Type: message/rfc822
Content-Disposition: inline

Date: Thu, 6 Dec 2007 15:23:52 -0500
From: Martin Cracauer <cracauer@cons.org>
To: freebsd-stable@freebsd.org
Subject: Lost USB mouse in RELENG_6 upgrade (July to December)
Message-ID: <20071206202343.GA20958@cons.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.4.2.3i

Upgrading my Thinkpad from RELENG_6 as of July to yesterday's I lost
my USB mouse.  The notebook's mousepad still works.  I used to have
both, the USB mouse would be assigned to work in X11 when I plugged it
in.

Something about moused or a layer below it changed.  I can make the
USB mouse work by manually calling moused like this:
  moused -p /dev/ums0 -t auto
But then I lose the mousepad, of course.

I updated all /etc files, UPDATING doesn't mention mouse or USB.

The problem is not X11 specific.  Calling moused on a console I can
see that the console mouse cursor works for the pad but not for the
USB mouse.

Any ideas how to fix this? I assume I now have to either
- tell moused to monitor /dev/ums0?
- configure something below moused that inserts the usb mouse commands
  into /dev/psm's stream?

Thanks
Martin

dmesg:
ums0: Microsoft Microsoft Trackball Optical\M-., rev 1.10/1.21, addr
2, iclass 3/1
ums0: 5 buttons and Z dir.

usbdevs -d -v:
port 2 addr 2: low speed, power 100 mA, config 1, Microsoft Trackball
Optical (0x0023), Microsoft(0x045e), rev 1.21 ums0






-- 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Martin Cracauer <cracauer@cons.org>   http://www.cons.org/cracauer/
FreeBSD - where you want to go, today.      http://www.freebsd.org/

--+QahgC5+KEYLbs62--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071210192823.GA88826>