Bug 75177

Summary: Bug selecting psm operation level in moused(8)
Product: Base System Reporter: Dr. Andreas Haakh <bugReporter>
Component: binAssignee: Philip Paeps <philip>
Status: Closed Overcome By Events    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.3-STABLE   
Hardware: Any   
OS: Any   

Description Dr. Andreas Haakh 2004-12-17 06:34:14 UTC
>Number:         75177
>Category:       bin
>Synopsis:       bug in moused
>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 Dec 17 06:40:13 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Andreas Haakh
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
Ingenieurbüro Haakh
>Environment:
System: FreeBSD alestia.Haakh.de 5.3-STABLE FreeBSD 5.3-STABLE #5: Thu Nov 11 16:22:24 CET 2004 root@abaton.Haakh.de:/usr/src/sys/i386/compile/DISKLESS i386
>Description:
Trying to get a Labtech optical ps/2 [and usb] wheel mouse working under X11 I failed to get z-axis movement on the ps/2-port (usb worked fine).
Finally I found the solution: adding option -l 1 to moused
(/usr/sbin/moused -z 4 -d /dev/psm0 -t ps/2 -l 1)
Thus, having a working configuration, I added the following lines to rc.conf:
moused_port="/dev/psm0"
moused_type="ps/2"
moused_flags="-z 4 -l 1"
and again the mouse did not work!!!
next I changed
moused_flags="-z 4"
moused_type="ps/2 - l 1"
and everything is OK now.

Looking at moused.c you find line 709 where rodent.level is assigned, 
no matter which value was set before...


>How-To-Repeat:
See above.
>Fix:
Workaround: Add the level-option to the moused_type option.

Check if level was set before modifying rodent.level in moused.c line 709

Maybe change the default-level of operation for psm0 to 1 which seems reasonable...
>Release-Note:
>Audit-Trail:
>Unformatted:
_______________________________________________
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"
Comment 1 Dr. Andreas Haakh 2004-12-17 06:40:13 UTC
Trying to get a Labtech optical ps/2 [and usb] wheel mouse working under X11 I failed to get z-axis movement on the ps/2-port (usb worked fine).
Finally I found the solution: adding option -l 1 to moused
(/usr/sbin/moused -z 4 -d /dev/psm0 -t ps/2 -l 1)
Thus, having a working configuration, I added the following lines to rc.conf:
moused_port="/dev/psm0"
moused_type="ps/2"
moused_flags="-z 4 -l 1"
and again the mouse did not work!!!
next I changed
moused_flags="-z 4"
moused_type="ps/2 - l 1"
and everything is OK now.

Looking at moused.c you find line 709 where rodent.level is assigned, 
no matter which value was set before...

Fix: 

Workaround: Add the level-option to the moused_type option.

Check if level was set before modifying rodent.level in moused.c line 709

Maybe change the default-level of operation for psm0 to 1 which seems reasonable...
How-To-Repeat: See above.
Comment 2 Philip Paeps freebsd_committer freebsd_triage 2005-01-10 14:29:10 UTC
Responsible Changed
From-To: freebsd-bugs->philip

Grab this, I'm dealing with moused bugs.
Comment 3 Philip Paeps freebsd_committer freebsd_triage 2014-11-24 19:36:04 UTC
I haven't looked at input in ages.  I think this issue has been overcome by events since then (psm changed a lot).