LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 09: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: 31
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, 01:52 PM   #2
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
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, 02:38 PM   #3
hacker supreme
Member
 
Registered: Oct 2006
Location: As far away from my username as possible
Distribution: Gentoo
Posts: 259

Original Poster
Blog Entries: 1

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

Original Poster
Blog Entries: 1

Rep: Reputation: 31
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 03:03 PM.
 
Old 05-26-2007, 03:06 PM   #5
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
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, 06:41 PM   #6
hacker supreme
Member
 
Registered: Oct 2006
Location: As far away from my username as possible
Distribution: Gentoo
Posts: 259

Original Poster
Blog Entries: 1

Rep: Reputation: 31
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, 01:19 AM   #7
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
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, 09:17 AM   #8
hacker supreme
Member
 
Registered: Oct 2006
Location: As far away from my username as possible
Distribution: Gentoo
Posts: 259

Original Poster
Blog Entries: 1

Rep: Reputation: 31
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, 10:11 AM   #9
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

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


Reply



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

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

All times are GMT -5. The time now is 12:51 AM.

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