LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 06-15-2004, 04:50 PM   #1
Sovin Nai
LQ Newbie
 
Registered: Jun 2004
Location: WA, USA
Distribution: Trying to decide.
Posts: 17

Rep: Reputation: 0
slackware 9.1 scrambled mouse


I am a relative newbie using slackware 9.1 with a wireless optical intellimouse explorer (usb). I have installed and run startx. Everything is normal except for the mouse behavior, which is chaotic. I have tweaked and tweaked the xf86config file to no avail. Any ideas?
 
Old 06-15-2004, 05:05 PM   #2
drowstar
Member
 
Registered: Apr 2004
Location: Germany
Distribution: Slackware, Gentoo, Fedora
Posts: 205

Rep: Reputation: 30
Hi Sovin Nai,
unfortunately there is not much detail in your post as to what the chaotic behavior is. Anyways, here are a few things I would look into.

Everything is normal except for the mouse behavior, which is chaotic.
Sounds like you are using the wrong mouse protocol.
Edit you XF86Config file and check for this section:
Code:
Section "InputDevice"
# Identifier and driver
    Identifier  "Mouse1"
    Driver      "mouse"
    Option "Protocol"    "IMPS/2"
    Option "Device"      "/dev/mouse"
    Option "ZAxisMapping" "4 5"
The important setting is: Option "Protocol" "IMPS/2". This should be set to "IMPS/2". (if it is, you may want to try "PS/2" also. Just to be sure.)

Also, be sure that you are editing the correct file. If there is a XF86Config-4 file (case XF86 v4 and above is used) or xorg.conf (something like that. Is probably not yet the case, thats for the x.org version of the x server), this is probably the one thats used. Editing XF86Config would not change a thing (both fall back to this, though, if the other files are not present).

If neither of these helped you, please respond here. Include as much detail as you can.

Thanks,
- drowstar
 
Old 06-15-2004, 05:40 PM   #3
Sovin Nai
LQ Newbie
 
Registered: Jun 2004
Location: WA, USA
Distribution: Trying to decide.
Posts: 17

Original Poster
Rep: Reputation: 0
With the IMPS/2 protocol the mouse will only move up and down, and responds much better, though still up and down, when the mouse is physically moved laterally. If you hold down one of the mouse buttons and move the mouse up and down the cursor will move up and down and right. The right button is more effective for this. Pressing the scroll wheel acts as one of the mouse buttons.

With some other protocols similar behavior is exhibited, sorry I can't remember which ones, and with others the mouse moves completely erratically, as in any motion of the mouse in any direction prompts random and frenzied motion all over the screen, and randomly 'selects' some items it passes over.

Quote:
Also, be sure that you are editing the correct file. If there is a XF86Config-4 file (case XF86 v4 and above is used) or xorg.conf (something like that. Is probably not yet the case, thats for the x.org version of the x server), this is probably the one thats used. Editing XF86Config would not change a thing (both fall back to this, though, if the other files are not present).
I don't entirely follow you here, sorry about the lack of info. In my /etc/X11 directory there are three files when I check using nautilus: XF86Config, XF86Config-fbdev, and XF86Config-vesa. I have been editing the XF86Config, since that is what is being used for the X server according to the terminal after I exit the server. When I check my X11 directory from the terminal, however, i have two additional files, XF86Config~ and XF86Config~~. The only thing I can figure out is that they are temp copies from my editing XF86Config. Changing the protocol to IMPS/2 did nothing.

Thanks for all the help

sovin

Last edited by Sovin Nai; 06-16-2004 at 03:33 AM.
 
Old 06-16-2004, 05:48 AM   #4
drowstar
Member
 
Registered: Apr 2004
Location: Germany
Distribution: Slackware, Gentoo, Fedora
Posts: 205

Rep: Reputation: 30
Sorry my first guesses didnt work.
I did some additional research and stumbled upon an old thread here at LQ.org.
It suggests that your problem is indeed the protocol used. It should be set to ExplorerPS/2.
Also, it is important that you choose the right device. /dev/mouse should be fine. However, you may need to point it to the real device (i.e. the one the /dev/mouse symlink points at). The fact that you get mouse input at all suggests that this is not your problem.

Alright, so this should work for you:
Code:
Section "InputDevice"
 Identifier "Mouse0"
 Driver "mouse"
 Option "Protocol" "ExplorerPS/2"
 Option "Device" "/dev/mouse"
 Option "Buttons" "7"
 Option "ZAxisMapping" "6 7"
 EndSection
I hope this fixes the issue for you.

