Difference between revisions of "Console mouse support"

From ArchWiki
Jump to: navigation, search
(remove useless categories (mice is a subcategory of input devices))
(old templates -> new templates; updated install section for new style guide)
Line 13: Line 13:
 
==Installing==
 
==Installing==
 
===Desktop===
 
===Desktop===
Install {{package Official|gpm}} with [[pacman]]:
+
Install {{Pkg|gpm}} with [[pacman]].
# pacman -S gpm
+
 
 
===Laptop===
 
===Laptop===
Install {{package Official|gpm}} and {{package Official|xf86-input-synaptics}} with [[pacman]]:
+
Install {{Pkg|gpm}} and {{Pkg|xf86-input-synaptics}} with [[pacman]].
# pacman -S gpm xf86-input-synaptics
+
  
 
==Configuring==
 
==Configuring==
The {{Codeline|-m}} parameter precedes the declaration of the mouse to be used. The {{Codeline|-t}} parameter precedes the type of mouse. To get a list of available types for the {{Codeline|-t}} option, run gpm with {{Codeline|-t help}}.
+
The {{ic|-m}} parameter precedes the declaration of the mouse to be used. The {{ic|-t}} parameter precedes the type of mouse. To get a list of available types for the {{ic|-t}} option, run {{ic|gpm}} with {{ic|-t help}}.
 
  $ gpm -m /dev/input/mice -t help
 
  $ gpm -m /dev/input/mice -t help
  
If the mouse only has 2 buttons, pass {{Codeline|-2}} to {{Codeline|GPM_ARGS}} and button-2 will preform the paste function.
+
If the mouse only has 2 buttons, pass {{ic|-2}} to {{ic|GPM_ARGS}} and button-2 will preform the paste function.
  
The gpm package needs to be started with a few parameters. These parameters can be added in the file {{Filename|/etc/conf.d/gpm}} or used when running gpm directly.
+
The {{Pkg|gpm}} package needs to be started with a few parameters. These parameters can be added in the file {{ic|/etc/conf.d/gpm}} or used when running {{ic|gpm}} directly.
 
* For PS/2 mice, replace the existing line with:
 
* For PS/2 mice, replace the existing line with:
 
  GPM_ARGS="-m /dev/psaux -t ps2"
 
  GPM_ARGS="-m /dev/psaux -t ps2"
Line 33: Line 32:
 
  GPM_ARGS="-m /dev/input/mice -t ps2"
 
  GPM_ARGS="-m /dev/input/mice -t ps2"
  
Once a suitable configuration has been found, adding {{Codeline|gpm}} into the {{codeline|DAEMONS}} array in {{Filename|/etc/rc.conf}} will make {{Codeline|gpm}} load at boot. Example:
+
Once a suitable configuration has been found, adding {{ic|gpm}} into the {{ic|DAEMONS}} array in {{ic|/etc/rc.conf}} will make {{ic|gpm}} load at boot. Example:
 
  DAEMONS=(syslog-ng '''gpm''' network netfs crond)
 
  DAEMONS=(syslog-ng '''gpm''' network netfs crond)
  
For more information see {{Codeline|man gpm}}.
+
For more information see {{ic|man gpm}}.

Revision as of 17:02, 10 November 2011

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.


Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어


External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

Summary help replacing me
Installing and enabling the GPM daemon.
Related
Daemon

GPM, short for General Purpose Mouse, is a daemon that provides mouse support for Linux virtual consoles. It is included in most Linux distributions.

Installing

Desktop

Install gpm with pacman.

Laptop

Install gpm and xf86-input-synaptics with pacman.

Configuring

The -m parameter precedes the declaration of the mouse to be used. The -t parameter precedes the type of mouse. To get a list of available types for the -t option, run gpm with -t help.

$ gpm -m /dev/input/mice -t help

If the mouse only has 2 buttons, pass -2 to GPM_ARGS and button-2 will preform the paste function.

The gpm package needs to be started with a few parameters. These parameters can be added in the file /etc/conf.d/gpm or used when running gpm directly.

  • For PS/2 mice, replace the existing line with:
GPM_ARGS="-m /dev/psaux -t ps2"
  • Whereas USB mice should use:
GPM_ARGS="-m /dev/input/mice -t imps2"
  • And IBM Trackpoints need:
GPM_ARGS="-m /dev/input/mice -t ps2"

Once a suitable configuration has been found, adding gpm into the DAEMONS array in /etc/rc.conf will make gpm load at boot. Example:

DAEMONS=(syslog-ng gpm network netfs crond)

For more information see man gpm.