LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-18-2006, 11:04 PM   #1
Crobat
Member
 
Registered: Dec 2005
Distribution: Slackware 10.2, Slackware 11.0
Posts: 135

Rep: Reputation: 15
Add a mouse


I want to add another mouse to my Slackware system, but I'm not sure what to do. My PS/2 mouse isn't working properly, and I need to switch to my USB mouse. I'm completely new to Slack.
 
Old 01-18-2006, 11:30 PM   #2
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
I'm taking a shot in the dark and wild guessing that you're only interested in getting the mouse working in your X* setup.

Not sure what version of slack you're running, but you'll want to edit either the XF86Config.conf or xorg.conf (look for the file in /etc/X11/) and find the file you want.

Next you want the stanza starting with the label "Section InputDevice" and a line that refers to a mouse. "OptionDevice" is the important one here. If your old setup is pointing to /dev/mouse, find out what /dev/mouse is. 'ls -la /dev/mouse' is a good way to see how the symlink is setup. Usually it's a symbolic link to the actual device, like /dev/psaux (for a PS/2 mouse) or /dev/input/mice for a typical USB mouse. You have the choice of either deleting the old symlink /dev/mouse-->/dev/psaux and creating a new link yourself or letting the udev subsystem creating the link for you (once you have deleted the original symlink to /dev/psaux).

If you want to skip the sometimes grumpy udev detection and scripts you could simply change the line in your xorg.conf to point to the actual mouse device (usually /dev/input/mice) rather than the symlink. I myslef prefer to access devices by their symbolic link. That way, all applications set up to use the symlink will change to a new device once the symlink target is changed.
 
Old 01-18-2006, 11:34 PM   #3
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Did your mouse come packaged with a USB to PS2 converter? I use my mouse this way on my older boxes. A lot easier than mucking with X.
 
Old 01-18-2006, 11:48 PM   #4
Crobat
Member
 
Registered: Dec 2005
Distribution: Slackware 10.2, Slackware 11.0
Posts: 135

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Woodsman
Did your mouse come packaged with a USB to PS2 converter? I use my mouse this way on my older boxes. A lot easier than mucking with X.
No it didn't.

I'll have to give the configuring a new link a try. I'll let you know how it goes. Thanks, guys.
 
Old 01-19-2006, 12:21 AM   #5
lestoil
Member
 
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815

Rep: Reputation: 31
Maybe there is nothing wrong with the ps2 mouse. What kind is it? How many buttons? Does it have a wheel? Maybe someone can help setting it up properly. I think there is a mouseconfig command available, no?
 
Old 01-19-2006, 12:33 AM   #6
Crobat
Member
 
Registered: Dec 2005
Distribution: Slackware 10.2, Slackware 11.0
Posts: 135

Original Poster
Rep: Reputation: 15
I'll have to check the ps2 mouse again, because I can't seem to get the USB mouse to work now. =\

I did a full install, and I'm trying to use KDE, but I can't get the pointer to move at all. I ran the mouseconfig command, and picked the USB choice, but it didn't work.
 
Old 01-19-2006, 09:53 AM   #7
Crobat
Member
 
Registered: Dec 2005
Distribution: Slackware 10.2, Slackware 11.0
Posts: 135

Original Poster
Rep: Reputation: 15
I'm completely stumped. Perhaps it's the kernel? I installed Slack using test26.s kernel.
 
Old 01-19-2006, 10:31 AM   #8
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
Can you post the relevant parts of your xorg.conf?

Brian
 
Old 01-19-2006, 10:53 AM   #9
Crobat
Member
 
Registered: Dec 2005
Distribution: Slackware 10.2, Slackware 11.0
Posts: 135

Original Poster
Rep: Reputation: 15
Here's my xorg.conf layout. Slack is installed on a laptop with a touchpad, ps/2 mouse, and usb mouse, neither of them working:

Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Mouse1" "SendCoreEvents"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
EndSection

Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "PS/2"
Option "Device" "/dev/psaux"
EndSection
 
Old 01-19-2006, 11:08 AM   #10
lestoil
Member
 
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815

Rep: Reputation: 31
crobat, please make sure you installed cd2's /2.6.13 kernel modules and probably kernel source and alsa driver. If you mount cd2 and cd to /2.6.13 and do ls you will see list of pkgs. Once there do upgradepkg *.tgz should save some steps. Or installpkg each pkg.tgz or use pkgtool for same. Then run mouseconfig and follow "This is how I do it all" at top of LQ SW forum for further fine tuning. lsmod will show modules. Good luck.

Last edited by lestoil; 01-19-2006 at 11:10 AM.
 
Old 01-19-2006, 11:47 AM   #11
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
Quote:
Originally Posted by Crobat
Here's my xorg.conf layout. Slack is installed on a laptop with a touchpad, ps/2 mouse, and usb mouse, neither of them working:
I'm a little confused. You mention 3 mouse devices (touchpad, ps/2 mouse, usb mouse), but only have two mentioned in your xorg.conf. Does your touchpad work? Also, you may try booting a live cd like slax to see if your various mice work.

Brian
 
Old 01-19-2006, 11:49 AM   #12
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
quote---------
...cd to /2.6.13 and do ls you will see list of pkgs. Once there do upgradepkg *.tgz should save some steps
-----------quote

you probably mean : "Once there read the WARNING on kernel-headers which will tell
you NOT to install the headers "

btw...lestiol: maybe a good idea for you to ;-)

egag
 
Old 01-19-2006, 11:51 AM   #13
Crobat
Member
 
Registered: Dec 2005
Distribution: Slackware 10.2, Slackware 11.0
Posts: 135

Original Poster
Rep: Reputation: 15
Upgraded the packages. Still no mouse, but I did get sound working. I'll try looking through the large thread. Hopefully there's an answer in there.
 
Old 01-19-2006, 11:53 AM   #14
Crobat
Member
 
Registered: Dec 2005
Distribution: Slackware 10.2, Slackware 11.0
Posts: 135

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by BCarey
I'm a little confused. You mention 3 mouse devices (touchpad, ps/2 mouse, usb mouse), but only have two mentioned in your xorg.conf. Does your touchpad work? Also, you may try booting a live cd like slax to see if your various mice work.

Brian
The touchpad I wasn't completely worried about, since I really don't like to use it. I put in a live version of SuSE to see what would happen. The touchpad and USB mouse worked, but the PS/2 mouse didn't, so I still think that there's something wrong with it.
 
Old 01-19-2006, 12:07 PM   #15
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
As I recall (though I may be wrong) when I first installed Slack on my laptop it configured my touchpad as a PS/2 mouse. So I'm wondering if your Mouse0 and Mouse1 are your touchpad and USB mouse, and that you don't have a valid entry for your PS/2 mouse?

Also, can you see your usb mouse with lsusb?

Brian

Last edited by BCarey; 01-19-2006 at 12:37 PM.
 
  


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
How do I add a new mouse theme? GlennsPref Mandriva 8 01-16-2006 09:29 PM
cannot add external ps/2 mouse to my laptop edemark SUSE / openSUSE 9 01-16-2006 08:32 AM
To add mouse scroll function satimis Linux From Scratch 2 09-22-2005 09:06 AM
How do you define/add serial mouse for X-windows James007Bond Debian 5 08-08-2003 04:54 PM
Mouse set to None - Add a mouse to Mandrake KDE voltson Linux - Hardware 1 02-10-2003 01:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:40 PM.

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