LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 01-06-2005, 05:07 AM   #1
ZaphyR
Member
 
Registered: Dec 2003
Distribution: Gentoo / Sabayon / Suse
Posts: 245

Rep: Reputation: 32
how do i switch mouse buttons


using xev i can see that all my buttons are working, but my wheel is working as my thumb buttons and vice versa.

scroll up is 6
scroll down is 7
thumb one is 4
thumb two is 5

it should be like this:

scroll up 4
scroll down 5
thumb one 6
thumb two 7

how do i switch the buttons???

thanks
 
Old 01-06-2005, 05:51 AM   #2
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
xmodmap

Cool
 
Old 01-06-2005, 06:28 AM   #3
ZaphyR
Member
 
Registered: Dec 2003
Distribution: Gentoo / Sabayon / Suse
Posts: 245

Original Poster
Rep: Reputation: 32
i have already tried xmodmap...without luck.

my xorg.conf looks like this at the moment:

Code:
Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "explorerps/2"
        Option      "InputFashion" "Mouse"
	Option      "Name" "Logitech MX510"
        Option      "Device" "/dev/mouse" # (/dev/input/mice also appears to work)
        Option      "Buttons" "7"
        Option        "ZAxisMapping" "6 7"
EndSection
and i have tried to change the buttons with these commands:

Code:
echo -e "pointer = 1 2 3 6 7 4 5\n" > ~/.Xmodmap
and/or

Code:
xmodmap -e "pointer = 1 2 3 6 7 4 5"
but the buttons remains the same....
 
1 members found this post helpful.
Old 01-06-2005, 06:42 AM   #4
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Try variations to ensure xmodmap is working, such as switching the 123 to 321

Cool
 
Old 01-06-2005, 09:06 AM   #5
ZaphyR
Member
 
Registered: Dec 2003
Distribution: Gentoo / Sabayon / Suse
Posts: 245

Original Poster
Rep: Reputation: 32
wow!

i did
Code:
xmodmap -e "pointer = 3 2 1 6 7 4 5"
and then the right and left mouse button changed place...but actually so did 6-7 and 4-5!!

so i did
Code:
xmodmap -e "pointer = 1 2 3 6 7 4 5"
and now all mouse buttons are working as they should!!

it seems xmodmap just needed a "kickstart"

thanks
 
1 members found this post helpful.
Old 01-07-2005, 04:58 AM   #6
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Sure, no problem

Cool
 
Old 01-09-2005, 06:52 PM   #7
ZaphyR
Member
 
Registered: Dec 2003
Distribution: Gentoo / Sabayon / Suse
Posts: 245

Original Poster
Rep: Reputation: 32
well, it doesnt work as well as i thought...
when i reboot, the changes are lost, and i have to xmodmap again to chane the buttons. this happens every time...

any suggestions?
 
Old 01-09-2005, 10:52 PM   #8
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
You normally call it inside your .xinit or .xsession file, so the change happens at that time.

Cool
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mouse buttons in linux dstjames Linux - Newbie 5 12-08-2005 06:30 PM
Switch middle and right buttons on tablet pen bb002 Linux - Hardware 1 10-06-2005 01:56 AM
mouse buttons 6 and 7 tardigrade Linux - Software 8 12-05-2004 11:25 PM
2 buttons and one wheel mouse vwal_13 Slackware 1 04-20-2004 10:51 AM
..But my mouse does have 5 buttons!!! Grimnir Linux - General 12 02-18-2002 08:15 AM


All times are GMT -5. The time now is 07:28 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration