LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 02-09-2005, 03:31 PM   #1
TruANTOlogy
Member
 
Registered: Jan 2005
Location: Baltimore, MD; Planet Earth
Distribution: Ubuntu 6.06
Posts: 41

Rep: Reputation: 15
Red face making all mouse buttons work in slackware 10.1


Hey all,

Running slackware 10.1 and want to utilize all buttons on my mouse.
I have a Logitech LX 750 Combo (Wireless Mouse & Keyboard).
My Mouse buttons are as follows:
Left Click, Middle Click (Scroll wheel), Right Click, Side Click#1 (Top), Side Click#2 (Bottom), & Application Button (Below the scrollwheel)
This Mouse has a 4-way scrollwheel (Up, Down, Left & Right)

My Main reason for wanting all the buttoins is so that I can navigate through webpages (Firefox) and folders/files (Konqueror) using the side buttons as "Back" and "Forward".

Any Idea How to accomplish this?

Thanks In Advance,
Patrick

ps, included is the "InputDevice" Section of my xorg.conf

Code:
Section "InputDevice"

	Identifier  "Mouse1"
	Driver  "mouse"
	Option  "Protocol"	"IMPS/2"
	Option  "Device"	"/dev/mouse"
	Option  "ZAxisMapping"	"4 5"

EndSection
 
Old 02-09-2005, 03:39 PM   #2
Okie
Member
 
Registered: Mar 2002
Location: Oklahoma
Posts: 964

Rep: Reputation: 34
thats what i use to make my optical wheel mouse work is what you posted, what i do that most Slackers would probably call wrong is, i delete those three xorg files in /etc/X11 and rebuild a new one by running xorgconfig from the console, then add the section for the mouse just as you have posted...
 
Old 02-09-2005, 03:43 PM   #3
TruANTOlogy
Member
 
Registered: Jan 2005
Location: Baltimore, MD; Planet Earth
Distribution: Ubuntu 6.06
Posts: 41

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Okie
thats what i use to make my optical wheel mouse work is what you posted, what i do that most Slackers would probably call wrong is, i delete those three xorg files in /etc/X11 and rebuild a new one by running xorgconfig from the console, then add the section for the mouse just as you have posted...
That setting only allows the vert scroll work, i want to make the side buttons work as well
 
Old 02-09-2005, 03:55 PM   #4
Okie
Member
 
Registered: Mar 2002
Location: Oklahoma
Posts: 964

Rep: Reputation: 34
sounds like you have more buttons on your mouse than i do, as i only have a three button wheelmouse, i think it wont be much different something like Option "ZAxisMapping" "4 5 6 7" but i do not know the syntax exactly so i would definitly get a second opinion from someone that is more familier with configuring a mouse with 7 buttons...
 
Old 02-09-2005, 04:03 PM   #5
coffeedrinker
Member
 
Registered: Sep 2003
Posts: 173

Rep: Reputation: 30
imwheel will let you set the side buttons to whatever you want for each program
 
Old 02-09-2005, 04:37 PM   #6
TruANTOlogy
Member
 
Registered: Jan 2005
Location: Baltimore, MD; Planet Earth
Distribution: Ubuntu 6.06
Posts: 41

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by coffeedrinker
imwheel will let you set the side buttons to whatever you want for each program
thanks, now all i have to do is google imwheel...shouldnt be hard...will update the thread to let you all know if it works or not.

Thanks,
Patrick
 
Old 02-09-2005, 04:42 PM   #7
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
TruANTOlogy, pleas keep this post updated with your results..

I've tried imwheel before, and was so confused where the closest i got was the side buttons going up and down a page, while the scroll button going backwards and farwards through the pages.. lol

Thanks =)
 
Old 02-09-2005, 09:06 PM   #8
Boow
Member
 
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669

Rep: Reputation: 32
try this web page out its for a microsoft explorer but you can adapt it to you mouse.

http://www.groundhog1.com/mouse/MSExplorer.html
 
Old 02-09-2005, 11:36 PM   #9
TruANTOlogy
Member
 
Registered: Jan 2005
Location: Baltimore, MD; Planet Earth
Distribution: Ubuntu 6.06
Posts: 41

Original Poster
Rep: Reputation: 15
::Update::

IMWheel indeed does confuse!
Will check out that link and update again...thanks again for everyones help
 
Old 02-10-2005, 11:12 AM   #10
TruANTOlogy
Member
 
Registered: Jan 2005
Location: Baltimore, MD; Planet Earth
Distribution: Ubuntu 6.06
Posts: 41

Original Poster
Rep: Reputation: 15
::Update::

I FINALLY GOT ALL BUTTONS SHOWING IN XEV!!!!!

Ok people, this is where I am now...
My buttons work as I want in Firefox:
  • My Scrollwheel Works!
  • My Side Buttons Work as "Back & Forward"
Reason being is that firefox has native support for side buttons (it maps 6 & 7 to "Back & Forward" automatically)
I still don't have the ability to use the side buttons in other apps (ie; Konqueror) yet as I dont know how to configure imwheel.
Here's what I did to make it work thus far:

I first made some changes to my xorg.conf (In your case it might be XFree86.Conf) located in /etc/X11/xorg.conf:
Code:
Section "InputDevice"

        Identifier  "Mouse1"
        Driver  "mouse"
        Option  "Protocol"      "ExplorerPS/2"  # apparently the only protocol that tells X to accept more                  
        Option  "Device"        "/dev/psaux"    #than 5 buttons
        Option  "ZAxisMapping"  "6 7"           # this tells x to make buttons 6 & 7 the z axis (up&down)
        Option  "Buttons"       "7"                   # total number of buttons

