From owner-freebsd-x11@FreeBSD.ORG Mon Jan 21 21:57:53 2008 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 486CC16A420 for ; Mon, 21 Jan 2008 21:57:53 +0000 (UTC) (envelope-from cracauer@koef.zs64.net) Received: from koef.zs64.net (koef.zs64.net [212.12.50.230]) by mx1.freebsd.org (Postfix) with ESMTP id A139B13C478 for ; Mon, 21 Jan 2008 21:57:52 +0000 (UTC) (envelope-from cracauer@koef.zs64.net) Received: from koef.zs64.net (koef.zs64.net [212.12.50.230]) by koef.zs64.net (8.14.2/8.14.2) with ESMTP id m0LLNbCK097128 for ; Mon, 21 Jan 2008 22:23:37 +0100 (CET) (envelope-from cracauer@koef.zs64.net) Received: (from cracauer@localhost) by koef.zs64.net (8.14.2/8.14.2/Submit) id m0LLNb9V097127 for freebsd-x11@freebsd.org; Mon, 21 Jan 2008 16:23:37 -0500 (EST) (envelope-from cracauer) Date: Mon, 21 Jan 2008 16:23:37 -0500 From: Martin Cracauer To: freebsd-x11@freebsd.org Message-ID: <20080121212336.GA96644@cons.org> References: <20071210192823.GA88826@cons.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071210192823.GA88826@cons.org> User-Agent: Mutt/1.4.2.3i Subject: Dual mice setup in Xorg 7.3 repaired, new problems (Was: Mouse event merging for several mice, how does it work?) X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jan 2008 21:57:53 -0000 I figured out why the "dual mouse" setup with touchpad and sometimes plugged in USB mouse doesn't work in xorg-7.3 anymore. Here is what seems required: 1) you have to manually do to a ServerLayout naming both mice, like you had to do in the stone age. Here's mine: Section "ServerLayout" Identifier "X.org Configured" Screen 0 "Screen0" 0 0 InputDevice "Keyboard0" "CoreKeyboard" InputDevice "pad" "CorePointer" # InputDevice "MSIE" "AlwaysCore" # see below # The AlwaysCore option no longer exists. Replace it with SendCoreEvents or CorePointer ;) InputDevice "MSIE" "SendCoreEvents" EndSection 2) Done that it still doesn't work and the Xorg.0.og file says "doesn't send core events" on whatever is the second. Exchanging the devices works. As the comment above indicates: # The AlwaysCore option no longer exists. Replace it with SendCoreEvents or CorePointer ;) Needless to say, there is no warning about the now ignored "AlwaysCore" in the file. 3) To tip off the off-ticking, Using ... # Option "SendCoreEvents" "true" ... in the mouse's InputDevice section doesn't work, although it should be equivalent to using InputDevice "MSIE" "SendCoreEvents" in the ServerLayout section. But you must have it in the serverlayout section. OK, so here's the full thing: Section "ServerLayout" Identifier "X.org Configured" Screen 0 "Screen0" 0 0 # InputDevice "Mouse0" "CorePointer" InputDevice "Keyboard0" "CoreKeyboard" InputDevice "pad" "CorePointer" # The AlwaysCore option no longer exists. Replace it with SendCoreEvents or CorePointer ;) InputDevice "MSIE" "SendCoreEvents" EndSection Section "InputDevice" Identifier "pad" Driver "mouse" # Driver "synaptics" # Option "SendCoreEvents" "true" # useless, ignored Option "Protocol" "auto" Option "Device" "/dev/psm0" EndSection Section "InputDevice" Identifier "MSIE" Driver "mouse" Option "Protocol" "auto" Option "Device" "/dev/ums0" # Option "Device" "/dev/sysmouse" # if using moused on it Option "ZAxisMapping" "4 5 6 7" EndSection %% Solved that, now I am stuck with the double quote (shift-single quote) only working when I use the right shift key. It doesn't work with the left shift key, although all other shift combinations seem to work with the left shift key. Jessus... Anybody else seeing this? Thinkpad R40, FreeBSD-6.3-stable. Martin Martin Cracauer wrote on Mon, Dec 10, 2007 at 02:28:23PM -0500: > 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 http://www.cons.org/cracauer/ > FreeBSD - where you want to go, today. http://www.freebsd.org/ > Date: Thu, 6 Dec 2007 15:23:52 -0500 > From: Martin Cracauer > To: freebsd-stable@freebsd.org > Subject: Lost USB mouse in RELENG_6 upgrade (July to December) > 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 http://www.cons.org/cracauer/ > FreeBSD - where you want to go, today. http://www.freebsd.org/ -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer http://www.cons.org/cracauer/ FreeBSD - where you want to go, today. http://www.freebsd.org/