Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
This is how I got my MX510 (MX500, MX700) to work (with gdm)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
torklingberg
Tux's lil' helper
Tux's lil' helper


Joined: 30 May 2004
Posts: 86

PostPosted: Sun Jun 27, 2004 2:48 pm    Post subject: This is how I got my MX510 (MX500, MX700) to work (with gdm) Reply with quote

This one is for the forum searchers. I myself had problems finding any good info.

So, this is how I got the back button, forward button and scroll wheel to work on my Logitech MX510 Optical USB mouse, using Gnome and gdm. It should work for MX500 and MX700 too, since they have the same buttons. The small buttons around the scroll wheel does not work properly for me, so please tell me how if you know.

emerge imwheel
In /etc/X11/xorg.conf (or XF86Config or whatever X conf file you have), I have this:
Code:

    Identifier  "Mouse1"
    Driver  "mouse"
    Option  "Protocol" "ExplorerPS/2"
    Option  "Device" "/dev/input/mice"
    Option  "ZAxisMapping" "6 7"
    Option  "buttons" "7"
    Option  "Resolution" "400"


Now create the folder /etc/X11/xinit/xinitrc.d and in there create the file mouse with:
Code:

xmodmap -e "pointer = 1 2 3 6 7 4 5" &
imwheel -k -p -b "67" -f &

Now make the file executable
Code:
chmod +x mouse


And now create an ~/.imwheelrc like this
Code:

"(null)"
None,           Up,     Alt_L|Left              # Go back
None,           Down,   Alt_L|Right             # Go forward
Control_L,      Up,     Control_L|Page_Up       # Previous tab
Control_L,      Down,   Control_L|Page_Down     # Next tab
 
"^Firebird.*"
None,           Up,     Alt_L|Left              # Go back
None,           Down,   Alt_L|Right             # Go forward
Shift_L,        Up,     Control_L|Page_Up       # Previous tab
Shift_L,        Down,   Control_L|Page_Down     # Next tab
 
"^Firefox.*"
None,           Up,     Alt_L|Left              # Go back
None,           Down,   Alt_L|Right             # Go forward
Shift_L,        Up,     Control_L|Page_Up       # Previous tab
Shift_L,        Down,   Control_L|Page_Down     # Next tab
 
"^Mozilla.*"
None,           Up,     Alt_L|Left              # Go back
None,           Down,   Alt_L|Right             # Go forward
Shift_L,        Up,     Control_L|Page_Up       # Previous tab
Shift_L,        Down,   Control_L|Page_Down     # Next tab
 
"^Epiphany.*"
None,           Up,     Alt_L|Left              # Go back
None,           Down,   Alt_L|Right             # Go forward
Shift_L,        Up,     Control_L|Page_Up       # Previous tab
Shift_L,        Down,   Control_L|Page_Down     # Next tab
 
"^Dillo*"
None,           Up,     comma
None,           Down,   period
 
#last lines
".*"
None,           Up,     Alt_L|Left              # Go back
None,           Down,   Alt_L|Right             # Go forward
Control_L,      Up,     Control_L|Page_Up       # Previous tab
Control_L,      Down,   Control_L|Page_Down     # Next tab


Now, that should be enough. I'm sure there are some menaingles stuff in there, but it works for me. If it does not work, then try running the xmodmap and imwheel lines in a console. It that works, then you just need to find a place to put thiose lines so they are executed automatically.

Emacs, of course, doesn't want to work like other programs so you have to make the scrollwheel work manually. With xemacs, I put (mwheel-install) in ~/.xemacs/init.el

Other good links:
https://forums.gentoo.org/viewtopic.php?t=178733 (general info)
http://www.glaurung.demon.co.uk/info/linux.mx500.howto.html (general info)
https://forums.gentoo.org/viewtopic.php?t=69991 (emacs)
Back to top
View user's profile Send private message
JudgeNik
Tux's lil' helper
Tux's lil' helper


Joined: 02 Mar 2004
Posts: 86
Location: Bolzano, Italy

PostPosted: Tue Jun 29, 2004 11:30 am    Post subject: Reply with quote

The small button infront of the scroll wheel has some bug either in the kernel or the drivers being used. Use "xev" to see what button is acting as what.

By the way do you have the red mx510 8) I've got the MX700 at the moment but am considering selling it and going to the awesome looking red MX510 instead.
_________________
See the famous Niko Roberts at http://www.nikoroberts.com
Back to top
View user's profile Send private message
floffe
Guru
Guru


Joined: 24 Nov 2003
Posts: 414
Location: Linköping, Sweden

PostPosted: Tue Jun 29, 2004 2:52 pm    Post subject: Reply with quote

JudgeNik wrote:
The small button infront of the scroll wheel has some bug either in the kernel or the drivers being used. Use "xev" to see what button is acting as what.

The mousedev drivers don't support as many as 10 buttons, which these mice have. And unfortunately the evdev driver which supports 10 buttons doesn't work with xorg :?

To use all 10 buttons with xfree, see the howto "10-button mice" in the Docs, tips and tricks forum.
Back to top
View user's profile Send private message
nielchiano
Veteran
Veteran


Joined: 11 Nov 2003
Posts: 1287
Location: 50N 3E

PostPosted: Tue Jul 06, 2004 10:52 pm    Post subject: Reply with quote

