LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   extra mouse buttons in Firefox 0.8 (https://www.linuxquestions.org/questions/linux-software-2/extra-mouse-buttons-in-firefox-0-8-a-144991/)

schbond 02-11-2004 06:22 PM

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"


dave_blob 02-11-2004 06:52 PM

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

http://www.linuxquestions.org/questi...hreadid=144405

schbond 02-11-2004 07:21 PM

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?

dave_blob 02-11-2004 07:26 PM

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

schbond 02-11-2004 07:37 PM

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.

schbond 02-11-2004 08:14 PM

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...

dave_blob 02-11-2004 09:09 PM

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.

schbond 02-11-2004 09:47 PM

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


schbond 02-11-2004 10:22 PM

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

dave_blob 02-11-2004 10:29 PM

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"

schbond 02-11-2004 10:43 PM

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.

dave_blob 02-11-2004 11:17 PM

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" ?

schbond 02-12-2004 06:30 AM

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.

mpb98 02-12-2004 07:36 AM

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!

schbond 02-12-2004 12:53 PM

hi mpb98, thanks, but it didn't work for me.


All times are GMT -5. The time now is 08:47 PM.