Difference between revisions of "Console mouse support"

From ArchWiki
Jump to: navigation, search
(rm temporary i18n template)
(Clean up. No need to add the summary box.)
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
[[es:Console Mouse Support]]
 
[[es:Console Mouse Support]]
 
[[it:Console Mouse Support]]
 
[[it:Console Mouse Support]]
 +
[[ko:Console Mouse Support]]
 
[[ru:Console Mouse Support]]
 
[[ru:Console Mouse Support]]
 
[[zh-CN:Console Mouse Support]]
 
[[zh-CN:Console Mouse Support]]
[[Category:Daemons and system services]]
 
 
[[Category:Mice]]
 
[[Category:Mice]]
 
{{Article summary start|Summary}}
 
{{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.
 
GPM, short for General Purpose Mouse, is a daemon that provides mouse support for Linux virtual consoles.
 
 
==Installing==
 
==Installing==
 
===Desktop===
 
===Desktop===
Line 25: Line 17:
 
  $ 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 preform the paste function.
+
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 {{ic|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.
Line 35: Line 27:
 
  GPM_ARGS="-m /dev/input/mice -t ps2"
 
  GPM_ARGS="-m /dev/input/mice -t ps2"
  
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:
+
Once a suitable configuration has been found, {{ic|gpm}} can be started by [[systemd]]:
  DAEMONS=(syslog-ng '''gpm''' network netfs crond)
+
systemctl start gpm.service
 +
and enabled at boot time with:
 +
  systemctl enable gpm.service
  
 
For more information see {{ic|man gpm}}.
 
For more information see {{ic|man gpm}}.

Revision as of 06:15, 16 December 2012

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

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 perform 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, gpm can be started by systemd:

systemctl start gpm.service

and enabled at boot time with:

systemctl enable gpm.service

For more information see man gpm.