索引:


gpm 是 Console 下的滑鼠工具。

如果要讓 X Window 支援滾輪滑鼠,則在這裡要指定滑鼠型式為 imps2。
如果是一般的滑鼠,則在這裡指定滑鼠型式為 autops2 即可。
(Serial Bus 的滑鼠呢?對不起,筆者忘了... )
但務必記得:在這裡的設定一定要和 X Window 的一樣才不會出問題!
如果在 X Window 裡滑鼠一直不聽話,則把 gpm 關掉試試看會不會是它在搞鬼?

可以使用 gpmconfig 來重新設定 gpm,例:

# gpmconfig
Configuring gpm (mouse event server):

Current configuration: -m /dev/psaux -t imps2
Device: /dev/psaux
Type: imps2
Do you want to change anything (Y/n)? 
Where is your mouse [/dev/psaux]? 
> 
What type is your mouse (or help) [imps2]? 
> 
Set the responsiveness (normally not needed) []? 
> 
Repeat protocol (enter 'none' to turn repeating off) []? 
> 
Do you want to add any additional arguments []? 
> 
Do you want to test this configuration (y/N)? 

Current configuration: -m /dev/psaux -t imps2
Device: /dev/psaux
Type: imps2
Do you want to change anything (Y/n)? n
Stopping mouse interface server: gpm.
Starting mouse interface server: gpm.

On Debian Manual says the best settings is:

/etc/gpm.conf

device=/dev/psaux
responsiveness=
repeat_type=raw
type=autops2
append=""
sample_rate=

/etc/X11/XF86Config-4

...
Device "/dev/mouse"
Protocol "ImPS/2"
Buttons "5"
...