Difference between revisions of "Console mouse support"

From ArchWiki
Jump to: navigation, search
(Configuring: changed from initscripts to systemd)
(update interlanguage links (https://github.com/lahwaacz/wiki-scripts/blob/master/update-interlanguage-links.py))
 
(9 intermediate revisions by 5 users not shown)
Line 1: Line 1:
[[es:Console Mouse Support]]
 
[[it:Console Mouse Support]]
 
[[ko:Console Mouse Support]]
 
[[ru:Console Mouse Support]]
 
[[zh-CN:Console Mouse Support]]
 
[[Category:Daemons and system services]]
 
 
[[Category:Mice]]
 
[[Category:Mice]]
 +
[[es:Console mouse support]]
 +
[[it:Console mouse support]]
 +
[[ja:コンソールマウスサポート]]
 +
[[ko:Console mouse support]]
 +
[[ru:Console mouse support]]
 +
[[zh-cn:Console mouse support]]
 +
GPM, short for General Purpose Mouse, is a daemon that provides mouse support for Linux virtual consoles.
  
{{Article summary start|Summary}}
+
== Installation ==
{{Article summary text|Installing and enabling the GPM daemon.}}
+
{{Article summary heading|Related}}
+
{{Article summary wiki|Daemon}}
+
{{Article summary end}}
+
  
GPM, short for General Purpose Mouse, is a daemon that provides mouse support for Linux virtual consoles.
+
[[Install]] the {{Pkg|gpm}} package. For touchpad support on a laptop you may also need to install {{Pkg|xf86-input-synaptics}}.
  
==Installing==
+
== Configuration ==
===Desktop===
+
Install {{Pkg|gpm}} with [[pacman]].
+
  
===Laptop===
 
Install {{Pkg|gpm}} and {{Pkg|xf86-input-synaptics}} with [[pacman]].
 
 
==Configuring==
 
 
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}}.
 
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 {{ic|-2}} to {{ic|GPM_ARGS}} and button-2 will perform the paste function.
+
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 ''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 36: Line 25:
 
  GPM_ARGS="-m /dev/input/mice -t ps2"
 
  GPM_ARGS="-m /dev/input/mice -t ps2"
  
Once a suitable configuration has been found, {{ic|gpm}} can be started by [[systemd]]:
+
{{Note|If the mouse has only 2 buttons, pass {{ic|-2}} to {{ic|GPM_ARGS}} and second button will perform the paste function.}}
systemctl start gpm.service
+
 
and enabled at boot time with:
+
Once a suitable configuration has been found, [[start]] and [[enable]] the {{ic|gpm.service}}.
systemctl enable gpm.service
+
  
For more information see {{ic|man gpm}}.
+
For more information see [[man page]] {{ic|gpm (8)}}.

Latest revision as of 14:41, 29 August 2015

GPM, short for General Purpose Mouse, is a daemon that provides mouse support for Linux virtual consoles.

Installation

Install the gpm package. For touchpad support on a laptop you may also need to install xf86-input-synaptics.

Configuration

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

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"
Note: If the mouse has only 2 buttons, pass -2 to GPM_ARGS and second button will perform the paste function.

Once a suitable configuration has been found, start and enable the gpm.service.

For more information see man page gpm (8).