View previous topic :: View next topic |
Author |
Message |
fre n00b
Joined: 19 Apr 2002 Posts: 9 Location: Belgium
|
Posted: Fri Apr 19, 2002 6:36 pm Post subject: Dual mouse (USB/PS2) on notebook |
|
|
Hi guys,
I was wondering how to configure the following. Currently I'm using KDE on a notebook which has a touchpad that interfaces via the PS2 interface. I'm using the PS2 interface for the mouse in X.
Previously I also got my USB mouse working under X, but then the PS2 didn't work anymore (had to remove that from XF86Config).
Anybody got a clue how to enable both and make it dynamic so that it also works when the USB mouse is not there.
Thanks in advance,
Frederik.
PS: Gentoo made me finally switch my main machine to Linux after 2 years of doubt. Great stuff!! |
|
Back to top |
|
|
stt hand Guest
|
Posted: Fri Apr 19, 2002 10:28 pm Post subject: re: usb and ps/2 mouse |
|
|
A copy of your /etc/X11/XF86Config and your /var/log/XFree86.0.log would help greatly |
|
Back to top |
|
|
ElCondor Guru
Joined: 10 Apr 2002 Posts: 520 Location: Vienna, Austria, Europe
|
Posted: Sat Apr 20, 2002 9:49 am Post subject: Re: Dual mouse (USB/PS2) on notebook |
|
|
fre wrote: | Hi guys,
Previously I also got my USB mouse working under X, but then the PS2 didn't work anymore (had to remove that from XF86Config).
|
Here a sample I use on my Vaio (just the necessary parts): Mouse0 is the touchpad, Mouse1 is a Logitech Wheel Mouse on USB:
XF86Config
----------------------- *snip* -------------------------
Code: |
Section "ServerLayout"
InputDevice "Mouse0" "CorePointer"
InputDevice "Mouse1" "AlwaysCore"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "PS/2"
Option "Device" "/dev/mouse"
Option "Emulate3Buttons"
Option "Emulate3Timeout" "50"
EndSection
Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mouse0"
Option "ZAxisMapping" "4 5"
EndSection
|
------------------------ *snap* --------------------------------
My problem currently is, that i have to connect the usb-mouse during booting, otherways X will not detect it - got someone a solution for that?
ElCondor |
|
Back to top |
|
|
geburns n00b
Joined: 19 Apr 2002 Posts: 65 Location: st paul, mn
|
Posted: Sat Apr 20, 2002 12:11 pm Post subject: Re: Dual mouse (USB/PS2) on notebook |
|
|
elcondor:
try this:
InputDevice "Mouse1" "SendCoreEvents" (instead of "AlwaysCore")
-g |
|
Back to top |
|
|
ElCondor Guru
Joined: 10 Apr 2002 Posts: 520 Location: Vienna, Austria, Europe
|
Posted: Sat Apr 20, 2002 4:02 pm Post subject: |
|
|
geburns: i tried the "SondCoreEvents" option, but no change. connecting the usb-mouse later or dis-and-re-connecting it makes is unavailable
thanks for the try
ElCondor |
|
Back to top |
|
|
geburns n00b
Joined: 19 Apr 2002 Posts: 65 Location: st paul, mn
|
Posted: Mon Apr 22, 2002 5:24 am Post subject: |
|
|
elcondor:
ok ... try using /dev/input/mice, but first cat /dev/input/mice, move the usb mouse around and see if you get wierd characters as below:
gali root # cat /dev/input/mice
??ÿ?ÿ8ÿÿ8ÿþ8ÿÿ(þ(þ(ý(ý(ü(ý(þ(ü(þ(ÿ(ÿ(ÿ(ÿ(ÿ(þ(þ(ÿ(þ(ÿ
the usb howto docs suggested using /dev/input/mice
hope this helps
-g |
|
Back to top |
|
|
ElCondor Guru
Joined: 10 Apr 2002 Posts: 520 Location: Vienna, Austria, Europe
|
Posted: Mon Apr 22, 2002 9:07 am Post subject: |
|
|
@geburns: That did the trick! now with SendCoreEvents in XF86Config and /dev/input/mice as mouse-device the usb-mouse finally is as hot-pluggable as meant to be
Thanks a lot!
ElCondor |
|
Back to top |
|
|
|