LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-16-2004, 03:27 AM   #1
Makaelin
Member
 
Registered: Mar 2004
Posts: 93

Rep: Reputation: 15
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!
 
Old 09-16-2004, 03:38 AM   #2
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
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.
 
Old 09-16-2004, 03:45 AM   #3
Makaelin
Member
 
Registered: Mar 2004
Posts: 93

Original Poster
Rep: Reputation: 15
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.
 
Old 09-16-2004, 11:33 AM   #4
icom158
LQ Newbie
 
Registered: Aug 2004
Distribution: Slackware-10.2
Posts: 21

Rep: Reputation: 15
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.
 
Old 09-16-2004, 04:21 PM   #5
Makaelin
Member
 
Registered: Mar 2004
Posts: 93

Original Poster
Rep: Reputation: 15
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.
 
Old 09-16-2004, 06:31 PM   #6
Skazi
Member
 
Registered: Aug 2004
Location: Minneapolis, MN, USA
Distribution: Slackware 13.1
Posts: 82

Rep: Reputation: 15
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?
 
Old 09-16-2004, 06:45 PM   #7
Makaelin
Member
 
Registered: Mar 2004
Posts: 93

Original Poster
Rep: Reputation: 15
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.
 
Old 09-16-2004, 07:14 PM   #8
Skazi
Member
 
Registered: Aug 2004
Location: Minneapolis, MN, USA
Distribution: Slackware 13.1
Posts: 82

Rep: Reputation: 15
Awesome. Thanks.
 
Old 10-10-2004, 01:12 PM   #9
CletusJones
Member
 
Registered: Oct 2003
Location: Chicago
Distribution: debian, ubuntu
Posts: 48

Rep: Reputation: 15
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?
 
Old 10-10-2004, 01:27 PM   #10
Makaelin
Member
 
Registered: Mar 2004
Posts: 93

Original Poster
Rep: Reputation: 15
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?
 
Old 10-10-2004, 01:38 PM   #11
CletusJones
Member
 
Registered: Oct 2003
Location: Chicago
Distribution: debian, ubuntu
Posts: 48

Rep: Reputation: 15
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.
 
Old 10-10-2004, 04:01 PM   #12
Makaelin
Member
 
Registered: Mar 2004
Posts: 93

Original Poster
Rep: Reputation: 15
xmodmap works in GNOME for me. Try going back into X, and try to run it as superuser.
 
Old 10-10-2004, 04:10 PM   #13
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
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.
 
Old 10-10-2004, 04:25 PM   #14
CletusJones
Member
 
Registered: Oct 2003
Location: Chicago
Distribution: debian, ubuntu
Posts: 48

Rep: Reputation: 15
Sweet. That's what I was missing. Thanks!
 
Old 12-18-2004, 02:37 PM   #15
saravkrish
Member
 
Registered: Mar 2004
Location: KY, USA
Distribution: Fedora Core 1
Posts: 190

Rep: Reputation: 30
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
 
  


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
Logitech MX700 mouse probs, slack10.2 nadroj Linux - Newbie 3 11-24-2005 12:00 AM
Using a Logitech MX700 mouse with FC1 magicvash Fedora 4 05-06-2004 12:22 PM
Logitech mx700 mouse wireless buttons blixel Linux - Hardware 3 10-05-2003 02:39 PM
Logitech MX700 zoomer Linux - Hardware 7 09-01-2003 01:32 PM
Logitech MX700 DaFrEQ Linux - Hardware 5 02-03-2003 08:12 AM

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

All times are GMT -5. The time now is 09:23 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