Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Apr 2012 00:40:50 +0200
From:      Polytropon <freebsd@edvax.de>
To:        "Ronald F. Guilmette" <rfg@tristatelogic.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Changing psm (mouse) resolution?
Message-ID:  <20120420004050.9b3f1a3a.freebsd@edvax.de>
In-Reply-To: <2310.1334870748@tristatelogic.com>
References:  <2310.1334870748@tristatelogic.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 19 Apr 2012 14:25:48 -0700, Ronald F. Guilmette wrote:
> 
> 
> The man page for the psm driver says:
> 
>     ... The current resolution can be changed at runtime.
> 
> Unfortunately, it fails to mention any sort of command line utility
> that would provide this functionality.

It's mentioned as

SEE ALSO
     ioctl(2), syslog(3), atkbdc(4), mouse(4), mse(4), sysmouse(4), moused(8),
     syslogd(8)

in the manpage, even though it doesn't explicitely state that "moused"
is the binary to run.



> Is there a command line utility that provides this functionality?  Or do
> I need to write one from scratch, using the ioctl calls that are documented
> in the man page?

See "man moused" for details, especially the -r <resolution> option
should be useful. You can combine it with -f for testing. According
to the manpage, something like

	# moused -f -r 300 -a 2.0 -p /dev/psm0 -t ps/2

should be good for testing. To make the settings permanent, you can
code them into /etc/rc.conf, using

	moused_enable="YES"
	moused_port=
	moused_type=
	moused_flags=

with the required values.


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120420004050.9b3f1a3a.freebsd>