Warning: THE VOID WIKI IS DEPRECATED. It is no longer being maintained, contains outdated and incorrect information, and will eventually be shut down. Please refer to the Void Handbook, https://docs.voidlinux.org/, for the official documentation. If you can't find the information you're seeking, please raise an issue at https://github.com/void-linux/void-docs/issues

Difference between revisions of "Console mouse support"

From Void Linux Wiki
Jump to navigation Jump to search
m (Style guide, minor changes.)
 
Line 1: Line 1:
[[Category:Mice]]
+
'''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.
+
 
 
{{Taken|ArchWiki}}
 
{{Taken|ArchWiki}}
 +
 
== Installation ==
 
== Installation ==
  
Line 10: Line 11:
 
== Configuration ==
 
== Configuration ==
  
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
  
The {{Pkg|gpm}} package needs to be started with a few parameters. These parameters can be added in the file {{ic|/etc/sv/gpm/run}} 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 {{path|/etc/sv/gpm/run}} or used when running ''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"
 +
 
* Whereas USB mice should use:
 
* Whereas USB mice should use:
 +
 
  GPM_ARGS="-m /dev/input/mice -t imps2"
 
  GPM_ARGS="-m /dev/input/mice -t imps2"
 +
 
* And IBM Trackpoints need:
 
* And IBM Trackpoints need:
 +
 
  GPM_ARGS="-m /dev/input/mice -t ps2"
 
  GPM_ARGS="-m /dev/input/mice -t ps2"
  
{{Note|If the mouse has only 2 buttons, pass {{ic|-2}} to {{ic|GPM_ARGS}} and second button will perform the paste function.}}
+
{{Note|If the mouse has only 2 buttons, pass {{ic|-2}} to {{ic|GPM_ARGS}} and the second button will perform the paste function.}}
  
Once a suitable configuration has been found, {{ic|ln -s /etc/sv/gpm /var/service}} as root.
+
Once a suitable configuration has been found, run {{ic|ln -s /etc/sv/gpm /var/service}} as root.
  
For more information see [[man page]] {{ic|gpm (8)}}.
+
For more information see {{man|8|gpm}}.
 +
 
 +
[[Category:Mice]]

Latest revision as of 08:28, 15 September 2017

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

This article was taken partly or wholly, with or without modification from: ArchWiki

Installation

Install the gpm package. For touchpad support on a laptop you may also need to install xf86-input-synaptics. To start and enable the gpm service, run:

# ln -s /etc/sv/gpm /var/service/

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/sv/gpm/run 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 the second button will perform the paste function.

Once a suitable configuration has been found, run ln -s /etc/sv/gpm /var/service as root.

For more information see gpm(8).