LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-23-2004, 03:22 PM   #1
(!~CoW~!)
Member
 
Registered: Nov 2003
Location: Ottawa, Ontario
Distribution: Slax 10.0
Posts: 56

Rep: Reputation: 15
Logitech MX510 + Slack 10.0 + xorg


Code:
# **********************************************************************
# Core Pointer's InputDevice section
# **********************************************************************

Section "InputDevice"

# Identifier and driver

    Identifier	"Mouse1"
    Driver	"mouse"

# On platforms where PnP mouse detection is supported the following
# protocol setting can be used when using a newer PnP mouse:

#    Option     "Protocol"      "Auto"

# The available mouse protocols types that you can set below are:
#    Auto BusMouse GlidePoint GlidePointPS/2 IntelliMouse IMPS/2
#    Logitech Microsoft MMHitTab MMSeries Mouseman MouseManPlusPS/2
#    MouseSystems NetMousePS/2 NetScrollPS/2 OSMouse PS/2 SysMouse
#    ThinkingMouse ThinkingMousePS/2 Xqueue
    Option "Protocol"    "ExplorerPS/2"
    Option "ZAxisMapping" "6 7"
# The mouse device.  The device is normally set to /dev/mouse,
# which is usually a symbolic link to the real device.
    Option "Buttons"	 "7"
    Option "Device"      "/dev/mouse"
#   Option "Device"      "/dev/psaux"
#   Option "Device"      "/dev/ttyS0"
#   Option "Device"      "/dev/ttyS1"

# When using XQUEUE, comment out the above two lines, and uncomment
# the following line.

#    Option "Protocol"	"Xqueue"

# Baudrate and SampleRate are only for some Logitech mice. In
# almost every case these lines should be omitted.

#    Option "BaudRate"		"9600"
#    Option "SampleRate"	"150"

# Emulate3Buttons is an option for 2-button Microsoft mice
# Emulate3Timeout is the timeout in milliseconds (default is 50ms)

#    Option "Emulate3Buttons"
#    Option "Emulate3Timeout"    "50"

# ChordMiddle is an option for some 3-button Logitech mice

#    Option "ChordMiddle"

EndSection

# Some examples of extended input devices

# Section "InputDevice"
#    Identifier "spaceball"
#    Driver     "magellan"
#    Option     "Device"        "/dev/cua0"
# EndSection
#
# Section "InputDevice"
#    Identifier "spaceball2"
#    Driver     "spaceorb"
#    Option     "Device"        "/dev/cua0"
# EndSection
#
# Section "InputDevice"
#    Identifier "touchscreen0"
#    Driver     "microtouch"
#    Option     "Device"        "/dev/ttyS0"
#    Option     "MinX"          "1412"
#    Option     "MaxX"          "15184"
#    Option     "MinY"          "15372"
#    Option     "MaxY"          "1230"
#    Option     "ScreenNumber"  "0"
#    Option     "ReportingMode" "Scaled"
#    Option     "ButtonNumber"  "1"
#    Option     "SendCoreEvents"
# EndSection
#
# Section "InputDevice"
#    Identifier "touchscreen1"
#    Driver     "elo2300"
#    Option     "Device"        "/dev/ttyS0"
#    Option     "MinX"          "231"
#    Option     "MaxX"          "3868"
#    Option     "MinY"          "3858"
#    Option     "MaxY"          "272"
#    Option     "ScreenNumber"  "0"
#    Option     "ReportingMode" "Scaled"
#    Option     "ButtonThreshold"       "17"
#    Option     "ButtonNumber"  "1"
#    Option     "SendCoreEvents"
# EndSection
Thats my current mouse setup, any ideas on how to get the rest of my buttons (mainly scroll wheel) working would be greatly appreciated.
 
Old 10-23-2004, 05:41 PM   #2
blk96gt
Member
 
Registered: Jun 2004
Location: Nacogdoches, TX
Distribution: Ubuntu 7.04
Posts: 230

Rep: Reputation: 30
Try this command in a terminal and then see if the scrollbar works:
Code:
xmodmap -e "pointer = 1 2 3 6 7 4 5"
Your forward and back buttons should also work in your browser now too.

If that command worked, add that line somewhere in your ~/.xinitrc file.
 
