LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-11-2004, 06:22 PM   #1
schbond
Member
 
Registered: May 2002
Distribution: Gentoo
Posts: 54

Rep: Reputation: 15
extra mouse buttons in Firefox 0.8


I upgraded to Firefox 0.8 from Firebird 0.7, and now my extra mouse buttons don't work. I am using a Logitech MX500 optical USB mouse. Namely, the Forward and Back navigation buttons don't work. Well, technically they work, but the Back button now functions as page scroll up (e.g. scrollwheel up, keyboard up arrow) and the Forward buttons acts as a scroll down function. They worked in FB 0.7 and they still work in other applications (Konqueror, Mozilla 1.6, Epiphany, etc). Does Firefox 0.8 map buttons independently from X or what's going on? Is anyone else experiencing this?

relevant XF86Config lines:
Code:
    Identifier  "Mouse1"
    Driver      "mouse"
    Option "Protocol"    "ExplorerPS/2"
    Option "Device"      "/dev/input/mice"
    Option "ZAxisMapping" "6 7"
    Option "Buttons"    "7"
    Option "Emulate3Buttons" "yes"
relevant ~/.xinitrc lines:
Code:
# Logitech MX500 settings
/usr/X11R6/bin/xmodmap -e "pointer = 1 2 3 6 7 4 5"
BINARY=$(which imwheel)
$BINARY -k -p -b "67"
 
Old 02-11-2004, 06:52 PM   #2
dave_blob
Member
 
Registered: Nov 2003
Distribution: Slackware 9.1
Posts: 41

Rep: Reputation: 15
check this thread out, i had the same problem and solved it, its detailed in this thread

http://www.linuxquestions.org/questi...hreadid=144405
 
Old 02-11-2004, 07:21 PM   #3
schbond
Member
 
Registered: May 2002
Distribution: Gentoo
Posts: 54

Original Poster
Rep: Reputation: 15
hmmm... this didn't show up when I searched. Anyway, I tried it, and now the back/forward buttons on the side of the mouse don't work at all in Firefox (not even as up/down arrow functions). Any ideas?
 
Old 02-11-2004, 07:26 PM   #4
dave_blob
Member
 
Registered: Nov 2003
Distribution: Slackware 9.1
Posts: 41

Rep: Reputation: 15
did you modify the ~/.imwheelrc file? it should look like this (slightly revised)

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

"(null)"
None, Left, Alt_L|Left
None, Right, Alt_L|Right


For some reason firefox 0.8's window name is '(null)', so im pretty confident this will fix your problem

Last edited by dave_blob; 02-11-2004 at 07:27 PM.
 
Old 02-11-2004, 07:37 PM   #5
schbond
Member
 
Registered: May 2002
Distribution: Gentoo
Posts: 54

Original Poster
Rep: Reputation: 15
yes, I edited both ~/.imwheelrc and /etc/imwheelrc just to be sure. Back/Forward buttons do not work at all now -- they used to work everywhere but Firefox. This is strange.
 
Old 02-11-2004, 08:14 PM   #6
schbond
Member
 
Registered: May 2002
Distribution: Gentoo
Posts: 54

Original Poster
Rep: Reputation: 15
ok, I changed some things around in .xinitrc and now buttons 6 and 7 work, just not as Back/Forward respectively. This is really starting to bug me...
 
Old 02-11-2004, 09:09 PM   #7
dave_blob
Member
 
Registered: Nov 2003
Distribution: Slackware 9.1
Posts: 41

Rep: Reputation: 15
maybe try without emulate 3 buttons? doubt it will help but anyway.

try backing up your /etc/X11/imwheelrc and then move the .imwheelrc from your home dir, renaming it to imwheelrc. Then the idea is you'll have only one conf file, with only the two options ".*" and "(null)". this knocks out a few variables, until you can figure out whats wrong.
Have you used xev? what key/button codes do the thumb buttons and wheel return?
If correctly set up the thumb buttons will register "alt" and "Left" or "Alt|L" (for the back button) when pressed, in the xev terminal output.
 
Old 02-11-2004, 09:47 PM   #8
schbond
Member
 
Registered: May 2002
Distribution: Gentoo
Posts: 54

Original Poster
Rep: Reputation: 15
Option "Emulate3Buttons" "yes" ...didn't do anything.

the single imwheelrc file didn't work either. In fact, all it did was make both button 6 and 7 act as 'up arrow' keys.

xev outputs.... button 6:
Code:
ButtonPress event, serial 27, synthetic NO, window 0x1000001,
    root 0xaf, subw 0x0, time 248519, (105,139), root:(919,156),
    state 0x10, button 6, same_screen YES

ButtonRelease event, serial 27, synthetic NO, window 0x1000001,
    root 0xaf, subw 0x0, time 248671, (105,139), root:(919,156),
    state 0x10, button 6, same_screen YES
and button 7:
Code:
ButtonPress event, serial 27, synthetic NO, window 0x1200001,
    root 0xaf, subw 0x0, time 293991, (94,111), root:(127,160),
    state 0x10, button 7, same_screen YES

ButtonRelease event, serial 27, synthetic NO, window 0x1200001,
    root 0xaf, subw 0x0, time 294135, (94,111), root:(127,160),
    state 0x10, button 7, same_screen YES
 
Old 02-11-2004, 10:22 PM   #9
schbond
Member
 
Registered: May 2002
Distribution: Gentoo
Posts: 54

Original Poster
Rep: Reputation: 15
ok, I am continually changing things, and now I have the buttons working as left-right scrolling (side-to-side). How do I bind these actions to the Back/Forward buttons in Firefox?

I re-installed imwheel, didn't change XF86Config, and here's my current (relevant lines) imwheelrc:

"(null)"
None, Up, Alt_L|Left
None, Down, Alt_L|Right

".*"
None, Up, Alt_L|Left
None, Down, Alt_L|Right
 
Old 02-11-2004, 10:29 PM   #10
dave_blob
Member
 
Registered: Nov 2003
Distribution: Slackware 9.1
Posts: 41

Rep: Reputation: 15
well the problem is to do with imwheel methinks, because the buttons are being reported by x, so the Xconfig part is fine, but theyre not being bound to the key combinations you want. Thats imwheel's job.

what version of imwheel are you running? (imwheel -v)
can you see any errors/msgs in the X logfile to do with imwheel or xmodmap? because i had problems with imwheel not starting properly...

also, just curious, y dont u just use
exec imwheel -k -p -b "67"

instead of

BINARY=$(which imwheel)
$BINARY -k -p -b "67"
 
Old 02-11-2004, 10:43 PM   #11
schbond
Member
 
Registered: May 2002
Distribution: Gentoo
Posts: 54

Original Poster
Rep: Reputation: 15
using imwheel 1.0.0pre5 (after having tried pre2). Similar results with both.

/var/log/XFree86.log snippet:

(**) Option "Protocol" "ExplorerPS/2"
(**) Mouse1: Protocol: "ExplorerPS/2"
(**) Option "CorePointer"
(**) Mouse1: Core Pointer
(**) Option "Device" "/dev/input/mice"
(**) Option "Buttons" "7"
(**) Mouse1: Emulate3Buttons, Emulate3Timeout: 50
(**) Option "ZAxisMapping" "6 7"
(**) Mouse1: ZAxisMapping: buttons 6 and 7
(**) Mouse1: Buttons: 7

seems like everything is noticed properly.

as for the .xinitrc file, I have since changed it to:
exec xmodmap -e "pointer = 1 2 3 6 7 4 5" &
exec imwheel -k -p -b -f "67" &

thus removing the unnecessary BINARY variable.
 
Old 02-11-2004, 11:17 PM   #12
dave_blob
Member
 
Registered: Nov 2003
Distribution: Slackware 9.1
Posts: 41

Rep: Reputation: 15
pre 5? didnt the guy in the other thread say that if you were usin that build, u need to use
imwheel -k -p -b -f "0067" ?
 
Old 02-12-2004, 06:30 AM   #13
schbond
Member
 
Registered: May 2002
Distribution: Gentoo
Posts: 54

Original Poster
Rep: Reputation: 15
Quote:
pre 5? didnt the guy in the other thread say that if you were usin that build, u need to use imwheel -k -p -b -f "0067" ?
yes, and I've tried that as well. I am really at a loss for what else to try.
 
Old 02-12-2004, 07:36 AM   #14
mpb98
LQ Newbie
 
Registered: Feb 2004
Distribution: Mandrake 9.2
Posts: 3

Rep: Reputation: 0
Hi, I had the same problem. I got mine working by changing ~/.imwheelrc from:


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


to...


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


Hope this helps!
 
Old 02-12-2004, 12:53 PM   #15
schbond
Member
 
Registered: May 2002
Distribution: Gentoo
Posts: 54

Original Poster
Rep: Reputation: 15
hi mpb98, thanks, but it didn't work for me.
 
  


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
X Doesn't Seem To Hear My Extra Mouse Buttons JamieKitson Linux - Newbie 6 12-08-2004 03:51 AM
extra mouse buttons in Mozilla? zoinksbob Slackware 2 07-06-2004 02:19 AM
Actions for extra mouse buttons pavgust Linux - Hardware 0 04-22-2004 06:33 AM
Getting extra mouse buttons to work rhraz Linux - Hardware 12 02-20-2004 02:04 PM
Can you use the extra buttons on a Microsoft mouse? Tyir Linux - Newbie 1 10-10-2003 12:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:51 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
Open Source Consulting | Domain Registration