LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Mouse Scroll Button doesn't work with Logitech PS/2 MOuse. (https://www.linuxquestions.org/questions/slackware-14/mouse-scroll-button-doesnt-work-with-logitech-ps-2-mouse-332155/)

duffmckagan 06-10-2005 06:22 AM

Mouse Scroll Button doesn't work with Logitech PS/2 MOuse.
 
I am using Slackware 10.1 and I seem to face a problem.

I did not find any options though for configuring or Activating the Scroll Wheel of my Mouse.

My mouse is a one from Logitech Optical Scroll Mouse. with a PS/2 connector (needless to mention)

After so many efforts, I got my internet running in Slackware, and now it is just so fast!
But this was at the cost of inability to use the Scroll wheel.
I did not change any of the settings anywhere!

How do I make the Scroll button work properly?

There is no such problem with the other distros I have got.

cathectic 06-10-2005 06:38 AM

http://wiki.linuxquestions.org/wiki/...wheel_mouse.3F

duffmckagan 06-10-2005 06:48 AM

Thanks.

duffmckagan 06-19-2005 01:23 PM

From the Wiki

Quote:

Q) How do I set up a wheel mouse?

A) In X, a scroll wheel counts as three buttons - up is one, down is another. Clicking the wheel is a third button.

For any scroll mouse, as root you will need to edit:

/etc/X11/xorg.conf - Slackware 10.0 and above
/etc/X11/XF86Config - Slackware 9.1 and below

You then just need to add these two lines under the mouse section (usually 'Identifier "Mouse1"' or something similar).

For a 5 button mouse (3 buttons with a scroll wheel):

Option "Buttons" "5"
Option "ZAxisMapping" "4 5"

Or, for a 7 button mouse (5 buttons and a scroll wheel):

Option "Buttons" "7"
Option "ZAxisMapping" "6 7"

For a 7 button mouse, you also need to create the file /etc/X11/xinit/.Xmodmap and put the following in it for the wheel to be mapped onto the right buttons:

pointer = 1 2 3 6 7 4 5

If your mouse protocol is set to

Option "Protocol" "PS/2"
or
Option "Protocol" "auto"

You may have to change it to:

Option "Protocol" "IMPS/2"
or
Option "Protocol" "ExplorerPS/2"

In either case, once the changes are made, restart X to use your scroll wheel.

