Difference between revisions of "General purpose mouse"

From ArchWiki
Jump to navigation Jump to search
m (Blanked the page)
Line 1: Line 1:
[[Category:Daemons and system services (English)]]
[[Category:Other desktop user's resources (English)]]
[[Category:HOWTOs (English)]]
[[Category:Mice (English)]]
{{i18n|Console Mouse Support}}
{{Article summary start|Summary}}
{{Article summary text|Installing and enabling the GPM daemon.}}
{{Article summary heading|Related}}
{{Article summary wiki|Daemon}}
{{Article summary end}} __NOEDITSECTION__
GPM, short for General Purpose Mouse, is a daemon that provides mouse support for Linux virtual consoles. It is included in most Linux distributions.
Install {{package Official|gpm}} with [[pacman]]:
# pacman -S gpm
Install {{package Official|gpm}} and {{package Official|xf86-input-synaptics}} with [[pacman]]:
# pacman -S gpm xf86-input-synaptics
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}}.
$ 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.
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.
* 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 {{Codeline|gpm}} into the {{codeline|DAEMONS}} array in {{Filename|/etc/rc.conf}} will make {{Codeline|gpm}} load at boot. Example:
DAEMONS=(syslog-ng '''gpm''' network netfs crond)
For more information see {{Codeline|man gpm}}.

Revision as of 03:46, 9 April 2011