Slackware This Forum is for the discussion of Slackware 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
|
09-16-2004, 03:27 AM
|
#1
|
Member
Registered: Mar 2004
Posts: 93
Rep:
|
Logitech mx700 USB Mouse
Tried doing a search for this model, but none of the config suggestions in the other posts seemed to work.
The mouse is working for the most part. However, all the buttons are doing the wrong things, heh. The scrollwheel is operating as the back/forward buttons, and those buttons are acting as the scrollwheel. The cruise control buttons are also acting as back/forward.
My xorg.conf file is as follows (I also tried ExplorerPS/2 with the same results):
Code:
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/mouse"
Option "Buttons" "7"
Option "ZAxisMapping" "6 7"
I've also tried changing buttons to 5, and mapping to "4 5". The mouse functioned, but the scrollwheel did nothing in that config.
Going to keep researching. If anyone has any ideas, would love to hear them. Can't wait to try and get my Logitech Elite Keyboard special keys working!
|
|
|
09-16-2004, 03:38 AM
|
#2
|
Senior Member
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145
Rep:
|
Did you try:
Option "Buttons" "7"
Option "ZAxisMapping" "4 5"
(Try with the Option "Protocol" "ExplorerPS/2" it works better for what i've seen)
I've a friend that has a mx500 running fine on linux, i'll ask him later to see if there's something different.
|
|
|
09-16-2004, 03:45 AM
|
#3
|
Member
Registered: Mar 2004
Posts: 93
Original Poster
Rep:
|
Haha, getting closer. I changed the mapping to "4 5", and now the scrollwheel and cruise buttons work correctly. The back/forward buttons are acting like right-clicking, but being able to scroll is a definite improvement. When I change it to ExplorerPS/2, they don't do anything, but the scroll still works correctly.
That'd be great if you can check with your friend and see how his is set up, since the mx500 is identical. Really appreciate the help!
Last edited by Makaelin; 09-16-2004 at 03:48 AM.
|
|
|
09-16-2004, 11:33 AM
|
#4
|
LQ Newbie
Registered: Aug 2004
Distribution: Slackware-10.2
Posts: 21
Rep:
|
Link from imwheel
http://www.glaurung.demon.co.uk/info...500.howto.html
imwheel intercepts the mouse commands and sends events instead. i.e. it makes the thumb buttons do forward and back.
everything works perfectly with one problem below. If my memory serves me correctly, the explorer only had one thumb button. Somebody needs to write a new protocol to make it work fully. I might try and learn how to do it.
Here's mine
Logitech MX500
/etc/X11/xorg.conf
Code:
Section "InputDevice"
Identifier "Mouse2"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/input/mice"
Option "Emulate3Buttons"
Option "Emulate3Timeout" "70"
Option "InputFashion" "Mouse"
Option "Buttons" "7"
Option "ButtonNumber" "7"
Option "ZAxisMapping" "6 7"
EndSection
Download and install imwheel. Modify the file for mozilla for back and forward
/etc/X11/imwheel/imwheelrc
Code:
"^Mozilla-bin$"
# ...
# Left/Right & Thumb stuff
None, Left, Left, 7,
None, Right, Right, 7,
None, Thumb1, Alt_L|Left, 7,
Shift_L, Thumb1, Up, 7,
None, Thumb2, Alt_L|Right, 7,
Shift_L, Thumb2, Down, 7,
Modify the X11 startup script to handle the changes to your mouse.
~/.xinitrc
Code:
xsetpointer Mouse2
xmodmap -e "pointer = 1 2 3 6 7 4 5"
imwheel -k -p -b "000067"
Up arrow doesn't work, because it sends two thumb commands instead of a unique command. Either have two thumb buttons and down arrow or one thumb and two arrows.
|
|
|
09-16-2004, 04:21 PM
|
#5
|
Member
Registered: Mar 2004
Posts: 93
Original Poster
Rep:
|
Great, thanks. I actually didn't even need imwheel, I just used xmodmap, edited .xinitrc, and everything is working fine. I'll install imwheel if it turns out it doesn't function in some applications, but so far so good.
|
|
|
09-16-2004, 06:31 PM
|
#6
|
Member
Registered: Aug 2004
Location: Minneapolis, MN, USA
Distribution: Slackware 13.1
Posts: 82
Rep:
|
Quote:
Originally posted by Makaelin
Great, thanks. I actually didn't even need imwheel, I just used xmodmap, edited .xinitrc, and everything is working fine. I'll install imwheel if it turns out it doesn't function in some applications, but so far so good.
|
Can you let me know the changes you made?
|
|
|
09-16-2004, 06:45 PM
|
#7
|
Member
Registered: Mar 2004
Posts: 93
Original Poster
Rep:
|
Sure thing!
First off, my xorg.conf looks like this:
Code:
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/mouse"
Option "Buttons" "7"
Option "ButtonNumber" "7"
Option "ZAxisMapping" "6 7"
After loading up with that, I opened a console and typed in xmodmap -pp, which should then give you a list of the pointer buttons, one through seven. All should be linked to themselves (ie, 1 -> 1, 2 -> 2, etc....). Back at the command line, I typed in xmodmap -e "pointer = 1 2 3 6 7 4 5", and hit enter. That remapped the 6 and 7 buttons (scroll wheel) to be identified as 4 and 5 (normally what X-apps consider the scroll wheel).
Closing the console, I checked and made sure it worked. When I saw that everything worked fine, I just edited my ~/.xinitrc file to contain the line from above:
xmodmap -e "pointer = 1 2 3 6 7 4 5"
Voila. That's what worked for me. I'm looking into whether or not there's a higher file that I can add the line to that will make it default for any user account that's created.
|
|
|
09-16-2004, 07:14 PM
|
#8
|
Member
Registered: Aug 2004
Location: Minneapolis, MN, USA
Distribution: Slackware 13.1
Posts: 82
Rep:
|
Awesome. Thanks.
|
|
|
10-10-2004, 01:12 PM
|
#9
|
Member
Registered: Oct 2003
Location: Chicago
Distribution: debian, ubuntu
Posts: 48
Rep:
|
Sorry for bumping such an old thread, but I'm trying to do basically the same thing that Makaelin did and I'm having difficulty with xmodmap.
Whenever I try to run xmodmap, I get an error stating that the command was not found.
Code:
bash-2.05b# xmodmap -pp
bash: xmodmap: command not found
What am I missing?
|
|
|
10-10-2004, 01:27 PM
|
#10
|
Member
Registered: Mar 2004
Posts: 93
Original Poster
Rep:
|
Hmmm, I'm not sure why that would be. Maybe it has something to do with the X version you have? I don't know if xmodmap is something fairly new or not? What version are you running?
|
|
|
10-10-2004, 01:38 PM
|
#11
|
Member
Registered: Oct 2003
Location: Chicago
Distribution: debian, ubuntu
Posts: 48
Rep:
|
well, first off i'm a tard and tried to do it from a terminal while running x.
so, i exited out and logged in as root. Now when I try to do any xmodmap command, I get this
xmodmap: unable to open display ''
i actually just upgraded to slack 10 the other day via swaret.
|
|
|
10-10-2004, 04:01 PM
|
#12
|
Member
Registered: Mar 2004
Posts: 93
Original Poster
Rep:
|
xmodmap works in GNOME for me. Try going back into X, and try to run it as superuser.
|
|
|
10-10-2004, 04:10 PM
|
#13
|
Senior Member
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145
Rep:
|
CletusJones, you've to run xmodmap in a X server and with the same user you started it. The best place to put it is in .xinitrc that's called when you start a X server, it's also the file that loads the WMs.
|
|
|
10-10-2004, 04:25 PM
|
#14
|
Member
Registered: Oct 2003
Location: Chicago
Distribution: debian, ubuntu
Posts: 48
Rep:
|
Sweet. That's what I was missing. Thanks!
|
|
|
12-18-2004, 02:37 PM
|
#15
|
Member
Registered: Mar 2004
Location: KY, USA
Distribution: Fedora Core 1
Posts: 190
Rep:
|
Quote:
Originally posted by Makaelin
....
Closing the console, I checked and made sure it worked. When I saw that everything worked fine, I just edited my ~/.xinitrc file to contain the line from above:
xmodmap -e "pointer = 1 2 3 6 7 4 5"
Voila. That's what worked for me. I'm looking into whether or not there's a higher file that I can add the line to that will make it default for any user account that's created.
|
You can instead just add this line to /etc/X11/Xmodmap:
Code:
pointer = 1 2 3 6 7 4 5
And everything works just the same. If you don't want to edit the global config, you can add that line to ~/.xmodmap
~Sarav
|
|
|
All times are GMT -5. The time now is 01:20 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|