View Full Version : btnx: Send keyboard and mouse combination events with mouse buttons
miesnerd
August 25th, 2009, 09:37 AM
You could try this, it's like Setpoint but for Linux:
http://www.hidpoint.com/
oh man, I stongly urge people to NOT try that.
I mean, thanks for the advice, but HIDpoint made everything that automatically was working STOP working, and nothing showed signs of life until I uninstalled it.
I'm gonna go ahead and a) advise no one use it and b) never ever install that.
tim71
August 25th, 2009, 01:14 PM
oh man, I stongly urge people to NOT try that.
I mean, thanks for the advice, but HIDpoint made everything that automatically was working STOP working, and nothing showed signs of life until I uninstalled it.
I'm gonna go ahead and a) advise no one use it and b) never ever install that.
This is clearly not the thing to use some closed-source binary blobs and "running-in-tray" thingies for...
And when I saw the text
IE users, right click and select "Save Target as" to save the .bin file
on the download page, I just didn't now whether to laugh or not...
I really did not switch the computing environment to read things like this and download some strange binaries from unknown source with suggestion of leaving an e-mail address. I really think, that I have left that behind me....
tim71
August 31st, 2009, 11:33 AM
It looks like I got double-click to work again!
It has to be done by modifying configuration file manually, because btnx-config interface does not offer needed option to choose from.
Solution is here
Button
name = front
rawcode = 0x01000116
enabled = 1
type = 1
delay = 0
force_release = 0
keycode = BTN_LEFT
mod1 = BTN_LEFT
mod2 = NONE
mod3 = NONE
EndButton
As you can see - both keycode and the modifier had to be set to BTN_LEFT for this to work in addition to previously known 'type = 1' option.
btnx-config does not offer this choice for modifier, but when it is set this way, it just works.
Caruni
September 5th, 2009, 12:27 PM
Hi,
I have tried so many things and versions but revoco dont run. All the rest is fine, but revoco dont want to do the right job.
At the moment I have installed version 0.4.11.3 (btnx) and 0.4.9.2 (btnx.config). I work with LinuxMint 7 and still as tried the older version (0.4.11 and 0.4.9), but the same problem.:confused:
It would be nice, if someone could give me little help. I work with a Logitech Mxrevolution (2nd) and would like to keep the revoco feature run. Before I had Ubuntu 9.04 installed and it worked, then I installed a nvidia 9500gt (graphic-card) and the problems begann. The revoco-feature didnt work more. Now I have installed LinuxMint new and have still the same problem.
Another problem that maybe as to do with the revoco-problem is, that it is not possible to start btnx-config from the menu, the only one possibility is to run from the terminal as sudo. If I do this, and after the configuration I click the button to start btnx again, I become this:
/usr/share/btnx-config/btnx-config.glade
Restarting btnx : Button Extension - mouse button rerouter daemon
btnx successfully stopped
btnx: uinput modprobed successfully.
btnx: Opening config file: /etc/btnx/btnx_config_dummie
btnx: revoco has been removed from this build.
btnx: No startup errors.
btnx: Parent done.
btnx successfully started
Verlasse btnx-config...
The most irritating message is "revoco has been removed from this build". What does this mean?
Hoppe someone can help me, thanks in forward.
Caruni
rsay
September 30th, 2009, 10:27 PM
This is a terrific program. I was able to use btnx to get my Cobalt Flux dancepad working with StepMania after trying lots of other programs and howtos without success. The details are in this post (http://ubuntuforums.org/showpost.php?p=8033359&postcount=19).
You'll see from the post that I had to play some tricks with btnx_config_Default to avoid the dreaded "device ID conflict error", since my dancepad isn't a mouse. Then I was able to take advantage of the nice UI to detect the buttons and assign the keys. I used key assignments so my dancepad works as a mythtv remote control too.
Thanks Daou
redDEADresolve
October 1st, 2009, 12:21 AM
This is a terrific program. I was able to use btnx to get my Cobalt Flux dancepad working with StepMania after trying lots of other programs and howtos without success. The details are in this post (http://ubuntuforums.org/showpost.php?p=8033359&postcount=19).
You'll see from the post that I had to play some tricks with btnx_config_Default to avoid the dreaded "device ID conflict error", since my dancepad isn't a mouse. Then I was able to take advantage of the nice UI to detect the buttons and assign the keys. I used key assignments so my dancepad works as a mythtv remote control too.
Thanks Daou
Thats pretty cool.
SamuraiJack8
October 7th, 2009, 11:57 AM
It looks like I got double-click to work again!
It has to be done by modifying configuration file manually, because btnx-config interface does not offer needed option to choose from.
Solution is here
Button
name = front
rawcode = 0x01000116
enabled = 1
type = 1
delay = 0
force_release = 0
keycode = BTN_LEFT
mod1 = BTN_LEFT
mod2 = NONE
mod3 = NONE
EndButton
As you can see - both keycode and the modifier had to be set to BTN_LEFT for this to work in addition to previously known 'type = 1' option.
btnx-config does not offer this choice for modifier, but when it is set this way, it just works.
Hey, many thanks for this advise..
It almost worked for me - I had to set 'mod2' to the same value also:
Button
name = sideright
rawcode = 0x01000114
enabled = 1
type = 1
delay = 0
force_release = 0
keycode = BTN_LEFT
mod1 = BTN_LEFT
mod2 = BTN_LEFT
mod3 = NONE
EndButton
Hope this will help someone else.
kevinguillorytraining
October 9th, 2009, 01:26 PM
this is nice how-to. thanks
borland-c
November 13th, 2009, 10:00 AM
I want to bind side button to hide all windows and show the desktop, but don't know what KEY_? to use. Does somebody know? Or where I can find list of all KEY descriptions?
I try to bind KEY_D + LCTRL + LALT but it don't work.
Anyway it's nice app, thanx to creator!
dr.koljan
November 26th, 2009, 03:34 PM
Does revoco work for anyone under 9.10?
Objekt
December 22nd, 2009, 09:38 PM
Btnx does nothing for me in Kubuntu 9.10. It runs, detects the buttons on my Logitech MX310, and lets me assign keystrokes to e.g. the side buttons, but they do not perform the assigned keystrokes. The side buttons do work as "forward" and "backward" commands in Firefox, but that's it.
That is to say, Btnx does absolutely nothing. Possibly I am missing some critical step to invoke the settings, but I have no idea what that would be. Is there another app to program mouse buttons that is easier to get working? I would like to reproduce the functionality of the Logitech Mouseware software I used to do this in Windows XP.
plaurium
January 10th, 2010, 06:11 PM
I've installed btnx, but when I try to run it it gives me an error message:
Error: no keycode file
btnx-config needs the file /etc/btnx/events to run.
Make sure you have installed btnx first, and that the file exists.
I checked my /etc folder and there is no /btnx in there !
Thanks guys
dondad
January 10th, 2010, 06:50 PM
Btnx does nothing for me in Kubuntu 9.10. It runs, detects the buttons on my Logitech MX310, and lets me assign keystrokes to e.g. the side buttons, but they do not perform the assigned keystrokes. The side buttons do work as "forward" and "backward" commands in Firefox, but that's it.
That is to say, Btnx does absolutely nothing. Possibly I am missing some critical step to invoke the settings, but I have no idea what that would be. Is there another app to program mouse buttons that is easier to get working? I would like to reproduce the functionality of the Logitech Mouseware software I used to do this in Windows XP.
Unless something has changed, butnx stopped working several versions ago due to the way ubuntu detects buttons. This was not going to be fixed as far as I know. I use xbindkeys to assign the button functionality and if you have a revolution mouse, you can get the wheel functions via revoco.
antonioams
March 6th, 2010, 04:37 PM
Hi,
I have tried so many things and versions but revoco dont run. All the rest is fine, but revoco dont want to do the right job.
At the moment I have installed version 0.4.11.3 (btnx) and 0.4.9.2 (btnx.config). I work with LinuxMint 7 and still as tried the older version (0.4.11 and 0.4.9), but the same problem.:confused:
It would be nice, if someone could give me little help. I work with a Logitech Mxrevolution (2nd) and would like to keep the revoco feature run. Before I had Ubuntu 9.04 installed and it worked, then I installed a nvidia 9500gt (graphic-card) and the problems begann. The revoco-feature didnt work more. Now I have installed LinuxMint new and have still the same problem.
Another problem that maybe as to do with the revoco-problem is, that it is not possible to start btnx-config from the menu, the only one possibility is to run from the terminal as sudo. If I do this, and after the configuration I click the button to start btnx again, I become this:
The most irritating message is "revoco has been removed from this build". What does this mean?
Hoppe someone can help me, thanks in forward.
Caruni
Hi Caruni,
I was having the same issue of you, and I solved it apply two patchs that are available in the launchpad, follows the commands to be executed to have revoco working properly!
$ cd /usr/src
$ sudo wget http://www.ollisalonen.com/btnx/btnx-0.4.11.tar.gz
$ sudo tar -xvvf btnx-0.4.11.tar.gz
$ cd btnx-0.4.11
$ sudo wget http://bazaar.launchpad.net/%7Estefanlsd/btnx/devel/diff/98
$ sudo patch -p1 < 98
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|=== modified file 'src/uinput.c'
|--- src/uinput.c 2008-04-28 11:25:36 +0000
|+++ src/uinput.c 2009-02-09 20:02:43 +0000
--------------------------
File to patch: src/uinput.c
patching file src/uinput.c
$ sudo wget http://bazaar.launchpad.net/%7Estefanlsd/btnx/devel/diff/99
$ sudo patch -p1 < 99
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|=== modified file 'src/btnx.h'
|--- src/btnx.h 2008-04-05 09:43:43 +0000
|+++ src/btnx.h 2009-02-10 21:37:42 +0000
--------------------------
File to patch: src/btnx.h
patching file src/btnx.h
can't find file to patch at input line 16
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|
|=== modified file 'src/uinput.c'
|--- src/uinput.c 2009-02-09 20:02:43 +0000
|+++ src/uinput.c 2009-02-10 21:37:42 +0000
--------------------------
File to patch: src/uinput.c
patching file src/uinput.c
$ sudo ./configure
$ sudo make
$ sudo make install
$ sudo /etc/init.d/btnx start
That's it, enjoy the awesome Revoco feature!
askrabal
March 15th, 2010, 12:30 AM
Thank you for making the program I needed.
My Media Play mouse now actually works for playing media. :grin:
Suggestion for a feature. allow mapping of a button and key for keystrokes e.g. ctrl + btn7 = leftmeta + m.
captainron042
June 18th, 2010, 10:04 PM
Unless something has changed, butnx stopped working several versions ago due to the way ubuntu detects buttons. This was not going to be fixed as far as I know. I use xbindkeys to assign the button functionality and if you have a revolution mouse, you can get the wheel functions via revoco.
Yeah, I just got a Logitech MX Performance, which, so I've heard, replaced the revolution.
I've been messing around with btnx for about an hour and a half. I got it to recognize the buttons, rename them, ect, and assign commands to them. When I closed the program, though, nothing worked but the left, right and scrollwheel. plug/play gave me the forward and back buttons in Chrome, but after btnx, they didn't work anymore.
Trying xbindkeys now.
captainron042
June 18th, 2010, 10:23 PM
Well, xbindkeys seems really complicated for a noob like me. I've got it installed, and I think I made a config file, but I don't know how to get to it to edit it.
I've tried 3 programs already and it's getting frustrating. I don't know why it has to be so complicated to tell a button to do something. I'd like my thumb rest button to play/pause rythmbox, and maybe the "zoom" button to open rythmbox.
dargaud
November 10th, 2010, 04:43 AM
It says in the very first message that btnx doesn't work on recent Ubuntus. Still I wasted my time trying it to no avail. So what are we supposed to try ? Is there some place that _explains_ the xorg.conf syntax for mice ? I see plenty of so called tutorials that give you one example, but 'ButtonMapping' or 'ZAxisMapping' in InputClass or InputDevice doesn't explain anything to me.
karthick87
December 12th, 2010, 06:35 AM
I want to use the windows key and the menu key on the keyboard as left and right mouse buttons respectively.Is it possible to achieve this?
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.