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 |
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.
|
 |
02-18-2003, 02:15 AM
|
#1
|
Member
Registered: Oct 2002
Location: Northern Ontario, Canada
Distribution: Slackware 10.0
Posts: 789
Rep:
|
Erratic Logitech 3 Button Serial
Hello,
I've got a Logitech 3 Button Serial mouse that doesn't work well with X. I've run xf86config about 15 times, mouseconfig about 15 times, searched on google, searched the forums here and elsewhere, and nothing seems to provide any answers. I've some threads that were a year or so old that showed the same problem as I'm having and they either went unanswered or the person with the problem said something like "Okay, it's working now, thanks." but didn't provide the solution or a copy of their XF86Config. Googling shows basically the same thing.
When I have my Logitech mouse in and startx, the pointer is at the middle of the screen. If I move the mouse in any direction, it wants to move to the lower left corner. Once it's there, I can't move it. If I move it up, it opens a menu in XFCE as though I had left clicked. If I move it down, it's as though I've right clicked. I can move the mouse pointer in all directions if I use the arrow keys on my keyboard, but not with the mouse itself--weird. I've tried to enable "chordmiddle" and it's no different. I tried adding a samplerate of 150 to make it smoother--no change. I've tried using just about all the possible options in mouseconfig for serial mice and none of them worked. I know it's pointing to the right port (ttyS0). Currently I'm using a cheapo 2 button MS compatible serial mouse with no problems on the same port.
Anyone out there have a working Logitech 3 button serial mouse that can post their XF86Config? This is how mine was setup using the Logitech:
Quote:
# **********************************************************************
# Core Pointer's InputDevice section
# **********************************************************************
Section "InputDevice"
# Identifier and driver
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "Logitech"
Option "Device" "/dev/mouse"
# When using XQUEUE, comment out the above two lines, and uncomment
# the following line.
# Option "Protocol" "Xqueue"
# Baudrate and SampleRate are only for some Logitech mice. In
# almost every case these lines should be omitted.
# Option "BaudRate" "9600"
# Option "SampleRate" "150"
# Emulate3Buttons is an option for 2-button Microsoft mice
# Emulate3Timeout is the timeout in milliseconds (default is 50ms)
# Option "Emulate3Buttons"
# Option "Emulate3Timeout" "50"
# ChordMiddle is an option for some 3-button Logitech mice
Option "ChordMiddle"
EndSection
|
However, this doesn't work. /dev/mouse is linked as follows:
lrwxrwxrwx 1 root root 5 Feb 18 01:44 /dev/mouse -> ttyS0
This is correct. Is the Logitech protocol incorrect here? Should I be using a different protocol for 3 button serial mouse? I've tried just about everything and none of them seem to work. I've also tried disabling gpm as well but that doesn't seem to work either. Any suggestions would be much appreciated. Thank you.
|
|
|
02-19-2003, 02:36 AM
|
#2
|
Member
Registered: Feb 2003
Location: Denver
Posts: 68
Rep:
|
My Logitech mouse is set up as a SECOND mouse while the FIRST mouse is a generic PS/2. All the same, I don't see why this wouldn't work so here it goes. In the XF86Config try the following lines (add, delete, or whatever is there now and by all means make a backup of XF86Config in case you goof or make it worse):
Section "InputDevice"
# Identifier and driver
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "IPMS/2"
Option "Device" "/dev/psaux"
Option "Device" "ZAxisMapping" "4 5"
Option "SampleRate" "120"
EndSection
That works for my Slackware 8.1 box with Logitech Mouseman mouse and scroll wheel (try it without the ZAxisMapping and SampleRate lines first -- just in case that's the culprit). The protocol is almost certianly "IMPS/2". However, I'm not sure if "/dev/psaux" is the right device driver although it should work if your mouse connects to the PS/2 port (my Logitech mouse connects to the USB port and uses the /dev/input/mouse0 driver, but I gave the PS/2 port driver which is /dev/psaux). Also note that NOT all mouse drivers are in the same directory as "mouse"; in fact, nearly all of them are in the /dev/input directory with the exception of "mouse" and "psaux" (make sure your path is pointing to a driver that exists -- but you probably knew that). FYI, /dev/mouse is a link that the "mouseconfig" utility will alter (links are like Windows Desktop shortcuts if that helps); so, you can run mouseconfig to your hearts content with the above XF86Config lines and NOT alter the XWindows mouse setup in any way by running "mouseconfig"! Hope it helps (just understanding it all is HALF the battle and that /dev/mouse link stuff was my "light bulb" item when I finally "got it"). L8R...
|
|
|
02-19-2003, 05:06 AM
|
#3
|
Member
Registered: Oct 2002
Location: Northern Ontario, Canada
Distribution: Slackware 10.0
Posts: 789
Original Poster
Rep:
|
Quote:
Originally posted by Sparky
My Logitech mouse is set up as a SECOND mouse while the FIRST mouse is a generic PS/2. All the same, I don't see why this wouldn't work so here it goes. In the XF86Config try the following lines (add, delete, or whatever is there now and by all means make a backup of XF86Config in case you goof or make it worse):
Section "InputDevice"
# Identifier and driver
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "IPMS/2"
Option "Device" "/dev/psaux"
Option "Device" "ZAxisMapping" "4 5"
Option "SampleRate" "120"
EndSection
That works for my Slackware 8.1 box with Logitech Mouseman mouse and scroll wheel (try it without the ZAxisMapping and SampleRate lines first -- just in case that's the culprit). The protocol is almost certianly "IMPS/2". However, I'm not sure if "/dev/psaux" is the right device driver although it should work if your mouse connects to the PS/2 port (my Logitech mouse connects to the USB port and uses the /dev/input/mouse0 driver, but I gave the PS/2 port driver which is /dev/psaux). Also note that NOT all mouse drivers are in the same directory as "mouse"; in fact, nearly all of them are in the /dev/input directory with the exception of "mouse" and "psaux" (make sure your path is pointing to a driver that exists -- but you probably knew that). FYI, /dev/mouse is a link that the "mouseconfig" utility will alter (links are like Windows Desktop shortcuts if that helps); so, you can run mouseconfig to your hearts content with the above XF86Config lines and NOT alter the XWindows mouse setup in any way by running "mouseconfig"! Hope it helps (just understanding it all is HALF the battle and that /dev/mouse link stuff was my "light bulb" item when I finally "got it"). L8R...
|
Thanks for the advice. I remember your problem. Xcon and I were racking our brains trying to figure out what went wrong with your 2 mouse setup. Unfortunately, mine is a serial mouse and therefore cannot use /dev/psaux or IMPS/2 as protocol. This is not so much a real problem for me but rather an irritant. You're right though--the mouseconfig utility really didn't do much for me at all. My /dev/mouse is pointing to the right serial port, but for some reason nothing seems to work. The mouse used to work on a Win98 machine, but that doesn't necessarily mean that it works now. Thanks for the tips though! 
|
|
|
02-20-2003, 09:11 PM
|
#4
|
Senior Member
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024
Rep:
|
first, maybe you can get lucky? Set this in your mouse inputdevice section:
Code:
Option "Protocol" "Auto"
If that doesn't work, check out this link:
http://www.xfree86.org/current/mouse.html
|
|
|
02-24-2003, 06:23 PM
|
#5
|
Member
Registered: Oct 2002
Location: Northern Ontario, Canada
Distribution: Slackware 10.0
Posts: 789
Original Poster
Rep:
|
I just remembered this post existed. Thanks for the suggestion Darin, I'll give it a try tonight. 
|
|
|
02-24-2003, 08:39 PM
|
#6
|
Member
Registered: Dec 2002
Posts: 226
Rep:
|
This (as I recall) was for my previous, old,old logitech (C) serial
Protocol "Logitech"
Protocol "Intellimouse"
Device "/dev/mouse"
/dev/mouse was ln'ed to /dev/ttyS0
|
|
|
02-24-2003, 08:52 PM
|
#7
|
Member
Registered: Dec 2002
Posts: 226
Rep:
|
correction - was
Section "Pointer"
Protocol "Logitech"
Device "/dev/mouse"
EndSection
|
|
|
02-25-2003, 01:52 AM
|
#8
|
Member
Registered: Feb 2003
Location: Denver
Posts: 68
Rep:
|
Something else occured to me: Occasionally, the serial-port connector gets jiggled loose from the motherboard -- assuming yours is one of the 95% of computers that have a serial port that connects to the motherboard (or expansion card), that is. If you move the "CPU box" around, the connector can and does sometimes work itself off the connector(s) but won't always fall off the pin-block (sometimes only ONE good jarring will do it too). If nothing works on that "COM port" (excuse me I'm still an old hand with MSDOS) you may wan to open it up and have a look-see (beware of pin-1 lining up correctly too). Then again, the BIOS setup (or CMOS setup) may be the first thing to look at (since it's physically easier). Hopefully, the BIOS didn't get changed and wind up disabling or changing the the serial ports configuration somehow (3F8, IRQ4 & 2F8, IRQ3 for "COM" ports 1 & 2 respectively under MSDOS/Windows -- I think Linux calls them ttys0 & ttys1 or cua0 & cua1). That's just a passing thought and you probably did check it, but just in case...I thought I might mention it.
L8R :-)
|
|
|
02-25-2003, 02:25 AM
|
#9
|
Member
Registered: Oct 2002
Location: Northern Ontario, Canada
Distribution: Slackware 10.0
Posts: 789
Original Poster
Rep:
|
I tried the suggestions in order, and the first one worked. Thank you Darin! 
Arnold, thanks for the suggestion. I remembered trying the "Logitech" protocol and it allowed the cursor to move, but then it stuck in the lower left corner of the screen. I appreciate you taking the time to respond.
Sparky, I was thinking the same thing too so I cracked open the case to check and sure enough it was all plugged in tight. The BIOS was still set as normal too. I appreciate the suggestion.
Thanks again guys. Oh, BTW, for everyone out there doing a search for Logitech 3 Button Serial Mouse, here's my /etc/X11/XF86Config mouse section that works:
# **********************************************************************
# Core Pointer's InputDevice section
# **********************************************************************
Section "InputDevice"# Identifier and driver
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "Auto"
Option "Device" "/dev/mouse"
# When using XQUEUE, comment out the above two lines, and uncomment
# the following line.
# Option "Protocol" "Xqueue"
# Baudrate and SampleRate are only for some Logitech mice. In
# almost every case these lines should be omitted.
# Option "BaudRate" "9600"
# Option "SampleRate" "150"
# Emulate3Buttons is an option for 2-button Microsoft mice
# Emulate3Timeout is the timeout in milliseconds (default is 50ms)
# Option "Emulate3Buttons"
# Option "Emulate3Timeout" "50"
# ChordMiddle is an option for some 3-button Logitech mice
Option "ChordMiddle"
EndSection
|
|
|
All times are GMT -5. The time now is 10:43 AM.
|
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
|
|