From owner-freebsd-bugs@FreeBSD.ORG Fri Oct 26 19:10:01 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id ED4E1E47 for ; Fri, 26 Oct 2012 19:10:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.FreeBSD.org [8.8.178.135]) by mx1.freebsd.org (Postfix) with ESMTP id C2FA88FC0A for ; Fri, 26 Oct 2012 19:10:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q9QJA0uk034636 for ; Fri, 26 Oct 2012 19:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q9QJA0bV034635; Fri, 26 Oct 2012 19:10:00 GMT (envelope-from gnats) Resent-Date: Fri, 26 Oct 2012 19:10:00 GMT Resent-Message-Id: <201210261910.q9QJA0bV034635@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Garrett Cooper Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 245F8910 for ; Fri, 26 Oct 2012 19:06:19 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 0CEDA8FC14 for ; Fri, 26 Oct 2012 19:06:19 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q9QJ6Ivh056271 for ; Fri, 26 Oct 2012 19:06:18 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id q9QJ6I3v056270; Fri, 26 Oct 2012 19:06:18 GMT (envelope-from nobody) Message-Id: <201210261906.q9QJ6I3v056270@red.freebsd.org> Date: Fri, 26 Oct 2012 19:06:18 GMT From: Garrett Cooper To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: conf/173133: [patch] rc.resume doesn't always restore moused to sane state; mouse freaks out in X11 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Oct 2012 19:10:01 -0000 >Number: 173133 >Category: conf >Synopsis: [patch] rc.resume doesn't always restore moused to sane state; mouse freaks out in X11 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Oct 26 19:10:00 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Garrett Cooper >Release: 10-CURRENT >Organization: EMC Isilon >Environment: FreeBSD tamara.local 10.0-CURRENT FreeBSD 10.0-CURRENT #1 r241971M: Tue Oct 23 18:55:55 PDT 2012 root@tamara.local:/usr/obj/usr/src/sys/NETBOOK i386 >Description: Whenever I suspend and resume my netbook, moused freaks out when I try to use the touchpad and the pointer jumps all over the screen in X11 -- probably because the file descriptors aren't closed and reopened in moused properly. The attached patch mitigates my issues, but probably isn't the correct resolution to the problem. More details: atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model IntelliMouse, device ID 3 >How-To-Repeat: 1. Install CURRENT on netbook. 2. Start X11 (I use fluxbox). 3. Suspend netbook. 4. Resume netbook. 5. Try to use the mouse. >Fix: Patch attached with submission follows: Index: etc/rc.resume =================================================================== --- etc/rc.resume (revision 241971) +++ etc/rc.resume (working copy) @@ -43,9 +43,7 @@ echo 'rc.resume: killed rc.suspend that was still around' fi -if [ -r /var/run/moused.pid ]; then - pkill -HUP -F /var/run/moused.pid -fi +service moused quietrestart # Turns on a power supply of a card in the slot inactivated. # See also contrib/pccardq.c (only for PAO users). >Release-Note: >Audit-Trail: >Unformatted: