Second Mouse in X mini-HOWTO

Greg Wierzchowski

greg.wierzchowski@usa.net

偐偹偙 (JF Project) - 擔杮岅栿

skaneko@a2.mbn.or.jp (JF@linux.or.jp)

2001-07-18

Revision History                                                       
Revision 1.2            2001-11-17          Revised by: GW             
XFree 3.x 偱偺儂僀乕儖儅僂僗偺愝掕偺廋惓                               
Revision 1.1            2001-07-21          Revised by: GW             
"Alternatives" 愡偺捛壛                                                
Revision 1.0            2001-07-18          Revised by: GW             
弶斉                                                                   

奣梫: X 偱擇屄偺儅僂僗傪巊偆偨傔偺丄庤偭庢傝憗偄愢柧偱偡丅

劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒 

Table of Contents
1. 偼偠傔偵
2. Copyright and License
3. 儅僂僗僾儘僩僐儖
4. XFree 3.x
5. XFree 4.x
6. 暿朄
7. 幱帿

1. 偼偠傔偵

偙偺 mini-HOWTO 偼丄僯儏乕僗僌儖乕僾傗偙偺傎偐偺 HOWTO 側偳丄婛偵僀儞僞
乕僱僢僩忋偵偁傞忣曬傪偐偒廤傔偰嶌惉偟偨傕偺偱偡丅偙傟傪彂偄偨偺偼丄巹
偺 Thinkpad 僲乕僩 PC 偵慻傒崬傑傟偨 trackpoint 偵壛偊偰 USB 儅僂僗傪偮
偗偨偐偭偨偨傔偱偟偨丅

偙偺 mini-HOWTO 偵婰嵹偝傟偰偄傞椺偼丄摿偵巹偺帩偭偰偄傞僴乕僪僂僃傾
(PS2 儅僂僗偑庡億僀儞僞偱丄USB 儂僀乕儖儅僂僗傪捛壛偟偨応崌) 偺偨傔偺暔
偱偡丅愝掕帺懱偼偐側傝傢偐傝傗偡偄偨傔丄懠偺慻傒崌傢偣丄椺偊偽 PS/2 偲
僔儕傾儖儅僂僗傪巊偆傛偆側愝掕傕偐側傝梕堈偱偟傚偆丅曄峏偟側偗傟偽側傜
側偄揰偼丄儅僂僗僾儘僩僐儖偲儅僂僗僨僶僀僗偺擇揰偱偡丅偙偺暥彂偱偼丄昁
梫側売強偵偼揔愗側椺傪帵偡傛偆偵搘傔偰偄傑偡丅

X 偺愝掕朄偼丄XFree 僶乕僕儑儞 3 岦偗丄媦傃 XFree 4 岦偗偺擇偮偺暿乆偺
愡偵暘偗偰彂偄偰偄傑偡丅 XF86Config 僼傽僀儖偺僼僅乕儅僢僩偼僶乕僕儑儞
娫偱戝偒偔曄峏偝傟偰偍傝丄懡彮堎側偭偨傾僾儘乕僠偑昁梫偵側傞偨傔偱偡丅
XFree 3.x 偱偼擇屄栚偺儅僂僗偼 Xinput 僙僋僔儑儞偵彂偔昁梫偑偁傝丄傑偨
偦偺僙僋僔儑儞偱偺彂幃偼捠忢偺 Pointer 偱偺婰嵹朄偲懡彮堎側偭偰偄傑偡丅
XFree 4.x 偱偼丄擇屄栚偺儅僂僗偼扨側傞傕偆堦偮偺億僀儞僞僨僶僀僗偲偟偰
埖傢傟傑偡丅

劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒 

2. Copyright and License

This document is copyright 2001 by Greg Wierzchowski and is released
under the terms of the GNU Free Documentation License, which is hereby
incorporated by reference. Send feedback to greg.wierzchowski@usa.net
<mailto:greg.wierzchowski@usa.net>.

偙偺暥彂偼 Greg Wierzchowski 偑挊嶌尃 (c) 2001 傪桳偟偰偍傝丄GNU 僼儕乕
僪僉儏儊儞僩儔僀僙儞僗 (儕儞僋偵傛傞嶲徠偵傛傝揧晅埖偄偲偟傑偡) 偺尦偱
岞奐偝傟偰偄傑偡丅僼傿乕僪僶僢僋偼 greg.wierzchowski@usa.net <mailto:
greg.wierzchowski@usa.net> 傊偍婅偄偟傑偡丅

亂栿拲:偙偺傾僪儗僗偱偼婛偵嶌幰偵撏偐側偔側偭偰偄傞柾條側偺偱丄壗偐偁傟
偽 JF@linux.or.jp 偵偍婅偄偟傑偡丅亃

劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒 

3. 儅僂僗僾儘僩僐儖

