Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
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.
|
 |
01-30-2005, 06:07 PM
|
#1
|
Member
Registered: Jun 2004
Location: PA
Distribution: Fedora (latest git kernel)
Posts: 458
Rep:
|
setup up a usb mouse
hello,
i have two mouses. one is hooked up via PS/2 port, and that one works fine, however the usb mouse isn't working, I'm new to configuring linux systems, so i need help so i can have both mouses working at the same time....
thanks
djgerbavor3
|
|
|
01-30-2005, 06:12 PM
|
#2
|
Senior Member
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046
Rep:
|
Perhaps you could post your xorg.conf file here ? It should be in /etc/X11/xorg.conf. (Or XF86Config-4, in the same directory if you can't find the xorg conf).
Cheers,
mj
|
|
|
01-30-2005, 08:10 PM
|
#3
|
Member
Registered: Jun 2004
Location: PA
Distribution: Fedora (latest git kernel)
Posts: 458
Original Poster
Rep:
|
here is my XFree86Config file:
Code:
Section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/CID/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection
Section "Module"
Load "glx"
Load "record"
Load "extmod"
Load "dbe"
Load "dri"
Load "xtrap"
Load "type1"
Load "freetype"
Load "speedo"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/mouse"
Option "ZAxisMapping" "4 5"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option "DigitalVibrance" # <i>
#Option "NoFlip" # [<bool>]
#Option "Dac8Bit" # [<bool>]
#Option "NoLogo" # [<bool>]
#Option "UBB" # [<bool>]
#Option "Stereo" # <i>
#Option "SWcursor" # [<bool>]
#Option "HWcursor" # [<bool>]
#Option "VideoKey" # <i>
#Option "NvAGP" # <i>
#Option "IgnoreEDID" # [<bool>]
#Option "NoDDC" # [<bool>]
#Option "ConnectedMonitor" # <str>
#Option "ConnectedMonitors" # <str>
#Option "TVStandard" # <str>
#Option "TVOutFormat" # <str>
#Option "RenderAccel" # [<bool>]
#Option "CursorShadow" # [<bool>]
#Option "CursorShadowAlpha" # <i>
#Option "CursorShadowXOffset" # <i>
#Option "CursorShadowYOffset" # <i>
#Option "UseEdidFreqs" # [<bool>]
#Option "FlatPanelProperties" # <str>
#Option "TwinView" # [<bool>]
#Option "TwinViewOrientation" # <str>
#Option "SecondMonitorHorizSync" # <str>
#Option "SecondMonitorVertRefresh" # <str>
#Option "MetaModes" # <str>
#Option "UseInt10Module" # [<bool>]
#Option "NoTwinViewXineramaInfo" # [<bool>]
#Option "NoRenderExtension" # [<bool>]
#Option "Overlay" # [<bool>]
#Option "CIOverlay" # [<bool>]
#Option "ForceEmulatedOverlay" # [<bool>]
#Option "TransparentIndex" # <i>
#Option "OverlayDefaultVisual" # [<bool>]
#Option "NvEmulate" # <i>
#Option "NoBandWidthTest" # [<bool>]
#Option "CustomEDID-CRT-0" # <str>
#Option "CustomEDID-CRT-1" # <str>
#Option "CustomEDID-DFP-0" # <str>
#Option "CustomEDID-DFP-1" # <str>
#Option "CustomEDID-TV-0" # <str>
#Option "CustomEDID-TV-1" # <str>
#Option "TVOverScan" # <f>
#Option "IgnoreDisplayDevices" # <str>
#Option "MultisampleCompatibility" # [<bool>]
#Option "RegistryDwords" # <str>
#Option "NoPowerConnectorCheck" # [<bool>]
#Option "AllowDFPStereo" # [<bool>]
#Option "XvMCUsesTextures" # [<bool>]
#Option "HorizSync" # <str>
#Option "VertRefresh" # <str>
Identifier "Card0"
Driver "nvidia"
VendorName "nVidia Corporation"
BoardName "Geforce FX5200 128 MB"
BusID "PCI:1:0:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 1
EndSubSection
SubSection "Display"
Depth 4
EndSubSection
SubSection "Display"
Depth 8
EndSubSection
SubSection "Display"
Depth 15
EndSubSection
SubSection "Display"
Depth 16
EndSubSection
SubSection "Display"
Depth 24
EndSubSection
EndSection
thanks,
djgerbavor3
|
|
|
01-30-2005, 10:45 PM
|
#4
|
Senior Member
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046
Rep:
|
Righto -- you need to modify the file in two places. First, add the following line to the server layout section at the start, so that it becomes
Code:
Section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "USB Mouse" "CorePointer"
EndSection
Second, add the following section (just after the existing mouse section would be a wise idea).
Code:
Section "InputDevice"
Identifier "USB Mouse"
Driver "mouse"
Option "Device" "/dev/input/mice"
Option "SendCoreEvents" "true"
Option "Protocol" "IMPS/2"
Option "ZAxisMapping" "4 5"
Option "Buttons" "5"
EndSection
You may need to add the SendCoreEvents line to the first mouse entry also (Mouse0, not the ServerLayout). Now restart X (logout, and then log back in - no need to reboot).
Good luck
mj
|
|
|
01-31-2005, 08:31 AM
|
#5
|
Member
Registered: Jun 2004
Location: PA
Distribution: Fedora (latest git kernel)
Posts: 458
Original Poster
Rep:
|
first of all thanks, that work, now I have both mices working.
Now my next question - how did you know that
Code:
Option "Device" "/dev/input/mice"
would work for a usb mouse? what happens if i want to add another mouse, do i use hte same set up for another mouse?
thanks again,
djgerbavor3
|
|
|
01-31-2005, 03:35 PM
|
#6
|
Senior Member
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046
Rep:
|
Great to hear you've got them both working
AFAIK, /dev/input/mice is usually used for USB devices (multiple, if you wish), as long as you have HID and mouse support enabled in the kernel - a fairly safe bet these days. The SendCoreEvents is used to allow more than one (non-USB) mouse to be used. This is common on laptops where there might be a touchpad, a tiny joystick (both usually PS2), and a USB mouse plugged in.
Cheers,
mj
|
|
|
01-31-2005, 04:21 PM
|
#7
|
Member
Registered: Jun 2004
Location: PA
Distribution: Fedora (latest git kernel)
Posts: 458
Original Poster
Rep:
|
hey thanks,
so any usb mouse will be in /dev/input/mice? (granted the kernel has HID and mouse support).
thanks, you have been much help.
djgerbavor3
|
|
|
01-31-2005, 07:03 PM
|
#8
|
Senior Member
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046
Rep:
|
Yes, -- as far as I know anyway.
Cheers,
mj
|
|
|
All times are GMT -5. The time now is 09:31 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
|
|