Page 6 of 128 FirstFirst ... 456781656106 ... LastLast
Results 51 to 60 of 1273

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

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

    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.
    Last edited by daou; June 1st, 2007 at 04:37 PM.
    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. #52
    Join Date
    May 2006
    Beans
    29

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

    Quote Originally Posted by daou View Post
    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. :/

  3. #53
    Join Date
    Oct 2006
    Beans
    23

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

    did not work for me either

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

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

    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.
    Last edited by daou; June 9th, 2007 at 11:26 AM.
    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. #55
    Join Date
    May 2006
    Beans
    29

    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.
    Last edited by Akegata; June 1st, 2007 at 04:28 PM.

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

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

    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
    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!

  7. #57
    Join Date
    Oct 2006
    Beans
    23

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

    Quote Originally Posted by daou View Post
    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

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

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

    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
    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?
    Last edited by daou; June 1st, 2007 at 05:29 PM.
    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. #59
    Join Date
    May 2006
    Beans
    29

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

    Quote Originally Posted by daou View Post
    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!

  10. #60
    Join Date
    Oct 2006
    Beans
    23

    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.

Page 6 of 128 FirstFirst ... 456781656106 ... 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
  •