(For some mice, more specific information can be found here: http://www.linux-gamers.net/modules/...p?articleid=46).
[edit]

I added those lines, but no use.

I still can't get the scroll button working.

I tried this out.

Code:


#You then just need to add these two lines under the mouse section (usually 'Identifier "Mouse1"' or something similar).

#For a 5 button mouse (3 buttons with a scroll wheel):

Option "Buttons" "5"
Option "ZAxisMapping" "4 5"

I added those option lines, right after the Identifier "Mouse1" line.

aikidoist72 06-19-2005 05:59 PM

Here you go. This should cover what you need.

Code:

Section "InputDevice"
        Identifier  "Serial Mouse"
        Driver      "mouse"
        Option      "Protocol" "Microsoft"
        Option      "Device" "/dev/ttyS0"
        Option      "Emulate3Buttons" "true"
        Option      "Emulate3Timeout" "70"
        Option            "SendCoreEvents"  "true"
EndSection

Section "InputDevice"
        Identifier  "PS/2 Mouse"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option          "ZAxisMapping"          "4 5"
        Option      "Device" "/dev/psaux"
        Option      "Emulate3Buttons" "true"
        Option      "Emulate3Timeout" "70"
        Option            "SendCoreEvents"  "true"
EndSection

Section "InputDevice"
        Identifier      "USB Mouse"
        Driver          "mouse"
        Option          "Device"                "/dev/input/mice"
        Option                "SendCoreEvents"        "true"
        Option          "Protocol"              "IMPS/2"
        Option          "ZAxisMapping"          "4 5"
        Option          "Buttons"              "5"
EndSection

You can paste all 3 in if you wish. Just make sure at the top....... under the keyboard entry you put the correct identifier. Example is for usb mouse

Code:

Section "ServerLayout"
        Identifier    "XFree86 Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Keyboard0" "CoreKeyboard"
# PS/2 Mouse not detected
# Serial Mouse not detected
        InputDevice    "USB Mouse" "CorePointer"
EndSection

Happy Slacking :D

duffmckagan 06-19-2005 10:51 PM

i have a PS/2 mouse, and I will post the result after trying this out.

Code:

Section "InputDevice"
        Identifier  "PS/2 Mouse"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option          "ZAxisMapping"          "4 5"
        Option      "Device" "/dev/psaux"
        Option      "Emulate3Buttons" "true"
        Option      "Emulate3Timeout" "70"
        Option            "SendCoreEvents"  "true"


duffmckagan 06-25-2005 01:54 AM

I messed up with my xorg.conf file badly after adding these lines, and then I was stuck.

Somehow I managed to get it back to work, but now it has a very high resolution on my desktop.

How can i change the resolution back to 1024*768?

Here is a copy of my xorg.conf.

Code:

Section "ServerLayout"
Identifier    "X.org Configured"
Screen      0  "Screen0" 0 0
InputDevice    "Mouse0" "CorePointer"
InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
RgbPath      "/usr/X11R6/lib/X11/rgb"
ModulePath  "/usr/X11R6/lib/modules"
FontPath    "/usr/X11R6/lib/X11/fonts/misc/"
FontPath    "/usr/X11R6/lib/X11/fonts/TTF/"
FontPath    "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath    "/usr/X11R6/lib/X11/fonts/CID/"
FontPath    "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath    "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

Section "Module"
Load  "record"
Load  "extmod"
Load  "dbe"
Load  "dri"
Load  "glx"
Load  "xtrap"
Load  "freetype"
Load  "type1"
Load  "freetype"
EndSection

Section "InputDevice"
Identifier  "Keyboard0"
Driver      "kbd"
EndSection

Section "InputDevice"
Identifier  "Mouse0"
Driver      "mouse"
Option            "Protocol" "auto"
Option            "Device" "/dev/mouse"
EndSection

Section "Monitor"
#DisplaySize          320  240        # mm
Identifier  "Monitor0"
VendorName  "GSM"
ModelName    ""
HorizSync    30.0 - 71.0
VertRefresh  50.0 - 160.0
Option            "DPMS"
EndSection

Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option    "NoAccel"                    # [<bool>]
#Option    "HWCursor"                  # [<bool>]
#Option    "SWCursor"                  # [<bool>]
#Option    "ShadowFB"                  # [<bool>]
#Option    "Rotate"                    # [<str>]
#Option    "UseBIOS"                    # [<bool>]
#Option    "LCDClock"                  # <freq>
#Option    "ShadowStatus"              # [<bool>]
#Option    "CrtOnly"                    # [<bool>]
#Option    "TvOn"                      # [<bool>]
#Option    "PAL"                        # [<bool>]
#Option    "ForceInit"                  # [<bool>]
#Option    "Overlay"                    # [<str>]
#Option    "TransparencyKey"            # [<str>]
Identifier  "Card0"
Driver      "savage"
VendorName  "S3 Inc."
BoardName  "VT8375 [ProSavage8 KM266/KL266]"
BusID      "PCI:1:0:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device    "Card0"
Monitor    "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport  0 0
Depth    1
EndSubSection
SubSection "Display"
Viewport  0 0
Depth    4
EndSubSection
SubSection "Display"
Viewport  0 0
Depth    8
EndSubSection
SubSection "Display"
Viewport  0 0
Depth    15
EndSubSection
SubSection "Display"
Viewport  0 0
Depth    16
EndSubSection
SubSection "Display"
Viewport  0 0
Depth    24
EndSubSection
EndSection

Also tell me, if I need to make that Scroll Button work, where should I add those lines?

richarde 06-25-2005 03:07 AM

Here is the relevant excerpt from my xorg.conf file:

Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/mouse"
Option "ZAxisMapping" "4 5"
EndSection

It is a 2-button ps2 logitech cordless mouse with scrollwheel and it works fine

richarde 06-25-2005 03:10 AM

to change desktop resolution click on Applications, Desktop Preferences, Screen Resolution and you should be able to change it in there. If you can't (i suspect you can't with your current xorg.conf file) you may need to edit your xorg.conf file

