General purpose mouse

From ArchWiki
Revision as of 13:39, 28 February 2009 by Gladstone (talk | contribs)
Jump to navigation Jump to search

Template:I18n links start Template:I18n entry Template:I18n entry Template:I18n entry Template:I18n entry Template:I18n links end

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

A: To use your mouse in the console, you need the gpm 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.