-
btnx: Send keyboard and mouse combination events with mouse buttons
If you find this tool useful, please help others use it by translating it into another language: btnx-config @ Launchpad.
Latest versions:
btnx (Button Extension) is a daemon that enables rerouting of mouse button events through uinput as keyboard and other mouse button combinations. For example, you can configure an extra mouse button to send a Ctrl+Alt+Right command to switch workspaces. You can also configure buttons to execute commands. This is especially useful for mice with more buttons than Gnome or KDE can properly handle, or mice that need evdev and a 100 step howto to register button events at all.
btnx-config is GUI for detecting and configuring your mouse. You must use btnx-config with btnx. btnx integrates revoco functionality for MX Revolution users, which is editable from btnx-config.
btnx should work with almost any mouse that is configured properly.
The btnx manual is available at: http://www.ollisalonen.com/btnx/man
btnx is known to work on:
- (K)Ubuntu 7.04
- (K)Ubuntu 7.10
- (K)Ubuntu 8.04
Note: Users with an MX or VX Revolution: if you have problems with the thumb buttons, refer to the btnx manual's troubleshooting section 12.2.1 for better xorg.conf values.
Report bugs at Launchpad:
SVN repositories :
-------------------------------------------------------------------------------------------------
Installation:
You have two options. Either install (1) binary packages with apt-get or (2) compile from source.
Note: If you have used another howto to configure your mouse, try to revert as much of the changes you have done.
1. Binary packages:
Note: KDE (Kubuntu) users should compile from source if you want to avoid installing lots of standard Gnome libraries.
1. Put the following lines to the end of your /etc/apt/sources.list file, but replace DISTRO with the name of the Ubuntu distro you have installed (options: feisty gutsy hardy):
Code:
deb http://ppa.launchpad.net/daou/ubuntu DISTRO main
deb-src http://ppa.launchpad.net/daou/ubuntu DISTRO main
2. Now, run the following commands to install btnx and btnx-config:
Code:
$ sudo apt-get update && sudo apt-get install btnx
3. Run btnx-config from Applications->System tools->btnx and refer to the manual as necessary.
2. (Optional) Compile from source
1. Get all the necessary dependencies. btnx-config needs libgtk2.0 and libgtk2.0-dev (version 2.10.11 or newer), libglade and libglade-dev (version 2.6.0 or newer), pkg-config (0.21 or newer), and build-essential. btnx needs build-essential and libdaemon.
Code:
sudo apt-get install build-essential libgtk2.0-0 libgtk2.0-dev libglade2-0 libglade2-dev pkg-config libdaemon0 libdaemon-dev
2. Install btnx
Code:
$ wget http://www.ollisalonen.com/btnx/btnx-0.4.11.tar.gz
$ tar -xvvf btnx-0.4.11.tar.gz
$ cd btnx-0.4.11
$ ./configure
$ make
$ sudo make install
3. Install btnx-config.
Code:
$ wget http://www.ollisalonen.com/btnx/btnx-config-0.4.9.tar.gz
$ tar -xvvf btnx-config-0.4.9.tar.gz
$ cd btnx-config-0.4.9
$ ./configure
$ make
$ sudo make install
If you encountered an error, there is probably a dependency problem.
4. You should have gotten a menu item. In GNOME, Applications->System tools->btnx. In KDE, System->btnx. Press it to launch btnx-config.
You can find all the necessary information for configuring your mouse with btnx-config in the btnx manual. Either press the "Help" button in btnx-config or refer to the online manual at http://www.ollisalonen.com/btnx/man
--------------------------------------------------------------------------------------------------
Uninstall
Binary packages:
Run
Code:
$sudo apt-get remove btnx btnx-config
Compiled source:
To uninstall btnx and btnx-config, run
Code:
$ sudo make uninstall
in the same directory as where you ran the "sudo make install" command for both programs.
--------------------------------------------------------------------------------------------------
Troubleshooting
Please refer to the troubleshooting section in the btnx manual: http://www.ollisalonen.com/btnx/man
It contains answers to frequent problems and good reference values for your xorg.conf file.
NOTE: If some of your mouse buttons send multiple events (like extra middle, right, or left clicks) then refer to the
manual's troubleshooting section on editing you xorg.conf InputSection. Follow it closely!
If your problem persists, post it on this thread.
--------------------------------------------------------------------------------------------------
Useful key combos
blazoner posted a list of some useful keyboard combinations to use with btnx. Look here.
--------------------------------------------------------------------------------------------------
If you feel that btnx or extra mouse button control is an important issue, don't forget to let your vote and voice be heard over at Brainstorm:
http://brainstorm.ubuntu.com/idea/120/image/1/
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
btnx discussion has been moved here from the MX Revolution howto.
Quote:
you got my vote to get btnx in kubuntu gutsy as a standard once it comes out - Mack1
Thanks :D. But I think btnx will need to support a few more mice before that will come into consideration.
MX-510 will be added later today. Thanks to sjust for the hexdumping.
Quote:
I just bought an MX Revolution today, and I can't seem to get btnx to make any difference whatsoever...
Maybe I'm doing something wrong...? - Bedpan.ca
Are you running the latest version (at this time 0.2.3)? If you are, did you change the default configurations? If you did, try copying the mx revolution defaults over the btnx_config file:
Code:
$ sudo cp /etc/btnx/defaults/default_config_mxrevo /etc/btnx/btnx_config
$ sudo /etc/init.d/btnx restart
If it still doesn't work try stopping btnx and running it as a foreground process on the command line. This way you can see any error output.
Code:
$ sudo /etc/init.d/btnx stop
$ sudo /usr/sbin/btnx
Tell me what happens.
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Support added for Logitech MX-510 in version 0.2.4. Thanks to sjust for submitting the hexdumps.
sjust: If you already configured Ubuntu to use the extra buttons on your MX-510 with, for example, detyabozhye's guide, you should probably disable the settings so you won't get duplicate events. btnx cannot stop any events from happening that X already handles. This is not a must, you can try running btnx with the old settings intact.
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
I am glad I did everything right, and it helped. yes I have used his guide to configure my mouse. I will disable what I can remember and give btnx a shot. I will post back with the resualts
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
Originally Posted by
daou
Tell me what happens.
Did what you said, and still no dice.
When ran as a foreground process, it says "No startup errors".
Tried the latest 0.2.4 just in case something was different, but again, the mouse does nothing other than the default mousey functions (plus scroll wheel and the stupid backwards sideways scroll wheel tilt).
I'm running 64bit Feisty.
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
I'm running 64bit Feisty.
This could be a problem because btnx looks at raw data streams that are likely bitsize-dependent.
If you have the time, could you do the part "How to get support for mouse X?". If it turns out that the stream lengths are just a little different for 64-bit streams, I can easily add support for 64-bit systtems. EDIT: not necessary anymore.
If not, then it gets more difficult.
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
I'm running 64bit Feisty.
btnx-0.2.5 adds support for 64-bit versions. Installed the AMD64 version on a different partition and looked at the event handlers. As I suspected, the amount of data going to the event handlers during each event grew by 16 bytes. btnx now uses a better algorithm to calculate the rawcodes which is bit-independent.
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
Originally Posted by
daou
btnx-0.2.5 adds support for 64-bit versions.
Freaking. Awesome.
You are now my hero as well.
Sweet deals. :D
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Okay. This one is weird. I've noticed that if I have Konsole open, my mouse will sometime TYPE on its own a capital letter C.
The same is done when scrolling right (left is D).
Also, sometimes if I'm browsing with firefox, the page will sometimes jump backwards in history by itself.
Not sure if this is because of btnx, or a faulty mouse.
Ideas?
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
Okay. This one is weird. I've noticed that if I have Konsole open, my mouse will sometime TYPE on its own a capital letter C.
The same is done when scrolling right (left is D).
Also, sometimes if I'm browsing with firefox, the page will sometimes jump backwards in history by itself.
Not sure if this is because of btnx, or a faulty mouse.
Not a faulty mouse. It sounds like btnx is just doing its magic. If you haven't changed btnx's default configuration for MX Revo mice, pressing the top wheel left and right sends ALT+LEFT and ALT+RIGHT signals. In Firefox it goes back and forward in page history. In a terminal, it outputs a C and D.
It's quite easy to accidentally press the wheel sideways when trying to scroll up and down on the MX Revo. It took me a while to get used to it. Don't use any force when scrolling the MX Revo wheel. It's meant to be touched lightly. It's not a normal, crude mouse wheel, after all ;).
If it seems annoying, you can disable the wheel tilts from doing anything in the btnx_config file by commenting it's button section out.
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
seems like it would be fantastic, but i keep getting an
Quote:
Error opening button event file descriptor: No such file or directory
when i run it in the foreground as mentioned above (to see why it's not working)
and, it's probably because i'm very new to this, but it took me quite a while to figure out that i didn't have build-essential installed to even get this far. would that be something to include in the instructions, or have i just not trolled the forums enough?
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
seems like it would be fantastic, but i keep getting an
Quote:
Error opening button event file descriptor: No such file or directory
when i run it in the foreground as mentioned above (to see why it's not working)
It looks like btnx can't open the file /dev/input/eventX
where X is some number. Either btnx parsed the event name incorrectly, or the event handler is located in some other directory. Or something else weird. What version of Ubuntu are you using?
Try this command:
It should print out files in that directory. Are there any named "event"?
I'll try updating the program later today so it will give more detailed error messages.
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
and, it's probably because i'm very new to this, but it took me quite a while to figure out that i didn't have build-essential installed to even get this far. would that be something to include in the instructions, or have i just not trolled the forums enough?
You are right, it should be included in the instructions.
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
Originally Posted by
daou
It's quite easy to accidentally press the wheel sideways when trying to scroll up and down on the MX Revo.
If I move the mouse side to side with my fingers no where near the scroll wheel (holding the back of the mouse at pad-level), firefox jumps a page forward.
It doesn't happen all the time, but enough to start bugging the crap out of me :).
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
When I try using "modprobe uinput" (without the quotes) I get "FATAL: Error inserting uinput (/lib/modules/2.6.20-16-generic/kernel/drivers/input/misc/uinput.ko): Operation not permitted" (without quotes).
Any idea of what's going wrong? I have a VX Revolution notebook mouse so I'm trying to get it working.
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
Originally Posted by
Depressed Man
When I try using "modprobe uinput" (without the quotes) I get "FATAL: Error inserting uinput (/lib/modules/2.6.20-16-generic/kernel/drivers/input/misc/uinput.ko): Operation not permitted" (without quotes).
Any idea of what's going wrong? I have a VX Revolution notebook mouse so I'm trying to get it working.
Try
Code:
sudo modprobe uinput
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Seems to run the command and return nothing. Is that the desired out come?
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Yep.
modprobe doesn't have an output. It just loads the module which other programs can talk to.
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Thanks! Followed all the steps and it works now! Now to customize the controls so it works with Beryl. :)
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
2 separate issues on 2 separate PC's running Ubuntu FF 7.04
OK, issue #1
MX Revolution mouse
I altered my btnx_config file to perform FORWARD/BACKWARD funtions with the thumb-wheel as shown
Code:
# Thumb wheel forward.
# Does an Alt+Left. Ex. Firefox forward
Button
rawcode = 0x01011800
type = 1
keycode = KEY_LEFT
mod1 = KEY_LEFTALT
EndButton
# Thumb wheel back.
# Does an Alt+Right. Ex. Firefox back
Button
rawcode = 0x01011A00
type = 1
keycode = KEY_RIGHT
mod1 = KEY_LEFTALT
EndButton
but my buttons are behaving as if the button event type is 0, instead of 1. (Pressing the thumb-wheel in either direction goes forward or backward respectively, but releasing the thumb-wheel does the same action again, for a net effect of going forward or backward twice.)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Issue #2
My second PC has an MX 600 mouse that I want to hexdump for you to play with.
When I use
Code:
$ cat /proc/bus/input/devices > ~/devices_output
my mouse gives event1, but when I attempt to use
Code:
$ sudo cat /dev/input/event1 | hexdump
in terminal, I get no response at all from my system.
I'm new to Linux. Is there some extra component I need to be able to perform a hexdump? If not, what's my next step?
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
On another note, maybe future releases could include support for multiple button presses, like L+R buttons = Middle button.
I can't currently program, but I think I could lay out some usable logic for that. If you're interested, I'll give it a shot.
BTW, I love what you've accomplished so far!
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Hmm it's stuck in read-only mode so I can't edit the config. How do I get it out of read only mode..it says root owns it. (sorry I'm still new to Linux..so there's probably some command to temporary take over the file that I don't know)
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
i'm running 7.04
and when i ran ls /dev/input, i got
Quote:
by-id event0 event3 event5 event9 mouse0 ts0 uinput
by-path event1 event4 event6 mice mouse1 ts1
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
If I move the mouse side to side with my fingers no where near the scroll wheel (holding the back of the mouse at pad-level), firefox jumps a page forward.
It doesn't happen all the time, but enough to start bugging the crap out of me :smile:.
Ok, sounds like your MX Revo is borderline broken. I can shake my mouse pretty hard and the wheel won't go side to side by itself. You should probably try to get a replacement.
Quote:
but my buttons are behaving as if the button event type is 0, instead of 1. (Pressing the thumb-wheel in either direction goes forward or backward respectively, but releasing the thumb-wheel does the same action again, for a net effect of going forward or backward twice.)
It's the other way around. The event type is supposed to be 0 for the the thumb wheel events. When a button is type=1, it sends both the pressed and released events simultaneously. So when you press the thumb wheel and type=1, it sends a press and release signal. When you release the thumb wheel, it sends the press and release signals again. So you get two events.
More replies later...
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Thanks! That did the trick.
Maybe instead of this:
Code:
# type: the type of event the button sends. If type is 0,
# pressing the button sends a button down signal and
# releasing it sends a release signal. If type = 1, clicking
# the button send both press and release signals simultaneously.
# This usually necessary for mouse wheel events.
You could say this:
Code:
# type: the type of event the button sends.
# (Preset for your specific mouse buttons.)
# If pressing the button sends a button press signal and
# releasing it sends a release signal, the type is 0.
# If pressing the button sends both press and release signals
# simultaneously, the type is 1.
# -This is usually necessary for mouse wheel events.
Since the type is dependent on the button events, and not the other way around.
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
Hmm it's stuck in read-only mode so I can't edit the config. How do I get it out of read only mode..it says root owns it. (sorry I'm still new to Linux..so there's probably some command to temporary take over the file that I don't know)
run
Code:
sudo gedit /etc/btnx/btnx_config
The sudo is needed so you get root (or superuser) privileges, because the btnx_config file is write protected and owned by root. This is because btnx can only be run by root.
Quote:
On another note, maybe future releases could include support for multiple button presses, like L+R buttons = Middle button.
I can't currently program, but I think I could lay out some usable logic for that. If you're interested, I'll give it a shot.
BTW, I love what you've accomplished so far!
Thanks, I'm glad you like it. What you propose is doable. It would require a significant amount of change and complexity to the event parsing and handling. Not impossible, but time consuming. I'll keep it in mind and once I have the time, I might implement something like it.
Quote:
You could say this:
...
Since the type is dependent on the button events, and not the other way around.
Good point. I'll change it. Thanks for the improvement ideas.
Quote:
i'm running 7.04
and when i ran ls /dev/input, i got Quote:
by-id event0 event3 event5 event9 mouse0 ts0 uinput
by-path event1 event4 event6 mice mouse1 ts1
Strange. You have the event files in the correct location but for some reason btnx cannot find it. What mouse are you using?
Please send me the output of your /proc/bus/input/devices file. It will help me diagnose the problem. You can use this command to view that file in gedit:
Code:
cat /proc/bus/input/devices > /tmp/devices_output; gedit /tmp/devices_output
Quote:
my mouse gives event1, but when I attempt to use
Code:
$ sudo cat /dev/input/event1 | hexdump
in terminal, I get no response at all from my system.
I'm new to Linux. Is there some extra component I need to be able to perform a hexdump? If not, what's my next step?
I've noticed that this might be a problem with some mice (ones using PS/2 connector). But I would suspect the MX600 uses USB. You should have hexdump installed by default so this shouldnt be the problem. You can test it by giving the command:
Code:
$ echo "hello" | hexdump
If you get output like "0000000 6568 6c6c 0a6f" then hexdump should be working fine. The only other thing I can think of is that its not sending events to that event handler. Try doing that part where you list each event handler in /dev/input with the command:
And do the
Code:
sudo cat /dev/input/event | hexdump
command for each event file in that directory (event0, event1, etc.). Move your mouse and press its buttons everytime you do the hexdump. Then check your /proc/bus/input/devices for the section that matches that event. Hopefully one of the event files is outputting your mouse events, otherwise there is a bigger problem.
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Minor issue:
Btnx worked out of the box, which was a great relief after being use to useing the old complicated way - so thank you very much :)
Well there is one thing that I can't seem to figure out. I'm use to useing the windows key (Super key), as my beryl shortcut. And since my I uses my mouse to the same shorthcut i would be nice to assign a button to let say windowskey+ left... But where is the key, can't seem to find it in the event file... but it probably simply have another name. Have tried to finde it via. xev, but it returns another key number.
Hope somebody are able to help me out with a solution... seems like a simple problem, but I have allready used 2-3 hours on it! :(
Best regards
Tobias
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
Btnx worked out of the box, which was a great relief after being use to useing the old complicated way - so thank you very much :smile:
Well there is one thing that I can't seem to figure out. I'm use to useing the windows key (Super key), as my beryl shortcut. And since my I uses my mouse to the same shorthcut i would be nice to assign a button to let say windowskey+ left... But where is the key, can't seem to find it in the event file... but it probably simply have another name. Have tried to finde it via. xev, but it returns another key number.
Hope somebody are able to help me out with a solution... seems like a simple problem, but I have allready used 2-3 hours on it! :sad:
No problem. I'm glad I didn't spend the time coding this application for general use for nothing. Actually, about 90% of the program is just so other people can use it and configure it without editing source code ;).
The key you are looking for, the Start (or Super, or Windows, etc) is KEY_LEFTMETA
For some reason, the Gnome keyboard shortcuts tool doesn't recognize it as a modifier key (meaning you can only use it by itself, not as a combination with another key). But in Beryl it should work.
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
The string doesn't seem to work for me.. after I type it in it asks me for my password which I type in. After a while it brings me back to the $ for its next command. It doesn't load gedit or do anything else. And if I type in gedit /etc/btnx/btnx_config after that it's still read only.
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
The string doesn't seem to work for me.. after I type it in it asks me for my password which I type in. After a while it brings me back to the $ for its next command. It doesn't load gedit or do anything else. And if I type in gedit /etc/btnx/btnx_config after that it's still read only.
Are you sure you have root privileges on the computer? It's your computer, right?
If you are having trouble with gedit try it with nano
Code:
sudo nano /etc/btnx/btnx_config
Ctrl-O saves the file, Ctrl-X quits
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Yeah, it's my laptop. Though I did install Feisty Fawn using Wubi thru Vista..so that may cause some unknown problems. Nano works though! Thanks.
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
I use Mandriva Spring 2007.1 and am interested in giving btnx a try. Obviously I don't have build-essential available. Just wondering what I might be able to use instead. Would gcc allow me to compile?
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
Originally Posted by
daou
No problem. I'm glad I didn't spend the time coding this application for general use for nothing. Actually, about 90% of the program is just so other people can use it and configure it without editing source code ;).
The key you are looking for, the Start (or Super, or Windows, etc) is KEY_LEFTMETA
For some reason, the Gnome keyboard shortcuts tool doesn't recognize it as a modifier key (meaning you can only use it by itself, not as a combination with another key). But in Beryl it should work.
I'm trying to modify the zoom in and out buttons on my VX mouse to zoom in and out with Beryl. It usually involves the super key and the scroll wheel. How would I replicate the scrollwheel part?
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
I use Mandriva Spring 2007.1 and am interested in giving btnx a try. Obviously I don't have build-essential available. Just wondering what I might be able to use instead. Would gcc allow me to compile?
Yes gcc should be enough. The only restrictions I can think of that apply to other distros are:
- uinput (if the modprobe command doesn't work, the module might have to be compiled)
- /proc/bus/input/devices file location. Although I would suspect it is the same for all Linux distros.
- event file location /dev/input, same as above
The bigger problem is update-rc.d utility. It is a Debian utility also used by Ubuntu to register init scripts. btnx uses an init script to autostart at boot. The install script in scripts/install.sh uses update-rc.d. I'm not sure if Mandriva has this.
You can try installing btnx, and if it fails at the update-rc.d commands, you can comment out the lines that use them from the install.sh and uninstall.sh script files. Then try installing it again. Then run ./btnx as root and check if it works.
For the autostart ability you have to ask around the Mandriva forums.
Tell me what happens.
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
I'm trying to modify the zoom in and out buttons on my VX mouse to zoom in and out with Beryl. It usually involves the super key and the scroll wheel. How would I replicate the scrollwheel part?
This isn't possible at the moment. However, I know what needs to be done to the program for it to be possible. I'll try getting that functionality working some time in the near future.
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
I did have to comment out references to update-rc.d in install.sh and uninstall.sh.
A make install gives me:
chmod a+rx ./scripts/install.sh
./scripts/install.sh
Installing...........
btnx successfully installed. Starting btnx.
/etc/init.d/btnx: line 34: /lib/init/vars.sh: No such file or directory
make: *** [install] Error 1
I looked through files, but I don't see where vars.sh gets created and placed at /lib/init. Not sure if I can do anything about this or not.
If I try to execute with "./btnx" (without the quotes) I get:
Error opening the uinput device.
Make sure you have loaded the uinput module (modprobe uinput): No such file or directory
However, an lsmod shows me:
Module Size Used by
uinput 7744 0
Do I need to reboot, or restart X? Confused at the moment. Thanks for your help.
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
Originally Posted by
daou
Hopefully one of the event files is outputting your mouse events, otherwise there is a bigger problem.
Well, looks like I've got that bigger problem you were talking about, but my MX 600 mouse is working fairly well with evdev. The only mouse events that actually show any output are the forward and back thumb-buttons that are set up to output ALT+LEFT and ALT+RIGHT. These output the keystrokes themselves, in almost every event.
I followed THIS THREAD for my mouse setup, but ended up doing things differently, only loosely following the guide. I'll go back through, and try to retrace what I did, so I can locate what I need.
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Having a couple problems with btnx:
I was just wondering why the left and right tilt scroll buttons repeat themselves when you hold them in.
Also, if I move my thumb button, and then (without releasing it) press it in my cube (Beryl) goes into its rotate mode.
And... trying to change my search button to something other than default, and regardless of what i try in the settings, my kde search applet (kfind) still runs, and whatever I set in the config file only runs once.
Ideas?
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
Originally Posted by
Bedpan.ca
I was just wondering why the left and right tilt scroll buttons repeat themselves when you hold them in.
This is a hardware feature, not something that will readily change behavior through software. And since the button-press is a type 1 event, you don't get a separate release signal, so you can't determine if the button is being held, but it repeats the original signal as if the button were pressed multiple times.
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
I finally got the output from my MX 600 laser mouse. I had to run the hexdump off of the live CD.
Here's the gory details:
Quote:
Logitech MX 600
Running off of FF 7.04 Live CD
(This may contain settings from my underlying install, I don't know.)
From my devices_output file
I: Bus=0003 Vendor=046d Product=c50e Version=0111
N: Name="Logitech USB RECEIVER"
P: Phys=usb-0000:00:03.0-1/input0
S: Sysfs=/class/input/input1
H: Handlers=mouse1 ts1 event1
B: EV=20007
B: KEY=ffff0000 0 0 0 0 0 0 0 0
B: REL=143
B: LED=ff00
Left-Click
0000000 89da 465f 4f5d 0003 0001 0110 0001 0000 Press
0000010 89da 465f 4f77 0003 0000 0000 0000 0000
0000020 89da 465f df48 0005 0001 0110 0000 0000 Release
0000030 89da 465f df63 0005 0000 0000 0000 0000
Right-Click
0000000 8c28 465f 03a5 0009 0001 0111 0001 0000 Press
0000010 8c28 465f 03bc 0009 0000 0000 0000 0000
0000020 8c28 465f 16e8 000b 0001 0111 0000 0000 Release
0000030 8c28 465f 1701 000b 0000 0000 0000 0000
Scroll-Click
0000000 8c92 465f 1026 000c 0001 0112 0001 0000 Press
0000010 8c92 465f 1040 000c 0000 0000 0000 0000
0000020 8c92 465f 1d66 000f 0001 0112 0000 0000 Release
0000030 8c92 465f 1d81 000f 0000 0000 0000 0000
Scroll-Up
0000000 8cdf 465f 7f5a 0009 0002 0008 0001 0000 Press
0000010 8cdf 465f 7f75 0009 0000 0000 0000 0000
Scroll-Down
0000000 8d30 465f d082 000b 0002 0008 ffff ffff Press
0000010 8d30 465f d09c 000b 0000 0000 0000 0000
(I have no idea why the sideways scroll has generated 6 lines of code per button press, but there's only the single press event, then it automatically repeats.)
Scroll-Left
0000000 8db6 465f 95cc 0005 0001 0116 0001 0000 Press
0000010 8db6 465f 95e7 0005 0000 0000 0000 0000
0000020 8db6 465f d454 0005 0002 0006 ffff ffff
0000030 8db6 465f d46a 0005 0000 0000 0000 0000
0000040 8db6 465f 454c 0008 0001 0116 0000 0000
0000050 8db6 465f 4563 0008 0000 0000 0000 0000
Scroll-Right
0000000 8e2a 465f 35f6 0000 0001 0117 0001 0000 Press
0000010 8e2a 465f 360a 0000 0000 0000 0000 0000
0000020 8e2a 465f 747a 0000 0002 0006 0001 0000
0000030 8e2a 465f 7491 0000 0000 0000 0000 0000
0000040 8e2a 465f a0f5 0003 0001 0117 0000 0000
0000050 8e2a 465f a108 0003 0000 0000 0000 0000
Thumb-Forward
0000000 8e80 465f 6452 000d 0001 0114 0001 0000 Press
0000010 8e80 465f 646e 000d 0000 0000 0000 0000
0000020 8e81 465f 1612 0000 0001 0114 0000 0000 Release
0000030 8e81 465f 162c 0000 0000 0000 0000 0000
Thumb-Rear
0000000 8ec5 465f ecd2 000b 0001 0113 0001 0000 Press
0000010 8ec5 465f ecf2 000b 0000 0000 0000 0000
0000020 8ec5 465f 3e90 000e 0001 0113 0000 0000 Release
0000030 8ec5 465f 3eae 000e 0000 0000 0000 0000
Zoom +
0000000 8f02 465f 2867 0002 0001 0118 0001 0000 Press
0000010 8f02 465f 2872 0002 0000 0000 0000 0000
0000020 8f02 465f 5ae7 0004 0001 0118 0000 0000 Release
0000030 8f02 465f 5af2 0004 0000 0000 0000 0000
Zoom -
0000000 8f4f 465f fc97 0003 0001 0119 0001 0000 Press
0000010 8f4f 465f fca2 0003 0000 0000 0000 0000
0000020 8f4f 465f ac17 0006 0001 0119 0000 0000 Release
0000030 8f4f 465f ac23 0006 0000 0000 0000 0000
Zoom 100%
0000000 8f88 465f d825 0009 0001 0115 0001 0000 Press
0000010 8f88 465f d83e 0009 0000 0000 0000 0000
0000020 8f88 465f 4920 000c 0001 0115 0000 0000 Release
0000030 8f88 465f 4939 000c 0000 0000 0000 0000
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
when i use the top thumbutton for forward in firefox, it goes forward, but also left clicks, which is quite odd.
any ideas?
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
/etc/init.d/btnx: line 34: /lib/init/vars.sh: No such file or directory
make: *** [install] Error 1
I looked through files, but I don't see where vars.sh gets created and placed at /lib/init. Not sure if I can do anything about this or not.
If I try to execute with "./btnx" (without the quotes) I get:
Error opening the uinput device.
Make sure you have loaded the uinput module (modprobe uinput): No such file or directory
However, an lsmod shows me:
Module Size Used by
uinput 7744 0
Do I need to reboot, or restart X? Confused at the moment. Thanks for your help.
The first part about vars.sh is no problem. Its trying to launch the init script. You could comment out the parts "/etc/init.d/btnx stop|start" to suppress the error but its not necessary.
The uinput problem needs code changes. Apparently your system uses a different path for the uinput module file, and this means its probably different for the event files as well. In the next update (probably coming in a day or so), I'll fix the necessary parts so the program looks for uinput and the event file in more distro specific locations.
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
Originally Posted by
Bedpan.ca http://ubuntuforums.org/images/uf/buttons/viewpost.gif
I was just wondering why the left and right tilt scroll buttons repeat themselves when you hold them in.
This is a hardware feature, not something that will readily change behavior through software. And since the button-press is a type 1 event, you don't get a separate release signal, so you can't determine if the button is being held, but it repeats the original signal as if the button were pressed multiple times.
Thats exactly right. The repeat delay should be long enough so it won't be a problem.
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
I finally got the output from my MX 600 laser mouse. I had to run the hexdump off of the live CD.
Here's the gory details:
Excellent. Thanks for taking the time. I will include MX-600 support in the next update.
You mentioned you were using evdev and other possible hacks for the MX600? This could interfere with btnx (especially if the event file isn't getting any input from the mouse). You should probably try to get the mouse to as much of a default state as possible.
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
when i use the top thumbutton for forward in firefox, it goes forward, but also left clicks, which is quite odd.
any ideas?
Have you used any other methods or howtos to try to get additional functionality from the mouse? This will have the effect of sending extra unwanted events.
Also, you can post your configuration for that button so I can check it.
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Wow, this really kicks ***. I set up my mx revolution with the old configuration method before. It worked, but it took a pretty long time to get it like I wanted it to.
Now I just installed btnx and switched the back/forward button functionality with the top scroll wheel functionality, and everything is like I want it to be. Really nice!
There is one problem though. When I press the forward button, it does indeed to the right action, but it also makes a menu show. The same menu you get if you right-click on the title bar of a window. What's up with that?
Here's the conf for that button:
# Thumb button back.
# Does an Alt+Left. Ex. Firefox forward
Button
rawcode = 0x01011300
type = 0
keycode = KEY_LEFT
mod1 = KEY_LEFTALT
EndButton
Edit: I just noticed someone else is having almost the same problem. Well, at least I provided the config. :)
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
Wow, this really kicks ***. I set up my mx revolution with the old configuration method before. It worked, but it took a pretty long time to get it like I wanted it to.
Now I just installed btnx and switched the back/forward button functionality with the top scroll wheel functionality, and everything is like I want it to be. Really nice!
There is one problem though. When I press the forward button, it does indeed to the right action, but it also makes a menu show. The same menu you get if you right-click on the title bar of a window. What's up with that?
I'm glad you like it. I'm not getting this problem on my MX Revolution. Is your mouse still configured according to the MX Revolution howto?
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
Originally Posted by
daou
I'm glad you like it. I'm not getting this problem on my MX Revolution. Is your mouse still configured according to the MX Revolution howto?
Nope. I reinstalled ubuntu from scratch (my hdd died), so the only thing I have done mouse configuration wise is to install btnx.
It seems like ubuntu maps the thumb buttons by itself. I get the same behaviour from them (except the back/forward functionality) when I turn off btnx.
How can I turn this off? I can't seem to find any settings anywhere controlling this.
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Daou, this is an absolutely fantastic program that should be included with Ubuntu. It's straightforward and easy to do, and makes my MXrev fully functional. You even got the side scroller to change views in Beryl. Before I only had mouse 1 and 2 working. Ubuntu devs: I hope you're reading this.
I was going to do it the long way from the old MX rev thread, but that type of thing usually gives me slews of errors, so I decided to wait on this when I saw your post announcing it. (Every console command i make in Linux has a ~20% of giving me an error, so something with a bunch of confusing commands was definitely going to mess things up) Glad I made that decision. :)
Setting the search button to middle click by default was a great touch; that's what I have it set to in windows. I think I had to use the uberoptions hack to make that work.
One issue though:
Quote:
Originally Posted by
Akegata
Wow, this really kicks ***. I set up my mx revolution with the old configuration method before. It worked, but it took a pretty long time to get it like I wanted it to.
Now I just installed btnx and switched the back/forward button functionality with the top scroll wheel functionality, and everything is like I want it to be. Really nice!
There is one problem though. When I press the forward button, it does indeed to the right action, but it also makes a menu show. The same menu you get if you right-click on the title bar of a window. What's up with that?
Here's the conf for that button:
# Thumb button back.
# Does an Alt+Left. Ex. Firefox forward
Button
rawcode = 0x01011300
type = 0
keycode = KEY_LEFT
mod1 = KEY_LEFTALT
EndButton
Edit: I just noticed someone else is having almost the same problem. Well, at least I provided the config. :)
I am having the same issue, only they're doing a middle click instead. I'm setting the back and forward thumb buttons to go forward and back in firefox like it does in Windows the way Akegata set it up above, but instead they both middle click instead of doing what they're supposed to or what Ake's does. Weird that we're having different problems doing the same thing. I should note that by default they function properly, but I don't like the default setting.
edit: now that I look at it, I want to say that both of my key commands for it were under mod 1 and 2, not keycode. I'm not at my normal computer right now so I can't check, but that might have something to do with it.
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
The first part about vars.sh is no problem. Its trying to launch the init script. You could comment out the parts "/etc/init.d/btnx stop|start" to suppress the error but its not necessary.
The uinput problem needs code changes. Apparently your system uses a different path for the uinput module file, and this means its probably different for the event files as well.
Let me know if there is any info about Mandriva (2007.1) that I can supply.
Quote:
In the next update (probably coming in a day or so), I'll fix the necessary parts so the program looks for uinput and the event file in more distro specific locations.
Waiting with baited breath. :)
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
EDIT: doesn't work
To anyone having problems with extra buttons events (especially with the MX Revo, for example a right, middle, or left mouse button event when using the thumb buttons):
This might be a fix. I can't confirm it because I don't have the problem myself and can't replicate it (despite trying very hard to abuse btnx ;)).
Try changing the mappings of the buttons with xmodmap
For example run something like this:
Code:
$ xmodmap -e "pointer = 1 2 3 4 5 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6"
This should switch any buttons, like thumb buttons (8 and 9) on the MX Revo to higher values which are not handled.
If that works, add the line, or whatever line worked for you, into your .Xmodmap file:
Code:
$ echo "pointer = 1 2 3 4 5 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6" > ~/.Xmodmap
If this turns out to fix the problem, then perhaps it should be included as a command in the install script.
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
Originally Posted by
daou
To anyone having problems with extra buttons events (especially with the MX Revo, for example a right, middle, or left mouse button event when using the thumb buttons):
This might be a fix. I can't confirm it because I don't have the problem myself and can't replicate it (despite trying very hard to abuse btnx ;)).
Try changing the mappings of the buttons with xmodmap
For example run something like this:
Code:
$ xmodmap -e "pointer = 1 2 3 4 5 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6"
This should switch any buttons, like thumb buttons (8 and 9) on the MX Revo to higher values which are not handled.
If that works, add the line, or whatever line worked for you, into your .Xmodmap file:
Code:
$ echo "pointer = 1 2 3 4 5 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6" > ~/.Xmodmap
If this turns out to fix the problem, then perhaps it should be included as a command in the install script.
That doesn't really seem to do anything.
I get the warning message "Warning: Only changing the first 20 of 9 buttons." when I run it, and nothing changes. :/
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
did not work for me either
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
That doesn't really seem to do anything.
Ok, I can only think of one more thing. What does your xorg.conf InputSection look like?
Code:
$ sudo gedit /etc/X11/xorg.conf
This is what mine looks like:
Code:
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
Option "Buttons" "3"
EndSection
EDIT: "Protocol" "auto" and Driver "mouse" are important.
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
This is what my InputDevice-section looks like:
Code:
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection
I tried adding the buttons 3 line, but that didn't hchange anything.
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
I tried adding the buttons 3 line, but that didn't hchange anything.
You restarted X, right (Ctrl+Alt+Backspace)?
Try making the InputSection more like mine. Make a backup first. If you don't know what to do if X fails, ask me first before making changes. Change the following parts:
- Protocol
- Device
- Emulate3Buttons
- Device (maybe try this after trying everything else)
- Take out CorePointer
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
Originally Posted by
daou
You restarted X, right (Ctrl+Alt+Backspace)?
Try making the InputSection more like mine. Make a backup first. If you don't know what to do if X fails, ask me first before making changes. Change the following parts:
- Protocol
- Device
- Emulate3Buttons
- Device (maybe try this after trying everything else)
- Take out CorePointer
I change my xorg as you stated and it works great for me now ;)
I have also setup revoco for the mx revolution and my middle mouse wheel works perfectly :)
Code:
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "auto"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
Option "Buttons" "3"
EndSection
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
I change my xorg as you stated and it works great for me now :wink:
I have also setup revoco for the mx revolution and my middle mouse wheel works perfectly :smile:
Great! Only problem is, that it looks like MX users have to edit their xorg.conf after all... I wanted to avoid this as much as possible. Perhaps I could try to include some sort of functionality in the install scripts to detect an MX Revo and modify the xorg.conf file accordingly... this wouldn't be easy and I don't really like messing around with other peoples' xorg.conf files.
One more thing. I would be really grateful if some MX Revo user has the time to isolate the xorg.conf option that is the culprit here.
EDIT: is it the "Protocol" "auto" option?
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
Originally Posted by
daou
EDIT: is it the "Protocol" "auto" option?
Yeah, you nailed it. I only changed the Protocol to "auto", now it works like it should.
Thank you!
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
even though changing it to auto is still messing with an xorg config, i think that would still fly for the mx revo users, i would just post a warning.
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
Yeah, you nailed it. I only changed the Protocol to "auto", now it works like it should.
Thank you!
No problem. I'll add this to the howto when I release 0.2.6 (about 30 mins :D).
Quote:
Daou, this is an absolutely fantastic program that should be included with Ubuntu. It's straightforward and easy to do, and makes my MXrev fully functional. You even got the side scroller to change views in Beryl. Before I only had mouse 1 and 2 working. Ubuntu devs: I hope you're reading this.
I was going to do it the long way from the old MX rev thread, but that type of thing usually gives me slews of errors, so I decided to wait on this when I saw your post announcing it. (Every console command i make in Linux has a ~20% of giving me an error, so something with a bunch of confusing commands was definitely going to mess things up) Glad I made that decision. :smile:
Setting the search button to middle click by default was a great touch; that's what I have it set to in windows. I think I had to use the uberoptions hack to make that work.
:D:D What's funny is that I never went through the howto to get my MX Revo working on Feisty. I thought it would be almost easier just coding the program, rather than doing all the endless steps in the howto ;). And it almost was (at least it was more fun). The old howto did what it promised, but so does banging your head against the wall.
I'm glad you think it's Ubuntu worthy material. I certainly wouldn't mind if someone did include it.
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
only thing i would add is somehow make an option to see which buttons control what, it might be a little complicated to make user friendly.
personally i changed the scroll wheel left right to changing tabes and the thumb buttons to back and forward in firefox. Default in windows atleast the thumb buttons are for forward and backward in firefox, so i am used to that, some people might agree, but either way it is alot more user friendly with the option to do that somehow without editing the config file.
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
btnx-0.2.6 has been released. If you are upgrading, check the upgrade note in the installation instructions. Additions include:- Support for MX-600. Big thanks to blazoner for doing the hexdumping (on a LiveCD:D).
- Ability to generate mousewheel events (keycode = REL_WHEELFORWARD or REL_WHEELBACK)
- Some changes so btnx might work with other distros. It looks for the uinput and event handlers in a couple of different locations. New install and uninstall scripts for generic distro users (use "make install-generic" and "make uninstall-generic" as root).
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
I'll give it a try and report back as soon as I get home from work. Looking forward to it. :)
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
I'll give it a try and report back as soon as I get home from work. Looking forward to it. :smile:
btnx automatically looks for uinput and the event handlers in the following directories:
- /dev
- /dev/input (this is where they are for Ubuntu)
- /dev/misc
If it turns out that none of those work, modprobe uinput first then use find to locate it (might need root privs):
Code:
$ find /dev -name *uinput*
And then tell me where it is so I can update the list btnx searches.
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
Originally Posted by
daou
btnx-0.2.6 has been released. Additions include:
- Support for MX-600
- Ability to generate mousewheel events (keycode = REL_WHEELFORWARD or REL_WHEELBACK)
- Some changes so btnx might work with other distros. It looks for the uinput and event handlers in a couple of different locations. New install and uninstall scripts for generic distro users (use "make install-generic" and "make uninstall-generic" as root).
Will install. To install over the old vesion, can you just do the same install procedure as before, or do you need to uninstall the old one first? Will it alter the config file?
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
blazoner,
If your MX-600 doesn't work because you couldn't get any output from the event files, try hexdumping all the files in the following directories:
- /dev/input/by-id
- /dev/input/by-path
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
Will install. To install over the old vesion, can you just do the same install procedure as before, or do you need to uninstall the old one first? Will it alter the config file?
Make a backup! The old btnx_config file always gets cleaned up after installing. You should be able to install without uninstalling.
The reason the old config file gets removed, is if you change mice and install it again, it won't copy the new default_config file as the new config. This means, autodetection fails.
Good thing you reminded me about that. Otherwise there would be a couple angry users trolling the thread ;).
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
Originally Posted by
daou
Make a backup! The old btnx_config file always gets cleaned up after installing. You should be able to install without uninstalling.
The reason the old config file gets removed, is if you change mice and install it again, it won't copy the new default_config file as the new config. This means, autodetection fails.
Good thing you reminded me about that. Otherwise there would be a couple angry users trolling the thread ;).
Gotcha.
This is a really straight-forward and useful utility; thanks for making it. Something like this really should have been included by default in Ubuntu a while ago.
Also, it's kind of weird how Logitech didn't include a default button for mouse3, which is now pretty standard in Windows and Linux OS and programs. The wheel click changes scroll types and the button below it does some useless search function. Mouse3 is a much more useful function.
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
Gotcha.
This is a really straight-forward and useful utility; thanks for making it. Something like this really should have been included by default in Ubuntu a while ago.
True. But Ubuntu is still in its infancy compared to other OS's. What's important is that we help make it better.
Quote:
Also, it's kind of weird how Logitech didn't include a default button for mouse3, which is now pretty standard in Windows and Linux OS and programs. The wheel click changes scroll types and the button below it does some useless search function. Mouse3 is a much more useful function.
Yes, I wondered about this as well. It was probably a trade-off between easy scroll-mode changes and the mouse wheel button functionality. I don't use the incremental scroll at all anymore, mostly because I haven't played games in a while. It is useful for FPS gamers, especially, because the mouse is usually flying across the table and the wheel has a tendency to turn by itself then. It's not nice when you are aiming at someone with a rifle and have it replaced by a knife all of a sudden :D.
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
is it possible to also create a script to install revoco with this utility? it would make install of mx revolution ALOT easier for newer users who want middle click-to-click functionality
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
also i am having a problem when i use the thumb buttons it goes actually does the action twice...
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
also i am having a problem when i use the thumb buttons it goes actually does the action twice...
Sounds like a problem someone had before. Make sure the type value for the thumb buttons is type=0
I hope I didn't break anything in the new update :-\". The changes were pretty big in some areas.
Quote:
is it possible to also create a script to install revoco with this utility? it would make install of mx revolution ALOT easier for newer users who want middle click-to-click functionality
I haven't had the chance to try revoco out. But yes, if revoco doesn't interfere with btnx, the install script could prompt the user whether he would like to install revoco. It could then fetch it and install it. I'll think about this.
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
Originally Posted by
daou
Sounds like a problem someone had before. Make sure the type value for the thumb buttons is type=0
I hope I didn't break anything in the new update :-\". The changes were pretty big in some areas.
Worked thanks, i have not tried the new version yet, no updates that affect my seutp
Quote:
I haven't had the chance to try revoco out. But yes, if revoco doesn't interfere with btnx, the install script could prompt the user whether he would like to install revoco. It could then fetch it and install it. I'll think about this.
i have them both working side by side and they do not interfere. Once i compiled revoco i just placed it in my /usr/lib/bin then added "revoco click" to my /etc/rc.local file, so every time it starts up, my wheel is locked into click-to-click mode
-
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Question:
How individual are the button presses? Are they unique?
Question 2:
Any progress on getting the Meta keys to act as modifiers?
Question 3:
How about the ability to call scripts directly (without having to map them to a keyboard button)?
Question 4:
How about adding an optional type 2 which sends an event on press, and a type 3 which sends an event on release?
A note on the MX 600, I am getting a response on pressing the 100% button as if it is only sending a BTN_LEFT event instead of BTN_LEFT + KEY_LEFTALT. Everything else is working great.