View previous topic :: View next topic |
Author |
Message |
Anomally n00b
Joined: 16 Oct 2004 Posts: 32
|
Posted: Wed Apr 27, 2005 11:28 pm Post subject: Xorg doesn't like my mouse |
|
|
I'm having issues with the mouse I have and Xorg. in the xorg.conf.new file under the 'InputDevice' section the mouse identifier and driver are the generic "Mouse0" and "mouse." The mouse I'm using is a kensington optical mouse (USB not PS/2), nothing special about it. What changes do I need to make? what 'driver' should I use to get this to work?
I've tried using a different optical mouse, a generic MS optical wheel mouse using PS/2 (after rebooting) and that doesn't work either, what am I missing? When I run 'Xorg -configure' with either of the mice I get an error at the end that reads:
Xorg is not able to detect your mouse.
Edit the file and correct the Device.
Thanks for anybody's help |
|
Back to top |
|
|
spexx n00b
Joined: 02 Mar 2005 Posts: 23
|
Posted: Thu Apr 28, 2005 12:06 am Post subject: |
|
|
Maybe X set the device path to your mouse incorrectly.
cat the following and move your mouse around after catting each one
/dev/mouse
/dev/input/mice
/dev/input/mouse0
/dev/input/mouse1
whichever one shows symbols appear when you move the mouse around while catting it, is your mouse.
After you run X -configure, try going back to the InputDevice section for the mouse in your xorg.conf.new. Make sure there is a device option pointing to where you determined the mouse to be, so it should look like this:
Code: |
Section "InputDevice"
# Identifier and driver
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Device" "wherever you determined your mouse is"
|
Keep in mind the statements like "Option "Protocol" "ImPS/2"" and the identifiers are specific to my system and may be different for you.
If that dosn't work, post the results of lspci [emerge it if you don't have it(I think it's part of gentoolkit)] with your mouse plugged in.
good luck _________________ CPU:Intel p4 @ 3.00GHz (HT)
RAM:1024MB @ 400MHz
HDD:160GB SATA @ 7200RPM
GFX: ATI Radeon 9600 128mb
SOUND: Creative Labs SoundBlaster Audigy |
|
Back to top |
|
|
Anomally n00b
Joined: 16 Oct 2004 Posts: 32
|
Posted: Thu Apr 28, 2005 1:00 am Post subject: Mouse Found! X still has issues.... |
|
|
So through 'cat' (which I had no clue what you were talking about) I found that /dev/input/mouse0 is where my mouse is, this is the one that gave me a bunch of junk symbols as I moved the mouse. So I went into xorg.conf.new and edited the InputDevices section so it looks like this:
Code: |
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option " Protocol" "auto"
Option "Device" "/dev/input/mouse0"
EndSection
|
but when I run 'Xorg -configure,' I still get the same error;
Code: |
Xorg is not able to detect your mouse.
Edit the file and correct the Device.
|
I don't have 'Ispci' nor could I emerge it, 'there are no ebuilds to satisfy 'Ispci''. What should I do now? Thanks again for the help. |
|
Back to top |
|
|
spexx n00b
Joined: 02 Mar 2005 Posts: 23
|
Posted: Thu Apr 28, 2005 1:14 am Post subject: |
|
|
I'm going to continue working on this, but for now, could you post your whole xorg.conf if you can.
and to do the lspci thing I mentioned earlier, forget about it, I made a mistake, so do the following:
plug in your mouse
type "lsusb" and post the results
if that dosn't work,
emerge usbutils
emerge gentoolkit
type "lsusb"
and post their results.
If you want to speed things up, you can check the xorg syntax man pages (type "man 5 xorg.conf") and see what there is about mouse syntax. _________________ CPU:Intel p4 @ 3.00GHz (HT)
RAM:1024MB @ 400MHz
HDD:160GB SATA @ 7200RPM
GFX: ATI Radeon 9600 128mb
SOUND: Creative Labs SoundBlaster Audigy |
|
Back to top |
|
|
Anomally n00b
Joined: 16 Oct 2004 Posts: 32
|
Posted: Thu Apr 28, 2005 1:36 am Post subject: |
|
|
I've emerged 'usbutils' and gentoolkit' but trying to run "Isusb" isn't working still, I must be an idiot. I've checked out the man file for xorg and I couldn't find anything useful there. I'll keep tinkering around see if I can't figure it out in the meantime, thanks again for the help.
My Xorg.conf.new file is: Code: |
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
RgbPath "/usr/lib/X11/rgb"
ModulePath "/usr/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 "Module"
Load "record"
Load "extmod"
Load "dbe"
Load "dri"
Load "glx"
Load "xtrap"
Load "freetype"
Load "type1"
EndSection
Section "InputDevice"
indentifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Indetifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mouse0"
EndSection
Section "Monitor"
#DisplaySize 320 240 # mm
Identifier "Monitor0"
VendorName "PTS"
ModelName "309"
HorizSync 30.0 - 70.0
VertRefresh 50.0 - 160.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Card0"
Driver "i810"
VendorName "Intel Corp."
BoardName "82810E DC-133 CGC [Chipset Graphics Controller]"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
|
That is ALL of my Xorg.conf.new file with the exception of about 7 commented-out lines in the "Device" section.
Last edited by Anomally on Thu Apr 28, 2005 2:15 am; edited 1 time in total |
|
Back to top |
|
|
spexx n00b
Joined: 02 Mar 2005 Posts: 23
|
Posted: Thu Apr 28, 2005 2:07 am Post subject: |
|
|
Make sure you are root when using lsusb, i'm very sure lsusb is included in usbutils.
Also, there is a gentoo USB FAQ here: http://www.gentoo.org/doc/en/usb-guide.xml
Take a look at it for what it's worth, and make sure your kernel is set up the way it describes.
To recompile your kernel after making any alterations, I think I wrote you a lengthy description on how to do it at the end of this thread: https://forums.gentoo.org/viewtopic-p-2357439.html#2357439
good luck _________________ CPU:Intel p4 @ 3.00GHz (HT)
RAM:1024MB @ 400MHz
HDD:160GB SATA @ 7200RPM
GFX: ATI Radeon 9600 128mb
SOUND: Creative Labs SoundBlaster Audigy |
|
Back to top |
|
|
Anomally n00b
Joined: 16 Oct 2004 Posts: 32
|
Posted: Thu Apr 28, 2005 3:38 am Post subject: |
|
|
Whoa I'm an idiot, I thought lsusb was Isusb , now that I've determined its LSUSB (which makes sense), this is what comes up:
Code: |
Bus 001 Device 002: ID 047d:1012 Kensington
Bus 001 Device 001: ID 0000:0000
|
I don't understand why Xorg is choking on finding my mouse when everythings can without issue...blast |
|
Back to top |
|
|
spexx n00b
Joined: 02 Mar 2005 Posts: 23
|
Posted: Thu Apr 28, 2005 12:01 pm Post subject: |
|
|
Wow, that's weird as hell. lsusb picks up your mouse, you can cat the file, which means you have the proper drivers for it. Yet X does not like your mouse. This usually means somthing is wrong with X, meaning that you probably should re-emerge it, but we can try one more thing, type the following with your mouse plugged in, and post the results:
lsusb -vv
Remember that's LSUSB
Hopefully that should tell us the protocol and driver the mouse uses, and we can put that in the xorg.conf _________________ CPU:Intel p4 @ 3.00GHz (HT)
RAM:1024MB @ 400MHz
HDD:160GB SATA @ 7200RPM
GFX: ATI Radeon 9600 128mb
SOUND: Creative Labs SoundBlaster Audigy |
|
Back to top |
|
|
Anomally n00b
Joined: 16 Oct 2004 Posts: 32
|
Posted: Thu Apr 28, 2005 9:03 pm Post subject: |
|
|
I'm sure there is a simple solution to my problem, but when I run 'lsussb -vv' too much info gets spit out to fit on one screen, I don't know how to 'pause' the read-out so I can get it down; yeah I'm that green. |
|
Back to top |
|
|
spexx n00b
Joined: 02 Mar 2005 Posts: 23
|
Posted: Thu Apr 28, 2005 9:53 pm Post subject: |
|
|
You can type:
lsusb -vv > STUFF.TXT
This will then stick the output of lsusb -vv into a text file called STUFF.TXT in your current directory.
you can view it by typing:
nano STUFF.TXT _________________ CPU:Intel p4 @ 3.00GHz (HT)
RAM:1024MB @ 400MHz
HDD:160GB SATA @ 7200RPM
GFX: ATI Radeon 9600 128mb
SOUND: Creative Labs SoundBlaster Audigy |
|
Back to top |
|
|
Anomally n00b
Joined: 16 Oct 2004 Posts: 32
|
Posted: Fri Apr 29, 2005 5:20 am Post subject: |
|
|
K. I'm currently re-emerging X, and on this old system (PIII 500) that will take forever. If this doesn't work I'll go crazy and drop the computer off a 10-story building (actually if this problem was enough to take me over the edge I would've stopped trying to learn Linux LONG ago).
As a side note X got installed as a dependency of a media player I emerged, VLC (which didn't emerge correctly or completely) so that might be part of my problem. Right now I'm emerging X, not VLC. |
|
Back to top |
|
|
Anomally n00b
Joined: 16 Oct 2004 Posts: 32
|
Posted: Fri Apr 29, 2005 6:44 am Post subject: |
|
|
No go on the re-emerge, so here is the 'lsusb -vv' stuff:
Code: |
Bus 001 Device 004: ID 047d:1012 Kensington
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x047d Kensington
idProduct 0x1012
bcdDevice 1.20
iManufacturer 1 Kensington
iProduct 2 Kensington MIAB Optical
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
blength 9
bDescriptorType 2
wTotalLength 34
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
Remote Wakeup
MaxPower 100mA
Interface Descriptor:
blength 9
bDescriptorType 4
bInterfaceNumber 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Devices
bInterfaceSubClass 1 Boot Interface Subclass
bInterfaceProtocol 2 Mouse
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.00
bCountryCode 0
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 52
cannot get report descriptor
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type none
wMaxPacketSize 4
bInterval 10
Language IDs: (length=4)
0409 English(US)
|
So this is all of the device stuff for the mouse, the other device (nothing connected but talks about the USB controller) at 'Bus 001 Device 001' I can also list if need be. |
|
Back to top |
|
|
spexx n00b
Joined: 02 Mar 2005 Posts: 23
|
Posted: Fri Apr 29, 2005 9:49 pm Post subject: |
|
|
This is starting to make no sense. just a question in hopes of another direction to persue, do you have udev or devfsd? _________________ CPU:Intel p4 @ 3.00GHz (HT)
RAM:1024MB @ 400MHz
HDD:160GB SATA @ 7200RPM
GFX: ATI Radeon 9600 128mb
SOUND: Creative Labs SoundBlaster Audigy |
|
Back to top |
|
|
V-Man n00b
Joined: 19 Jun 2003 Posts: 38 Location: A chair
|
Posted: Sat Apr 30, 2005 12:20 am Post subject: |
|
|
Just out of curiosity, why are you running
after you have corrected the mouse issue in the config file? It doesn't surprise me that X can't detect your mouse (it's weird like that sometimes). Once you have it set correctly in the xorg.conf, everything should be ok. Have you tried just starting X, without the -configure? _________________ To err is human; To really foul things up requires a computer.
www.zoto.com |
|
Back to top |
|
|
Anomally n00b
Joined: 16 Oct 2004 Posts: 32
|
Posted: Mon May 02, 2005 4:52 am Post subject: |
|
|
Uh..yeah simply running works. I get a grey patterned background with my quasi cross-bones mouse pointer (which works). |
|
Back to top |
|
|
nephros Advocate
Joined: 07 Feb 2003 Posts: 2139 Location: Graz, Austria (Europe - no kangaroos.)
|
Posted: Mon May 02, 2005 5:08 am Post subject: |
|
|
Anomally wrote: | Uh..yeah simply running works. I get a grey patterned background with my quasi cross-bones mouse pointer (which works). |
Running "startx" instead should give you a bit more, depending on what you specified in the XSESSION variable in /etc/rc.conf
Now you got X working, go through one of the guides at
http://www.gentoo.org/doc/en/index.xml?catid=desktop for all the eye candy and cool stuff. _________________ Please put [SOLVED] in your topic if you are a moron. |
|
Back to top |
|
|
MalachiX Tux's lil' helper
Joined: 10 Apr 2005 Posts: 101 Location: Miami, Fl
|
Posted: Mon May 02, 2005 5:31 am Post subject: |
|
|
spexx wrote: |
Code: |
Section "InputDevice"
# Identifier and driver
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Device" "wherever you determined your mouse is"
|
|
I don't know if this will make a difference, but in my xorg.conf file I have IMPS/2 instead of ImPS/2. Never know, spelling may make a difference. Also on Gentoo your path should generally be /dev/input/mouse0 or /dev/mouse. I think you could use either one, your choice. |
|
Back to top |
|
|
shash Apprentice
Joined: 18 Apr 2003 Posts: 220 Location: India
|
Posted: Mon May 02, 2005 6:48 am Post subject: |
|
|
Quote: | Also on Gentoo your path should generally be /dev/input/mouse0 or /dev/mouse. I think you could use either one, your choice. |
/dev/input/mice works too. I've symlinked /dev/mouse -> /dev/input/mice. An interesting thing that happens with this is that if I plug in two mice, they both control the pointer now! |
|
Back to top |
|
|
Anomally n00b
Joined: 16 Oct 2004 Posts: 32
|
Posted: Mon May 02, 2005 6:31 pm Post subject: |
|
|
Thanks for the help everyone, I can officially run X which is nice. Problem solved. |
|
Back to top |
|
|
|