Unix/Linux Go Back    


Slackware The Official Release of Slackware Linux by Patrick Volkerding is an advanced Linux operating system, designed with the twin goals of ease of use and stability as top priorities.

Replace PS/2 Trackball with USB optical mouse

Slackware


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 02-12-2012   -   Original Discussion by slak0
slak0's Unix or Linux Image
slak0 slak0 is offline
Registered User
 
Join Date: Dec 2009
Last Activity: 16 December 2012, 4:48 AM EST
Posts: 66
Thanks: 2
Thanked 2 Times in 2 Posts
Replace PS/2 Trackball with USB optical mouse

Running Slackware 13.37 original without updates.
Need to replace my trackball with optical mouse temporarily.
There is no xf86config file anylonger but xorg.conf file is produced automatically.
I see 2 "xorg.conf" files which can be and were modified on installation:
1) /etc/X11/xorg.conf-vesa and 2) /root/xorg.conf.new.
The descriptions for the mouse are:
1)

Code:
Section "InputDevice"
    Identifier  "Mouse1"
    Driver      "mouse"
    Option      "Protocol"    "PS/2"
    Option      "Device"      "/dev/mouse"
EndSection

2)

Code:
Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option      "Protocol" "auto"
    Option      "Device" "/dev/input/mice"
    Option      "ZAxisMapping" "4 5 6 7"
End Section

Found changes for USB optical mouse to be:

Code:
Section "InputDevice"
    Identifier  "Mouse9"
    Driver      "mouse"
    Option      "Device" "/dev/input/mice"
    Option      "Protocol"    "IMPS/2"
    Option      "ZAxisMapping" "4 5"
EndSection
InputDevice "Mouse9" "SendCoreEvents"

Would someone explain a) which file to is actually used and if it is the one to modify, b) why it should be Mouse9 not Mouse0, c) what is ZAxisMapping, d) why it changes from 4 5 6 7 to 4 5 and e) is that last line in #2 correctly place/necessary?

Last edited by Scott; 02-12-2012 at 03:36 PM.. Reason: Fixed code tags.
Sponsored Links
    #2  
Old Unix and Linux 02-12-2012   -   Original Discussion by slak0
fpmurphy's Unix or Linux Image
fpmurphy fpmurphy is offline
Registered User
 
Join Date: Dec 2003
Last Activity: 12 June 2016, 11:03 PM EDT
Location: /dev/ph
Posts: 4,996
Thanks: 73
Thanked 475 Times in 437 Posts
You should be able to simple replace one mouse with the other without changing your Xorg configuration file.

ZAxisMapping relates to the mouse wheel (scroll-wheel). Technically, ZAxisMapping takes the input from the scrollwheel and maps it to button events. A 5 button mouse with no scrollwheel would perform like a scrollwheel on pressing buttons 4 and 5. "4 5" is most common because that's how many buttons most mice have. On a common mouse with two buttons and a clickable scroll-wheel, the left button is 1, right button is 2, scroll-wheel click is 3, scroll-wheel up is 4, and scroll-wheel down is 5. For people with side buttons use "6 7" since they count as 7 button mice.
Sponsored Links
    #3  
Old Unix and Linux 02-19-2012   -   Original Discussion by slak0
slak0's Unix or Linux Image
slak0 slak0 is offline
Registered User
 
Join Date: Dec 2009
Last Activity: 16 December 2012, 4:48 AM EST
Posts: 66
Thanks: 2
Thanked 2 Times in 2 Posts
Replace PS/2 Trackball with USB optical mouse

Was able to pull the PS/2 plug on trackball and after changing PS/2 to IMPS/2 and adding the line:
Option "ZAxisMapping" "4 5"my optical mouse is working fine save I think I'll slow it down a bit. So THANKS.
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to configure mini optical mouse ? susja Red Hat 3 08-25-2011 10:14 AM
Changing middle mouse button for pasting to right mouse button in cygwin rxvt sayeo UNIX for Dummies Questions & Answers 2 03-14-2008 10:55 PM
Building a better mouse trap, or How many lines of code does it take to trap a mouse? mph Shell Programming and Scripting 4 04-06-2006 05:02 PM



All times are GMT -4. The time now is 08:02 AM.