Chinaunix首页 | 论坛 | 博客
  • 博客访问: 893075
  • 博文数量: 132
  • 博客积分: 9976
  • 博客等级: 中将
  • 技术积分: 1781
  • 用 户 组: 普通用户
  • 注册时间: 2007-08-30 20:40
文章分类

全部博文(132)

文章存档

2013年(1)

2011年(1)

2010年(15)

2009年(77)

2008年(36)

2007年(2)

我的朋友

分类: LINUX

2009-02-06 20:18:49


使用 gpm
相关文档:
   

GPM

From openSUSE

image:Network-server-database.png This article should be included in the Support Database!

This article should be polished to adhere to the , and then moved to the .
For more information see the .


The gpm is mouse server in Linux.

What it does?

It does the same as any mouse driver and more. It will read mouse events, moves and clicks, and give that information to applications. For instance you can copy and paste text from anywhere on the screen to command line by highlighting the text and pressing middle button. Useful if you want to skip typing of very long file names like openSUSE iso images, for instance.

It has many drivers included, so it will work with almost any mouse on the market.

Note 1: gpm can be started only by root user.
Reason: It is system service for all users, and as any other system resource only root has right to start or stop it.
Note 2: gpm needs parameters. it will not work without.
Reason: It can control more than 1 mouse, and you have to tell which of them you want to use.

The most important parameter is

gpm -k 

that will stop running mouse server. Don't laugh, before you start car, you should know where is the brake. When you miss some parameter and you can't see the mouse cursor on the screen, than you have to stop gpm, edit command line, and start it again.

To see list of mouse types that are supported with -t parameter

gpm -t help

Short help list

gpm -h

More about other parameters you can find in the gpm . Open and type:

man gpm
Example 1: Starting explorer ps2 mouse connected to /dev/input/mice
gpm -m /dev/input/mice -t exps2

Example 2: Adjusting acceleration
gpm -m /dev/input/mice -t exps2 -d -a 3
Retrieved from ""

阅读(1325) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~