Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-10-2005, 06:22 AM
|
#1
|
Senior Member
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163
Rep:
|
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.
|
|
|
06-10-2005, 06:38 AM
|
#2
|
Member
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761
Rep:
|
|
|
|
06-10-2005, 06:48 AM
|
#3
|
Senior Member
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163
Original Poster
Rep:
|
Thanks.
|
|
|
06-19-2005, 01:23 PM
|
#4
|
Senior Member
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163
Original Poster
Rep:
|
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.
|
|
|
06-19-2005, 05:59 PM
|
#5
|
Member
Registered: Jan 2005
Location: Australia
Distribution: Slackware Archlinux FreeBSD
Posts: 218
Rep:
|
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 
|
|
|
06-19-2005, 10:51 PM
|
#6
|
Senior Member
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163
Original Poster
Rep:
|
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"
|
|
|
06-25-2005, 01:54 AM
|
#7
|
Senior Member
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163
Original Poster
Rep:
|
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?
|
|
|
06-25-2005, 03:07 AM
|
#8
|
LQ Newbie
Registered: Jun 2005
Location: Perth, Australia
Distribution: slackware 10.2
Posts: 22
Rep:
|
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
|
|
|
06-25-2005, 03:10 AM
|
#9
|
LQ Newbie
Registered: Jun 2005
Location: Perth, Australia
Distribution: slackware 10.2
Posts: 22
Rep:
|
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
|
|
|
06-25-2005, 03:22 AM
|
#10
|
Member
Registered: Jan 2005
Location: Australia
Distribution: Slackware Archlinux FreeBSD
Posts: 218
Rep:
|
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.
|
|
|
12-02-2008, 11:27 PM
|
#11
|
LQ Newbie
Registered: Dec 2008
Posts: 3
Rep:
|
Quote:
Originally Posted by cathectic
|
thanks man !
It helped me a lot.
|
|
|
All times are GMT -5. The time now is 07:43 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|