Difference between revisions of "Console mouse support"

From ArchWiki
Jump to: navigation, search
m (added bit more detail, gpm command)
m
Line 6: Line 6:
 
{{i18n_entry|Español|Como usar un mouse en la consola (Español)}}
 
{{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?====
 
<b>A: </b>To use your mouse in the console, you need the '''gpm''' package. Get it with:
 
  
<code>pacman -S gpm</code>
+
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 {{Filename|[[rc.conf|/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>
Line 26: Line 24:
 
</pre>
 
</pre>
  
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:
+
The gpm package needs to be started with a few parameters. These parameters can be added in the file {{Filename|/etc/conf.d/gpm}}. Here is an example of the content of the file:
  
 
<pre>
 
<pre>
Line 35: Line 33:
 
</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.
+
The {{Codeline|-m}} parameter precedes the declaration of the mouse to be used. The {{Codeline|-t}} parameter precedes the type of mouse you are using (An IBM PS/2 mouse in this case). To get a list of available types for the {{Codeline|-t}} option, run gpm with {{Codeline|-t help}}.
  
  gpm -m /dev/psaux -t help
+
  $ gpm -m /dev/psaux -t help
  
  
For more info see <code>man gpm</code>.
+
For more info see {{Codeline|man gpm}}.
  
 
[[Category:Daemons and system services (English)]]
 
[[Category:Daemons and system services (English)]]
 
[[Category:Mouse]]
 
[[Category:Mouse]]
 
[[Category:HOWTOs (English)]]
 
[[Category:HOWTOs (English)]]

Revision as of 07:21, 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

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 Template:Filename 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 Template:Filename. Here is an example of the content of the file:

#
# Parameters to be passed to gpm
#
GPM_ARGS="-m /dev/psaux -t imps2"

The Template:Codeline parameter precedes the declaration of the mouse to be used. The Template:Codeline parameter precedes the type of mouse you are using (An IBM PS/2 mouse in this case). To get a list of available types for the Template:Codeline option, run gpm with Template:Codeline.

$ gpm -m /dev/psaux -t help


For more info see Template:Codeline.