[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Mouse setup under X



Paulo Lopes a écrit:

Hi, i've a laptop with a touchpad that can be easely configured on X, my question is how can i configure it to enable an external mouse WITH scrollwheel. The problem is that both the touchpad and the external mouse are PS2.

my current config is:

Section "InputDevice"
        Identifier      "External Mouse"
        Driver          "mouse"
        Option          "CorePointer"
        Option          "Device"                "/dev/psaux"
        Option          "Protocol"              "PS/2"
        Option          "Emulate3Buttons"       "true"
        Option          "ZAxisMapping"          "4 5"
EndSection

in order to enable the scrollwheel i've to change the Protocol to ImPS/2, but then, if i've no external mouse on /dev/psaux (i'm using the touchpad) it's impraticable to use it, because the mouse pointer is always junping to the lower left part of the screen...

Can someone tel me how to setup two mouses on the same device, using two diferrent protocols?

Thanks!
Paulo.

I had the same problem...

first, create 2 Sections "InputDevice" for each mouse like this

for your internal mouse :

Section "InputDevice"
       Identifier      "Internal Mouse"
       Driver          "mouse"
       Option          "CorePointer"
       Option          "Device"                "/dev/psaux"
       Option          "Protocol"              "PS/2"
       Option          "Emulate3Buttons"       "true"
Option "ZAxisMapping" "4 5" <-------- if you have no wheel, maybe you don't need this
EndSection

for your external mousse

Section "InputDevice"
       Identifier      "External Mouse"
       Driver          "mouse"
       Option          "CorePointer"
Option "Device" "/dev/psaux" <-- check for your write device Option "Protocol" "ImPS/2" <------ here for imwheel
       Option          "ZAxisMapping"          "4 5"
EndSection

second, create to Section "ServerLayout" as well like this

Section "ServerLayout"
   Identifier  "server1"
Screen "Screen 1" <------------------- here put your own Screen identifier
   InputDevice "Internal Mouse" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard" <--- here put your own keyboard identifier
EndSection

Section "ServerLayout"
   Identifier  "server2"
Screen "Screen 1" <------------------- here put your own screen identifier
   InputDevice "External Mouse" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"<---- here put your own keyboard identifier
EndSection

and create 2 alias in the file .bashrc (or the .filerc for your shell)

for the fisrt ServeurLayout

alias x='startx -- -layout server1'
or
alias x='startx'
in that case, startx will take the first serverLayout it will find in the XF86Config file

and for the second ServerLayout

alias x2='startx -- -layout server2'

but in that way, you have to boot in console mode and lauch startx by hand

Yoann





__________________________________________________
Modem offert : 150,92 euros remboursés sur le Pack eXtense de Wanadoo ! Haut débit à partir de 30 euros/mois : http://www.ifrance.com/_reloc/w



Reply to: