LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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


Reply
  Search this Thread
Old 08-21-2003, 04:12 AM   #1
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
Question 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
 
Old 08-23-2003, 09:16 AM   #2
MagicTom
LQ Newbie
 
Registered: Feb 2003
Location: Philadelphia, PA
Distribution: Debian, Ubuntu, CentOS, Fedora
Posts: 17

Rep: Reputation: 0
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
 
Old 08-26-2003, 02:18 AM   #3
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Original Poster
Rep: Reputation: 30
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Had USB mouse, now have PS2, but doesn't work infornography Linux - Newbie 2 07-31-2005 01:14 AM
Re: usb mouse to ps2 converter MunCH Slackware 5 09-03-2004 06:08 PM
ps2 keyboard freezes with usb mouse ayrusnes Linux - Hardware 0 04-16-2004 08:14 AM
changing from USB to PS2 mouse? dalesd Linux - Newbie 2 01-20-2004 10:23 PM
enabling usb mouse AND ps2 kaltag Linux - Hardware 3 12-08-2003 10:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration