LinuxQuestions.org
Review your favorite Linux distribution.
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 05-23-2003, 11:34 PM   #1
gwroy20
Member
 
Registered: Mar 2003
Location: New York City
Distribution: Slackware 9.1, FreeBSD 5.2.1, OpenBSD 3.3
Posts: 89

Rep: Reputation: 15
Another mouse thread


I'm almost ashamed to ask this, but through all the threads I've read I can't find a working solution.

I've got a Logitech Cordless optical mouse, the one with a scroll wheel and one side button on the left.

The scroll wheel works fine, and the side button is detected.

The problem is that the middle button and the side button are both assigned to the same number, they are both button 2. Therefore I've got a middle button and a side button that both do the same thing. I'd just like for the middle button to do what it's supposed to, and for the side button to be used for going backwards in my browser history.

My mouse protocol is IMPS/2
I've got Emulate 3rd Button disabled
Everything works fine except for these two buttons
 
Old 05-23-2003, 11:39 PM   #2
green_dragon37
Member
 
Registered: Oct 2002
Location: Lower Alabama
Distribution: Slackware, OpenBSD 3.9
Posts: 344

Rep: Reputation: 31
Hi! I have the same mouse, but mine works well! here is my config so you can compare.

I mapped my buttons as such:
xmodmap "pointer = 1 2 3 6 4 5"

XF86Config relevant section:
Code:
Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "ExplorerPS/2"
	Option	    "Device" "/dev/psaux"
	Option	    "ZAxisMapping" "5 6"
	Option	    "Buttons" "6"
	Option	    "Emulate3Buttons" "no"
EndSection
Ian

Last edited by green_dragon37; 05-24-2003 at 12:01 AM.
 
Old 05-24-2003, 12:15 AM   #3
gwroy20
Member
 
Registered: Mar 2003
Location: New York City
Distribution: Slackware 9.1, FreeBSD 5.2.1, OpenBSD 3.3
Posts: 89

Original Poster
Rep: Reputation: 15
Great! You've been a great help, thanks a lot.

1)Just 2 questions now. How would I configure xmodmap to run every time I start an X session?

2) Now that I've got the side button configured as it's own button, how would
I go about configuring it? I've read about imwheel. Is there any way to do it without installing anything else?

thanks again
 
Old 05-24-2003, 12:20 AM   #4
green_dragon37
Member
 
Registered: Oct 2002
Location: Lower Alabama
Distribution: Slackware, OpenBSD 3.9
Posts: 344

Rep: Reputation: 31
1) for the xmodmap, creating a file called .Xmodmap in your home directory and add the line "pointer = 1 2 3 6 4 5" should work.
2) Have no idea, I haven't gotten around to configuring my thumb button to do anything special yet...

Ian
 
Old 05-24-2003, 12:32 AM   #5
gwroy20
Member
 
Registered: Mar 2003
Location: New York City
Distribution: Slackware 9.1, FreeBSD 5.2.1, OpenBSD 3.3
Posts: 89

Original Poster
Rep: Reputation: 15
Thanks again for the help. It works, only there are no quotations used in the file.

If anyone knows about configuring that side button, please let me know.
 
Old 05-24-2003, 01:02 AM   #6
green_dragon37
Member
 
Registered: Oct 2002
Location: Lower Alabama
Distribution: Slackware, OpenBSD 3.9
Posts: 344

Rep: Reputation: 31
Thank you! You have inspired me! I got it working!! Here's how:

Download and install IMWheel. get it from http://jonatkins.org/imwheel/

create a file called .imwheelrc in your home directory with these lines:

".*"
None, Left, Alt_L | Left

run imwheel, and it will work!

set imwheel to start in your /etc/X11/xinit/xinitrc (or similar) by adding the line

imwheel -k &

to the end of the file, and it will work automagically. If you start X with "startx" add the line to your "~/.xinitrc" file instead!

Ian

Last edited by green_dragon37; 05-24-2003 at 01:08 AM.
 
Old 05-24-2003, 11:14 PM   #7
green_dragon37
Member
 
Registered: Oct 2002
Location: Lower Alabama
Distribution: Slackware, OpenBSD 3.9
Posts: 344

Rep: Reputation: 31
Hey, Did you get it working OK? I have some changes/suggestions to make it work better/smoother.

1) Change the .imwheelrc file to read:
Code:
"\(root\)"
None, Up, Button4
None, Up, Button5

".*"
None, Left, Alt_L | Left
None, Up, Button4
None, Up, Button5
And start imwheel with "imwheel -kr" instead of "imwheel -k" I changed it because when I ran mozilla next, it was scrolling a page at the time, instead of a few lines at the time. Also beacause I couldn't change my desktops in WindowMaker with my wheel anymore...

Ian
 
Old 05-25-2003, 03:43 AM   #8
gwroy20
Member
 
Registered: Mar 2003
Location: New York City
Distribution: Slackware 9.1, FreeBSD 5.2.1, OpenBSD 3.3
Posts: 89

Original Poster
Rep: Reputation: 15
Not yet, it's about 3:45 a.m and I'm just getting in. I thought I'd come on and mess around with a thing or two, so I'll post back asap
 
Old 05-26-2003, 04:34 PM   #9
gwroy20
Member
 
Registered: Mar 2003
Location: New York City
Distribution: Slackware 9.1, FreeBSD 5.2.1, OpenBSD 3.3
Posts: 89

Original Poster
Rep: Reputation: 15
I was unable to install imwheel yesterday, but I think that it was because I didn't install the Tex Typesetting series when I installed Slackware. I'm going to give it another try today.
 
  


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
[thread control suggestion] add a "solved" button that the thread starter can click atom LQ Suggestions & Feedback 3 03-24-2005 12:55 PM
another 5 button mouse trouble thread sheepdogj15 *BSD 11 01-07-2005 01:30 PM
Main thread sending notification to child thread rajesh_b Programming 1 09-22-2004 10:15 AM
can a reader thread and a writer thread r/w to same fd mxandres Programming 1 07-18-2004 11:56 PM
configure qt thread issue (just compiled qt w/ -thread option) cleff Linux - Software 8 05-08-2004 12:11 AM

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

All times are GMT -5. The time now is 05:14 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration