Page 2 of 128 FirstFirst 12341252102 ... LastLast
Results 11 to 20 of 1273

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

  1. #11
    Join Date
    May 2007
    Location
    Oceanside, NY
    Beans
    2
    Distro
    Ubuntu 7.04 Feisty Fawn

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

    seems like it would be fantastic, but i keep getting an
    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?

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

    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)
    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:

    Code:
    ls /dev/input
    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.
    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. #13
    Join Date
    Jun 2006
    Location
    Finland
    Beans
    796
    Distro
    Ubuntu Jaunty Jackalope (testing)

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

    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.
    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. #14
    Join Date
    Apr 2007
    Beans
    28
    Distro
    Kubuntu 13.10 Saucy Salamander

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

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

  5. #15
    Join Date
    May 2007
    Location
    Maryland
    Beans
    539
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    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.
    "I thought what I'd do was I'd pretend I was one of those deaf-mutes"
    Desktop: Ubuntu 9.10, Windows XP
    Laptop: Ubuntu 9.10, Windows Vista (soon to be replaced by Windows 7)
    n800: Diablo/Maemo 4 (one day Mer..)

  6. #16
    Join Date
    Apr 2007
    Beans
    28
    Distro
    Kubuntu 13.10 Saucy Salamander

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

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

  7. #17
    Join Date
    May 2007
    Location
    Maryland
    Beans
    539
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    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?
    "I thought what I'd do was I'd pretend I was one of those deaf-mutes"
    Desktop: Ubuntu 9.10, Windows XP
    Laptop: Ubuntu 9.10, Windows Vista (soon to be replaced by Windows 7)
    n800: Diablo/Maemo 4 (one day Mer..)

  8. #18
    Join Date
    Apr 2007
    Beans
    28
    Distro
    Kubuntu 13.10 Saucy Salamander

    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.

  9. #19
    Join Date
    May 2007
    Location
    Maryland
    Beans
    539
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    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.
    "I thought what I'd do was I'd pretend I was one of those deaf-mutes"
    Desktop: Ubuntu 9.10, Windows XP
    Laptop: Ubuntu 9.10, Windows Vista (soon to be replaced by Windows 7)
    n800: Diablo/Maemo 4 (one day Mer..)

  10. #20
    Join Date
    Jan 2007
    Beans
    85

    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?

Page 2 of 128 FirstFirst 12341252102 ... 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
  •