Old 10-23-2004, 07:08 PM   #3
TenEighty
Member
 
Registered: Oct 2004
Location: Vancouver, B.C., Canada
Distribution: Kubuntu
Posts: 59

Rep: Reputation: 15
no go

I also have a logitech wheel mouse, which is functioning in Slackware 10.0 as a three button mouse only. I ran xmodmap from KDE with command tail you indicated but it didn't seem to change anything.


Exactly what is xmodmap doing here, or what is it that we want it to do? Seems it must be remapping a device named "pointer", but what does the sequence of numbers represent.

Last edited by TenEighty; 10-23-2004 at 07:24 PM.
 
Old 10-23-2004, 08:03 PM   #4
blk96gt
Member
 
Registered: Jun 2004
Location: Nacogdoches, TX
Distribution: Ubuntu 7.04
Posts: 230

Rep: Reputation: 30
Here's what the InputSection for your mouse should look like to get the xmodmap command to work.
Code:
Section "InputDevice"
    Identifier  "Mouse1"
    Driver      "mouse"
    Option "Protocol"    "ExplorerPS/2"
    Option "ButtonNumber" "7"
    Option "Buttons"    "7"
    Option "Device"      "/dev/mouse"
    Option "InputFashion" "Mouse"
    Option "ZAxisMapping" "6 7"
