LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 02-18-2004, 11:21 AM   #1
rhraz
Member
 
Registered: Feb 2004
Distribution: Mandrake 9.2
Posts: 80

Rep: Reputation: 15
Getting extra mouse buttons to work


Ok, So i've seen several post on this and this is what i can gather that my files should look like...

my XF config section:
#################
Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/mouse"
Option "Buttons" "7"
Option "ZAxisMapping" "6 7"
EndSection
#########

my created ~/.imwheelrc:
##########
".*"
None, Up, Alt_L|Left
None, Down, Alt_L|Right
##########

added to my .xinitrc
##############
exec xmodmap -e "pointer = 1 2 3 6 7 4 5" &
exec imwheel -p -k -b 67
#############

I got imwheel installed and my XF config changed no problem. My question is how do i create that .imwheelrc file and where should it be created? Also, where is that .xinitrc file?
 
Old 02-18-2004, 11:28 AM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
you make them yourself ....
files like these don't exist by default ...
and the ~ in the commands is equal to /home/user
 
Old 02-18-2004, 11:31 AM   #3
rhraz
Member
 
Registered: Feb 2004
Distribution: Mandrake 9.2
Posts: 80

Original Poster
Rep: Reputation: 15
Ok, what kind of file should it be? Just a regular text file?
 
Old 02-18-2004, 11:35 AM   #4
bnice
Member
 
Registered: Feb 2004
Location: Sacramento, CA
Distribution: Slack 9.1, slackware-current
Posts: 284

Rep: Reputation: 30
both are hidden files in your home directory... they are personalized versions of system files

/etc/X11/xinitrc
/etc/X11/imwheel/imwheelrc

they need only contain the lines in the previous post. Create them with your favorite text editor.

BTW, to make my Explorer PS/2 work, I had to use:

imwheel -k -f -b "0067"

in .xinitrc

cheers
 
Old 02-18-2004, 12:38 PM   #5
rhraz
Member
 
Registered: Feb 2004
Distribution: Mandrake 9.2
Posts: 80

Original Poster
Rep: Reputation: 15
Can you add those lines directly to these files /etc/X11/xinitrc
/etc/X11/imwheel/imwheelrc or do you have to create the text file for it to work? I did it directly into those files without creating new ones and now my wheel is all messed up (doesn't scroll up and down). The back button works but the forward button right clicks . There are buttons to the top and bottom of my scroll wheel that do the back and foward perfectly. But i want the side buttons to do it.
 
Old 02-18-2004, 01:06 PM   #6
bnice
Member
 
Registered: Feb 2004
Location: Sacramento, CA
Distribution: Slack 9.1, slackware-current
Posts: 284

Rep: Reputation: 30
yes and no.
/etc/X11/xinitrc gets read on startup

/etc/X11/imwheel/imwheelrc does not, it's just there to demonstrate options for different programs.

how many buttons do you REALLY have?
The examples I've given are for a MS Optical Explorer with: "5" buttons
Button Button #

left button 1
left side button 6
wheel up 4
wheel click 2
wheel down 5
right button 3
right side button 7

what's your current .imwheelrc setup?

Edit: You may also want to run `xev` to see how X is identifying your buttons

Last edited by bnice; 02-18-2004 at 01:10 PM.
 
Old 02-18-2004, 04:54 PM   #7
rhraz
Member
 
Registered: Feb 2004
Distribution: Mandrake 9.2
Posts: 80

Original Poster
Rep: Reputation: 15
Ok, here's the deal. I got the foward and back button working on. However the wheel scrolls the page horizontally and not vertically now. Here is what my config files look like...

XF86Config -

Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/mouse"
Option "Buttons" "7"
Option "ZAxisMapping" "6 7"
EndSection


.imwheelrc -

".*"
None, Up, Alt_L|Left
None, Down, Alt_L|Right

.xinitrc

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


I have an MX500 mouse and it has 9 buttons when you count scrolling up and down as a button.
 
Old 02-18-2004, 05:07 PM   #8
rhraz
Member
 
Registered: Feb 2004
Distribution: Mandrake 9.2
Posts: 80

Original Poster
Rep: Reputation: 15
Also, i couldn't get 'zev' to run. I got a "command not found" message.
 
Old 02-19-2004, 02:48 PM   #9
bnice
Member
 
Registered: Feb 2004
Location: Sacramento, CA
Distribution: Slack 9.1, slackware-current
Posts: 284

Rep: Reputation: 30
well, that's a different animal...

include<disclaimer.h>
I have never configured a 9 button mouse

imwheel man page

Quote:
XF86Config -

Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/mouse"
Option "Buttons" "9"
Option "ZAxisMapping" "8 9"
EndSection


.imwheelrc -

".*"
None, Up, Alt_L|Left
None, Down, Alt_L|Right

.xinitrc

exec xmodmap -e "pointer = 1 2 3 8 9 4 5 6 7" &
exec imwheel -p -k -b "000089"
I *think* this'll work, see disclaimer above...
Check the man page, save your current configs, and play with it...
 
Old 02-19-2004, 06:23 PM   #10
rhraz
Member
 
Registered: Feb 2004
Distribution: Mandrake 9.2
Posts: 80

Original Poster
Rep: Reputation: 15
Well, I used the configuration you gave me. That got it the closest so far. The foward and back buttons work but my wheel up makes the page scroll down and the only thing i can see that wheel down does is highlight files (it's different that left click as left click actually opens the files). Apparently i don't have zev as i tried to run it but it gives me a command not found message.
 
Old 02-20-2004, 09:56 AM   #11
bnice
Member
 
Registered: Feb 2004
Location: Sacramento, CA
Distribution: Slack 9.1, slackware-current
Posts: 284

Rep: Reputation: 30
XXXXX, that's xev X E V
 
Old 02-20-2004, 12:40 PM   #12
rhraz
Member
 
Registered: Feb 2004
Distribution: Mandrake 9.2
Posts: 80

Original Poster
Rep: Reputation: 15
Ahh, sorry, xev doesn't work either though .
 
Old 02-20-2004, 02:04 PM   #13
bnice
Member
 
Registered: Feb 2004
Location: Sacramento, CA
Distribution: Slack 9.1, slackware-current
Posts: 284

Rep: Reputation: 30
hmmm,
no, that's not right...
errr...

AHA!

RedHat nixed it after 7.2, so the stepchild, (Mandrake) must have as well...
You can pick it up here if you like...

Last edited by bnice; 02-20-2004 at 02:08 PM.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Programming extra mouse buttons? dive Slackware 1 07-23-2005 12:00 AM
How does one get the Extra mouse buttons on a Logitech MX 1000 to work chakkerz Linux - Hardware 4 01-22-2005 12:38 PM
X Doesn't Seem To Hear My Extra Mouse Buttons JamieKitson Linux - Newbie 6 12-08-2004 03:51 AM
Getting extra mouse buttons to work Valhalla Linux - Hardware 4 12-04-2004 03:46 PM
extra mouse buttons in Mozilla? zoinksbob Slackware 2 07-06-2004 02:19 AM


All times are GMT -5. The time now is 11:54 PM.

Main Menu
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