You are not logged in.

#1 2015-03-21 22:38:26

YAOMTC
Member
Registered: 2010-02-23
Posts: 207

How can I disable XF86Back / XF86Forward?

I want to make it so buttons 8 and 9 (the thumb buttons) no longer act as Forward and Back.

I found this page: https://wiki.archlinux.org/index.php/Al … ns_Working

where I find this bit of information:

In most modern applications which use back/forward features, XF86Back is mapped to back and XF86Forward is mapped to forward by default. On most MX mice the thumb buttons resolve to 8 & 9.

xev confirms these buttons are 8 and 9:

ButtonPress event, serial 40, synthetic NO, window 0x3400001,
    root 0x2d6, subw 0x0, time 3697158, (31,0), root:(1507,642),
    state 0x10, button 9, same_screen YES

ButtonRelease event, serial 40, synthetic NO, window 0x3400001,
    root 0x2d6, subw 0x0, time 3697323, (31,0), root:(1507,642),
    state 0x10, button 9, same_screen YES

ButtonPress event, serial 40, synthetic NO, window 0x3400001,
    root 0x2d6, subw 0x0, time 3698644, (31,0), root:(1507,642),
    state 0x10, button 8, same_screen YES

ButtonRelease event, serial 40, synthetic NO, window 0x3400001,
    root 0x2d6, subw 0x0, time 3699151, (31,0), root:(1507,642),
    state 0x10, button 8, same_screen YES

However I can't find a way to disable the XF86Back/Forward functions. I want these buttons to remain as buttons 8 and 9 (I use them for push-to-talk), I just don't want those extra functions.

Last edited by YAOMTC (2015-03-21 22:39:05)

Offline

#2 2015-03-21 22:43:47

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,520
Website

Re: How can I disable XF86Back / XF86Forward?

X will not map buttons to keys.  But there are many tools that may be doing this on your system - there is no way for us to know what the culprit might be if you don't tell us what you are running.  Do you use a DE?  If so which one?  If not, is something esle running that (re)maps keys?

EDIT: scratch that - xev confirms that these buttons have not been mapped to those keys on your system, so it must be the application in use that treats buttons 8/9 like forward/back.  What application is this?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2015-03-21 23:02:17

YAOMTC
Member
Registered: 2010-02-23
Posts: 207

Re: How can I disable XF86Back / XF86Forward?

Dolphin does this, Firefox does this, Chromium/Chrome does this, it seems to be fairly universal.

I'm using KDE, which lacks a specific setting for this - I've checked.

Last edited by YAOMTC (2015-03-21 23:02:55)

Offline

#4 2015-03-21 23:11:21

YAOMTC
Member
Registered: 2010-02-23
Posts: 207

Re: How can I disable XF86Back / XF86Forward?

I tried xbindkeys:

"NoCommand"
  b:8
"NoCommand"
  b:9

Doesn't change anything. I don't know if xbindkeys has the ability to stop something from happening, only to cause something to happen. I could be wrong but I don't see anything in the manual about this...

Offline

#5 2015-03-27 19:34:04

YAOMTC
Member
Registered: 2010-02-23
Posts: 207

Re: How can I disable XF86Back / XF86Forward?

I wonder if btnx would help with this. I might try compiling this for myself...

EDIT: Nope, doesn't solve this. I could see this being useful elsewhere, though.

Last edited by YAOMTC (2015-03-27 19:53:15)

Offline

#6 2015-03-27 21:18:32

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,520
Website

Re: How can I disable XF86Back / XF86Forward?

I'm pretty sure you need to remap those buttons to be other key/buttons.  Like I said above, xev in showing that those are not being recognized as XF86Forward/Back, but only as their button number.  The applications are responding to those button numbers with forward/back actions.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2015-03-27 21:31:07

YAOMTC
Member
Registered: 2010-02-23
Posts: 207

Re: How can I disable XF86Back / XF86Forward?

Ahh, okay! I'll have to try that, thanks!

Will just have to find a button that doesn't conflict with anything...

Offline

#8 2015-03-28 23:48:17

YAOMTC
Member
Registered: 2010-02-23
Posts: 207

Re: How can I disable XF86Back / XF86Forward?

After a bit of research, I still have no idea how to remap mouse buttons. Keyboard buttons seem fairly straightforward with xmodmap, but mice... not so much.

Offline

#9 2015-03-29 17:36:39

snakeroot
Member
Registered: 2012-10-06
Posts: 177

Re: How can I disable XF86Back / XF86Forward?

YAOMTC wrote:

After a bit of research, I still have no idea how to remap mouse buttons. Keyboard buttons seem fairly straightforward with xmodmap, but mice... not so much.

This does seem to be a bit underdocumented.

Here are some materials you may wish to review:

http://linus.haxx.se/2013/03/07/mouse-b … xorg-conf/
https://help.ubuntu.com/community/Mouse … ng_buttons
http://www.alanbriolat.co.uk/remapping- … lucid.html

So maybe try something like:

Section "InputClass"
Identifier "MouseName button remap"
MatchProduct "MouseProductName"
MatchDevicePath "/dev/input/event*"
Driver	"evdev"
Option "ButtonMapping" "1 2 3 4 5 6 7 1 2"
EndSection

as a snippet in /etc/X11/xorg.conf.d/

Regards,

Offline

#10 2015-03-29 18:48:05

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,520
Website

Re: How can I disable XF86Back / XF86Forward?

X recognizes at least 18 mouse buttons, so to avoid other conflicts, you could use the xorg.conf approach to map those buttons to higher numbers (e.g. 15 16) unless you want them to be duplicate left/right buttons.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB