conf/173133: [patch] rc.resume doesn't always restore moused to sane state; mouse freaks out in X11

Garrett Cooper yanegomi at gmail.com
Fri Oct 26 19:10:01 UTC 2012


>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 at 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: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> 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:


More information about the freebsd-bugs mailing list