Next irritation you will run into will be lack of support for your additional mouse keys. Theres also something on that in the thread I pointed out above:
If you used the Input section I posted above, all you need to do is:
Quote:
Aussie:
Then you need to do "xmodmap -e "pointer 1236745" I have a script in .kde/Autostart to do this when ever I startx but you can put the line in your .xdefaults as well.
Code:
 #!/bin/sh
  xmodmap -e "pointer = 1 2 3 6 7 4 5"
Once you have verified that your wheel works you can test to see if the extra buttons are seen by X with "xev" (place the pointer in the square and click the buttons to see the events).
Next you need to download and install imwheel (1.0.0pre1) and create .imwheelrc in your home directory with the following,
Code:
 ".*"
 None, Up, Alt_L|Left
 None, Down, Alt_L|Right
Next start imwheel with imwheel -k -b "67" I use another script in /kde/Autostart for this as well,
Code:
 #!/bin/sh
 imwheel -k -b "67"
I am confident that this will fix your problems. Feel free to ask more questions. I have no doubt, you can figure it out.

Good luck,
- drowstar
 
Old 06-16-2004, 01:04 PM   #5
Sovin Nai
LQ Newbie
 
Registered: Jun 2004
Location: WA, USA
Distribution: Trying to decide.
Posts: 17

Original Poster
Rep: Reputation: 0
Still not working. I made the initial changes you reccomended (regarding the XF86Config file) but saw no change in behavior. I then decided to try the rest anyway. I tried executing xmodmap in the prompt, but got a "could not execute" error.

I may not be understanding, and am a newbie, but shouldnt' the protocol used reflect that the mouse is usb? I don't know what else to try, and I've installed Red Hat and Fedora before with no mouse problems. I suppose if it came down to it I could put on fedora and then look at the X settings.

I went and borrowed a standard usb 2 button with scroll optical ms mouse and it is working fine. I don't know what it is with the wireless.

Thank you so much for all your help.

jack

Last edited by Sovin Nai; 06-16-2004 at 01:53 PM.
 
Old 06-18-2004, 06:35 AM   #6
drowstar
Member
 
Registered: Apr 2004
Location: Germany
Distribution: Slackware, Gentoo, Fedora
Posts: 205

Rep: Reputation: 30
Hi jack,
I am sorry that this problem persists.

You make a valid point about the USB protocol. However, the thread I pointed you to suggests that this doesnt make a difference:
Quote:
Aussie: Just because your mouse connects via usb does not mean it needs a usb protocol, you need to use ExplorerPS/2 if you want to get the side buttons working with either usb or ps/2 connections. You might need to change the device however.
I am a little bit clueless about the device. I'm thinking that if it works at all, the device should be the right one.
Did you plug the other mouse into the same port as you do the receiver of your wireless mouse? if so and if it worked, you should be good about the port.

To be honest, I am running out of ideas. The XF86Config file is not so difficult, I think there is hardly anything we have not tried.
You may want to read the aforementioned thread again. To me it seems there were quite a few people that have had similar problems as you, but have solved them doing the same things we have tried.

Anyways. Please post the content of your XF86Config file (at least the input section in question). Concentrating on the device part (not the protocol, which I am almost positive needs to be ExplorerPS/2) is what we should do next. You can experiment with that if you like. Be sure to restart your xserver anytime you have made changes to XF86Config for the changes to take effect ([ctrl+alt+backspace]).
These settings are the most likely to work:
/dev/mouse
/dev/input/mice

Hopefully this is the right track to follow.
Talk to you soon. We will solve this problem!
- drowstar

P.S.: I am sorry that getting this to work involves this kind of complexity. Think of it this way: If these settings would not exist, you would be stuck with a "broken" mouse.
 
Old 06-18-2004, 08:35 PM   #7
Sovin Nai
LQ Newbie
 
Registered: Jun 2004
Location: WA, USA
Distribution: Trying to decide.
Posts: 17

Original Poster
Rep: Reputation: 0
No problem! Actually, I am learning a great deal about Linux in my wrangling with this mouse. I'm just glad that people like you are so willing to expend their time and energy. I just read this, so I havn't tried anything yet, but I'll keep you posted.

Thanks a bunch,

jack
 
Old 06-20-2004, 10:01 PM   #8
Sovin Nai
LQ Newbie
 
Registered: Jun 2004
Location: WA, USA
Distribution: Trying to decide.
Posts: 17

Original Poster
Rep: Reputation: 0
Here are the entire contents of my XF86Config file. I am currently using a 2 button MS scroll mouse because it works, except for the wheel. If you have any other thoughts I'll swap it back to my wireless and give it a shot.