儅僂僗傪惓偟偔摦偔傛偆偵偡傞偨傔偵昁恵偲側傞丄XF86Config 僼傽僀儖拞偺擇
偮偺嵟廳梫僷儔儊乕僞偼 Protocol 偲 Device 偱偡丅

Protocol (僾儘僩僐儖) 偵偮偄偰偼丄gpm 偑屳姺偺僾儘僩僐儖柤傪梡偄偰偄傑
偡偺偱丄徻嵶偼偦偪傜傪嶲峫偵偟偰偔偩偝偄丅埲壓偼 gpm 偺 info 儁乕僕偐傜
偺敳悎 (傕偭偲傕晛媦偟偰偄傞傕偺偐傜悢庬) 偱偡丅
劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒 

Table 1. X 偱偺傕偭偲傕偁傝傆傟偨儅僂僗僾儘僩僐儖

劇劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劍劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劉
劆僾儘僩僐儖柤                    劆愢柧                            劆
劌劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劑劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劎
劆Microsoft                       劆昗弨儅僀僋儘僜僼僩儅僂僗        劆
劌劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劑劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劎
劆MouseSystems                    劆偙傟偼嶰儃僞儞僔儕傾儖儅僂僗偺昗劆
劆                                劆弨僾儘僩僐儖偱偡丅              劆
劌劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劑劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劎
劆MMSeries                        劆僞僀僩儖捠傝偱偡丅偙偺儅僂僗僨僐劆
劆                                劆乕僟偼昗弨僔儕傾儖僆僾僔儑儞傕庴劆
劆                                劆偗晅偗傑偡偑丄捠忢偼昁梫偁傝傑偣劆
劆                                劆傫丅                            劆
劌劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劑劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劎
劆Logitech                        劆偙傟偼屆偄僞僀僾偺僔儕傾儖      劆
劆                                劆Logitech 幮儅僂僗偱巊傢傟偰偄偨 劆
劆                                劆僾儘僩僐儖偱偡丅                劆
劌劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劑劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劎
劆僶僗儅僂僗                      劆堦晹偺僶僗僨僶僀僗偑偙偺僾儘僩僐劆
劆                                劆儖傪巊梡偟偰偄傑偡丅椺偊偽      劆
劆                                劆Logitech 幮惢偺傕偺偑奩摉偟傑偡 劆
劆                                劆丅                              劆
劌劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劑劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劎
劆PS/2                            劆杦偳偺僶僗儅僂僗偱巊傢傟偰偄傞僾劆
劆                                劆儘僩僐儖偱偡丅                  劆
劌劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劑劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劎
劆IMPS/2                          劆PS/2 億乕僩岦偗偺 "IntelliMouse"劆
劆                                劆梡偱偡丅USB 儅僂僗偱傕偙傟偱摦嶌劆
劆                                劆偟傑偡丅                        劆
劋劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劏劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劊
劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒 

劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒 

4. XFree 3.x

XFree 3.x 偱偼捛壛偺億僀儞僥傿儞僌僨僶僀僗丄椺偊偽儅僂僗傗僞僽儗僢僩偼 
Xinput 僙僋僔儑儞偺婰弎偱掕媊偟傑偡丅堦屄栚偺儅僂僗偼捠忢捠傝

Section "Pointer"                                                      
    Protocol    "PS/2"                                                 
    Device      "/dev/mouse"                                           
EndSection                                                             

偲偟偰掕媊偟傑偡丅忋婰偺椺偱偼丄捠忢偺嶰偮儃僞儞 PS/2 儅僂僗偱偡丅偙偺
愝掕偼僩儔僢僋億僀儞僩偱傕摦嶌偟傑偡丅偝偰丄USB 儅僂僗偱偡偑丄

    Section "Xinput"                                                   
  SubSection "Mouse"                                                   
    DeviceName "USB Mice"                                              
    Protocol "IMPS/2"                                                  
    ZAxisMapping 4 5                                                   
    Port "/dev/input/mice"                                             
    Alwayscore                                                         
  EndSubSection                                                        
EndSection                                                             

偲偟傑偡丅巹偺儅僂僗偼儂僀乕儖儅僂僗側偺偱丄僾儘僩僐儖偼 IMPS/2 偵側傝
傑偡丅儂僀乕儖儅僂僗傪摦嶌偝偣傞偵偼丄ZAxisMapping 偺峴傕昁梫偱偡丅巹偼
偙偺儅僂僗傪傕偆堦偮偺儅僂僗偲忢帪椉曽巊偆傛偆偵偟偰偄傑偡丅偙偺傛偆偵
巊偆偨傔偺愝掕偑丄AlwaysCore 僆僾僔儑儞偱偡丅椺偊偽丄COM1 偵偮側偑偭偰
偄傞僔儕傾儖儅僂僗偺応崌側傜丄Port 偺強傪 "/dev/ttyS0" 偲彂偒姺偊傑偡丅

劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒 

5. XFree 4.x