This is another excerpt from my xorg.conf file:

Subsection "Display"
Depth 8
Modes "1024x768" "800x600" "640x480"
EndSubsection
Subsection "Display"
Depth 16
Modes "1024x768" "800x600" "640x480"
EndSubsection
Subsection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubsection
Subsection "Display"
Depth 32
Modes "1024x768" "800x600" "640x480"
EndSubsection

This is working fine on my computer

aikidoist72 06-25-2005 03:22 AM

Try this my friend

Code:

Section "ServerLayout"
Identifier    "X.org Configured"
Screen      0  "Screen0" 0 0
InputDevice    "Mouse0" "CorePointer"
InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
RgbPath      "/usr/X11R6/lib/X11/rgb"
ModulePath  "/usr/X11R6/lib/modules"
FontPath    "/usr/X11R6/lib/X11/fonts/misc/"
FontPath    "/usr/X11R6/lib/X11/fonts/TTF/"
FontPath    "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath    "/usr/X11R6/lib/X11/fonts/CID/"
FontPath    "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath    "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

Section "Module"
Load  "record"
Load  "extmod"
Load  "dbe"
Load  "dri"
Load  "glx"
Load  "xtrap"
Load  "freetype"
Load  "type1"
Load  "freetype"
EndSection

Section "InputDevice"
Identifier  "Keyboard0"
Driver      "kbd"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/mouse"
        Option      "ZAxisMapping"          "4 5"
        Option      "Buttons"              "5"
EndSection

Section "Monitor"
#DisplaySize      320  240    # mm
Identifier  "Monitor0"
VendorName  "GSM"
ModelName    ""
HorizSync    30.0 - 71.0
VertRefresh  50.0 - 160.0
Option      "DPMS"
EndSection

Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option    "NoAccel"                  # [<bool>]
#Option    "HWCursor"                  # [<bool>]
#Option    "SWCursor"                  # [<bool>]
#Option    "ShadowFB"                  # [<bool>]
#Option    "Rotate"                    # [<str>]
#Option    "UseBIOS"                  # [<bool>]
#Option    "LCDClock"                  # <freq>
#Option    "ShadowStatus"              # [<bool>]
#Option    "CrtOnly"                  # [<bool>]
#Option    "TvOn"                      # [<bool>]
#Option    "PAL"                      # [<bool>]
#Option    "ForceInit"                # [<bool>]
#Option    "Overlay"                  # [<str>]
#Option    "TransparencyKey"          # [<str>]
Identifier  "Card0"
Driver      "savage"
VendorName  "S3 Inc."
BoardName  "VT8375 [ProSavage8 KM266/KL266]"
BusID      "PCI:1:0:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device    "Card0"
Monitor    "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport  0 0
Depth    1
EndSubSection
SubSection "Display"
Viewport  0 0
Depth    4
EndSubSection
SubSection "Display"
Viewport  0 0
Depth    8
EndSubSection
SubSection "Display"
Viewport  0 0
Depth    15
EndSubSection
SubSection "Display"
Viewport  0 0
Depth    16
EndSubSection
SubSection "Display"
Depth    24
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection


scornik 12-02-2008 11:27 PM

Quote:

Originally Posted by cathectic (Post 1687234)

thanks man !

It helped me a lot.


All times are GMT -5. The time now is 02:30 AM.