Also, another thing I noticed is that my screen is not running at full 32 or 24 bit, which it should, depenmding on what the desktop size is, which I don't know how to determine short of eyeballing. It seems that it is running in 8 bit, because when I delete the display sections under 24, the X server won't start and I get an error about a missing 8 bit display or somesuch. I'm not sure what to do about that. Thanks again.

Jack

________________________________

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 "record"
Load "extmod"
Load "dbe"
Load "dri"
Load "glx"
Load "xtrap"
Load "type1"
Load "speedo"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/mouse"
Option "Buttons" "7"
Option "ZAxisMapping" "6 7"
EndSection

Section "Monitor"
#DisplaySize 360 260 # mm
Identifier "Monitor0"
VendorName "PTS"
ModelName "3e5"
Option "DPMS"
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 "ShowCache" # [<bool>]
#Option "ShadowFB" # [<bool>]
#Option "UseFBDev" # [<bool>]
#Option "Rotate" # [<str>]
#Option "VideoKey" # <i>
#Option "FlatPanel" # [<bool>]
#Option "FPDither" # [<bool>]
#Option "CrtcNumber" # <i>
Identifier "Card0"
Driver "nv"
VendorName "nVidia Corporation"
BoardName "NV17 [GeForce4 MX 420]"
BusID "PCI:1:0:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
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
 
Old 06-21-2004, 02:09 PM   #9
drowstar
Member
 
Registered: Apr 2004
Location: Germany
Distribution: Slackware, Gentoo, Fedora
Posts: 205

Rep: Reputation: 30
Hi Jack,

Here are the entire contents of my XF86Config file.
Thanks, I'll have a look at it in a moment.

I am currently using a 2 button MS scroll mouse because it works, except for the wheel. If you have any other thoughts I'll swap it back to my wireless and give it a shot.
If you want to get the wheel working (I know, its a major annoyment, when it doesnt work), add this to your XF86Config file (you probably want it somewhere near the other InputDevice sections, for convenience):
Code:
Section "InputDevice"
	Identifier  "Mouse1"
	Driver      "mouse"
	Option	    "Protocol" "auto"
	Option	    "Device" "/dev/mouse"
	Option	    "ZAxisMapping" "4 5"
EndSection
I called it "Mouse1" so you can just add this section and modify the Server Layout section to use "Mouse1" instead of "Mouse0":
Code:
Section "ServerLayout"
	Identifier     "XFree86 Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse1" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection
If you want to use the other mouse (to experiment with it, for example ), you can simply modify the ServerLayout section to use "Mouse0" and it will use the other mouse configuration (as described in "InputDevice" - "Mouse0").

my screen is not running at full 32 or 24 bit, which it should, depenmding on what the desktop size is
Your Display sections do look very weird. Here's how I would modify it (yes, I deleted a lot, but that's alright):
Code:
Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
        DefaultDepth 24
    Subsection "Display"
        Depth       8
        Modes       "1280x1024" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "1280x1024" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "1280x1024" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
EndSection
To be honest, I dont know what the ViewPort setting means. It obviously doesnt hurt my installation, so I left it in.
Whats important is the DefaultDepth setting I highlighted. Thats where you tell the server which depth to start with. You can add a "32" section and use that, if your card can do that.
when I delete the display sections under 24, the X server won't start and I get an error about a missing 8 bit display or somesuch
I dont see a display section under 24. Anyways, I think this problem should be fixed when you make the changes I suggested above. There is probably a problem with the default value the server tries to fall back to.

Anyways, back to the mouse problem. This is the section in question:
Code:
Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "auto"
	Option	    "Device" "/dev/mouse"
	Option	    "Buttons" "7"
	Option	    "ZAxisMapping" "6 7"
EndSection
You seem to have reverted to "auto" for protocol in order to be able to use your alternate mouse. Good.
If you decided to follow my advice and added a section for your other mouse, you can make changes to this section without harming your installation. All you need to remember is to set your default in ServerLayout.

Your XF86Config file looks fine. (Darn, I so would have liked to spot something out of the ordinary.)
Can you please do a "ls -l /dev/mouse" and post the output? Maybe there is some issue with the port the mouse is connected to.
As you may have noticed, this is really not getting any easier. Any ideas you may have, any abnormalities (as the one about your color depth you pointed out. Great work!) you may notice, anything, please tell me. Not only will you be able to fix some problems along the way, you might just find the root of the problem by accident.

Thanks,
- drowstar
 
