LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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


Reply
  Search this Thread
Old 02-18-2003, 02:15 AM   #1
Texicle
Member
 
Registered: Oct 2002
Location: Northern Ontario, Canada
Distribution: Slackware 10.0
Posts: 789

Rep: Reputation: 30
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.
 
Old 02-19-2003, 02:36 AM   #2
Sparky
Member
 
Registered: Feb 2003
Location: Denver
Posts: 68

Rep: Reputation: 15
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...
 
Old 02-19-2003, 05:06 AM   #3
Texicle
Member
 
Registered: Oct 2002
Location: Northern Ontario, Canada
Distribution: Slackware 10.0
Posts: 789

Original Poster
Rep: Reputation: 30
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!
 
Old 02-20-2003, 09:11 PM   #4
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
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
 
Old 02-24-2003, 06:23 PM   #5
Texicle
Member
 
Registered: Oct 2002
Location: Northern Ontario, Canada
Distribution: Slackware 10.0
Posts: 789

Original Poster
Rep: Reputation: 30
I just remembered this post existed. Thanks for the suggestion Darin, I'll give it a try tonight.
 
Old 02-24-2003, 08:39 PM   #6
arnold
Member
 
Registered: Dec 2002
Posts: 226

Rep: Reputation: 30
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
 
Old 02-24-2003, 08:52 PM   #7
arnold
Member
 
Registered: Dec 2002
Posts: 226

Rep: Reputation: 30
correction - was
Section "Pointer"
Protocol "Logitech"
Device "/dev/mouse"
EndSection
 
Old 02-25-2003, 01:52 AM   #8
Sparky
Member
 
Registered: Feb 2003
Location: Denver
Posts: 68

Rep: Reputation: 15
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 :-)
 
Old 02-25-2003, 02:25 AM   #9
Texicle
Member
 
Registered: Oct 2002
Location: Northern Ontario, Canada
Distribution: Slackware 10.0
Posts: 789

Original Poster
Rep: Reputation: 30
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
 
  


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
No Button 4 - Logitech Trackball Tim Johnson Linux - Software 0 10-15-2004 11:46 AM
Logitech mouse, only first button work Causea Linux - Hardware 4 08-09-2004 05:14 AM
Older Logitech 3 button serial port mouse configuration. Tarts Slackware 0 10-21-2003 02:08 AM
Logitech mouse - scroll button kazuni Linux - Newbie 1 06-03-2003 07:19 PM
Logitech Mouseman thumb button wAmOZ Linux - General 0 10-15-2001 11:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:43 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
Open Source Consulting | Domain Registration