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

Console mouse support

From Void Linux Wiki
Jump to navigation Jump to search

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).