Page 11 of 128 FirstFirst ... 9101112132161111 ... LastLast
Results 101 to 110 of 1273

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

  1. #101
    Join Date
    Jan 2007
    Beans
    Hidden!

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

    Quote Originally Posted by daou View Post
    What's strange is that event3 is listed as a handler for the mouse but it doesn't exist. Touching event3 won't help because it won't get registered with the kernel's input interface.
    The cat command you gave wouldn't have worked without a "sudo" or without running as root. But it should have given a "permission denied" error.
    What version of Ubuntu are you running?

    Try modprobing evdev.
    Code:
    sudo modprobe evdev
    If you have rebooted your computer since you last looked at /proc/bus/input/devices, then find the event name again. Then search for that event name:

    Code:
    sudo find /dev -name *event3*
    Replacing event3 with whatever it is at the moment.

    A model troubleshooting post, by the way. I think I'll make a link to your post to show what information should be provided.
    I rebooted and now it is on event6

    When I run btnx, it still doesn't work. event6 doesn't exist in /dev/input/

    Code:
    alex@host:~/btnx-0.2.6$ sudo find /dev -name *event6*
    /dev/.udev/names/input%2fevent10/%2fclass%2finput%2finput6%2fevent6/dev/.udev/names/input%2fby-path%2fpci-0000:00:1d.3-usb-0:2:1.0-event-mouse/%2fclass%2finput%2finput6%2fevent6
    /dev/.udev/names/input%2fby-id%2fusb-Logitech_USB_Receiver-event-mouse/%2fclass%2finput%2finput6%2fevent6
    /dev/.udev/db/%2fclass%2finput%2finput6%2fevent6
    I initialized evdev by doing this:
    Code:
    sudo modprobe evdev
    It runs but doesn't have any ouptut, I'm positive that evdev is installed. I was using it previously.

    I even tried linking one of the /dev/.udev/ files to event6

    Code:
    alex@host:~/btnx-0.2.6$ sudo ln -s /dev/.udev/names/input%2fby-path%2fpci-0000:00:1d.3-usb-0:2:1.0-event-mouse/%2fclass%2finput%2finput6%2fevent6 /dev/input/event6
    After I did this, I ran btnx as root and btnx segfaulted

    Code:
    alex@host:~/btnx-0.2.6$ sudo ./btnx 
    Detected mouse: mxrevo  Vendor=046d Product=c51a
    Device and event handler detection complete.
    -Using event: event6
    Opened handler: /dev/input/event6
    Opened handler: /dev/input/event7
    Opened handler: /dev/input/uinput
    Opened handler: /dev/input/uinput
    No startup errors
    Segmentation fault (core dumped)
    I'm running Ubuntu 7.04, upgraded from 6.10. It's pretty much a regular install, I didn't use automatix or anything like that.

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

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

    When I run btnx, it still doesn't work. event6 doesn't exist in /dev/input/
    Try hexdumping the event handlers in /dev/input/by-id and /dev/input/by-path

    Code:
    $ sudo cat /dev/input/by-id/somename | hexdump
    Move your mouse and see if one of them outputs any data.
    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. #103
    Join Date
    Jan 2007
    Beans
    Hidden!

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

    Quote Originally Posted by daou View Post
    Try hexdumping the event handlers in /dev/input/by-id and /dev/input/by-path

    Code:
    $ sudo cat /dev/input/by-id/somename | hexdump
    Move your mouse and see if one of them outputs any data.
    I hexdumped all of them.

    Code:
    alex@host:~$ sudo find /dev -name *event6*
    /dev/.udev/names/input%2fevent10/%2fclass%2finput%2finput6%2fevent6
    /dev/.udev/names/input%2fby-path%2fpci-0000:00:1d.3-usb-0:2:1.0-event-mouse/%2fclass%2finput%2finput6%2fevent6
    /dev/.udev/names/input%2fby-id%2fusb-Logitech_USB_Receiver-event-mouse/%2fclass%2finput%2finput6%2fevent6
    /dev/.udev/db/%2fclass%2finput%2finput6%2fevent6
    
    alex@host:~$ sudo cat /dev/.udev/names/input%2fevent10/%2fclass%2finput%2finput6%2fevent6 | hexdump
    
    alex@host:~$ sudo cat /dev/.udev/names/input%2fby-path%2fpci-0000:00:1d.3-usb-0:2:1.0-event-mouse/%2fclass%2finput%2finput6%2fevent6 | hexdump
    
    alex@host:~$ sudo cat /dev/.udev/names/input%2fby-id%2fusb-Logitech_USB_Receiver-event-mouse/%2fclass%2finput%2finput6%2fevent6 | hexdump
    
    alex@host:~$ sudo cat /dev/.udev/db/%2fclass%2finput%2finput6%2fevent6 | hexdump
    0000000 3a4e 6e69 7570 2f74 7665 6e65 3174 0a30
    0000010 3a53 6e69 7570 2f74 7962 692d 2f64 7375
    0000020 2d62 6f4c 6967 6574 6863 555f 4253 525f
    0000030 6365 6965 6576 2d72 7665 6e65 2d74 6f6d
    0000040 7375 0a65 3a53 6e69 7570 2f74 7962 702d
    0000050 7461 2f68 6370 2d69 3030 3030 303a 3a30
    0000060 6431 332e 752d 6273 302d 323a 313a 302e
    0000070 652d 6576 746e 6d2d 756f 6573 4d0a 313a
    0000080 3a33 3037 450a 493a 5f44 4556 444e 524f
    0000090 4c3d 676f 7469 6365 0a68 3a45 4449 4d5f
    00000a0 444f 4c45 553d 4253 525f 6365 6965 6576
    00000b0 0a72 3a45 4449 525f 5645 5349 4f49 3d4e
    00000c0 3134 3130 450a 493a 5f44 4553 4952 4c41
    00000d0 4c3d 676f 7469 6365 5f68 5355 5f42 6552
    00000e0 6563 7669 7265 450a 493a 5f44 5954 4550
    00000f0 683d 6469 450a 493a 5f44 5542 3d53 7375
    0000100 0a62 3a45 4449 435f 414c 5353 6d3d 756f
    0000110 6573 450a 493a 5f44 4150 4854 703d 6963
    0000120 302d 3030 3a30 3030 313a 2e64 2d33 7375
    0000130 2d62 3a30 3a32 2e31 0a30               
    000013a
    When I run:
    alex@host:~$ sudo cat /dev/.udev/db/%2fclass%2finput%2finput6%2fevent6 | hexdump

    It outputs the same info every time, regardless of whether the mouse moves. In fact, it outputs if the mouse doesn't even move.

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

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

    I don't know what your xorg.conf looks like now, but looking at the old one, I think you should try to do the following (making a backup first):
    Merge your InputSections into one input section.
    Remove evdev as the driver, use something more generic like "mouse"
    Remove references to the product and vendor IDs
    Use protocol "auto"
    Use device "/dev/mouse" (assuming this is where that device is located in Mandriva).
    Remove the HWheelRelative option, adding it later if necessary.
    I hope it works out.
    Actually my xorg.conf looks exactly the way you wanted. I added "modprobe uinput", a directory change, and ./btnx to /etc/rc.d/rc.local for Mandriva 2007.1 so that stuff would auto load.

    Now I think I will add in revoco, and will have the "coolest mouse in town."

    Thanks much for all your help.

  5. #105
    Join Date
    Jan 2007
    Beans
    85

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

    OK, I've been playing around with the settings a bit, and have noticed that you have gotten the shortcuts for firefox back/forward switched around.
    KEY_LEFT & KEY_LEFTALT should be back in history, and KEY_RIGHT & KEY_LEFTALT should be forward.

  6. #106
    Join Date
    Jun 2006
    Location
    Campbellsburg, KY USA
    Beans
    28
    Distro
    Ubuntu 7.10 Gutsy Gibbon

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

    Well I finally have a day off and I am trying btnx. I does reconize my mouse but does not work. I have read through all the posts so far. Here is all the info I can give you

    Code:
    sam@samstoy:~/btnx-0.2.6$sudo ./btnx
    Detected mouse: mx510   Vendor=046d Product=c01d
    Did not find additional event handlers. No problem.
    Device and event handler detection complete.
    -Using event: event2
    Error opening button event file descriptor"event2": No such file or directory
    There is no event2 in /dev/input

    Code:
    sam@samstoy:~/btnx-0.2.6$sudo cat /dev/input/event2
    cat: /dev/input/event2: No such file or directory
    Code:
    sam@samstoy:~/btnx-0.2.6$cat /proc/bus/input/devices | grep Product=c01d -A 6
    I: Bus=0003 Vendor=046d Product=c01d Version=0110
    N: Name="Logitech USB-PS/2 Optical Mouse"
    P: Phys=usb-0000:00:02.0-1/input0
    S: Sysfs=/class/input/input2
    H: Handlers=mouse1 event2 ts1 
    B: EV=7
    B: KEY=ff0000 0 0 0 0 0 0 0 0
    this is my config file.
    Code:
    Section "InputDevice"
        Identifier     "Mouse1"
        Driver         "mouse"
        Option         "Protocol" "auto"
        Option         "Device" "/dev/psaux"
        Option         "Emulate3Buttons" "no"
        Option         "ZAxisMapping" "4 5"
        Option              "Buttons"       "10"
    EndSection
    Code:
    sam@samstoy:~/btnx-0.2.6$sudo find /dev -name *event2*
    /dev/.static/dev/input/event2
    /dev/.udev/names/input%2fevent9/%2fclass%2finput%2finput2%2fevent2
    /dev/.udev/names/input%2fby-path%2fpci-0000:00:02.0-usb-0:1:1.0-event-mouse/%2fclass%2finput%2finput2%2fevent2
    /dev/.udev/names/input%2fby-id%2fusb-Logitech_USB-PS.2_Optical_Mouse-event-mouse/%2fclass%2finput%2finput2%2fevent2
    /dev/.udev/db/%2fclass%2finput%2finput2%2fevent2
    If you need any more info just let me know.
    Sjust
    UBUNTU Hardy AMD 64 x2 5000+ 2 GB Memory
    Nvidia 8500gt OSS v4
    registered Linux user #421719 Ubuntu user #7719

  7. #107
    Join Date
    Jan 2007
    Beans
    85

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

    Some problems with my MX 600 on a fresh 7.04 install:

    1. Ctrl+Alt+Right (rear thumb button) only works if the mouse is over the desktop itself, not when it is over any window (firefox, OOo, etc.) Ctrl+Alt+Left works both on the desktop, and in windows, as per normal behavior.

    2. The 100% button still only acts like a Left click, except in terminal, where it outputs the same as a middle click. I extended that delay to as much as 150 with no noticeable improvement.

    3. The 100% button, the rear thumb button, and the left scroll wheel press, all register as paste (middle click) in terminal, and the left scroll wheel press then outputs a "C". This seems to be the common denominator between the buttons that are giving me problems.

  8. #108
    Join Date
    Jun 2007
    Beans
    85
    Distro
    Xubuntu 15.10 Wily Werewolf

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

    Here's MX1000 data on 32bit system

    Code:
    I: Bus=0003 Vendor=046d Product=c50e Version=0111
    N: Name="Logitech USB Receiver"
    P: Phys=usb-0000:00:02.0-1/input0
    S: Sysfs=/class/input/input2
    H: Handlers=mouse1 event2 ts1 
    B: EV=20007
    B: KEY=ffff0000 0 0 0 0 0 0 0 0
    B: REL=143
    B: LED=ff00
    Code:
    left button
    
    0000000 3d7c 4664 f9f2 0009 0001 0110 0001 0000 - press
    0000010 3d7c 4664 f9fd 0009 0000 0000 0000 0000
    0000020 3d7c 4664 4b96 000c 0001 0110 0000 0000 - release
    0000030 3d7c 4664 4b9e 000c 0000 0000 0000 0000
    
    
    right button
    
    0000000 3dad 4664 4313 000d 0001 0111 0001 0000 - press
    0000010 3dad 4664 431c 000d 0000 0000 0000 0000
    0000020 3dae 4664 71b6 0000 0001 0111 0000 0000 - release
    0000030 3dae 4664 71c0 0000 0000 0000 0000 0000
    
    
    middle button front
    
    0000000 3dec 4664 6fd1 000e 0001 0116 0001 0000 - press
    0000010 3dec 4664 6fdc 000e 0000 0000 0000 0000
    0000020 3dec 4664 ae51 000e 0002 0008 0001 0000
    0000030 3dec 4664 ae5a 000e 0000 0000 0000 0000 - release
    0000040 3ded 4664 fc2f 0001 0001 0116 0000 0000
    0000050 3ded 4664 fc39 0001 0000 0000 0000 0000
    
    
    middle button rear
    
    0000000 3e26 4664 2cfb 0003 0001 0117 0001 0000 - press
    0000010 3e26 4664 2d00 0003 0000 0000 0000 0000
    0000020 3e26 4664 6b7a 0003 0002 0008 ffff ffff
    0000030 3e26 4664 6b83 0003 0000 0000 0000 0000 - release
    0000040 3e26 4664 dc5b 0005 0001 0117 0000 0000
    0000050 3e26 4664 dc60 0005 0000 0000 0000 0000
    
    wheel tilt left
    
    0000000 3e5c 4664 52b0 0001 0001 0118 0001 0000 - press
    0000010 3e5c 4664 52b3 0001 0000 0000 0000 0000
    0000020 3e5c 4664 b06a 0001 0002 0006 ffff ffff
    0000030 3e5c 4664 b06f 0001 0000 0000 0000 0000 - release
    0000040 3e5c 4664 c395 0003 0001 0118 0000 0000
    0000050 3e5c 4664 c398 0003 0000 0000 0000 0000
    
    
    wheel tilt right
    
    0000000 3e82 4664 075c 0004 0001 0119 0001 0000 - press
    0000010 3e82 4664 075f 0004 0000 0000 0000 0000
    0000020 3e82 4664 45d8 0004 0002 0006 0001 0000
    0000030 3e82 4664 45de 0004 0000 0000 0000 0000 - release
    0000040 3e82 4664 b6ba 0006 0001 0119 0000 0000
    0000050 3e82 4664 b6bd 0006 0000 0000 0000 0000
    
    
    wheel click
    
    0000000 3ec6 4664 e5f6 0006 0001 0112 0001 0000 - press
    0000010 3ec6 4664 e5ff 0006 0000 0000 0000 0000
    0000020 3ec6 4664 9556 0009 0001 0112 0000 0000 - release
    0000030 3ec6 4664 9561 0009 0000 0000 0000 0000
    
    
    thumb front button
    
    0000000 3f10 4664 2b43 000d 0001 0114 0001 0000 - press
    0000010 3f10 4664 2b4d 000d 0000 0000 0000 0000
    0000020 3f11 4664 d6e2 0000 0001 0114 0000 0000 - release
    0000030 3f11 4664 d6ed 0000 0000 0000 0000 0000
    
    
    thumb middle button
    
    0000000 3f93 4664 f5c6 0006 0001 0115 0001 0000 - press
    0000010 3f93 4664 f5d1 0006 0000 0000 0000 0000
    0000020 3f93 4664 f6cc 000b 0001 0115 0000 0000 - release
    0000030 3f93 4664 f6d6 000b 0000 0000 0000 0000
    
    
    thumb rear button
    
    0000000 5368 4664 0b77 0009 0001 0113 0001 0000 - press
    0000010 5368 4664 0b7f 0009 0000 0000 0000 0000
    0000020 5368 4664 37d4 000c 0001 0113 0000 0000 - release
    0000030 5368 4664 37dc 000c 0000 0000 0000 0000

  9. #109
    Join Date
    Jan 2007
    Beans
    85

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

    Well, I've tried my MX 600 with both of my PC's now, and the problems are consistent with both, as are the hexdumps. I have no clue what to try next, so I'm including a text file with all the results I've accumulated so far.

    Here's what's not working:

    1. Ctrl+Alt+Right (rear thumb button) sometimes works if the mouse is over the desktop itself, not as often when it is over any window (firefox, OOo, etc.) Ctrl+Alt+Left works both on the desktop, and in windows, but only sometimes. ***This behavior is extremely sporadic, and the only way to make it work every time is to click and hold the right button first.

    2. The 100% button acts like a wheel click. I extended that delay to as much as 500 with no noticeable improvement.
    Attached Files Attached Files

  10. #110
    Join Date
    Jun 2006
    Location
    Campbellsburg, KY USA
    Beans
    28
    Distro
    Ubuntu 7.10 Gutsy Gibbon

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

    I just want ot let every one know that I fixed my problem. It seems the I forgot about a rules.d file from a previous configuration. Once I got rid of that btnx works great.
    Sjust
    UBUNTU Hardy AMD 64 x2 5000+ 2 GB Memory
    Nvidia 8500gt OSS v4
    registered Linux user #421719 Ubuntu user #7719

Page 11 of 128 FirstFirst ... 9101112132161111 ... 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
  •