Page 54 of 128 FirstFirst ... 444525354555664104 ... LastLast
Results 531 to 540 of 1273

Thread: btnx: Send keyboard and mouse combination events with mouse buttons

  1. #531
    Join Date
    Jun 2006
    Ubuntu Jaunty Jackalope (testing)

    Re: btnx: Send keyboard and mouse combination events with mouse buttons

    btnx-0.3.3 released:
    • Rehauled init process. It should now work on Mandriva as well. I've tested it on Mandriva. It should work on other distros as well that use chkconfig to install init scripts.
    btnx-config-0.2.3 released:
    • The udev rule generated by saving the config file has been updated, which has caused minor problems during boot.
    This combo should fix bugs related to btnx starting during boot (including for some people on Ubuntu).

    RVDowning: if you are still following this thread, try the new combo on Mandriva and tell me if it works. I've tested it. I had some trouble with Mandriva's xorg.conf. It kept autodetecting the mouse and replacing my edits, which lead to btnx not working because the autodetected inputsections use evdev. I think I got around it by commenting a few lines (not too many, otherwise it autogenerates the sections again), and switching "evdev" to "mouse".

    If anyone is using a different distro, let me know if these work on them. I'm especially interested about the functionality of the btnx init script in /etc/init.d/btnx in other distros. It seems the LSB System V init standard isn't as much of a standard as it's supposed to be. Implementations vary.
    echo -e "\x6f\x61\x73\x61\x6c\x6f\x6e\x65\x6e\x40\x67 \b\x6d\x61\x69\x6c\x2e\x63\x6f\x6d"
    It compiles! Ship it!

  2. #532
    Join Date
    Apr 2007

    Re: btnx: Send keyboard and mouse combination events with mouse buttons

    It almost works on opensuse.

    I did a small change (not sure what it did) basically it couldn't stat btnx.
    Apparently this line was causing problems

    cat /lib/lsb/init-functions | grep start-stop-daemon > /dev/null
    [ $? -eq 1 ] && DAEMON=$NAME
    I Commented out && DAEMON=$NAME and it works...

    However, I have some very strange problem with my MX518 mouse. For some bizarre reason, the '+' Button fires the same event as the Side Backward Button
    i.e. they both fire button 8. And the Task Switcher Button (two squares) fires button 2 a.k.a. the middle button.

    Btnx distinguishes these events but then there are multiple-events occuring.

    I've read the btnx man page about this and tried the suggestions ... but to no avail :S.

    But btnx works great, just doesn't quite fix my problem yet .

    I'm using OpenSuse 10.3 x64, Xorg 7.3


  3. #533
    Join Date
    Jul 2005
    Ubuntu 8.04 Hardy Heron

    Re: btnx: Send keyboard and mouse combination events with mouse buttons

    unfortunately the new version doesent work well for me and i had to revert to the old version.

    ive done and re-done the config several times and the result is always the same:
    thumbwheel back/forward/press does nothing, no matter what i assign to them

    also the back and forward buttons seems to behave as right and left scroll in addition to back and forward in webpages
    it also failed to scrollwheel left tilt as a button while righttilt works

    mx revo
    hardy 64 bit

  4. #534
    Join Date
    Dec 2006
    Pacific Northwest, USA

    checkinstall failed


    Gutsy x86, repo kernel (2.6.22).

    Any ideas?

    root@kioskfreedom:/usr/local/src# tar -xvvf /freight/lindown/btnx-0.3.3.tar.gz 
    -rw-r--r-- daou/daou      6726 2007-07-01 05:47 btnx-0.3.3/data/events
    drwxr-xr-x                  Creating directory: btnx-0.3.3
    drwxr-xr-x                  Creating directory: btnx-0.3.3/data
    -rwxr-xr-x daou/daou      5147 2007-11-10 06:01 btnx-0.3.3/scripts/
    drwxr-xr-x                  Creating directory: btnx-0.3.3/scripts
    -rw-r--r-- daou/daou      1942 2007-11-10 06:01 btnx-0.3.3/scripts/
    -rw-r--r-- daou/daou      3737 2007-11-11 01:53 btnx-0.3.3/scripts/
    drwxr-xr-x daou/daou         0 2007-11-11 02:02 btnx-0.3.3/data/
    drwxr-xr-x daou/daou         0 2007-11-11 02:02 btnx-0.3.3/scripts/
    -rw-r--r-- daou/daou       835 2007-10-18 02:35 btnx-0.3.3/Makefile
    -rw-r--r-- daou/daou      8819 2007-10-15 07:05 btnx-0.3.3/config_parser.c
    -rw-r--r-- daou/daou       533 2007-07-01 08:47 btnx-0.3.3/device.h
    -rw-r--r-- daou/daou       965 2007-07-01 08:47 btnx-0.3.3/config_parser.h
    -rw-r--r-- daou/daou     11892 2007-11-10 03:44 btnx-0.3.3/btnx.c
    -rw-r--r-- daou/daou      1718 2007-07-14 06:18 btnx-0.3.3/SUPPORTED_MICE
    -rw-r--r-- daou/daou      7784 2007-10-15 07:05 btnx-0.3.3/revoco.c
    -rw-r--r-- daou/daou      3520 2007-07-14 06:18 btnx-0.3.3/devices_parser.c
    -rw-r--r-- daou/daou       399 2007-05-27 08:35 btnx-0.3.3/uinput.h
    -rw-r--r-- daou/daou      3867 2007-07-06 01:25 btnx-0.3.3/uinput.c
    -rw-r--r-- daou/daou      1914 2007-07-06 01:25 btnx-0.3.3/device.c
    -rw-r--r-- daou/daou       584 2007-05-27 08:35 btnx-0.3.3/devices_parser.h
    -rw-r--r-- daou/daou       559 2007-10-15 07:05 btnx-0.3.3/revoco.h
    -rw-r--r-- daou/daou      1068 2007-07-14 06:18 btnx-0.3.3/README
    -rw-r--r-- daou/daou       710 2007-07-06 06:38 btnx-0.3.3/btnx.h
    -rw-r--r-- daou/daou     17987 2007-06-12 11:35 btnx-0.3.3/COPYING
    -rw-r--r-- daou/daou       464 2007-07-14 06:18 btnx-0.3.3/INSTALL
    root@kioskfreedom:/usr/local/src# cd btnx-0.3.3/
    root@kioskfreedom:/usr/local/src/btnx-0.3.3# make
    gcc btnx.c -Wall -c -o btnx.o
    gcc uinput.c -Wall -c -o uinput.o
    gcc config_parser.c -Wall -c -o config_parser.o
    gcc devices_parser.c -Wall -c -o devices_parser.o
    gcc device.c -Wall -c -o device.o
    gcc revoco.c -Wall -c -o revoco.o
    gcc -o btnx btnx.o uinput.o config_parser.o devices_parser.o device.o revoco.o -Wall 
    root@kioskfreedom:/usr/local/src/btnx-0.3.3# checkinstall
    checkinstall 1.6.1, Copyright 2002 Felipe Eduardo Sanchez Diaz Duran
               This software is released under the GNU GPL.
    The package documentation directory ./doc-pak does not exist. 
    Should I create a default set of package docs?  [y]: y
    Preparing package documentation...OK
    Please write a description for the package.
    End your description with an empty line or EOF.
    >> button extension (
    **** Debian package creation selected ***
    This package will be built according to these values: 
    0 -  Maintainer: [ root@kioskfreedom ]
    1 -  Summary: [ button extension ( ]
    2 -  Name:    [ btnx ]
    3 -  Version: [ 0.3.3 ]
    4 -  Release: [ 1 ]
    5 -  License: [ GPL ]
    6 -  Group:   [ checkinstall ]
    7 -  Architecture: [ i386 ]
    8 -  Source location: [ btnx-0.3.3 ]
    9 -  Alternate source location: [  ]
    10 - Requires: [  ]
    Enter a number to change any of them or press ENTER to continue: 
    Installing with make install...
    ========================= Installation results ===========================
    Installing btnx...
     Adding system startup for /etc/init.d/btnx ...
       /etc/rc0.d/K49btnx -> ../init.d/btnx
       /etc/rc1.d/K49btnx -> ../init.d/btnx
       /etc/rc6.d/K49btnx -> ../init.d/btnx
       /etc/rc2.d/S49btnx -> ../init.d/btnx
       /etc/rc3.d/S49btnx -> ../init.d/btnx
       /etc/rc4.d/S49btnx -> ../init.d/btnx
       /etc/rc5.d/S49btnx -> ../init.d/btnx
    btnx has been successfully installed!
    You can type 'sudo /etc/init.d/btnx start' to start btnx if you have made a configuration file with btnx-config.
    ======================== Installation successful ==========================
    Copying documentation directory...
    grep: /var/tmp/ClKAdphZpfAZiXfjZPkNr/newfile: No such file or directory
    Copying files to the temporary directory...OK
    Striping ELF binaries and libraries...OK
    Compressing man pages...OK
    Building file list...OK
    Building Debian package...OK
    Installing Debian package... FAILED!
    *** Failed to install the package
    Do you want to see the log file?  [y]: y
    *** SIGINT received ***
    Cleaning up...OK
    And here's that log file:

    (Reading database ... 45133 files and directories currently installed.)
    Unpacking btnx (from .../btnx_0.3.3-1_i386.deb) ...
    dpkg: btnx: warning - conffile `etc/rc5.d' is not a plain file or symlink (= `/etc/rc5.d')
    dpkg: error processing /usr/local/src/btnx-0.3.3/btnx_0.3.3-1_i386.deb (--install):
     unable to create `./etc/btnx/events': No such file or directory
    Errors were encountered while processing:
    I'd love to configure w/o documentation if that would work (not that i think it's a good idea), but there's no configure file...?

    I'm not sure what to do from here.

    ================================================== ==========
    | EDIT |

    Well, "make install" worked. Don't like the checkinstall failing, though (and that other fellow also had no luck w/ it). Any thoughts?

    btnx-config checkinstalled just fine, btw.

    More problems, to come
    Last edited by MeanderingCode; November 14th, 2007 at 07:04 AM.

  5. #535
    Join Date
    Dec 2006
    Pacific Northwest, USA

    Decided to wait a while on this one

    Just too odd.

    But, for any help it may provide, here's some info:
    Gutsy x86 repo kernel.
    XFCE (Xubuntu alternate install cd), Compiz-fusion (in case that might matter)
    Microsoft Wireless Notebook Laser Mouse 6000 (identifies in /proc/bus/input/devices as Microsoft Microsoft Wireless Optical Mouse# 1.00 (insert odd question mark character in place of #))

    Simply under xorg.conf (xserver-xorg repository version 1:7.2-5ubuntu13, btw) i had this functionality with this entry:
    left and right click; scroll wheel click as middle, scroll, tilt; thumb button register in xev as button 9 (many progs acted as if it were either left or right click, though)
    Here's relevent section:
    Section "InputDevice"
    	Identifier	"Wireless Mouse"
    	Driver		"evdev"
    	Option		"CorePointer"
    	Option		"Name"	"*Microsoft Wireless Optical Mouse*"
    	Option		"Buttons"	"9"
    	Option		"ZAxisMapping"	"4 5"
    	Option		"DialRelativeAxisButtons"	"7 6"
    Section "ServerLayout"
    	InputDevice	"Wireless Mouse"	"SendCoreEvents"
    I was very happy to see this work (just as a note, the name matching with the asterisks was neccessary because i couldn't match the strange character in the name given by "cat /proc/bus/input/devices" after the word mouse, the event was changing every boot (so i couldn't use the device option))

    I wanted to try this app out so i could map that thumb button to Control+Alt+Left Click (rotate cube in compiz). I couldn't just re-shortcut to "button 9" because i also have a touchpad and trackpoint on this here laptop. So.... but here's what happens:

    Same xorg.conf, multiple different xorg.confs, whatever...simplest to say i tried having no entry for the device and i tried having "basic" entry daou has recommended, and in many flavours and iterations. Here's the best behaviour i got:

    w/ said simplest xorg.conf, button 9 produces: button 9, button 2, button 1 (what i actually had set it for), Alt_L (also set) would only hold one meta key setting between x restarts, btw.

    i can never, with any xorg.conf, get it to stop producing button 2 events for everything set and enabled in btnx.

    w/ my above xorg.conf, thumb button produces: button 2 event or button 3 event or any damn button event i set it to EXCEPT button 1...won't do it, not even when i ask nicely. I tried setting buttons option to 7 instead of luck.

    I also think it's messing with my trackpoint middle click scroll functionality (diff part of xorg.conf)...this is very bad.

    Anyway, it's a great looking app, amazing and inspirational to my fledgling hacking, but i think i don't have the time to try and get this one working at this stage of dev.

    Good luck, I'll be checking up on releases!!!

    EDIT:daou, feel free to PM me if you want more details of my experience.
    Last edited by MeanderingCode; November 15th, 2007 at 02:26 AM.

  6. #536
    Join Date
    Aug 2007
    Ubuntu 9.10 Karmic Koala

    Re: btnx: Send keyboard and mouse combination events with mouse buttons

    First, I want to say thank you for a great little application. Btnx is a badly needed feature for Ubuntu!

    Unfortunately, I think I may have discovered a bug in btnx. I had it install in my system (Gutsy, btnx 0.3.3, btnx config 0.2.3) and everything was working great. But, then when I tried to use gnome-pilot to sync my palm Treo 680 with Evolution I was not able to. Btnx had bonked palm pilot syncing. I uninstalled btnx and palm pilot syncing returned.

    Here are a few more details that might help in tracking down where the conflict/bug is: I am using a USB mouse. And, gnome-pilot uses USB to sync with my Palm Treo 680. My guess is that btnx and gnome-pilot conflict over the USB.

    Thanks again for your work on btnx. I hope you are able to track down the conflict and fix it without much trouble. I would love to have the functionality of btnx again.

  7. #537
    Join Date
    Jun 2006
    Ubuntu Jaunty Jackalope (testing)

    Re: btnx: Send keyboard and mouse combination events with mouse buttons

    Sorry for the delay in my responses. I'm allocating some time to develop btnx a bit further. The new versions will include support for multiple configurations. This will allow you to change button configurations on the fly. For example, you will be able to bind a button to restart btnx with a different configuration. One could be for gaming, one for internet surfing, another for image/3D editing, code development, etc. etc.

    The interface will be cleaned up a bit as well. A screenshot of the new window is attached.
    Attached Images Attached Images
    echo -e "\x6f\x61\x73\x61\x6c\x6f\x6e\x65\x6e\x40\x67 \b\x6d\x61\x69\x6c\x2e\x63\x6f\x6d"
    It compiles! Ship it!

  8. #538
    Join Date
    Jul 2007
    Kubuntu 7.10 Gutsy Gibbon

    Re: btnx: Send keyboard and mouse combination events with mouse buttons

    Something that forces btnx to send a key release signal immediately after pressing for any keys sent by a button
    Will you be implementing this in the next version?

  9. #539
    Join Date
    Jun 2006
    Ubuntu Jaunty Jackalope (testing)

    Re: btnx: Send keyboard and mouse combination events with mouse buttons

    Quote Originally Posted by rand0m View Post
    Will you be implementing this in the next version?
    Now that you reminded me, I probably will .
    echo -e "\x6f\x61\x73\x61\x6c\x6f\x6e\x65\x6e\x40\x67 \b\x6d\x61\x69\x6c\x2e\x63\x6f\x6d"
    It compiles! Ship it!

  10. #540
    Join Date
    Mar 2007
    Ubuntu 8.04 Hardy Heron

    Re: btnx: Send keyboard and mouse combination events with mouse buttons

    I am having a crazy issue, only with the latest version, where if the computer turns the display off, due to idle time or whatever, btnx is killed, and doesn't start up again. i am thinking a possible work around would be to stick it in a script that runs on wake, but it doesn't happen for any other daemon.

    I am running Ubuntu Gutsy x86, and just to clarify, the previous versions where the config was optional ran fine.

Page 54 of 128 FirstFirst ... 444525354555664104 ... LastLast


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts