View previous topic :: View next topic |
Author |
Message |
smcallis182 Apprentice
Joined: 04 Apr 2004 Posts: 197 Location: Kansas City
|
Posted: Fri Sep 10, 2004 7:08 pm Post subject: Mouse doesn't work in xorg |
|
|
I'm trying to get my mouse to work in Xorg. It's a Mx700 but my issues ISN'T trying to get all the buttons to work. Whenever I load xorg, the mouse will only move up/down in a vertical line, no other motion is possible. I've tried every permutation of protocol/devices and even changed me kernel to 2.6.8.1-mm4. Can anyone help?
Here's my xorg:
Quote: | Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/TTF/"
FontPath "/usr/share/fonts/Type1/"
FontPath "/usr/share/fonts/CID/"
FontPath "/usr/share/fonts/75dpi/"
FontPath "/usr/share/fonts/100dpi/"
EndSection
Section "ServerFlags"
#DontZap # disable <Crtl><Alt><BS> (server abort)
# Allow Server To Load Even On Mouse Failure
AllowMouseOpenFail
# Disable CTRL-ALT-+/- Zooming
# DontZoom
EndSection
Section "Module"
Load "record"
Load "extmod"
Load "dbe"
# Load "dri"
Load "glx"
Load "xtrap"
Load "freetype"
Load "type1"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
# Configured For a Logitech MX 700 Mouse
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
# Option "SendCoreEvents" "true"
Option "Protocol" "evdev"
Option "Device" "/dev/mouse"
# Option "ZAxisMapping" "4 5" # Create Wheel Mappings
# Option "Buttons" "5" # Number of Total Buttons
# Option "Resolution" "800" # Set USB Resolution
# Option "SampleRate" "800" # Increase Sample Rate
EndSection
Section "Monitor"
Identifier "MagLeft"
VendorName "Mag Innovision"
ModelName "Flat Panel 1280x1024"
HorizSync 31.5-67
VertRefresh 50-75
EndSection
Section "Monitor"
Identifier "MagRight"
VendorName "Mag Innovision"
ModelName "Flat Panel 1280x1024"
HorizSync 31.5-67
VertRefresh 50-75
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 "SWcursor" # [<bool>]
#Option "HWcursor" # [<bool>]
#Option "NoAccel" # [<bool>]
#Option "ShadowFB" # [<bool>]
#Option "UseFBDev" # [<bool>]
#Option "Rotate" # [<str>]
#Option "VideoKey" # <i>
#Option "FlatPanel" # [<bool>]
#Option "FPDither" # [<bool>]
#Option "CrtcNumber" # <i>
Identifier "GeForceFX"
Driver "nvidia"
VendorName "nVidia Corporation"
BoardName "NV34 [GeForce FX 5200]"
BusID "PCI:1:5:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "GeForceFX"
Monitor "MagLeft"
DefaultColorDepth 24
Subsection "Display"
Depth 24
Modes "1280x1024"
ViewPort 0 0
EndSubsection
Option "MetaModes" "1280x1024, 1280x1024; 1280x1024, NULL;"
Option "SecondMonitorVertRefresh" "50-75"
Option "Xinerama" "on"
Option "NvAGP" "3"
Option "TwinViewOrientation" "RightOf"
Option "TwinView" "true"
Option "SecondMonitorHorizSync" "31.5-67"
Option "DigitalVibrance" "16"
Option "RenderAccel" "true"
Option "CursorShadow" "true"
EndSection
Section "ServerLayout"
Identifier "layout1"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Screen 0 "Screen0" 0 0
EndSection
|
I also have some gmail invites, should anyone want one. |
|
Back to top |
|
|
freelight Apprentice
Joined: 12 Jun 2004 Posts: 295 Location: NYC, NY, USA
|
Posted: Fri Sep 10, 2004 7:11 pm Post subject: |
|
|
I'm not sure if this will solve your problem, but I tend to have issues whenever I put /dev/mouse as my mouse device. Try changing that to /dev/input/mice |
|
Back to top |
|
|
ep98 Apprentice
Joined: 08 Jul 2003 Posts: 232 Location: Bulgaria
|
Posted: Fri Sep 10, 2004 7:27 pm Post subject: |
|
|
freelight wrote: | I'm not sure if this will solve your problem, but I tend to have issues whenever I put /dev/mouse as my mouse device. Try changing that to /dev/input/mice |
or if u have PS/2 mouse, set it to /dev/psaux _________________ If u cant give advice, dont send the helpless to the HOWTO's way or Google.com way. |
|
Back to top |
|
|
dtor Guru
Joined: 19 Jan 2004 Posts: 461 Location: Indiana, USA
|
Posted: Fri Sep 10, 2004 7:55 pm Post subject: Re: Mouse doesn't work in xorg |
|
|
smcallis182 wrote: |
Option "Protocol" "evdev"
Option "Device" "/dev/mouse"
|
If you are using "evdev" driver your device needs to be /dev/input/eventX. Check your /proc/bus/input/devices to see what eventX your mouse is mapped.
For "mouse" driver device should be either /dev/input/mouseX or /dev/iput/mice but seeing you have MX mouse you shoudl be better off sticking with evdev. _________________ Dmitry |
|
Back to top |
|
|
smcallis182 Apprentice
Joined: 04 Apr 2004 Posts: 197 Location: Kansas City
|
Posted: Fri Sep 10, 2004 9:04 pm Post subject: |
|
|
Sorry guys, had a class and then the forums didn't want to come back up. I tried setting it to /dev/input/mice to no avail. I think /dev/mouse actually points to psaux on my system. and I'm not running evdev. It's all very frustrating. I even tried hooking up my actual microsoft explorer mouse and still couldn't get it to work...
I also just tried using /dev/psaux as my device, didn't work. Arrrggh. If there's any other configs/files you want me to post, I'll be glad too cuz this is driving me crazy.
[EDIT] Sorry, just saw the config I posted had evdev as my protocol, I just put it in there out of desparation, I'm not actually using it. |
|
Back to top |
|
|
dtor Guru
Joined: 19 Jan 2004 Posts: 461 Location: Indiana, USA
|
Posted: Fri Sep 10, 2004 9:23 pm Post subject: |
|
|
Ok, let's start from the beginning then... Is it USB or PS/2 mouse? What does 'cat /proc/bus/input/devices' show? _________________ Dmitry |
|
Back to top |
|
|
smcallis182 Apprentice
Joined: 04 Apr 2004 Posts: 197 Location: Kansas City
|
Posted: Fri Sep 10, 2004 9:36 pm Post subject: |
|
|
It's a PS/2 mouse, here's my output:
Quote: | I: Bus=0011 Vendor=0001 Product=0001 Version=ab41
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
H: Handlers=kbd
B: EV=120013
B: KEY=4 2000000 3802078 f840d001 f2ffffdf ffefffff ffffffff fffffffe
B: MSC=10
B: LED=7
I: Bus=0011 Vendor=0002 Product=0001 Version=0000
N: Name="PS/2 Generic Mouse"
P: Phys=isa0060/serio1/input0
H: Handlers=mouse0
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=3
|
It worked beautifully when I was running xfree, but not so much now. |
|
Back to top |
|
|
dtor Guru
Joined: 19 Jan 2004 Posts: 461 Location: Indiana, USA
|
Posted: Fri Sep 10, 2004 9:53 pm Post subject: |
|
|
Hmm.. it isn't recognized as a Logitech... Not even wheel is detected...
if you do 'cat /dev/input/mice' and move your mouse does the garbage shows on the screen?
You said it is a PS/2 mouse but do you have USB ports in your box? "USB Legacy emulation may be interfering with psmouse probing for attached hardware. Is your PS/2 supprt compiled as a module or directly into the kernel? Try compiling it as a module and loading after the module for your USB host controller (uhci-hcd, ohci-hcd or ehci-hcd) _________________ Dmitry |
|
Back to top |
|
|
ramidh n00b
Joined: 16 Feb 2004 Posts: 31 Location: Grand Rapids, MI
|
Posted: Fri Sep 10, 2004 9:56 pm Post subject: |
|
|
are you loading the "evdev" module? because if you're not, try that and see how it works. it fixed my USB mouse issues. _________________ In Linux we trust. |
|
Back to top |
|
|
smcallis182 Apprentice
Joined: 04 Apr 2004 Posts: 197 Location: Kansas City
|
Posted: Fri Sep 10, 2004 11:32 pm Post subject: |
|
|
How do I go about using that? |
|
Back to top |
|
|
violentgreen Tux's lil' helper
Joined: 24 Sep 2003 Posts: 98 Location: Lexington, KY
|
Posted: Fri Sep 10, 2004 11:54 pm Post subject: |
|
|
smcallis182 wrote: | How do I go about using that? |
type
If that works for you, add "evdev" to your /etc/modules.autoload.d/kernel-2.X (where X is either 4 or 6 depending on your kernel version) |
|
Back to top |
|
|
smcallis182 Apprentice
Joined: 04 Apr 2004 Posts: 197 Location: Kansas City
|
Posted: Sat Sep 11, 2004 2:18 am Post subject: |
|
|
I get:
insmod: can't read 'evdev': No such file or directory
modprobe fails also. I looked for it in my kernel earlier and couldn't find it. What exactly does it do? |
|
Back to top |
|
|
smcallis182 Apprentice
Joined: 04 Apr 2004 Posts: 197 Location: Kansas City
|
Posted: Sat Sep 11, 2004 3:46 am Post subject: |
|
|
Anyone, beuller? |
|
Back to top |
|
|
dtor Guru
Joined: 19 Jan 2004 Posts: 461 Location: Indiana, USA
|
Posted: Sat Sep 11, 2004 4:36 am Post subject: |
|
|
Do not bother with evdev - it provides alternative access to input system data and requires special userspace driver. _________________ Dmitry |
|
Back to top |
|
|
smcallis182 Apprentice
Joined: 04 Apr 2004 Posts: 197 Location: Kansas City
|
Posted: Sat Sep 11, 2004 4:39 am Post subject: |
|
|
OK, but why can't I get my mouse to work? All it does is move up/down no matter what I try. I've tried two mice, and every permutation of protocol/device there is... I'm at a total loss |
|
Back to top |
|
|
dtor Guru
Joined: 19 Jan 2004 Posts: 461 Location: Indiana, USA
|
Posted: Sat Sep 11, 2004 6:17 am Post subject: |
|
|
Have you tried loading USB modules first, like I suggested? Also, you mentioned that you normally not using "evdev" protocol in your X config. What is it normally set at? The most appropriate is "ExplorerPS/2" (even though your mouse is logitech). _________________ Dmitry |
|
Back to top |
|
|
smcallis182 Apprentice
Joined: 04 Apr 2004 Posts: 197 Location: Kansas City
|
Posted: Sat Sep 11, 2004 1:44 pm Post subject: |
|
|
How do I load the USB modules first? Will that work even though it's a PS/2? And my protocol is normally set at ExplorerPS/2... |
|
Back to top |
|
|
smcallis182 Apprentice
Joined: 04 Apr 2004 Posts: 197 Location: Kansas City
|
Posted: Sat Sep 11, 2004 3:08 pm Post subject: |
|
|
Sweet god in heaven! I turned EHCI support on in my kernel (OHCI and UHCI were on already) and it works now!!! |
|
Back to top |
|
|
|