ok, to get my imwheel to work, I need to start it as the logged in user...

I use KDE; where is THE place to put the command? (what script gets executed after login, under the user's account?)
Back to top
View user's profile Send private message
Thardin
n00b
n00b


Joined: 02 Jul 2004
Posts: 16

PostPosted: Tue Jul 06, 2004 10:59 pm    Post subject: Reply with quote

Thank you *very* much. Will it also work with KDE?

Edit: Doh... of course it will... it's all based on X...
Back to top
View user's profile Send private message
ribx
Apprentice
Apprentice


Joined: 20 Nov 2003
Posts: 219
Location: germany

PostPosted: Wed Oct 06, 2004 11:01 pm    Post subject: Reply with quote

also a BIG thanks from me! i had exactly the same problem like you.. many threads, many words but no content at all.

good work! respect :)
Back to top
View user's profile Send private message
AliceDiee
n00b
n00b


Joined: 22 Jan 2004
Posts: 74
Location: Hattingen, Germany

PostPosted: Thu Oct 07, 2004 8:15 am    Post subject: Reply with quote

floffe wrote:
The mousedev drivers don't support as many as 10 buttons, which these mice have. And unfortunately the evdev driver which supports 10 buttons doesn't work with xorg :?


Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "evdev"
Option "Buttons" "10"
Option "ZAxisMapping" "9 10"
Option "Dev Name" "Logitech USB-PS/2 Optical Mouse"
Option "Dev Phys" "usb-*/input0"
EndSection

xorg is running perfectly here :!:

I should mention that I'm using this patchset which includes the kernel-events-rml patch and the configurable-hid-mouse-polling patch for smoother movement.
Back to top
View user's profile Send private message
khendon
Tux's lil' helper
Tux's lil' helper


Joined: 19 Mar 2003
Posts: 80

PostPosted: Fri Oct 29, 2004 3:16 pm    Post subject: Reply with quote

Have done exactly as is suggested in this thread but I have no mouse wheel or buttons. MX510 mouse connected to a nForce3 board. Is there some kernel stuff that needs to be done and that everyone does without thinking except me?

Edit: Connected to an USB port. Tried connecting it to the PS/2 port with the same settings, but naturally got no mouse at all.
Back to top
View user's profile Send private message
bassM
n00b
n00b


Joined: 02 Apr 2004
Posts: 18
Location: Finland

PostPosted: Sun Oct 31, 2004 9:01 am    Post subject: Reply with quote

Interesting problem here: I got both scroll and back and forward working, only they are not associated with the correct buttons.
The scrollwheel and the scroll-buttons do the back and forward and the back and forward buttons do the scrolling.
I have everything setup exactly like torklingberg...


EDIT: Solved!
Back to top
View user's profile Send private message
Valheru
Guru
Guru


Joined: 14 Mar 2003
Posts: 300
Location: Leeuwarden - The Netherlands

PostPosted: Sun Oct 31, 2004 10:01 am    Post subject: Reply with quote

bassM wrote:
Interesting problem here: I got both scroll and back and forward working, only they are not associated with the correct buttons.
The scrollwheel and the scroll-buttons do the back and forward and the back and forward buttons do the scrolling.
I have everything setup exactly like torklingberg...


EDIT: Solved!


If you solve something, it's customary to include your solution, so that people who use the search function don't ahve to ask how you did it :p

Now, how did you do it?
Back to top
View user's profile Send private message
Sci-Fi
n00b
n00b


Joined: 02 Nov 2004
Posts: 1

PostPosted: Tue Nov 02, 2004 2:27 pm    Post subject: Reply with quote

I am also interested how did you solve your problem.
I have the same problem myself
_________________
Sci-Fi is the best dream.
Back to top
View user's profile Send private message
Grubshka
n00b
n00b


Joined: 07 Nov 2004
Posts: 37
Location: Toulouse - France

PostPosted: Sat Nov 13, 2004 1:59 pm    Post subject: Reply with quote

Sci-Fi wrote:
I am also interested how did you solve your problem.
I have the same problem myself


Try to use xmodmap differently ?
(consequently, you may have to change the Option "ZAxisMapping" "6 7" in xorg.conf)
Back to top
View user's profile Send private message
Stormmind
Tux's lil' helper
Tux's lil' helper


Joined: 11 Aug 2002
Posts: 112
Location: Sweden

PostPosted: Sat Nov 13, 2004 8:45 pm    Post subject: Reply with quote

I got mine mx510 working perfectly without any patches or even imwheel with this config:


Code:

'# Logitech MX510
Section "InputDevice"
        Driver      "mouse"
        Identifier  "Mouse0"
        Option      "Protocol" "ExplorerPS/2"
        Option      "Device" "/dev/input/mice"
        Option      "Buttons" "7"
        Option      "ZAxisMapping" "6 7"
        Option      "Name" "Logitech MX 510"
EndSection


The scroll wheel is working in all apps I tryed (like aterm, mosilla, etc..) and the buttons on the side work too (history(-1) and history(+1) in mozilla). The small buttons near the scrollwheel work as up arrow and down-arrow - scroll. The last button doesn't seem to do anything noticable.

No I haven't done anything special, just wrote the above in config and plugged it in the usb-port (didn't work on ps/2).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum