Console mouse support

From ArchWiki
Revision as of 05:50, 19 April 2009 by AskApache (talk | contribs) (added bit more detail, gpm command)
Jump to: navigation, search

Template:I18n links start Template:I18n entry 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. 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 to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
DAEMONS=(syslog-ng network netfs crond 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/psaux -t imps2"

The -m parameter precedes the declaration of the mouse to be used. The -t parameter precedes the type of mouse you are using (A IMPS/2 mouse in this case). To get a list of available types for the -t option, run gpm with -t help.

gpm -m /dev/psaux -t help

For more info see man gpm.