LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 05-26-2007, 10:52 AM   #1
hacker supreme
Member
 
Registered: Oct 2006
Location: As far away from my username as possible
Distribution: Gentoo
Posts: 259
Blog Entries: 1

Rep: Reputation: 30
Mouse scrolls with every move sideways


I just re-installed Debian Etch (unfortunately with GNOME, as I can't remember how to install with KDE) and there is one major irritating problem.

Every time I move the mouse sideways (even by a pixel or two) it scrolls.
I can't find out how to switch this off and it is extremely annoying. Please can someone let me know how to remove this 'feature' before it drives me mad.

Thanks.
 
Old 05-26-2007, 02:52 PM   #2
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 53
Try setting the ZAxisMapping buttons to different values in xorg.conf. This is what I use:
Code:
Section "InputDevice"
        Identifier      "PS/2 Mouse"
        Driver          "mouse"
        Option          "CorePointer"
        Option          "Device"                "/dev/psaux"
        Option          "Protocol"              "ExplorerPS/2"
        Option          "ZAxisMapping"          "6 7" # "4 5"
        Option          "Emulate3Buttons"       "true"
        Option          "Emulate3Timeout"       "70"
        Option          "SendCoreEvents"        "true"
EndSection
 
Old 05-26-2007, 03:38 PM   #3
hacker supreme
Member
 
Registered: Oct 2006
Location: As far away from my username as possible
Distribution: Gentoo
Posts: 259
Blog Entries: 1

Original Poster
Rep: Reputation: 30
Ok, Thanks. I'll try that.
 
Old 05-26-2007, 03:50 PM   #4
hacker supreme
Member
 
Registered: Oct 2006
Location: As far away from my username as possible
Distribution: Gentoo
Posts: 259
Blog Entries: 1

Original Poster
Rep: Reputation: 30
No. It hasn't worked.
Hmmm... I neglected to mention that this is a mouse with a two-axis scroll wheel.

But never mind. I'll just switch it with the mouse on the Windows PC and see if that works.

Edit: Yay! Switching to the other mouse works. I don't know why I didn't think of that sooner.
It seems that having a scroll wheel that moves in two axis confuses the system.

Last edited by hacker supreme; 05-26-2007 at 04:03 PM.
 
Old 05-26-2007, 04:06 PM   #5
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 53
Did you try different values or just "6 7"?

You can also bind the mouse buttons from a script. I have this run from a file under ~/.kde/Autostart to bind the back and forward sidebuttons correctly:
Code:
# rebind mouse buttons for mouseman
echo '#!/bin/sh
xmodmap -e "pointer = 1 2 3 8 9 4 5 6 7 10 11 "' >/home/markus/xmod$$
chmod a+x /home/markus/xmod$$
xterm -bg black -fg white -fn 9x15 -name "Pointer Remap" -e /home/markus/xmod$$
rm -f /home/markus/xmod$$
There's probably an easier way to do that, but I've been too lazy to change it since that works.
 
Old 05-26-2007, 07:41 PM   #6
hacker supreme
Member
 
Registered: Oct 2006
Location: As far away from my username as possible
Distribution: Gentoo
Posts: 259
Blog Entries: 1

Original Poster
Rep: Reputation: 30
I was wrong. It still doesn't work properly.
It seemed to work well, except that now (with the normal two button mouse with a normal scroll wheel.) I can't scroll at all with the scroll-wheel.
However, whenever the mouse pointer is in an area that can be affected by scrolling, moving the mouse sideways results in, yup, scrolling.

(But, hey, I managed to get KDE working. )

Do you have any more details on how to do that re-mapping thing?
 
Old 05-27-2007, 02:19 AM   #7
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 53
Read these howto's:

http://www.linux-gamers.net/modules/...+Mouse+Buttons
http://gentoo-wiki.com/HOWTO_Advanced_Mouse

You probably need to at least adjust the "ZAxisMapping" and add "Buttons". You have to count your mouse buttons for that.
 
Old 05-27-2007, 10:17 AM   #8
hacker supreme
Member
 
Registered: Oct 2006
Location: As far away from my username as possible
Distribution: Gentoo
Posts: 259
Blog Entries: 1

Original Poster
Rep: Reputation: 30
OK, thanks.

BTW: I've solved the issue.
It turns out that I had been choosing the wrong input device with reconfiguring xserver-xorg.

I was choosing /dev/psaux rather than /dev/input/mice.
And therefore it was choosing completely the wrong type of mouse.

I reconfigured xserver-xorg and chose the proper setting for my mouse and it all works correctly.

This has turned out to be a major case of PEBKAC, and I really need to stop attempting to work until one in the morning.

But those remapping tutorials may still come in handy.
 
Old 05-27-2007, 11:11 AM   #9
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 53
Well, glad you got it solved.
 
  


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
Mouse scrolls down but not up Sheesh Suse/Novell 10 02-09-2006 01:27 PM
mouse wheel moves sideways pavodive Linux - Hardware 4 03-30-2005 01:39 AM
mouse scrolls horizontal instead of vert crache Linux - Hardware 5 02-25-2005 09:56 AM
Suse 9.2 : How to change amount mouse wheel scrolls by? timko Linux - Hardware 5 02-16-2005 05:02 AM
KDE 3.3.2 - Mouse Wheel Only Scrolls in KDE Apps mac57 Linux - Software 0 01-19-2005 10:29 AM


All times are GMT -5. The time now is 02:34 PM.

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