Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with 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.
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.
I also have a logitech wheel mouse, which is functioning in Slackware 10.0 as a three button mouse only. I ran xmodmap from KDE with command tail you indicated but it didn't seem to change anything.
Exactly what is xmodmap doing here, or what is it that we want it to do? Seems it must be remapping a device named "pointer", but what does the sequence of numbers represent.
From what I have gathered, for this mouse(MX510), the Scrollbar buttons are considered buttons 6 and 7 when you tell xorg that the mouse is 7 buttons. However, most applications expect the Z-axis buttons to be 4 and 5. xmodmap allows the remapping of keys from the keyboard and mouse. If you run this command(as long as you have enabled seven buttons, and you haven't ran the xmodmap command I specified in my first post):
Code:
xmodmap -pp
you should get an output looking something like this:
What that command does is remaps the physical 4 and 5 buttons(thumb buttons) to 6 and 7, and the physical 6 and 7 buttons(Z-axis) to 4 and 5, which is what most applications are expecting.
I'm using run level 4 in my inittab (its the run level that starts up straight into X in slackware). Does it look at the /.xinitrc when I boot this way?
hmm, I just installing mine correctly,
I have to use "ZAxisMapping" "4 5" intsted of "6 7", and I get it to work..
the problems I get is that, sometimes the scrollbuttons (over and under the scroll wheel) don't do what they shuld, the one that is suposed to scroll uppwards sometimes go backwards in the page history, and the one that shuld scroll down, always marks the text while it does it, anyone got a fix for this?
Originally posted by gotmonkey question: how did you get it to work?
I modified my
xorg.conf
xmodmap -e "pointer = 1 2 3 6 7 4 5"
it works when I do that.
I added the that line in the .xinitrc just before the window mgr
/usr/X11/bin/xmodmap -e "pointer = 1 2 3 6 7 4 5"
I log out of x windows, log in and it still shows button code of 1 2 3 4 5 6 7
when I run /usr/X11/bin/xmodmap -pp
any idea how to fix it?
This is not the best solution in Slackware.
Quote:
Originally posted by gotmonkey Update: From another post, I ran in console
echo "pointer = 1 2 3 6 7 4 5" > ~/.Xmodmap
restarted X
works fine in mozilla
This is a good solution. It makes the mouse available for this user.
If you want all users can profit from this, do:
echo "pointer = 1 2 3 6 7 4 5" >/usr/X11R6/lib/X11/xinit/.Xmodmap
Now you have made available this feature for all your Window Managers (KDE, Gnome, fluxbox, whatever you installed....).
Make a study of the handy Slack-shellscript /usr/X11R6/bin/xwmconfig to understand why the first solution is bad.
This shellscript is handy for choosing a WM if you boot your Slackware into console and then start the WM with startx (as I do).
But if you boot right into X, this will work too for you I guess (did not study that case).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.