EndSection
From what I have gathered, for this mouse(MX510), the Scrollbar buttons are considered buttons 6 and 7 when you tell xorg that the mouse is 7 buttons. However, most applications expect the Z-axis buttons to be 4 and 5. xmodmap allows the remapping of keys from the keyboard and mouse. If you run this command(as long as you have enabled seven buttons, and you haven't ran the xmodmap command I specified in my first post):
Code:
xmodmap -pp
you should get an output looking something like this:
Code:
Physical                 Button
 Button                   Code
   1                        1
   2                        2
   3                        3
   4                        4
   5                        5
   6                        6
   7                        7
Now if you were to run this command:
Code:
xmodmap -e "pointer = 1 2 3 6 7 4 5"
your output should look like this:
Code:
Physical                 Button
 Button                   Code
   1                        1
   2                        2
   3                        3
   4                        6
   5                        7
   6                        4
   7                        5
What that command does is remaps the physical 4 and 5 buttons(thumb buttons) to 6 and 7, and the physical 6 and 7 buttons(Z-axis) to 4 and 5, which is what most applications are expecting.

Hope this explains everything.

Last edited by blk96gt; 10-23-2004 at 08:06 PM.
 
Old 10-28-2004, 02:50 PM   #5
(!~CoW~!)
Member
 
Registered: Nov 2003
Location: Ottawa, Ontario
Distribution: Slax 10.0
Posts: 56

Original Poster
Rep: Reputation: 15
Alright, scroll bar works now, thank you very much, side buttons, however, still don't function... It may just be Konqueror though,

Edit: nevermind, by some quirk of phate its working now

Last edited by (!~CoW~!); 10-28-2004 at 03:27 PM.
 
Old 11-06-2004, 11:14 PM   #6
beajedi
Member
 
Registered: Jan 2003
Distribution: Slackware 9.1
Posts: 67

Rep: Reputation: 15
Quote:
Originally posted by blk96gt
Try this command in a terminal and then see if the scrollbar works:
Code:
xmodmap -e "pointer = 1 2 3 6 7 4 5"
Your forward and back buttons should also work in your browser now too.

If that command worked, add that line somewhere in your ~/.xinitrc file.
It works, but where do I put it in my ~/.xinitrc file?

Can you post yours (if it works) so I can see where I can put it?
 
Old 11-07-2004, 01:00 AM   #7
blk96gt
Member
 
Registered: Jun 2004
Location: Nacogdoches, TX
Distribution: Ubuntu 7.04
Posts: 230

Rep: Reputation: 30
I added it right before the window manager starts. So if you're using KDE, put it right before the startkde command.
 
Old 11-08-2004, 03:13 AM   #8
beajedi
Member
 
Registered: Jan 2003
Distribution: Slackware 9.1
Posts: 67

Rep: Reputation: 15
does it matter if I'm using GDM?

I'm using run level 4 in my inittab (its the run level that starts up straight into X in slackware). Does it look at the /.xinitrc when I boot this way?
 
Old 11-11-2004, 05:10 AM   #9
(!~CoW~!)
Member
 
Registered: Nov 2003
Location: Ottawa, Ontario
Distribution: Slax 10.0
Posts: 56

Original Poster
Rep: Reputation: 15
Got everything working, thanks for the help
 
Old 12-05-2004, 08:32 AM   #10
Borka
Member
 
Registered: Jun 2004
Location: Sweden
Distribution: Ubuntu right now :/
Posts: 85

Rep: Reputation: 15
hmm, I just installing mine correctly,
I have to use "ZAxisMapping" "4 5" intsted of "6 7", and I get it to work..
the problems I get is that, sometimes the scrollbuttons (over and under the scroll wheel) don't do what they shuld, the one that is suposed to scroll uppwards sometimes go backwards in the page history, and the one that shuld scroll down, always marks the text while it does it, anyone got a fix for this?
 
Old 12-16-2004, 06:16 PM   #11
gotmonkey
Member
 
Registered: Apr 2004
Location: Dearborn, Mi
Distribution: Slackware 10 & Xandros 3
Posts: 62

Rep: Reputation: 15
Quote:
Originally posted by (!~CoW~!)
Got everything working, thanks for the help
question: how did you get it to work?

I modified my
xorg.conf

xmodmap -e "pointer = 1 2 3 6 7 4 5"

it works when I do that.

I added the that line in the .xinitrc just before the window mgr

/usr/X11/bin/xmodmap -e "pointer = 1 2 3 6 7 4 5"

I log out of x windows, log in and it still shows button code of 1 2 3 4 5 6 7
when I run /usr/X11/bin/xmodmap -pp


any idea how to fix it?

Update: From another post, I ran in console
echo "pointer = 1 2 3 6 7 4 5" > ~/.Xmodmap
restarted X
works fine in mozilla


Last edited by gotmonkey; 12-19-2004 at 08:06 PM.
 
Old 01-17-2005, 03:52 AM   #12
Douwe
Member
 
Registered: Jun 2002
Location: the Netherlands
Distribution: Slackware, Zenwalk
Posts: 38

Rep: Reputation: 15
Quote:
Originally posted by gotmonkey
question: how did you get it to work?

I modified my
xorg.conf

xmodmap -e "pointer = 1 2 3 6 7 4 5"

it works when I do that.

I added the that line in the .xinitrc just before the window mgr

/usr/X11/bin/xmodmap -e "pointer = 1 2 3 6 7 4 5"

I log out of x windows, log in and it still shows button code of 1 2 3 4 5 6 7
when I run /usr/X11/bin/xmodmap -pp


any idea how to fix it?
This is not the best solution in Slackware.
Quote:
Originally posted by gotmonkey
Update: From another post, I ran in console
echo "pointer = 1 2 3 6 7 4 5" > ~/.Xmodmap
restarted X
works fine in mozilla
This is a good solution. It makes the mouse available for this user.
If you want all users can profit from this, do:
echo "pointer = 1 2 3 6 7 4 5" >/usr/X11R6/lib/X11/xinit/.Xmodmap

Now you have made available this feature for all your Window Managers (KDE, Gnome, fluxbox, whatever you installed....).
Make a study of the handy Slack-shellscript /usr/X11R6/bin/xwmconfig to understand why the first solution is bad.
This shellscript is handy for choosing a WM if you boot your Slackware into console and then start the WM with startx (as I do).
But if you boot right into X, this will work too for you I guess (did not study that case).

Last edited by Douwe; 01-17-2005 at 03:59 AM.
 
  


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
having troubles using logitech-applet with mx510 hedpe Linux - Hardware 3 01-15-2009 05:44 PM
logitech mx510 mouse with synaptics touchpad voxel Linux - Laptop and Netbook 0 09-04-2005 07:03 PM
Logitech MX510 on linux hylke Linux - Hardware 2 10-30-2004 08:33 AM
Logitech MX510 AFI_Flame Linux - Newbie 2 09-27-2004 11:52 PM
logitech mx510 in Mandrake 10 OE dennqis Mandriva 0 06-04-2004 01:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:04 PM.

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