Old 06-28-2004, 02:43 AM   #10
rschultz333
LQ Newbie
 
Registered: Jun 2004
Distribution: Slackware 10
Posts: 3

Rep: Reputation: 0
slackware 9.1 scrambled mouse

Hello,

I had/have the same issue. Note that the mouse should work if you connect it to the PS2 port.

Also, the problem is not X related. It will occur even if you just use the text

/usr/sbin/gpm -m /dev/mouse -t imps2

I have tried it with all the mouse protocols with not success (except using it as a ps2 mouse)

I believe it has something to do with theh /dev/input/mice way of handling usb devices since it
worked when I was using Redhat 9 (I have happily changed to Slackware 10) and Redhat
was not using /dev/input/mice but /dev/usbsomethingorother ( If I recall correctly)

Either way, after many hours of troubleshooting, I have currently settled for using the ps2 port.

Some extra info I gained while troubleshooting.

If you
cat /dev/mouse ( alt method: cat /dev/mouse > temp.txt )
and move the mouse or click the buttons, the output will differ for the same actions depending
on if you have it connected to the usb port or the ps2 port.
with
/dev/mouse -> /dev/psaux for ps2
/dev/mouse -> /dev/input/mice for usb
I believe this is a problem with /dev/input since the way I read the docs is that it should
respond the same.

If you happen to find a solution, please let me know. I will do the same.

Robert
 
Old 06-28-2004, 03:04 AM   #11
Sovin Nai
LQ Newbie
 
Registered: Jun 2004
Location: WA, USA
Distribution: Trying to decide.
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks Robert. When you say use it as PS/2 do you mean with an adapter? I assume that is what you are saying.
 
Old 06-28-2004, 08:46 AM   #12
rschultz333
LQ Newbie
 
Registered: Jun 2004
Distribution: Slackware 10
Posts: 3

Rep: Reputation: 0
Yes, I should have said that. ( Thats what I get for posting at 3:00am )
Anyway, the mouse should have come with the USB to PS2 adapter.

Good luck

Robert

Edit:

After searching I have found but not tried this article which appears
related.

154962

Last edited by rschultz333; 06-28-2004 at 11:19 AM.
 
Old 06-30-2004, 12:23 AM   #13
rschultz333
LQ Newbie
 
Registered: Jun 2004
Distribution: Slackware 10
Posts: 3

Rep: Reputation: 0
Hello again,

If you are still having trouble getting the Microsoft wireless Intellimouse to work,
try the following. It worked for me.

rename usbmouse.o.gz to something like usbmouse.o.gz.trouble
e.g.

cd /lib/modules/2.4.26/kernel/drivers/usb
mv usbmouse.o.gz usbmouse.o.gz.trouble

Note 1: substitute 2.4.26 for your kernel version
Note 2: other possible extensions are .o or .ko for the original filename

then change your xorg.conf (XF86Config) mouse section to.

Section "InputDevice"

Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/input/mouse0"
Option "Buttons" "7"
Option "ZAxisMapping" "4 5"

Option "SampleRate" "200"

EndSection

(Note: the SampleRate Option probably doesn't need to be there. The key is /dev/input/mouse0)

Connect your mouse to the usb port.
Now reboot.

The problem should now be fixed. There are a couple of other ways to get it working (without rebooting) however this is the only permanent one I know works. I believe the problem has something to do with the order the modules usbmouse and mousedev get loaded.

Good Luck,

Robert
 
Old 06-30-2004, 02:43 AM   #14
Sovin Nai
LQ Newbie
 
Registered: Jun 2004
Location: WA, USA
Distribution: Trying to decide.
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks, I'll give it a try.
 
Old 06-30-2004, 04:13 AM   #15
Sovin Nai
LQ Newbie
 
Registered: Jun 2004
Location: WA, USA
Distribution: Trying to decide.
Posts: 17

Original Poster
Rep: Reputation: 0
YES!!! It works! Thank you so much drowstar and Robert. I am up and running. Next challenge, Wine. Have either of you ever used it? I have a lot of multimedia progs I want to run on Linux.
 
  


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
scrambled screen nin881 SUSE / openSUSE 5 10-07-2005 10:32 PM
Scrambled Console Fordor Slackware 4 07-31-2004 05:02 AM
nvidia scrambled neoh Linux - Hardware 2 10-29-2003 11:23 PM
Scrambled MBR tribonius Linux - Newbie 9 10-06-2003 12:50 PM
Scrambled video te_conway Linux - General 1 07-06-2001 04:48 PM


All times are GMT -5. The time now is 08:49 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration