Difference between revisions of "Console mouse support"

From ArchWiki
Jump to: navigation, search
m
Line 4: Line 4:
 
{{i18n_entry|Русский|Как использовать мышь в консоли}}
 
{{i18n_entry|Русский|Как использовать мышь в консоли}}
 
{{i18n_entry|简体中文|在 console 中使用鼠标 (简体中文)}}
 
{{i18n_entry|简体中文|在 console 中使用鼠标 (简体中文)}}
 +
{{i18n_entry|Español|Como usar un mouse en la consola (Español)}}
 
{{i18n_links_end}}
 
{{i18n_links_end}}
 
====Q: How do I configure a mouse to be used in the console?====
 
====Q: How do I configure a mouse to be used in the console?====

Revision as of 02:00, 9 April 2009

Template:I18n links start Template:I18n entry Template:I18n entry Template:I18n entry Template:I18n entry Template:I18n entry Template:I18n links end

Q: How do I configure a mouse to be used in the console?

A: To use your mouse in the console, you need the gpm package. If it is not installed, get it with:

pacman -S gpm.

To use it, you can load gpm from the /etc/rc.conf file, adding it to the daemons line. Here is an example of this line, including gpm:

DAEMONS=(syslog-ng !hotplug !pcmcia network netfs openntpd crond cups gpm)

The gpm package needs to be started with a few parameters. These parameters can be added in the file /etc/conf.d/gpm. Here is an example of the content of the file:

#
# Parameters to be passed to gpm
#
GPM_ARGS="-m /dev/input/mice -t ps2"

The -m parameter precedes the declaration of the mouse to be used. The -t parameter precedes the type of mouse you are using (A PS2 mouse in this case). If you do not know what types are there to be chosen, load the package using a fake name (e.g. "helpme"). In this way you will get a list of available types.

For more info see man gpm.