It's the little things
But on the flip side, figuring out how to make my scroll mouse actually SCROLL was a little thing that has made Linux more appealing to use again. I absolutely hated not being able to scroll while surfing the web. That makes it pretty annoying and makes me less likely to use Slackware everyday, which was the whole idea when I started on this journey.
Well, today, one of my original "I gotta figure this out" issues was conquered! HURRAH! Here's how I did it.
First, I got some inspiration from HOWTO_Advanced_Mouse @ gentoo-wiki.com. I started by commenting out all the mouse related code in my /etc/X11/xorg.conf file. For example, for all of the current settings, I stuck # it WAS: in front of the line, so I knew what to revert back to if things went bad. (Another good idea is to make a copy of the original file before you mess with it. I had already done this from a previous attempt at making scrolling work.)
Next, I tried what the site suggested as my "edited configuration". This actually caused all kinds of problems for me, but nothing was insurmountable. I discovered that for my setup, I had to do the following:
...
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/mouse"
Option "Buttons" "5"
Option "ZAxisMapping" "4 5"
...
If you are comparing to the example given on the link, it might be helpful to understand that the mouse I have really is a 5-button mouse. (Left and right buttons, scroll up, scroll down, and pressing the scroller down as a button.) Having it marked as 7 just made everything all confused. So because there are only 5, the ZAxisMapping option had to be set to "4 5" to jive with that. But, how did I figure that much out???
Well, first, let's take a step back for a moment. The scrolling stuff actually did get recognised by the 7 button configuration on the other site. How do I know this? Because I used the xev program (X-event tester) to find out that it did. A very nifty tool indeed! :)
BUT, next I went into Firefox in hopes of scrolling up and down on web pages all over the place. I quickly learned that trying to scroll with the mouse actually behaved like the "Back" and "Forward" buttons. Since my habit is to go up and down on a page, this was EXTREMELY annoying as my scrolling habits caused me to go to already visited pages. Oh, it was horrible. Trust me.
Then I met another useful link, addressing the specific scrolling issue in Firefox @ linuxquestions.org and learned that if I changed the ZAxisMapping to "4 5", all would be well after starting X up again. And amazingly, it was. :) I ran xev to make sure it still recognised everything. Then I bravely returned to Firefox. And the rest is (happy) scrolling history.
One more "little thing"....
I also figured out how to change the keyboard sensitivity in X so that I can hold down a key and it will actually repeat now. Very handy for those times you really need the Backspace key, or REALLY want to type hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh.
In case anybody is searching for this answer, look for your settings or preferences menu in your particular window manager. I'm currently using Freerock GNOME. I went to Desktop --> Preferences --> Keyboard. Once there, select "Key presses repeat when key is held down" and set the speed and delay properties to your tastes. Me? I like high speed and a touch of delay. Don't tell the cops! ;)
Labels: Freerock GNOME, keyboard, linux, mouse, Slackware