View previous topic :: View next topic |
Author |
Message |
torklingberg Tux's lil' helper
Joined: 30 May 2004 Posts: 86
|
Posted: Sun Jun 27, 2004 2:48 pm Post subject: This is how I got my MX510 (MX500, MX700) to work (with gdm) |
|
|
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
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 |
|
|
JudgeNik Tux's lil' helper
Joined: 02 Mar 2004 Posts: 86 Location: Bolzano, Italy
|
Posted: Tue Jun 29, 2004 11:30 am Post subject: |
|
|
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 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 |
|
|
floffe Guru
Joined: 24 Nov 2003 Posts: 414 Location: Linköping, Sweden
|
Posted: Tue Jun 29, 2004 2:52 pm Post subject: |
|
|
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 |
|
|
nielchiano Veteran
Joined: 11 Nov 2003 Posts: 1287 Location: 50N 3E
|
Posted: Tue Jul 06, 2004 10:52 pm Post subject: |
|
|
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 |
|
|
Thardin n00b
Joined: 02 Jul 2004 Posts: 16
|
Posted: Tue Jul 06, 2004 10:59 pm Post subject: |
|
|
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 |
|
|
ribx Apprentice
Joined: 20 Nov 2003 Posts: 219 Location: germany
|
Posted: Wed Oct 06, 2004 11:01 pm Post subject: |
|
|
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 |
|
|
AliceDiee n00b
Joined: 22 Jan 2004 Posts: 74 Location: Hattingen, Germany
|
Posted: Thu Oct 07, 2004 8:15 am Post subject: |
|
|
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 |
|
|
khendon Tux's lil' helper
Joined: 19 Mar 2003 Posts: 80
|
Posted: Fri Oct 29, 2004 3:16 pm Post subject: |
|
|
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 |
|
|
bassM n00b
Joined: 02 Apr 2004 Posts: 18 Location: Finland
|
Posted: Sun Oct 31, 2004 9:01 am Post subject: |
|
|
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 |
|
|
Valheru Guru
Joined: 14 Mar 2003 Posts: 300 Location: Leeuwarden - The Netherlands
|
Posted: Sun Oct 31, 2004 10:01 am Post subject: |
|
|
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 |
|
|
Sci-Fi n00b
Joined: 02 Nov 2004 Posts: 1
|
Posted: Tue Nov 02, 2004 2:27 pm Post subject: |
|
|
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 |
|
|
Grubshka n00b
Joined: 07 Nov 2004 Posts: 37 Location: Toulouse - France
|
Posted: Sat Nov 13, 2004 1:59 pm Post subject: |
|
|
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 |
|
|
Stormmind Tux's lil' helper
Joined: 11 Aug 2002 Posts: 112 Location: Sweden
|
Posted: Sat Nov 13, 2004 8:45 pm Post subject: |
|
|
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 |
|
|
|
|
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
|
|