Console mouse support

From ArchWiki
Revision as of 14:58, 14 March 2007 by Jgaray (Talk | contribs) (Adding a category)

Jump to: navigation, search

Q: How do I configure a mouse to be used in the console?

A: To use your mouse in the console, you need the pgm package. If it is not installed, get it with:

pacman -S gpm.

To use it, you can load gpm from the /etc/rc.conf file, adding it to the daemons line. Here is an example of this line, including gpm:

DAEMONS=(syslog-ng !hotplug !pcmcia network netfs openntpd crond cups gpm)

The gpm package needs to be started with a few parameters. These parameters can be added in the file /etc/conf.d/gpm. Here is an example of the content of the file:

#
# Parameters to be passed to gpm
#
GPM_ARGS="-m /dev/input/mice -t ps2"

The -m parameter precedes the declaration of the mouse to be used. The -t parameter precedes the type of mouse you are using (A PS2 mouse in this case). If you do not know what types are there to be chosen, load the package using a fake name (e.g. "helpme"). In this way you will get a list of available types.

For more info see man gpm.