EndSection
The above changes made all buttons come up when I open up "xev" in the console. However, X now thought that my scroll wheel was my side buttons, and in firefox my scrollwheel acted as Back & Forward buttons! Well, next I did some button remapping by adding a line to my xinitrc.kde script located in /etc/X11/xinit/:
Code:
# Remaps Mouse Buttons:
/usr/X11R6/bin/xmodmap -e "pointer = 1 2 3 6 7 4 5"

# Start the window manager:
startkde
All done...things work perfectly in firefox (don't worry, the scrollwheel works everywhere else as well.
I couldn't quite get the whole IMWHEEL thing, for example, i understand that imwheel needs to be ran at every startup, but the script in the guide that boow gave us is just confusing...for example, what's this?:
Code:
 [ -r /etc/sysconfig/mouse ] && . /etc/sysconfig/mouse
and this?:
Code:
BINARY=$(which imwheel)
$BINARY -p -b "67"
# imwheel ends here
If anyone knows what the above items are, please let us know

Thanks,
Patrick (TruANT)
 
Old 02-10-2005, 12:23 PM   #11
coffeedrinker
Member
 
Registered: Sep 2003
Posts: 173

Rep: Reputation: 30
Here's what I do for imwheel:

get the package from:
http://imwheel.sourceforge.net/

in your .xinitrc or .xprofile or wherever you want before your window manager starts:
xmodmap -e "pointer = 1 2 3 6 7 4 5"
imwheel -k -b 0067

in ~/.imwheelrc for individual user settings:
"Mozilla$"
None, Left, Control_L|Page_Down
None, Right, Alt_R|Left

"Konqueror$"
None, Right, Alt_L|Left

These settings get one side button going to next tab in Mozilla and the other as a back button. The konq setting gets me a back button. I don't use imwheel for anything else, but you follow the example above.
 
Old 02-10-2005, 07:57 PM   #12
TruANTOlogy
Member
 
Registered: Jan 2005
Location: Baltimore, MD; Planet Earth
Distribution: Ubuntu 6.06
Posts: 41

Original Poster
Rep: Reputation: 15
w00t!!!

Got it working...here is What I did:

"/etc/X11/xorg.conf"
Code:
Section "InputDevice"

        Identifier  "Mouse1"
        Driver  "mouse"
        Option  "Protocol"      "ExplorerPS/2"  # apparently the only protocol that tells X to accept more                  
        Option  "Device"        "/dev/psaux"    #than 5 buttons
        Option  "ZAxisMapping"  "6 7"           # this tells x to make buttons 6 & 7 the z axis (up&down)
        Option  "Buttons"       "7"                   # total number of buttons

EndSection
"/etc/X11/xinit/xinitrc.kde'
Code:
# Remaps Mouse Buttons & Adds "IMWheel" functionality:
/usr/X11R6/bin/xmodmap -e "pointer = 1 2 3 6 7 4 5"
imwheel -k -b 0067

# Start the window manager:
startkde
"etc/X11/imwheel/imwheelrc"
Code:
".*"
None, Left, Alt_L|Left
None, Right, Alt_L|Right
If anyone has any questions, feel free to email me at duffboy12345@hotmail.com

Thanks Again To EVERYONE who helped get me this far!!

Peace,
TruANT
 
Old 02-11-2005, 01:20 AM   #13
coffeedrinker
Member
 
Registered: Sep 2003
Posts: 173

Rep: Reputation: 30
Glad you got it working.

You might want to remove your custom settings out of /etc/X11/xinit/xinitrc.kde and put them in .xinitrc instead. If you upgrade your kde packages in the future that file will be overwritten and you'll have to set it up again.

There is also a benefit of using .imwheelrc in your home directory too. I can make backing up custom settings easier rather than having various files in etc needing to be restored if you reinstall.

Ultimately, it still works either way though.
 
Old 02-11-2005, 06:35 AM   #14
TruANTOlogy
Member
 
Registered: Jan 2005
Location: Baltimore, MD; Planet Earth
Distribution: Ubuntu 6.06
Posts: 41

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by coffeedrinker
Glad you got it working.

You might want to remove your custom settings out of /etc/X11/xinit/xinitrc.kde and put them in .xinitrc instead. If you upgrade your kde packages in the future that file will be overwritten and you'll have to set it up again.

There is also a benefit of using .imwheelrc in your home directory too. I can make backing up custom settings easier rather than having various files in etc needing to be restored if you reinstall.

Ultimately, it still works either way though.
good thoughs, thanks!
 
  


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
How can I get 3 buttons to work on my Evoluent mouse? MamaWombat Linux - Newbie 2 09-26-2005 05:17 PM
Mouse buttons (any) don't work gmlion Linux - Hardware 3 06-15-2005 12:55 PM
Updated system, now mouse wheel/buttons don't work dandrzejewski Fedora 1 03-06-2005 07:27 AM
Getting extra mouse buttons to work Valhalla Linux - Hardware 4 12-04-2004 03:46 PM
Getting extra mouse buttons to work rhraz Linux - Hardware 12 02-20-2004 02:04 PM


All times are GMT -5. The time now is 04:02 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