LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 02-13-2006, 10:19 PM   #1
dave`2005
Member
 
Registered: Aug 2005
Distribution: Ubuntu 7.10, Slackware 12
Posts: 266

Rep: Reputation: 30
Mouse wheel doing the wrong thing?


Hi all, read a little guide on this site to get your mouse wheel and buttons other than the left and right to work, my mouse only has the 2 normal buttons and the wheel, its an acer (USB). I put
Code:
Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "ExplorerPS/2"
        Option      "Device" "/dev/input/mice"
        Option      "Buttons" "7"
        Option      "ZAxisMapping" "6 7"
        Option      "Emulate3Buttons" "no"
EndSection
into the /etc/X11/xorg.conf, but instead of the wheel scrolling up and down the page, it scrolls left and right (if theres a horizontal scroll bar), most of the time on web pages it does the forward and back buttons in the firefox tool bar.

Does anybody know what part of the added stuff in xorg.conf needs to be changed?

Any help greatly appreciated.
 
Old 02-13-2006, 10:42 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
I have a USB mouse also, mine is set up as:
Code:
Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "ImPS/2"
        Option      "ZAxisMapping" "4 5"
        Option      "Device" "/dev/mouse"
EndSection
Can you try just changing the ZAxisMapping setting to see if that fixes it?
 
Old 02-13-2006, 10:43 PM   #3
KimVette
Senior Member
 
Registered: Dec 2004
Location: Lee, NH
Distribution: OpenSUSE, CentOS, RHEL
Posts: 1,794

Rep: Reputation: 46
Quote:
Originally Posted by dave`2005
Hi all, read a little guide on this site to get your mouse wheel and buttons other than the left and right to work, my mouse only has the 2 normal buttons and the wheel, its an acer (USB). I put
Code:
Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "ExplorerPS/2"
        Option      "Device" "/dev/input/mice"
        Option      "Buttons" "7"
        Option      "ZAxisMapping" "6 7"
        Option      "Emulate3Buttons" "no"
EndSection
into the /etc/X11/xorg.conf, but instead of the wheel scrolling up and down the page, it scrolls left and right (if theres a horizontal scroll bar), most of the time on web pages it does the forward and back buttons in the firefox tool bar.

Does anybody know what part of the added stuff in xorg.conf needs to be changed?

Any help greatly appreciated.

I just got around to configuring this on my machine the other day. Here is my mouse definition:

Quote:
Section "InputDevice"
Driver "mouse"
Identifier "Mouse[1]"
# Option "Buttons" "7"

Option "ZAxisMapping" "6 7"
Option "SendCoreEvents" "True"
Option "Buttons" "4 5"


Option "Device" "/dev/input/mice"
Option "Name" "Microsoft IntelliMouse Optical"
Option "Protocol" "explorerps/2"
Option "Vendor" "Sysp"
# Option "ZAxisMapping" "4 5"
EndSection
Then, I needed to create a shell script that runs when X starts to map them correctly. Here is my shell script:

Quote:
if [ -f $HOME/.Xmodmap ]; then
/usr/X11R6/bin/xmodmap $HOME/.Xmodmap
echo File $HOME/.Xmodmap Exists
else
echo checking for /etc/xmodmaprc. . .
if [ -f /etc/xmodmaprc ]; then
echo /etc/xmodmaprc exists . . .
/usr/X11R6/bin/xmodmap /etc/xmodmaprc
fi
fi
(obviously the echos were put in for testing, didn't take them out yet)

Then, the content of /etc/xmodmaprc

Quote:
pointer = 1 2 3 6 7 4 5
Now, all the mouse buttons work correctly for me, and the shell script I included in the X startup scripts allow overrides on a per-user basis.
 
Old 02-14-2006, 06:04 AM   #4
dave`2005
Member
 
Registered: Aug 2005
Distribution: Ubuntu 7.10, Slackware 12
Posts: 266

Original Poster
Rep: Reputation: 30
Thank you for the help guys , all i did was change
Code:
Option      "ZAxisMapping" "6 7"
to
Code:
Option      "ZAxisMapping" "4 5"
and the wheel works fine now

I have 2 more questions if you could be so kind,
Firstly how do you get that shell script loaded when x starts? Do you put it in ~/.kde/autostart using a name.Desktop file? I got this way loading a program when kde starts.

Lastly, im using the USB mouse with my laptop mainly because its synaptics touchpad wont let me tap the pad twice for a double click, i tried something called ksynaptics (i think), it installed fine i thought but it still wouldnt let me double tap. I tried changing some settings in the prog but with no luck, maybe i missed something, or theres a better way using xorg.conf (i hope). Any ideas on that?

Once again thank you for getting my wheel mouse working

Last edited by dave`2005; 02-14-2006 at 06:06 AM.
 
Old 02-14-2006, 06:53 PM   #5
KimVette
Senior Member
 
Registered: Dec 2004
Location: Lee, NH
Distribution: OpenSUSE, CentOS, RHEL
Posts: 1,794

Rep: Reputation: 46
There are a number of places you can place it - autostart is one.
 
  


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
PS2 wheel mouse/wheel not working jayhel Linux - Hardware 2 06-18-2006 06:54 PM
some thing wrong with my sys? the13thday Linux - Hardware 3 09-17-2005 10:35 PM
Am I doing the wrong thing? cragwolf Slackware 4 02-26-2005 07:43 AM
USB Mouse Wheel - YaST gets it wrong? SuSE9.2 nickI-S Suse/Novell 1 11-15-2004 04:01 PM
4d wheel mouse - scroll wheel no worky CamelofCamelot Linux - Hardware 1 10-28-2004 08:33 PM


All times are GMT -5. The time now is 08:34 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration