LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-10-2005, 06:22 AM   #1
duffmckagan
Senior Member
 
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163

Rep: Reputation: 49
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.
 
Old 06-10-2005, 06:38 AM   #2
cathectic
Member
 
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761

Rep: Reputation: 35
http://wiki.linuxquestions.org/wiki/...wheel_mouse.3F
 
Old 06-10-2005, 06:48 AM   #3
duffmckagan
Senior Member
 
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163

Original Poster
Rep: Reputation: 49
Thanks.
 
Old 06-19-2005, 01:23 PM   #4
duffmckagan
Senior Member
 
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163

Original Poster
Rep: Reputation: 49
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.
 
Old 06-19-2005, 05:59 PM   #5
aikidoist72
Member
 
Registered: Jan 2005
Location: Australia
Distribution: Slackware Archlinux FreeBSD
Posts: 218

Rep: Reputation: 30
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
 
Old 06-19-2005, 10:51 PM   #6
duffmckagan
Senior Member
 
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163

Original Poster
Rep: Reputation: 49
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"
 
Old 06-25-2005, 01:54 AM   #7
duffmckagan
Senior Member
 
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163

Original Poster
Rep: Reputation: 49
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?
 
Old 06-25-2005, 03:07 AM   #8
richarde
LQ Newbie
 
Registered: Jun 2005
Location: Perth, Australia
Distribution: slackware 10.2
Posts: 22

Rep: Reputation: 15
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
 
Old 06-25-2005, 03:10 AM   #9
richarde
LQ Newbie
 
Registered: Jun 2005
Location: Perth, Australia
Distribution: slackware 10.2
Posts: 22

Rep: Reputation: 15
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
 
Old 06-25-2005, 03:22 AM   #10
aikidoist72
Member
 
Registered: Jan 2005
Location: Australia
Distribution: Slackware Archlinux FreeBSD
Posts: 218

Rep: Reputation: 30
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

Last edited by aikidoist72; 06-25-2005 at 03:23 AM.
 
Old 12-02-2008, 11:27 PM   #11
scornik
LQ Newbie
 
Registered: Dec 2008
Posts: 3

Rep: Reputation: 0
Smile

Quote:
Originally Posted by cathectic View Post
thanks man !

It helped me a lot.
 
  


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
Logitech mouse, only first button work Causea Linux - Hardware 4 08-09-2004 04:14 AM
Logitech 3 button mouse (no scroll wheel) Jmorales22 Linux - Hardware 4 03-23-2004 06:52 PM
Scroll feature in Logitech Scroll mouse does not work ssmaitra Linux - Hardware 6 11-11-2003 07:43 AM
Logitech mouse - scroll button kazuni Linux - Newbie 1 06-03-2003 06:19 PM
How do I get scroll button on mouse to work .. kato678 Linux - General 1 06-26-2002 09:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:43 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
Open Source Consulting | Domain Registration