LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 10-29-2002, 06:30 PM   #1
pielud
LQ Newbie
 
Registered: Mar 2002
Distribution: Slackware 8.0
Posts: 14

Rep: Reputation: 0
Laptop with 2 mice


I have an interesting problem. I have an IBM T20 laptop running redhat 8.0. It has one of those little red nubs for a mouse. I also have a logitech USB optical wheel mouse. Sometimes I want to use the nub, and sometimes i want to use the usb mouse. Ideally I would like to be able to use both at the same time (like windoz lets me do).

Right now i have the nub set up as my default mouse. If i want to use the usb mouse, i have to go into the mouse configuration and select it then restart gnome.

Is there any way around this?
 
Old 10-29-2002, 11:28 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
add a second mouse to the config file

I use my mouse in the console so mine is like this

if gpm is running usr gpm -k first


gpm -R -m /dev/psaux -t ps2 -M -m /dev/input/mice -t imps2


that command will get both mice working in the console, I have a nub (or whatever it's called) lol, and a pad that are the first mouse /dev/psaux type ps2, I also have a usb wheel mouse which is /dev/input/mice type imps2


now assuming you will use gpm like I have shown, you need to setup your XF86Config or XF86Config-4 file, whichever one your using.

the log file will tell you

david@micro:~$ cat /var/log/XF*0.log | grep XF86
(==) Using config file: "/etc/X11/XF86Config"

Last edited by DavidPhillips; 10-29-2002 at 11:54 PM.
 
Old 10-29-2002, 11:31 PM   #3
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
now this goes in your file, it is probably at the bottom

Section "ServerLayout"
InputDevice "Mouse2" "AlwaysCore"
InputDevice "Mouse1" "CorePointer"


you may have mouse0 and mouse1

as long as it matches the serverlayout it will be ok


now setup each mouse section for the mouse you want
 
Old 10-29-2002, 11:42 PM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
in the Device section you can use the following settings for the first mouse, the ps2 one.

Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "MouseSystems"
Option "Device" "/dev/gpmdata"
Option "Emulate 3 Buttons"
EndSection


if you have an old version (not likely) it will look like this

Protocol "MouseSystems"
Device "/dev/gpmdata"

Last edited by DavidPhillips; 10-30-2002 at 12:08 AM.
 
Old 10-29-2002, 11:48 PM   #5
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
for the usb mouse use

Section "InputDevice"
Identifier "Mouse2"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
EndSection
 
Old 10-29-2002, 11:52 PM   #6
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
you may need to add

Option "Buttons" "3" for new XFree

or

Option "Buttons" "5" for old XFree


I don't have either one and have no problems

this only applies to the wheel mouse

Last edited by DavidPhillips; 10-30-2002 at 12:10 AM.
 
Old 10-30-2002, 02:04 AM   #7
pielud
LQ Newbie
 
Registered: Mar 2002
Distribution: Slackware 8.0
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks alot it works perfectly.
 
Old 10-31-2002, 11:29 AM   #8
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
cool
 
Old 12-25-2002, 10:57 AM   #9
murshed
Member
 
Registered: Jan 2002
Posts: 157

Rep: Reputation: 30
hi
well i have nearly the same issue but i couldn't understand really the posts..

hi all
am using RH8.0 .... when i plugged my usb mouse it kudzu detected it automatically and am using it very nicely on mylaptop ..

but when i wanted to use the touchpad .. i couldn't .. i thought it was because the usb is still connected .. i unplugged it and the same issue was there ...

i restarted and it asked me if i want to keep the configuration of the usb .. i choose to keep it .. ( the usb was not connected this moment) .. then i could use my touch pad again .. ! i had to plug the usb mouse and use it ...

my question is ..

is there any way that i can use BOTH at the same time? i mean the usb mouse and the laptops touch pad ..

and do i need to answer the question of keeping the configuration or not all the time?? if i want to just keep the configuration and use whatever i wanted at the same time .. is it possible? how?


i didn't understand what configuration file to edit .. and what exactly i should use


thanks in advance
 
Old 12-25-2002, 10:35 PM   #10
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
yes you can. I just don't know how to explain it any better. What is it that you need to clarify.


The config file mentioned is /etc/X11/XF86Config-4
 
Old 03-01-2003, 07:54 PM   #11
mhkim
LQ Newbie
 
Registered: Mar 2003
Posts: 1

Rep: Reputation: 0
Smile Both mouse work in Thinkpad T30 with Redhat 8.0

My system is Thinpad T30 and Redhat 8.0 ..
I have same problem...

I followed DavidPhillips suggestion..

but I also couldn't find "/dev/gpmdata" ..
therefore I tried "dev/gpmctl" ..
It doesn't work..

After struglling some time...
I figured out..

Here.. I post my XF86Config for others..
#########################################
Section "ServerLayout"
Identifier "Anaconda Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Mouse1" "AlwaysCore"
InputDevice "Keyboard0" "CoreKeyboard"
EndSectionSection "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "GlidePointPS/2"
Option "Device" "/dev/psaux"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "yes"
EndSection

Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Device" "/dev/input/mice"
Option "Protocol" "IMPS/2"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
 
Old 03-01-2003, 09:05 PM   #12
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
true, if you do not use the console with your mouse there is no ned to use gpm, just configure both mice using their device name.
 
Old 03-03-2003, 03:41 AM   #13
Mad_C
Member
 
Registered: Dec 2002
Location: Austria
Distribution: Slax, ccux-Linux, coLinux
Posts: 49

Rep: Reputation: 15
Does all this apply for SuSe 8.1/KDE on an IBM T20, as well?
How do I get programs to scroll with the wheel?
 
Old 03-03-2003, 10:27 PM   #14
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
this part of the config does it

Option "ZAxisMapping" "4 5"
 
Old 07-05-2003, 06:00 AM   #15
ciphe
LQ Newbie
 
Registered: Jul 2003
Posts: 7

Rep: Reputation: 0
hey guys i would be happy to rate you good i got kind of the same problem and i was wondering if i would need to do the exact same or a little diferent. i use a touch pad with my toshiba laptop and i was trying to get my optical wheel usb mouse to work as well. im using slackware 9.0, can anyone help me with this?
 
  


Reply



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
2 mice Rocker Linux - Software 0 02-16-2005 07:18 AM
xmodmap for multiple mice? external and laptop mice scrolling back/forward, etc. bleargh Linux - Software 3 12-31-2004 08:48 AM
2 mice? linda Linux - Hardware 6 08-21-2004 04:25 PM
Help with mice and X... Mr.Radar Debian 3 05-31-2004 02:32 AM
XF86Config: need to set up for my laptop with different mice mrtwice Linux - Software 3 07-07-2003 09:11 AM

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

All times are GMT -5. The time now is 05:56 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