LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Mouse Scroll Wheel, no click, left/right tilt problem. (https://www.linuxquestions.org/questions/slackware-14/mouse-scroll-wheel-no-click-left-right-tilt-problem-631403/)

Romanus81 03-28-2008 10:58 PM

Mouse Scroll Wheel, no click, left/right tilt problem.
 
my xorg section:
Code:

        Identifier  "Mouse1"
        Driver      "mouse"
        Option      "CorePointer"
        Option      "Device" "/dev/psaux"
        Option      "Protocol" "ImPS/2"
        Option  "Buttons"        "5"
        Option      "ZAxisMapping" "4 5"
#      Option      "Emulate3Buttons" "true"

I commented Emulate3Buttons out, but the only way I can get the middle click functionality is to press my right and left mouse buttons.
My scroll wheel also has a left and right scroll, which will be useful for various compiz effects, but when I test them in xev, it tells me that they are the same as the left and right buttons on my keyboard. (keys 100 and 102)
It detects my mouse left and right click as button 1 and button 3, respectively, and likewise scroll up and scroll down as 4 and 5.
How can I make it know to map button 2 as middle click, button 6 as scroll left, and button 7 as scroll right?

Bruce Hill 03-29-2008 12:43 AM

For the scroll wheel, you have
Code:

Option      "Protocol" "ImPS/2"
rather than
Code:

Option      "Protocol" "IMPS/2"

Romanus81 03-29-2008 09:35 AM

No, that didn't seem to do anything,

Bruce Hill 03-29-2008 10:09 AM

Comment -> Option "Buttons" "5"
and keep the Emulate line commented.

You must restart the X server before changes to /etc/X11/xorg.conf will take effect.

Here's what I use:
Code:

"Section "InputDevice"

# Identifier and driver
# On platforms where PnP mouse detection is supported the following
# protocol setting can be used when using a newer PnP mouse:
#    Option    "Protocol"      "Auto"
# The available mouse protocols types that you can set below are:
#    Auto BusMouse GlidePoint GlidePointPS/2 IntelliMouse IMPS/2
#    Logitech Microsoft MMHitTab MMSeries Mouseman MouseManPlusPS/2
#    MouseSystems NetMousePS/2 NetScrollPS/2 OSMouse PS/2 SysMouse
#    ThinkingMouse ThinkingMousePS/2 Xqueue
# which is usually a symbolic link to the real device.
#  Option "Device"      "/dev/ttyS0"
#  Option "Device"      "/dev/ttyS1"
# When using XQUEUE, comment out the above two lines, and uncomment
# the following line.
#    Option "Protocol"  "Xqueue"
# Baudrate and SampleRate are only for some Logitech mice. In
# almost every case these lines should be omitted.
#    Option "BaudRate"          "9600"
#    Option "SampleRate"        "150"
# Emulate3Buttons is an option for 2-button Microsoft mice
# Emulate3Timeout is the timeout in milliseconds (default is 50ms)
#    Option "Emulate3Buttons"
#    Option "Emulate3Timeout"    "50"
# ChordMiddle is an option for some 3-button Logitech mice
#    Option "ChordMiddle"
    Identifier    "Mouse1"
    Driver        "mouse"
    Option        "Protocol" "IMPS/2"
    Option        "ZAxisMapping" "4 5"
# The mouse device.  The device is normally set to /dev/mouse,
    Option        "Device" "/dev/mouse"
#  Option "Device"      "/dev/psaux"
EndSection

That allows my scroll wheel to paste.

Sorry but I've never been interested in all those other buttons/functions, so I've no clue about them.

STARHARVEST 03-29-2008 11:02 AM

Quote:

Originally Posted by Bruce Hill (Post 3103766)
For the scroll wheel, you have
Code:

Option      "Protocol" "ImPS/2"
rather than
Code:

Option      "Protocol" "IMPS/2"

I thought for scroll wheel
Option "ZAxisMapping" "4 5" is used.

osor 03-29-2008 01:31 PM

If you want to use a lot of buttons, I find it’s easiest to ditch the X mouse driver for the X evdev driver. There are guides on doing this around the internet.


All times are GMT -5. The time now is 10:49 PM.