LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Trying to get Logitech mx518 working with usb... (https://www.linuxquestions.org/questions/linux-newbie-8/trying-to-get-logitech-mx518-working-with-usb-405682/)

Donniey 01-20-2006 01:50 AM

Trying to get Logitech mx518 working with usb...
 
Distro: Slackware 10.2
Kernal: 2.4.31

It works fine when i have it with the ps/2 adapter and IMPS/2 protocol in xorg.conf, but it only gives me support for the 2 main buttons, and im not exactly sure what i have to do to get it working via the usb. I also need to know what protocol to use in the conf file (im guessing logitech? idk, when i first saw that it seemed too easy...). Any help is greatly appreciated

And if you need any other info from me, ill be happy to look it up

Flesym 01-20-2006 05:07 AM

I'm not exactly sure about the mx518 and Slackware, because I'm using mx310 and Ubuntu, but what works for one Logitech-product often works also for a similar. So here are my xorg.conf entries:
Code:

Section "InputDevice"
    Identifier    "Configured Mouse"
    Driver        "mouse"
    Option        "CorePointer"
    Option        "Device" "/dev/input/mice"
    Option        "Protocol" "ExplorerPS/2"
    Option        "Buttons" "7"              #the overall buttons-number plus two for the wheel
    Option        "Emulate3Buttons" "true"
    Option        "ZAxisMapping" "4 5"      #these are the two buttons for wheel-up/down and may vary
EndSection

Maybe that will help...

onjoo 01-20-2006 05:25 AM

Here is my effort to help you.

The howto is for logitech mx700 / mx510 on suse , but atleast you'll get some hints from that

http://forums.suselinuxsupport.de/lo...hp/t14384.html

Donniey 01-20-2006 05:58 PM

Quote:

Originally Posted by Flesym
I'm not exactly sure about the mx518 and Slackware, because I'm using mx310 and Ubuntu, but what works for one Logitech-product often works also for a similar. So here are my xorg.conf entries:
Code:

Section "InputDevice"
    Identifier    "Configured Mouse"
    Driver        "mouse"
    Option        "CorePointer"
    Option        "Device" "/dev/input/mice"
    Option        "Protocol" "ExplorerPS/2"
    Option        "Buttons" "7"              #the overall buttons-number plus two for the wheel
    Option        "Emulate3Buttons" "true"
    Option        "ZAxisMapping" "4 5"      #these are the two buttons for wheel-up/down and may vary
EndSection

Maybe that will help...

Ok, thanks, that worked. Only problem is the Forward and Back Buttons on the side arent doing anything when i click them. Anyone know how to fix this?

Flesym 01-20-2006 07:35 PM

As far as I know, the mx518 is a 8-buttons mouse? -If so, then you have to set
Code:

Option  "Buttons" "10"  #instead of "7" like in my example above
I'm not sure, but I guess that this will also cause to shift the wheel-buttons, so if you are not able to scroll anymore try:
Code:

Option  "ZAxisMapping" "7 8"
Maybe it is also necessary to re-map some buttons, so that every button does what you want it to do. You can "try" different mappings with the command 'xmodmap'. So open a terminal and type something like:
Code:

xmodmap -e "pointer = 1 2 3 4 5 6 7 8 9 10"
Open a web browser (or something else that supports "many buttons") an check if everything works the way you want. If, in example, button 9 and 10 do what you think button 4 and 5 actually should do, then run again 'xmodmap' but this time:
Code:

xmodmap -e "pointer = 1 2 3 6 7 8 9 10 4 5"
Remember that 'wheel-up' as well as 'wheel-down' are also just buttons (so you can also configure that scolling up and down works like left- and right-button) Play around with these numbers until everything feels good for you, or ask google; I guess that someone already figured out the usual button-mapping for your mouse.

However, when you know the correct order then write it to the file '/etc/X11/Xmodmap' (maybe you have to create this). The file should contain something like:
Code:

pointer = 1 2 3 6 7 8 9 10 4 5

Donniey 01-20-2006 10:51 PM

Ok, that did it. thanks for all the help


All times are GMT -5. The time now is 01:31 PM.