Console mouse support

From ArchWiki
Revision as of 07:21, 19 April 2009 by Warriant (Talk | contribs)

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

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 Template:Filename file, adding it to the DAEMONS line. Here is an example of this line, including gpm:

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# 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 Template:Filename. Here is an example of the content of the file:

#
# Parameters to be passed to gpm
#
GPM_ARGS="-m /dev/psaux -t imps2"

The Template:Codeline parameter precedes the declaration of the mouse to be used. The Template:Codeline parameter precedes the type of mouse you are using (An IBM PS/2 mouse in this case). To get a list of available types for the Template:Codeline option, run gpm with Template:Codeline.

$ gpm -m /dev/psaux -t help


For more info see Template:Codeline.