Page 79 of 128 FirstFirst ... 2969777879808189 ... LastLast
Results 781 to 790 of 1273

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

  1. #781
    Join Date
    Jun 2006
    Location
    Finland
    Beans
    796
    Distro
    Ubuntu Jaunty Jackalope (testing)

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

    Quote Originally Posted by dondad View Post
    Here they are:
    Code:
    Original 
    
    Section "InputDevice"
        Identifier    "Configured Mouse"
        Driver        "mouse"
    EndSection
    
    
    edited: (this is the same as the gutsy one that works [same computer, dual boot])
    
    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
    After the latest updates, it started crashing when I tried to detect the buttons. Just for grins, I tried taking the configuratin backup from the gutsy install and it sorta worked for a bit, but then the mouse really started acting weird, putting out continuous characters and disabling everything. I killed it then uninstalled butnx and deleted the folders. I can reinstall if anyone has something to try. This hardy install is for playing/testing, so I don't mind trying stuff if it will help debug. If it breaks the system, I can reinstall, no problem.

    The way it is acting, I am wondering if the Hardy defaults take over some of the mouse buttons and is interfering with btnx. For instance, if I push the button on top of the mouse (after a normal hardy and btnx install, no changes), it opens the file search. (this is an MX Revolution mouse) I fixed that by changing the hot key for the search, but I wonder if the buttons are being intercepted by the xsystem. I don't know how to make that go away if that is the case.
    You could try setting the xorg.conf option Protocol to "auto", and if that isn't enough, try also setting Device to "/dev/psaux".

    The search button on the MX Revolution is actually a "keyboard" button. This is probably why Hardy recognizes it as a search button, but it isn't a problem if remapping it under the keyboard shortcuts is enough.
    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. #782
    Join Date
    Jun 2006
    Location
    Finland
    Beans
    796
    Distro
    Ubuntu Jaunty Jackalope (testing)

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

    Quote Originally Posted by slughappy1 View Post
    Ok, so I re-edited my xorg file so it looks like:
    Code:
    Section "InputDevice"
        Identifier    "Configured Mouse"
        Driver        "mouse"
        Option         "Protocol"        "auto"
            Option         "Device"          "/dev/psaux"
            Option         "Emulate3Buttons" "no"
            Option         "ZAxisMapping"    "4 5"
            Option         "Buttons"         "3"
    EndSection
    and my btnx-config looks like the picture I attached. But it still doesn't actually work. When I press the two front buttons on my VX Nano (forwards and backwards) don't do anything. Although when I press the forward button it no longer acts like the right button, so that's a step forward. What else can I do?
    The BTN_FORWARD and BTN_BACK aren't recognized correctly by the window manager or applications. Try using Alt+Left and Alt+Right keyboard combinations for back and forward, respectively. So for Alt+Left you would set keycode to KEY_LEFT and modifier 1 to KEY_LEFTALT.
    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!

  3. #783
    Join Date
    Jun 2006
    Location
    Finland
    Beans
    796
    Distro
    Ubuntu Jaunty Jackalope (testing)

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

    Quote Originally Posted by Mushindo View Post
    Gracias por tu interés, pero esa configuración no soluciona mi problema.
    Deseo cambiar de aplicación visual pulsando a un botón del ratón.
    Al parecer la función ALT_LEFT + TAB no se realiza correctamente cuando se usan al mismo tiempo. Se tendría que usar primero ALT_LEFT y posteriormente TAB.
    Un saludo a todos.

    Google traslator:
    Thanks for your interest, but this configuration does not solve my problem.
    I want to change visibility application by pressing a button on the mouse.
    Apparently the role ALT_LEFT + TAB is not performed correctly when used at the same time. It should be used first and then ALT_LEFT TAB.
    A greeting to all.
    Alt+Tab es un poco difícil en btnx. Puedes configurar un botón a KEY_LEFTALT y un otro botón a KEY_TAB. Entonces, mantenga pulsada el botón de KEY_LEFTALT y "click" el botón de KEY_TAB. En el futuro, tal vez es posible a utilizar uno botón para Alt+Tab. (Lo siento, porque no hablé o escribí español por cuatro años).

    En Inglés:
    Using Alt+Tab is difficult in btnx. You can configure one button as KEY_LEFTALT and another one as KEY_TAB. Then, hold down the key for KEY_LEFTALT and click the KEY_TAB button. In the future, it might be possible to bind one key to Alt+Tab.
    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!

  4. #784
    Join Date
    Jun 2006
    Location
    Finland
    Beans
    796
    Distro
    Ubuntu Jaunty Jackalope (testing)

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

    Quote Originally Posted by bismark View Post
    Thanks, that partially worked, I had to change the
    Code:
    if [ $RET -eq 2 ]; then
    to the following
    Code:
    if [ $RET -ne 0 ]; then
    because btnx would error out with 152 if it couldn't find that mouse.
    Code:
    btnx successfully stopped
     btnx: uinput modprobed successfully.
     btnx: Opening config file: /etc/btnx/btnx_config_MX500
     btnx: Opened handler: /dev/input/event0
     btnx: Opened handler: /dev/input/event1
     btnx: Opened handler: /dev/input/event2
     btnx: Opened handler: /dev/input/event3
     btnx: Opened handler: /dev/input/event4
     btnx: Opened handler: /dev/input/event5
     btnx: Opened handler: /dev/input/event6
     btnx: Opened handler: /dev/input/event7
     btnx: Opened handler: /dev/input/event8
     btnx: Opened handler: /dev/input/event9
     btnx: Opened handler: /dev/input/event10
     btnx: Opened handler: /dev/input/event11
     btnx: Opened handler: /dev/input/event12
     btnx: Error opening button event file descriptor: No such file or directory
    152
    I'm going to work on it a bit and do a bit more elegant solution envolving loop through all configs present (for those with multiple mice like me).

    Also is there a way to make it start quietly without all of the "Opening Handler" messages?
    You can edit the source code and comment out the line that outputs the message. So add // in front of line 124 in btnx.c ("printf(OUT_PRE "Opened handler: %s\n", loc_buffer);")and recompile and install.
    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!

  5. #785
    Join Date
    Jul 2007
    Location
    Salt Lake City, Utah
    Beans
    487
    Distro
    Ubuntu 9.10 Karmic Koala

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

    Thank you very much, it worked

  6. #786
    Join Date
    Mar 2007
    Beans
    3

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

    Quote Originally Posted by daou View Post
    Alt+Tab es un poco difícil en btnx. Puedes configurar un botón a KEY_LEFTALT y un otro botón a KEY_TAB. Entonces, mantenga pulsada el botón de KEY_LEFTALT y "click" el botón de KEY_TAB. En el futuro, tal vez es posible a utilizar uno botón para Alt+Tab. (Lo siento, porque no hablé o escribí español por cuatro años).

    En Inglés:
    Using Alt+Tab is difficult in btnx. You can configure one button as KEY_LEFTALT and another one as KEY_TAB. Then, hold down the key for KEY_LEFTALT and click the KEY_TAB button. In the future, it might be possible to bind one key to Alt+Tab.
    Gracias por tu explicación...

    Thanks

  7. #787
    Join Date
    Feb 2006
    Beans
    23

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

    Could someone help me set up my Logitech Mx 610 mouse. I've followed the various posts here, and googled but I can't get the mouse to work. Anyone that has the same mouse as me that got it working through Btnx?

  8. #788
    Join Date
    Jun 2006
    Location
    Finland
    Beans
    796
    Distro
    Ubuntu Jaunty Jackalope (testing)

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

    Quote Originally Posted by tocky View Post
    Could someone help me set up my Logitech Mx 610 mouse. I've followed the various posts here, and googled but I can't get the mouse to work. Anyone that has the same mouse as me that got it working through Btnx?
    btnx should work with most USB mice (or wireless with an USB adapter). I suggest you give it a try. The btnx manual explains its usage quite comprehensively.

    I believe blazoner has an MX610 and uses btnx. He posts on this thread now and then.
    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!

  9. #789
    Join Date
    Feb 2008
    Beans
    7
    Distro
    Ubuntu 7.10 Gutsy Gibbon

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

    Allright, I've installed btnx - awesome job, really. Trouble is Xorg keeps saying that my cheap Maxxtro mouse (yeah, I know ) side buttons are respctively button 3 and button 2, which means that everytime I click them I get the action I chose in btmx + a context menu / middle button action. My xorg.conf now says
    Section "InputDevice"
    Identifier "Configured Mouse"
    Driver "mouse"
    Option "CorePointer"
    Option "Device" "/dev/input/mice"
    Option "Protocol" "ImPS/2"
    Option "Emulate3Buttons" "false"
    Option "Buttons" "7"
    Option "ButtonMapping" "1 2 3 6 7"
    Option "ZAxisMapping" "4 5"
    Which is the final result of a number of changes I've tried - no remapping, 5-7-9 buttons, different zaxis mapping etc. Nothing worked so far. Any hint? At this point I would even accept a sub-optimal solution like hiding the side buttons from xorg so that I can at least send key combinations through btmx without xorg interfering.
    Thanks in advance!

    EDIT: solved. After reading again your manual I noticed I hadn't cchanged mouse protocol nor commented that CorePointer option, and that seems to do the trick for me. Thanks anyway
    Last edited by manuhalo; February 16th, 2008 at 06:32 PM.

  10. #790
    Join Date
    Feb 2006
    Beans
    23

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

    Quote Originally Posted by daou View Post
    btnx should work with most USB mice (or wireless with an USB adapter). I suggest you give it a try. The btnx manual explains its usage quite comprehensively.

    I believe blazoner has an MX610 and uses btnx. He posts on this thread now and then.
    I meant that I have tried to get my mouse working through btnx, but fail miserably every time.

Page 79 of 128 FirstFirst ... 2969777879808189 ... LastLast

Bookmarks

Posting Permissions

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