LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-24-2003, 02:43 PM   #1
avoidmoney
Member
 
Registered: Oct 2003
Location: south africa
Distribution: slackware
Posts: 36

Rep: Reputation: 15
getting USB mouse to work


Im using Slackware 9.1, and im trying to get my USB to work. Firstly if i just connect it it doesnt work. Even after i compiled the kernel and included USB mouse support. Now im just using it PS\2 mode. But id rather use it USB, cause i cant use mouse wheel PS\2 mode with Slackware. If anyone one can help me, to get my USB mouse to work with Slackware 9.1, or to get the PS\2 to support my mouse wheel. It annoying not being able to use mouse wheel if u got one.

thanks
 
Old 10-25-2003, 10:25 AM   #2
Faecal
Member
 
Registered: Sep 2002
Location: York, UK
Distribution: Debian Sid
Posts: 215

Rep: Reputation: 30
You probably need to reconfigure XFree86 to use your USB mouse.

Firstly, test that the kernel knows about your mouse. Logged in as root, at a console, you should be able to do "cat /dev/input/mouse0", and have it spew garbage when you move the mouse (ctrl-C to end this).

Assuming that, you'll want to edit /etc/X11/XF86Config (sometimes XF86Config-4, I'm not familiar with slack in particular), replacing the line referring to /dev/psaux with one referring to /dev/input/mouse0.
 
Old 10-25-2003, 02:13 PM   #3
avoidmoney
Member
 
Registered: Oct 2003
Location: south africa
Distribution: slackware
Posts: 36

Original Poster
Rep: Reputation: 15
i ran "cat /dev/input/mouse0"
and i got response moving the mouse.... yeah

XF86Free
i hashed out /dev/mouse
put in: /dev/input/mouse0

rebooted;
i still dont get mouse in comandline
i started KDE, and my mouse was there, but it could only move vertically, and very obscured.

i have no idea what to do next
..................thanks for help
 
Old 10-25-2003, 02:27 PM   #4
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
is the protocol set to "IMPS/2" in XF86Config?
add
Option "ZAxisMapping" "4 5"
to the mouse section for the mouse wheel
 
Old 10-25-2003, 03:31 PM   #5
avoidmoney
Member
 
Registered: Oct 2003
Location: south africa
Distribution: slackware
Posts: 36

Original Poster
Rep: Reputation: 15
yes it is

maybe the driver: driver = mouse?
or maybe gpm?

i really dont know...
 
Old 10-25-2003, 04:04 PM   #6
Onemessedupjedi
Member
 
Registered: Sep 2003
Location: Oregon
Distribution: Slackware 9.1
Posts: 194

Rep: Reputation: 30
First of all, don't worry about your mouse in bash, I have heard it is a real pain to get them to work at the same time and you really shouldn't need one in bash anyways.

For Laptop:
In XF86Config file after your core pointer section(AFTER the endsection, make sure of this) enter:
Section "InputDevice"
Identifier "USBmouse"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "SendCoreEvents"
EndSection

And then at the screenlayout section it should list your input devices again and it should have core pointer and core keyboard. ADD InputDevice "USBmouse" "SendCoreEvents"
For Desktop:

For core pointer replace the top section (before all the options) with:
Section "InputDevice"
Identifier "USBmouse"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "AlwaysCore"
EndSection

and in the screenlayout section EDIT the current line for the core pointer by replacing "mouse1" with "USBmouse"
I don't think the identifier is needed but it is nice to have your files make sense when you look at them again.

Last edited by Onemessedupjedi; 10-25-2003 at 04:09 PM.
 
Old 10-27-2003, 07:16 PM   #7
avoidmoney
Member
 
Registered: Oct 2003
Location: south africa
Distribution: slackware
Posts: 36

Original Poster
Rep: Reputation: 15
ok ive done everything Onemessedupjedi
said, but still when i enter KDE, my mouse only moves vertically,
and very obscured.......
 
Old 10-28-2003, 07:39 PM   #8
Onemessedupjedi
Member
 
Registered: Sep 2003
Location: Oregon
Distribution: Slackware 9.1
Posts: 194

Rep: Reputation: 30
Sorry that my directions didn't work.
Possibly your mouse is windows specific somehow and must be configured specially for linux....which I can't help with.
Revert it to PS2 and use the
Option "ZAxisMapping" "4 5"
Line and see if your mouse wheel will work in PS/2 mode.

You can always buy a cheapo logitech mouse I know those work fine.
Please post your model and your results so others can search and maybe find a answer.
 
Old 10-29-2003, 05:05 PM   #9
avoidmoney
Member
 
Registered: Oct 2003
Location: south africa
Distribution: slackware
Posts: 36

Original Poster
Rep: Reputation: 15
i am currently running my mouse with PS/2 adapter, and i put
Option "ZAxisMapping" "4 5"
in the XFCongfig file

the mouse is working properly but the wheel is not operating
mouse name (as on back of mouse)
Genius Powerscroll Eye U+P
 
Old 11-02-2003, 03:56 AM   #10
Dr. Ephemeron
Member
 
Registered: Oct 2003
Distribution: Mandrake 10.1 & Fedora Core 4
Posts: 84

Rep: Reputation: 15
Make sure there is only one mouse section. If there are 2 mouse sections in the XFConfig file and you are adding or editing the second section, it won't work.

I just installed 9.1 and it automatically wrote 2 mouse sections.
 
Old 11-02-2003, 01:45 PM   #11
avoidmoney
Member
 
Registered: Oct 2003
Location: south africa
Distribution: slackware
Posts: 36

Original Poster
Rep: Reputation: 15
I also got 2 mouse sections installed.....(i dunno why there is 2)

the top one seems to be the one in use
but
Option "ZAxisMapping" "4 5"
appears in both of them.

still i cant seem to be able to use my mouse wheel...
and to get it to run with USB, is an even greater mystery to me
 
  


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
Cant get USB mouse to work LegendX Linux - Hardware 5 06-13-2005 07:04 AM
USB Mouse work ... almost.. phoenix99 Linux - Hardware 1 11-29-2004 02:59 PM
getting my usb mouse to work kurrupt Linux - Hardware 1 11-06-2004 01:03 AM
USB thumb drive works great, but I still can't get my USB mouse to work. blk96gt Slackware 8 06-22-2004 02:52 AM
PS/2 mouse did not work after temp removal of USB mouse edwardp Linux - Hardware 1 09-06-2003 05:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:01 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration