From owner-freebsd-x11@FreeBSD.ORG Thu Mar 19 05:48:33 2009 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 B64EF106566B; Thu, 19 Mar 2009 05:48:33 +0000 (UTC) (envelope-from scuppers@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.244]) by mx1.freebsd.org (Postfix) with ESMTP id 4EE7A8FC17; Thu, 19 Mar 2009 05:48:33 +0000 (UTC) (envelope-from scuppers@gmail.com) Received: by an-out-0708.google.com with SMTP id d11so265211and.13 for ; Wed, 18 Mar 2009 22:48:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=uEhemTNiM/CKb9bQjbJHmX62RGsFaqDnNMDlN6N0v1U=; b=QDna4ckqIMdn4SMW9Y9a7SepDJ4Z8knZgI4yLIyK0K2lQ6GqvnN316zcgj37Ks3gQA pBh/aRAdxHYCycgxhrSMbRqUryxvJerpsFMz/9K/is23VwOMNsu58u5eyIjjNGuYbwz+ TPAMoWN8Zgl1szeNbQmVxIaoUYIrhHs4W3kV8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=AZ6adXfbrkTT4hswOWGawa3ZLRE9pXxHP0hCpxvwBDVDfVxdx9W7fE4A7eXu8xDK6C NXhrQoEsw6xx4C4hWbc9eCDmbXMckQOqxqaiG1/tB8tknGMnVB6exPz/G1dheqIvIxgt kzLP9/gLpcQNdtCZI8U1D7lbn7qboeHj9kOC0= MIME-Version: 1.0 Received: by 10.231.10.68 with SMTP id o4mr729624ibo.2.1237441711569; Wed, 18 Mar 2009 22:48:31 -0700 (PDT) In-Reply-To: References: <1237431246.1738.71.camel@balrog.2hip.net> <49C1D545.6030505@phat.za.net> Date: Thu, 19 Mar 2009 01:48:31 -0400 Message-ID: From: Scott Spare To: Aragon Gouveia Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-x11@freebsd.org Subject: Re: X11 mouse driver and USB mouse disconnection 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: Thu, 19 Mar 2009 05:48:34 -0000 One interesting side effect: top reports continual high CPU usage (>65%) on the Xorg process for many minutes after the mouse unplug-replug event. I haven't left it alone for long enough to see whether it ever dies down, but can confirm it sticks at around 65% for 10 minutes. Interestingly, the CPU usage drops to single digits when I switch to a console virtual TTY then switch back to Xorg. No other programs are running from within X. Here's a full unplug-replug event from Xorg.0.log: (**) USB-PS/2 Optical Mouse: Device: "/dev/ums0" (==) USB-PS/2 Optical Mouse: Protocol: "Auto" (**) USB-PS/2 Optical Mouse: always reports core events (**) Option "Device" "/dev/ums0" (==) USB-PS/2 Optical Mouse: Emulate3Buttons, Emulate3Timeout: 50 (**) USB-PS/2 Optical Mouse: ZAxisMapping: buttons 4 and 5 (**) USB-PS/2 Optical Mouse: Buttons: 9 (**) USB-PS/2 Optical Mouse: Sensitivity: 1 (II) XINPUT: Adding extended input device "USB-PS/2 Optical Mouse" (type: MOUSE) (II) USB-PS/2 Optical Mouse: SetupAuto: hw.iftype is 5, hw.model is 0 (II) USB-PS/2 Optical Mouse: SetupAuto: protocol is SysMouse (WW) fcntl(24, O_ASYNC): Inappropriate ioctl for device (II) UnloadModule: "mouse" I'll see if I can find anything else. Thanks once again - this is the closest this has been to working in quite a while. Scott On Thu, Mar 19, 2009 at 1:37 AM, Scott Spare wrote: > Aragon and Robert, > Fantastic. Thank you. > > The fix in my case: > Exactly as you guys mentioned, hald needed to be enabled. > This system was upgraded from an older version - my guess is I missed > enabling hald while running mergemaster during an upgrade. > > The details: > I added > hald_enable="YES" > to /etc/rc.conf > > and then tried running hald by issuing this command: > /usr/local/etc/rc.d/hald start > > I got errors saying dbus wasn't properly configured either, so I did the > same for it. > Added > dbus_enable="YES" > to /etc/rc.conf > and started dbus and hald. > > Works like a champ. Thanks! > > Scott > http://www.scottspare.com > > > > On Thu, Mar 19, 2009 at 1:16 AM, Aragon Gouveia wrote: > >> Robert Noland wrote: >> >>> Particularly for your situation, I would not disable AutoAddDevices or >>> AllowEmptyInput. At the very least, you need AutoAddDevices at its >>> default value and hald running. >>> >> >> FWIW, I run Xorg with a static config, AutoAddDevices/AutoEnableDevices >> both disabled, hald enabled and moused enabled. I unplug and replug my >> mouse without problems. >> >> When I unplug my mouse and moused exits, /dev/sysmouse doesn't disappear. >> >> So maybe something else is going wrong... >> >> >> Regards, >> Aragon >> >> >