Difference between revisions of "Console mouse support"

From ArchWiki
Jump to: navigation, search
m
m (added bit more detail, gpm command)
Line 7: Line 7:
 
{{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?====
<b>A: </b>To use your mouse in the console, you need the '''gpm''' package. If it is not installed, get it with:
+
<b>A: </b>To use your mouse in the console, you need the '''gpm''' package. Get it with:
  
<code>pacman -S gpm</code>.
+
<code>pacman -S gpm</code>
  
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:
+
 
 +
To use it, you can load gpm from the [[Rc.conf|''/etc/rc.conf'']] file, adding it to the DAEMONS line. Here is an example of this line, including gpm:
  
 
<pre>
 
<pre>
DAEMONS=(syslog-ng !hotplug !pcmcia network netfs openntpd crond cups gpm)
+
# -----------------------------------------------------------------------
 +
# DAEMONS
 +
# -----------------------------------------------------------------------
 +
#
 +
# Daemons to start at boot-up (in this order)
 +
#  - prefix a daemon with a ! to disable it
 +
#  - prefix a daemon with a @ to start it up in the background
 +
#
 +
DAEMONS=(syslog-ng network netfs crond gpm)
 
</pre>
 
</pre>
  
Line 23: Line 32:
 
# Parameters to be passed to gpm
 
# Parameters to be passed to gpm
 
#
 
#
GPM_ARGS="-m /dev/input/mice -t ps2"
+
GPM_ARGS="-m /dev/psaux -t imps2"
 
</pre>
 
</pre>
 +
 +
The -m parameter precedes the declaration of the mouse to be used. The -t parameter precedes the type of mouse you are using (A IMPS/2 mouse in this case). To get a list of available types for the -t option, run gpm with -t help.
 +
 +
gpm -m /dev/psaux -t help
  
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 <code>man gpm</code>.
 
For more info see <code>man gpm</code>.

Revision as of 05:50, 19 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. 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
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng network netfs crond 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/psaux -t imps2"

The -m parameter precedes the declaration of the mouse to be used. The -t parameter precedes the type of mouse you are using (A IMPS/2 mouse in this case). To get a list of available types for the -t option, run gpm with -t help.

gpm -m /dev/psaux -t help


For more info see man gpm.