Page 4 of 128 FirstFirst ... 234561454104 ... LastLast
Results 31 to 40 of 1273

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

  1. #31
    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

    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.
    "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..)

  2. #32
    Join Date
    May 2007
    Location
    Suwanee, GA, USA
    Beans
    32

    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?

  3. #33
    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

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

  4. #34
    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 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.
    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. #35
    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'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.
    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!

  6. #36
    Join Date
    May 2007
    Location
    Suwanee, GA, USA
    Beans
    32

    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.
    Last edited by RVDowning; June 1st, 2007 at 12:04 AM.

  7. #37
    Join Date
    Jan 2007
    Beans
    85

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

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

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

    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?

  9. #39
    Join Date
    Jan 2007
    Beans
    85

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

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

  10. #40
    Join Date
    Jan 2007
    Beans
    85

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

Page 4 of 128 FirstFirst ... 234561454104 ... 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
  •