Slackware This Forum is for the discussion of Slackware 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.
|
 |
|
01-18-2006, 11:04 PM
|
#1
|
Member
Registered: Dec 2005
Distribution: Slackware 10.2, Slackware 11.0
Posts: 135
Rep:
|
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.
|
|
|
01-18-2006, 11:30 PM
|
#2
|
Senior Member
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731
Rep:
|
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.
|
|
|
01-18-2006, 11:34 PM
|
#3
|
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482
|
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.
|
|
|
01-18-2006, 11:48 PM
|
#4
|
Member
Registered: Dec 2005
Distribution: Slackware 10.2, Slackware 11.0
Posts: 135
Original Poster
Rep:
|
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.
|
|
|
01-19-2006, 12:21 AM
|
#5
|
Member
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815
Rep:
|
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?
|
|
|
01-19-2006, 12:33 AM
|
#6
|
Member
Registered: Dec 2005
Distribution: Slackware 10.2, Slackware 11.0
Posts: 135
Original Poster
Rep:
|
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.
|
|
|
01-19-2006, 09:53 AM
|
#7
|
Member
Registered: Dec 2005
Distribution: Slackware 10.2, Slackware 11.0
Posts: 135
Original Poster
Rep:
|
I'm completely stumped. Perhaps it's the kernel? I installed Slack using test26.s kernel.
|
|
|
01-19-2006, 10:31 AM
|
#8
|
Senior Member
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639
Rep: 
|
Can you post the relevant parts of your xorg.conf?
Brian
|
|
|
01-19-2006, 10:53 AM
|
#9
|
Member
Registered: Dec 2005
Distribution: Slackware 10.2, Slackware 11.0
Posts: 135
Original Poster
Rep:
|
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
|
|
|
01-19-2006, 11:08 AM
|
#10
|
Member
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815
Rep:
|
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.
|
|
|
01-19-2006, 11:47 AM
|
#11
|
Senior Member
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639
Rep: 
|
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
|
|
|
01-19-2006, 11:49 AM
|
#12
|
Senior Member
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721
Rep:
|
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
|
|
|
01-19-2006, 11:51 AM
|
#13
|
Member
Registered: Dec 2005
Distribution: Slackware 10.2, Slackware 11.0
Posts: 135
Original Poster
Rep:
|
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.
|
|
|
01-19-2006, 11:53 AM
|
#14
|
Member
Registered: Dec 2005
Distribution: Slackware 10.2, Slackware 11.0
Posts: 135
Original Poster
Rep:
|
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.
|
|
|
01-19-2006, 12:07 PM
|
#15
|
Senior Member
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639
Rep: 
|
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.
|
|
|
All times are GMT -5. The time now is 06:40 PM.
|
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
|
|