Difference between revisions of "Console mouse support"

From ArchWiki
Jump to: navigation, search
m
(Added note about 2-button mice and suggestion for USB mouse settings)
Line 32: Line 32:
 
GPM_ARGS="-m /dev/psaux -t imps2"
 
GPM_ARGS="-m /dev/psaux -t imps2"
 
</pre>
 
</pre>
+
 
 +
GPM_ARGS="-m /dev/input/mice -t imps2" seems to work with most usb mice.
 +
 
 
The {{Codeline|-m}} parameter precedes the declaration of the mouse to be used. The {{Codeline|-t}} 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 {{Codeline|-t}} option, run gpm with {{Codeline|-t help}}.
 
The {{Codeline|-m}} parameter precedes the declaration of the mouse to be used. The {{Codeline|-t}} 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 {{Codeline|-t}} option, run gpm with {{Codeline|-t help}}.
  
 
  $ gpm -m /dev/psaux -t help
 
  $ gpm -m /dev/psaux -t help
  
 +
If you only have a 2-button mouse, you can pass {{Codeline|-2}} to {{Codeline|GPM_ARGS}} and button-2 will preform the paste function.
  
 
For more info see {{Codeline|man gpm}}.
 
For more info see {{Codeline|man gpm}}.

Revision as of 05:14, 22 November 2009

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"

GPM_ARGS="-m /dev/input/mice -t imps2" seems to work with most usb mice.

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

If you only have a 2-button mouse, you can pass Template:Codeline to Template:Codeline and button-2 will preform the paste function.

For more info see Template:Codeline.