Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-21-2003, 04:12 AM
|
#1
|
Member
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512
Rep:
|
Using PS2 and USB mouse without reconfiguring XF86Config-4
i am trying to figure out a way of pluging in either a ps2 mouse or a usb
mouse and not have to change the "Device" option in the XF86Config-4 from
/dev/misc/psaux to /dev/input/mice. the protocol has the auto option so
there must be a way for me to not have to reconfigure everytime i want to
change the type of mouse i use?
I am using devfsd so this should help matters. after all the /dev/usbmouse
is a sym-link to /dev/input/mice so surely i should be able to do the same
sort of thing for ps2?
so for ps2:
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/misc/psaux"
Option "Protocol" "auto"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection
and for USB:
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "auto"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection
|
|
|
08-23-2003, 09:16 AM
|
#2
|
LQ Newbie
Registered: Feb 2003
Location: Philadelphia, PA
Distribution: Debian, Ubuntu, CentOS, Fedora
Posts: 17
Rep:
|
You can do it, but you must have both mice in your XF86Config-4 file. Your XF86Config seems different from mine in RedHat, but it looks like what you have to do for YOUR file is change "CorePointer" to "AlwaysCore" for the USB entry. Keep *BOTH* entries in your file.
Good luck!
MagicTom
|
|
|
08-26-2003, 02:18 AM
|
#3
|
Member
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512
Original Poster
Rep:
|
yeah i figured it out in the end. Using this method, you can have both mice plugged in and both of them work.
in service layout:
InputDevice "PS2 mouse" "CorePointer"
InputDevice "USB mouse" "AlwaysCore"
Section "ServerFlags"
Option "AllowMouseOpenFail"
EndSection
Section "InputDevice"
Identifier "USB mouse"
Driver "mouse"
Option "Protocol" "Imps/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
Identifier "PS2 mouse"
Driver "mouse"
Option "Protocol" "Imps/2"
Option "Device" "/dev/misc/psaux"
Option "ZAxisMapping" "4 5"
EndSection
|
|
|
All times are GMT -5. The time now is 11:06 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|