XFree 4.x 偱偼嶌嬈偼偢偭偲梕堈偱偡丅傑偢丄堦偮栚偺儅僂僗偼 (師偺傛偆偵)
婛偵愝掕僼傽僀儖拞偵婰嵹偝傟偰偄傞偱偟傚偆丅

Section "InputDevice"                                                  
        Identifier  "Mouse0"                                           
        Driver      "mouse"                                            
        Option      "Device" "/dev/mouse"                              
        Option      "Protocol" "PS/2"                                  
        Option      "Emulate3Buttons" "off"                            
        Option      "ZAxisMapping" "4 5"                               
EndSection                                                             

暿偺儅僂僗傪晅偗傞偵偼丄忋偺晹暘傪僐僺乕偟丄偦偪傜偺曽傕撉傓傛偆偵曄峏
偡傞偩偗偱偡丅

Section "InputDevice"                                                  
        Identifier  "Mouse1"                                           
        Driver      "mouse"                                            
        Option      "Device" "/dev/input/mice"                         
        Option      "Protocol" "IMPS/2"                                
        Option      "Emulate3Buttons" "off"                            
        Option      "ZAxisMapping" "4 5"                               
EndSection                                                             

偮傑傝丄偙偺傛偆偵偟偰岲偒側偩偗偺捛壛偺億僀儞僞傪掕媊偱偒傑偡丅僕儑僀
僗僥傿僢僋傗僞僽儗僢僩偵偮偄偰傕摨條偱偡丅

椉曽偺儅僂僗傪摨帪偵巊偊傞傛偆偵偡傞偨傔偵偼丄XF86Config 偵傕偆堦僇強曄
峏偑昁梫偱偡丅ServerLayout 偲偄偆僙僋僔儑儞偑偁偭偰丄慡偰偺峔惉晹昳偺掕
媊偼偙偙偱偝傟偰偄傑偡丅擇屄栚偺儅僂僗傪晅偗傞傛偆曄峏偡傞慜偵偼丄埲壓
偺傛偆偵側偭偰偄傑偡丅

Section "ServerLayout"                                                 
        Identifier "XFree86 Configured"                                
        Screen      0  "Screen0" 0 0                                   
        InputDevice    "Mouse0" "CorePointer"                          
        InputDevice    "Keyboard0" "CoreKeyboard"                      
EndSection                                                             

偦傟偱偼丄擇屄栚偺儅僂僗傪晅偗傑偟傚偆丅

Section "ServerLayout"                                                 
        Identifier "XFree86 Configured"                                
        Screen      0  "Screen0" 0 0                                   
        InputDevice    "Mouse0" "CorePointer"                          
        InputDevice    "Mouse1" "AlwaysCore"                           
        InputDevice    "Keyboard0" "CoreKeyboard"                      
EndSection                                                             

劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒 

6. 暿朄

摨帪偵擇屄 (傑偨偼偦傟埲忋) 偺儅僂僗傪巊偆偵偼丄僾儘僌儔儉傪巊偆偲偄偆
暿朄傕偁傝傑偡丅僾儘僌儔儉偺椺偲偟偰丄恀撶宧巑偝傫偺 MultiMouse 偑偁傝
傑偡丅偙傟偼婔偮偐偺僔儕傾儖儅僂僗傪懇偹偰偦傟傪堦偮偺僗儁僔儍儖僨僶僀
僗 /dev/mumse 偐傜 MouseSystems 屳姺儅僂僗偲偟偰巊偊傞傛偆偵偡傞僨乕儌
儞偱偡丅

嶌幰偵傛傞偲: "偙偺僾儘僌儔儉偱摨帪偵暋悢屄偺儅僂僗偺棙梡偑壜擻偵側傝傑
偡丅偙偺僾儘僌儔儉偼僒僽僲乕僩儐乕僓偱丄婛偵幚憰嵪傒偺億僀儞僥傿儞僌僨
僶僀僗偲奜晅偗偺僔儕傾儖儅僂僗偺椉曽傪巊偄偨偄恖偨偪偵岦偗偰奐敪偟偰偄
傑偡丅" 偲偄偆偙偲偱偡丅

偙偺僾儘僌儔儉偱丄擇屄栚偺儅僂僗偵僔儕傾儖儅僂僗埲奜偺傕偺偑巊偊傞偺偐
偳偆偐偵偮偄偰偼巹偵偼暘偐傝傑偣傫偑丄偙偺僾儘僌儔儉偺棙揰偼擇屄栚偺儅
僂僗傪僐儞僜乕儖儌乕僪偱傕巊偊傞偙偲偱偡丅 MultiMouse 偼 Sunsite
(sunsite.unc.edu /pub/Linux/system/Misc) 傗 Tucows (www.tucows.com
Linux Console -> Utilities) 偵偁傝傑偡丅

劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒 

7. 幱帿

Linux 僐儈儏僯僥傿偵峷專偟偰偄偨偩偒丄偙偺 HOWTO 傪壜擻偵偟偨慡偰偺曽乆
偵姶幱偟傑偡丅

