[Solved] Binding a mouse button to control

Hi. I'm searching for a way to bind a mouse button to act exactly like Control.
If you would like to bind Caps Lock to act as Control you would do the following for example:
remove lock = Caps_Lock
add Control = Caps_Lock
keysym Caps_Lock = Control_L
It appears that xmodmap doesn't work this way for mouse buttons this way however.
The motivation for this is to have convenient key-bindings for an old game which doesn't support remapping.
Thanks!
Last edited by Cadynum (2010-08-14 18:34:27)

Asthma wrote:
I'm using this:
http://wiki.archlinux.org/index.php/Get … g#evrouter
my /root/.evrouterrc
"Razer DeathAdder" "/dev/input/event*" any key/276 "XKey/Alt_L"
"Razer DeathAdder" "/dev/input/event*" any key/275 "XKey/Shift_L"
This binds two side buttons on my DeathAdder to alt and shift and to launch it I simply run as root evrouter /dev/input/event* .
That worked perfectly, thanks!
The wiki mentions something about not(?) using the evdev driver in X. However no modifications were necessary here.

Similar Messages

  • [SOLVED] Disabling broken mouse button

    Hi all,
    I found my mouse button 9 is broken: xev reveals it registers even when not pressed (especially in a naughty day), and my guess is it's the hardware that's stuffed. So, is there a way to tell xorg or whatever to ignore the event? Thanks.
    Last edited by dumas (2013-05-19 12:34:58)

    I expect you can use xinput to map that button to nothing.

  • Enabling back/forward mouse buttons in Dolphin

    Hi,
    I am new to Arch and am not completely sure yet on how to go about providing a solution that I found. I've searched the Wiki and the Forums for this issue and wasn't able to find a solution through any Arch site. I was, however, able to find a solution posted on the KDE forums and would like to share it with anyone who is suffering the same issue.
    The original forum post can be found here: http://forum.kde.org/viewtopic.php?f=14&t=85430. I will summarize it here though for convenience.
    First, you must install xautomation which can be downloaded at http://aur.archlinux.org/packages.php?ID=7312 and xbindkeys, which can be installed using Pacman.
    Next, create a text file named .xbindkeysrc and save it to your home directory. The content of the file should be:
    # For the benefit of emacs users: -*- shell-script -*-
    # xbindkeys configuration #
    # Version: 1.8.0
    # If you edit this file, do not forget to uncomment any lines
    # that you change.
    # The pound(#) symbol may be used anywhere for comments.
    # To specify a key, you can use 'xbindkeys --key' or
    # 'xbindkeys --multikey' and put one of the two lines in this file.
    # The format of a command line is:
    # "command to start"
    # associated key
    # A list of keys is in /usr/include/X11/keysym.h and in
    # /usr/include/X11/keysymdef.h
    # The XK_ is not needed.
    # List of modifier:
    # Release, Control, Shift, Mod1 (Alt), Mod2 (NumLock),
    # Mod3 (CapsLock), Mod4, Mod5 (Scroll).
    # The release modifier is not a standard X modifier, but you can
    # use it if you want to catch release events instead of press events
    # By defaults, xbindkeys does not pay attention with the modifiers
    # NumLock, CapsLock and ScrollLock.
    # Uncomment the lines above if you want to pay attention to them.
    #keystate_numlock = enable
    #keystate_capslock = enable
    #keystate_scrolllock= enable
    # Examples of commands:
    "xbindkeys_show"
    control+shift + q
    # set directly keycode (here control + f with my keyboard)
    "xterm"
    c:41 + m:0x4
    # specify a mouse button
    "xterm"
    control + b:2
    #"xterm -geom 50x20+20+20"
    # Shift+Mod2+alt + s
    ## set directly keycode (here control+alt+mod2 + f with my keyboard)
    #"xterm"
    # alt + c:0x29 + m:4 + mod2
    ## Control+Shift+a release event starts rxvt
    #"rxvt"
    # release+control+shift + a
    ## Control + mouse button 2 release event starts rxvt
    #"rxvt"
    # Control + b:2 + Release
    # dolphin go back
    "xte 'keydown Alt_L' 'key Right' 'keyup Alt_L'"
    b:9
    # dolphin go forward
    "xte 'keydown Alt_L' 'key Left' 'keyup Alt_L'"
    b:8
    # End of xbindkeys configuration #
    You then need to create an autostart entry in /home/user_name/.kde4/Autostart named xbindkeys.desktop containing the following code:
    [Desktop Entry]
    Comment[en_US]=
    Comment=
    Encoding=UTF-8
    Exec=xbindkeys
    GenericName[en_US]=
    GenericName=
    Icon=
    MimeType=
    Name[en_US]=
    Name=
    Path=
    StartupNotify=false
    Terminal=false
    TerminalOptions=
    Type=Application
    Version=1.0
    X-DBUS-ServiceName=
    X-DBUS-StartupType=
    X-DCOP-ServiceType=
    X-KDE-SubstituteUID=false
    X-KDE-Username=
    X-KDE-autostart-after=kdesktop
    Now just reboot your computer and you should have back/forward mouse button functionality in Dolphin.

    I know this thread is really old but I got the mouse buttons working using this solution (I have a 9 button mouse):
    Firs make sure you have xmodmap installed on your system:
    # pacman -S xorg-xmodmap
    Then create the following shell script: ~/.kde4/Autostart/xmodmap.sh
    #!/bin/bash
    xbindkeys -e "pointer = 1 2 3 4 5 6 7 8 9"
    then make the script executable
    $ chmod +x ~/.kde4/Autostart/xmodmap.sh
    Restart KDE and hopefully the forward and backward mouse buttons should be working.

  • [SOLVED] G602 Gaming mouse extra buttons detected as keyboard keys

    I have a Logitech G602 mouse with a bunch of extra buttons. I am familiar with xmodmap, xinput, xbindkeys, and easystroke.
    If I use xev to test for input events, my back/forward buttons work like most mice- I get values of button 8 and button 9. However, when I use the other extra mouse buttons, I get IDENTICAL values to pressing 1, 2, or 3 on the keyboard respectively.
    As an example, say I open a terminal. I can press these extra mouse buttons and it will "type" 1, 2 or 3 into the terminal just as if I had hit those numbers on my keyboard. If I hit shift, it will "type" !, @, and # just as if I had typed on the keyboard.
    If I change the keycodes, I lose function of my 1, 2, and 3 keys. If I use xbindkeys to bind a command to the extra mouse buttons, pressing 1, 2, and 3 on the keyboard will run those commands!
    The only thing I can think of is using a different keyboard layout, or that the mouse isnt supported at the kernel level (pressing extra mouse keys with X killed again "types" 1, 2, or 3) and I need to file a bug report somewhere. Where upstream do I file a bug report if this isnt fixable?
    Any ideas at all?
    Last edited by GSF1200S (2014-03-12 17:12:47)

    Perfect Gentleman wrote:I got Razer Naga 2014 Left-Hand. It has 12 buttons that are the same with 1-10 buttons of keyboard. You can only re-arrange 1-3 buttons or not, and that's all you can do.
    As I understood remapping of these buttons works fine only in Windows with its windows drivers and software.
    For those with or looking to buy a Logitech G602, the answer is unfortunately Windows for a fix I had figured beforehand that it was some kind of assignment issue as I didnt see it possible for 2 different devices to be assigned the same keysym, but thats apparently due to my lack of understanding how such codes are assigned.
    After reading the above response, I installed the Logitech software on a buddys windows computer and changed the (top 3) buttons to Shift, Alt, and Super- this allows me to use shift/alt/super + left/middle/right click for use within my wm (Openbox). This is a permanent change until you change it again, so at least you only need windows once.
    I had searched around to see if anyone had this mouse working with Linux, but couldnt find any mentions. I can now at least confirm for others all the buttons will work and will be detected if you reprogram the mouse from windows. You can even reassign the battery check G6 button (which I did) and the DPI settings buttons near the left click (I left those alone for gimp work).
    I tried Wine for the software without much hope, and indeed while the software installed fine, the program couldnt detect the mouse with it plugged in. It has been my experience that device detection in wine is a crapshoot at best. Anyways, problem solved..

  • Mission control "Middle mouse button" shortcut conflict?

    I am trying to set the preference shortcut for mission control to Middle Mouse Button. When doing so I get a yellow triangle that says "This mouse button settings conflicts with the settings for another mouse button". The shortcut still works even with the error message. I can't find this button being used anywhere else in system settings. Any ideas on how to find out what the conflict is? Sort of silly it doesn't tell you on the warning tool tip.
    Thanks.

    I know this is an old problem, but I have spent several hours on several occasions searching the Internet, and I never could find the solution. So I did some digging and testing, and I'm posting the solution for the benefit of others who are still trying to find an answer.
    Move the files com.apple.symbolichotkeys.plist and com.apple.symbolichotkeys.plist.lockfile (if present) from your *user*/Library/Prefrences folder to the trash, then log out and back in. Problem solved.
    *Note that this will reset your other user-defined keyboard shortcuts to default.
    To get to that folder in Lion or Mountain Lion, from the Finder hold option while clicking on the menu Go, then select Library. Open the Preferences folder, and the offending files will be there.
    I was looking for a solution because I have been having trouble with my MBP where often when I click the middle mouse button or use the four finger swipe up to bring up Mission Control, the desktop would go to gray briefly as though it were reloading, and Dashboard would quit. This would happen several times a day, and it was getting annoying. I thought that the button conflict perhaps was causing that problem. It now seems fixed, but I'll need a few days to know for sure. Anyway, the button conflict is gone.

  • Unreal Tournament mouse button problem [solved]

    Hi @all,
    I installed ut2004 and applyed the newest patch avaiable. The game runs quiet good but I have one annoying problem:
    The first mouse button has a really sucking behavior. Sometimes it doesn't work at all and I have to click several times until it works again. On the other hand sometimes it stays clicked so I don't stop shooting in the game.
    Thankfull for all answers! 
    Mathias

    After compiling/testing a mm- and ck-kernel I solved the problem by reseting the receiver and reconnecting the keyboard and mouse to it. 
    Mathias

  • Photoshop CC doesn't recognize the right mouse button of my Wacom Intuos pen tablet, how do I solve this?

    For some reason photoshop CC doesn't respond to the right mouse button that is on my tablet pen.
    It's strange because it does work for illustrator CC, so why would photoshop CC not respond to it?
    Anyhow, help please!
    I have a wacom intuos pen tablet.

    I checked my settings and they´ve always been like this:
    So that's not it.

  • [SOLVED] Thunar 1.6 doesn't drag-and-drop with the right mouse button

    Hallo all.
    It might be something I've done (though I did delete my ~/.config/Thunar directory before upgrading), but Thunar doesn't let me drag-and-drop with the right mouse button, thus stopping me from copying something instead of moving it, etc. Has anyone else had that too?
    Last edited by GordonGR (2012-12-28 14:34:20)

    Joel wrote:
    anonymous_user wrote:Is it supposed to be with the right-mouse button? I always thought drag and drop was done with the left button?
    Could be right-hand user
    Come on! Read what GordonGR wrote!
    Microsoft Windows, Nautilus, the Haiku Tracker, and probably many other file managers have a feature where, when you right-click or middle-click and drag an icon to a new location, a pop-up menu appears and asks what you'd like to do (Move, Copy, Link). I thought I used to use this feature in Thunar too but it seems to have stopped working in recent versions. Has anyone else had any experience with it?
    EDIT: Here's random blogger talking about the feature in an older version of Thunar: http://jeromeg.blog.free.fr/index.php?p … and-tricks So that's good, I wasn't just imagining the feature.
    Last edited by drcouzelis (2012-12-12 03:45:05)

  • [SOLVED] Use mouse-button to emulate a keypress

    I have a mouse (Logitech M510), and I would like it to do the following:
    Whenever I press mouse button 8, I would like it to be recognized as if I were pressing the "home"-button (keycode 110).
    How do I do that? I'm guessing xmodmap, but I can't figure out how to do it from reading the man-page.
    Last edited by graph (2013-01-02 15:37:27)

    I got it working!
    Solution:
    I now have the following in  ~/.xbindkeysrc:
    "xdotool key Home &"
    b:9
    AFAIK you have to start xbindkeys as a daemon for it to work, so the following is now in ~/.xinitrc:
    xbindkeys &
    Last edited by graph (2013-01-03 10:58:16)

  • [SOLVED] [Gnome 3] Move/resize with alt+mouse button not working

    Hi,
    Anyone have any ideas why I can't move or resize windows in Gnome 3 with the alt key + mouse button?
    From what I've read it should be possible to do this in Gnome 3, or have they removed it?
    The alt key works fine for other tasks, like alt+f4. By looking at xev the keyboard seems to generate a correct alt key as well:
    KeyPress event, serial 32, synthetic NO, window 0x2200001,
    root 0x15d, subw 0x0, time 74162047, (-380,478), root:(2169,522),
    state 0x0, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False
    Both the middle and the right mouse button works fine for other stuff, like pasting and opening menus.
    Anyone have any ideas?
    Last edited by mr_echo (2011-09-23 20:18:45)

    I suffer the same problems. metacity is already installed. Any idea what else I might look for?
    And did it reactivate Alt+right-click to resize?
    For geoffm and anyone who stumbles across this, as per http://unix.stackexchange.com/questions … dows-again, you used to be able to use the gconf editor, but now it's (from the command line)
    gsettings set org.gnome.desktop.wm.preferences resize-with-right-button true
    This nearly did my head in back when it changed.. now I just have to find out how to change the behaviour that seems to have cropped up in latest gnome 3.10 update, where you have to click the _left_ mouse button to finish/stop the resize.. Quite annoying

  • Difficult to control the right mouse button.

    If left mouse button clicks on the cell of a table, it works fine. After that, the target sometimes will move to the next cell automatically, then if I want to right mouse button click on the previous cell, it doesn't work since the target can't move back to the previous cell unless left mouse button clicks it again. Can I just keep the target doesn't move to another cell unless the mouse clicks it? Any ideas?? Thanks a lot!!

    I just want to keep this new, please help!!!

  • When I try to select bookmarks I am stymied because the mouse control is overridden. This became a recent problem. The way it worked in the past is that items were selected only when left mouse button was pressed.

    I select from bookmarks menu a folder containing folders & bookmarks, but I cannot select what I want because an automatic action occurs where my mouse cursor is right then. Selecting what I want from the list is impossible as an undesired selection opens inadvertently, without me any positive action by clicking left mouse button. This problem did not exist 6 months ago. This is now a big problem for me. I'm going to stop using FireFox if this problem cannot be fixed soon!

    You do not delete bookmarks in the Customize window.
    You need to open the Library if you want to delete bookmarks.
    *Bookmarks > Show All Bookmarks
    * https://support.mozilla.com/kb/Deleting+Bookmarks

  • XFCE - Touchpad no right mouse button [Solved Hardware related error]

    Hello,
    Somehow my touchpad - right mouse button stopped working. In other installs it is working, so I think the hardware is funktional. Also the functionality "right mouse button" is working when I use an external mouse.
    I tried to disable hotplugging.
    Here is my xorg.conf (at least the relevant parts:):
    Section "ServerLayout"
    Identifier "Default Layout"
    Screen 0 "Screen0" 0 0
    InputDevice "Synaptics Mouse" "AlwaysCore"
    InputDevice "Keyboard0" "CoreKeyboard"
    InputDevice "USB Mouse" "CorePointer"
    # InputDevice "SynapticsTouchpad" "SendCoreEvents"
    Section "ServerFlags"
    Option "AllowMouseOpenFail" "true"
    Option "AutoAddDevices" "False"
    EndSection
    Section "InputDevice"
    Identifier "Synaptics Mouse"
    Driver "synaptics"
    Option "Device" "/dev/psaux"
    Option "Protocol" "auto-dev"
    Option "LeftEdge" "1700"
    Option "RightEdge" "5300"
    Option "TopEdge" "1700"
    Option "BottomEdge" "4200"
    Option "FingerLow" "25"
    Option "FingerHigh" "30"
    Option "MaxTapTime" "180"
    Option "MaxTapMove" "220"
    Option "VertScrollDelta" "100"
    Option "MinSpeed" "0.09"
    Option "MaxSpeed" "0.18"
    Option "AccelFactor" "0.0015"
    Option "SHMConfig" "on"
    # new in synaptics 0.99
    Option "ClickFinger1" "1"
    Option "ClickFinger2" "0"
    Option "ClickFinger3" "0"
    Option "HorizTwoFingerScroll" "0"
    Option "VertTwoFingerScroll" "0"
    Option "HorizScrollDelta" "100"
    Option "PressureMotionMinZ" "10"
    Option "FingerPress" "256"
    Option "PalmDetect" "0"
    Option "PalmMinWidth" "10"
    Option "PalmMinZ" "200"
    Option "MaxTapMove" "220"
    Option "MaxTapTime" "180"
    Option "MaxDoubleTapTime" "200"
    Option "TapButton1" "1"
    Option "TapButton2" "0"
    Option "TapButton3" "0"
    Option "RTCornerButton" "2"
    Option "RBCornerButton" "3"
    Option "LTCornerButton" "0"
    Option "LBCornerButton" "0"
    # Circular scrolling is uber-cool, but it's not for everyone. Check out "gsynaptics" as well.
    Option "CircularScrolling" "0"
    # Scrolling with the right and bottom side can be fun... or incredibly annoying. Use "1" to enable.
    Option "HorizEdgeScroll" "1"
    Option "VertEdgeScroll" "1"
    EndSection
    Thanks for any help
    cFirefox
    Last edited by cFirefox (2009-10-13 08:54:26)

    i think it's worth trying to remove all input related stuff from xorg.conf, enable hotplugging with a /etc/hal/fdi/policy/11-x11-synaptics.fdi similar to this:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <deviceinfo version="0.2">
    <device>
    <match key="info.capabilities" contains="input.touchpad">
    <merge key="input.x11_driver" type="string">synaptics</merge>
    <merge key="input.x11_options.SHMConfig" type="string">true</merge>
    <merge key="input.x11_options.AlwaysCore" type="string">true</merge>
    <merge key="input.x11_options.VertEdgeScroll" type="string">true</merge>
    <merge key="input.x11_options.MaxTapTime" type="string">180</merge>
    <merge key="input.x11_options.FastTaps" type="string">1</merge>
    <merge key="input.x11_options.TapButton1" type="string">1</merge>
    <merge key="input.x11_options.TapButton2" type="string">2</merge>
    <merge key="input.x11_options.TapButton3" type="string">3</merge>
    </match>
    </device>
    </deviceinfo>
    edit: removed some extra options
    Last edited by litemotiv (2009-04-12 16:32:15)

  • [SOLVED]Xorg.conf, mouse config problem

    The Rapoo M765 mouse can not work properly under normal mouse configuration.
    The mouse goes beyond controll when config as below:
    hacksign@XSign [14:13:13] : ~
    >> cat /etc/X11/xorg.conf.d/50-mouse-acceleration.conf
    #Section "InputClass"
    # Identifier "Mouse2"
    # MatchProduct "RAPOO RAPOO 2.4G Remote Mouse"
    # MatchIsPointer "yes"
    # MatchDevicePath "/dev/input/event*"
    # Driver "mouse"
    # Option "Protocol" "auto"
    # Option "Emulate3Buttons" "no"
    # Option "Buttons" "7"
    # Option "ButtonMapping" "1 2 3 6 7"
    #EndSection
    When there is no any configuration, the mouse can work abnormally. Movement and right/left click work fine, but I can not use scroll wheel,and the "go forward"&"go backward" mouse key can not work too.
    (I know Option "ZAxisMapping" "4 5" is the configuration of scroll wheel emulation.)
    The real problem is 'mouse beyond controll',the cursor goes crazyly on screen ....
    I guess it is something wrong of ButtonMapping option. But when I tried to get button number from command xev,when scroll wheel scrolles, I get something below(the scroll wheel movement is identified as a key event~):
    //left click
    ButtonPress event, serial 34, synthetic NO, window 0x4a00001,
    root 0x264, subw 0x0, time 3766452, (135,143), root:(2287,595),
    state 0x0, button 1, same_screen YES
    ButtonRelease event, serial 34, synthetic NO, window 0x4a00001,
    root 0x264, subw 0x0, time 3766588, (135,143), root:(2287,595),
    state 0x100, button 1, same_screen YES
    //right click
    ButtonPress event, serial 34, synthetic NO, window 0x4a00001,
    root 0x264, subw 0x0, time 3767716, (135,143), root:(2287,595),
    state 0x0, button 3, same_screen YES
    ButtonRelease event, serial 34, synthetic NO, window 0x4a00001,
    root 0x264, subw 0x0, time 3767852, (135,143), root:(2287,595),
    state 0x400, button 3, same_screen YES
    //mouse scroll, identified as keyboard event(?)
    KeyRelease event, serial 34, synthetic NO, window 0x4a00001,
    root 0x264, subw 0x0, time 3769332, (135,143), root:(2287,595),
    state 0x0, keycode 123 (keysym 0x1008ff13, XF86AudioRaiseVolume), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False
    KeyPress event, serial 34, synthetic NO, window 0x4a00001,
    root 0x264, subw 0x0, time 3769332, (135,143), root:(2287,595),
    state 0x0, keycode 122 (keysym 0x1008ff11, XF86AudioLowerVolume), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False
    here is some Information(I dont know why the mouse is identified as 'type:KEYBOARD'):
    hacksign@XSign [14:55:03] : ~
    >> xinput
    ⎡ Virtual core pointer id=2 [master pointer (3)]
    ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
    ⎜ ↳ RAPOO RAPOO 2.4G Remote Mouse id=13 [slave pointer (2)]
    ⎜ ↳ SynPS/2 Synaptics TouchPad id=15 [slave pointer (2)]
    ⎜ ↳ TPPS/2 IBM TrackPoint id=16 [slave pointer (2)]
    ⎣ Virtual core keyboard id=3 [master keyboard (2)]
    ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
    ↳ Power Button id=6 [slave keyboard (3)]
    ↳ Video Bus id=7 [slave keyboard (3)]
    ↳ Sleep Button id=8 [slave keyboard (3)]
    ↳ Heng Yu Technology Poker Pro S id=9 [slave keyboard (3)]
    ↳ Heng Yu Technology Poker Pro S id=10 [slave keyboard (3)]
    ↳ Integrated Camera id=11 [slave keyboard (3)]
    ↳ RAPOO RAPOO 2.4G Remote Mouse id=12 [slave keyboard (3)]
    ↳ AT Translated Set 2 keyboard id=14 [slave keyboard (3)]
    ↳ ThinkPad Extra Buttons id=17 [slave keyboard (3)]
    hacksign@XSign [14:55:06] : ~
    >> xinput list-props 13
    Device 'RAPOO RAPOO 2.4G Remote Mouse':
    Device Enabled (142): 1
    Coordinate Transformation Matrix (144): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    Device Accel Profile (270): 0
    Device Accel Constant Deceleration (271): 1.000000
    Device Accel Adaptive Deceleration (272): 1.000000
    Device Accel Velocity Scaling (273): 10.000000
    Device Product ID (260): 9390, 8192
    Device Node (261): "/dev/input/event8"
    Evdev Axis Inversion (274): 0, 0
    Evdev Axes Swap (276): 0
    Axis Labels (277): "Rel X" (152), "Rel Y" (153), "Rel Horiz Wheel" (267), "Rel Dial" (268), "Rel Vert Wheel" (269)
    Button Labels (278): "Button Left" (145), "Button Middle" (146), "Button Right" (147), "Button Wheel Up" (148), "Button Wheel Down" (149), "Button Horiz Wheel Left" (150), "Button Horiz Wheel Right" (151), "Button Side" (265), "Button Extra" (266), "Button Unknown" (263), "Button Unknown" (263), "Button Unknown" (263), "Button Unknown" (263)
    Evdev Scrolling Distance (279): 1, 1, 1
    Evdev Middle Button Emulation (280): 0
    Evdev Middle Button Timeout (281): 50
    Evdev Third Button Emulation (282): 0
    Evdev Third Button Emulation Timeout (283): 1000
    Evdev Third Button Emulation Button (284): 3
    Evdev Third Button Emulation Threshold (285): 20
    Evdev Wheel Emulation (286): 0
    Evdev Wheel Emulation Axes (287): 0, 0, 4, 5
    Evdev Wheel Emulation Inertia (288): 10
    Evdev Wheel Emulation Timeout (289): 200
    Evdev Wheel Emulation Button (290): 4
    Evdev Drag Lock Buttons (291): 0
    hacksign@XSign [14:55:14] : ~
    >> grep -i rapoo /var/log/Xorg.0.log
    [ 29.102] (II) config/udev: Adding input device RAPOO RAPOO 2.4G Remote Mouse (/dev/input/event7)
    [ 29.102] (**) RAPOO RAPOO 2.4G Remote Mouse: Applying InputClass "evdev keyboard catchall"
    [ 29.102] (II) Using input driver 'evdev' for 'RAPOO RAPOO 2.4G Remote Mouse'
    [ 29.102] (**) RAPOO RAPOO 2.4G Remote Mouse: always reports core events
    [ 29.102] (**) evdev: RAPOO RAPOO 2.4G Remote Mouse: Device: "/dev/input/event7"
    [ 29.102] (--) evdev: RAPOO RAPOO 2.4G Remote Mouse: Vendor 0x24ae Product 0x2000
    [ 29.102] (--) evdev: RAPOO RAPOO 2.4G Remote Mouse: Found keys
    [ 29.102] (II) evdev: RAPOO RAPOO 2.4G Remote Mouse: Configuring as keyboard
    [ 29.102] (II) XINPUT: Adding extended input device "RAPOO RAPOO 2.4G Remote Mouse" (type: KEYBOARD, id 12)
    [ 29.103] (II) config/udev: Adding input device RAPOO RAPOO 2.4G Remote Mouse (/dev/input/event8)
    [ 29.103] (**) RAPOO RAPOO 2.4G Remote Mouse: Applying InputClass "evdev pointer catchall"
    [ 29.103] (**) RAPOO RAPOO 2.4G Remote Mouse: Applying InputClass "evdev keyboard catchall"
    [ 29.103] (II) Using input driver 'evdev' for 'RAPOO RAPOO 2.4G Remote Mouse'
    [ 29.103] (**) RAPOO RAPOO 2.4G Remote Mouse: always reports core events
    [ 29.103] (**) evdev: RAPOO RAPOO 2.4G Remote Mouse: Device: "/dev/input/event8"
    [ 29.103] (--) evdev: RAPOO RAPOO 2.4G Remote Mouse: Vendor 0x24ae Product 0x2000
    [ 29.103] (--) evdev: RAPOO RAPOO 2.4G Remote Mouse: Found 9 mouse buttons
    [ 29.103] (--) evdev: RAPOO RAPOO 2.4G Remote Mouse: Found scroll wheel(s)
    [ 29.103] (--) evdev: RAPOO RAPOO 2.4G Remote Mouse: Found relative axes
    [ 29.103] (--) evdev: RAPOO RAPOO 2.4G Remote Mouse: Found x and y relative axes
    [ 29.103] (--) evdev: RAPOO RAPOO 2.4G Remote Mouse: Found absolute axes
    [ 29.103] (II) evdev: RAPOO RAPOO 2.4G Remote Mouse: Forcing absolute x/y axes to exist.
    [ 29.103] (--) evdev: RAPOO RAPOO 2.4G Remote Mouse: Found keys
    [ 29.103] (II) evdev: RAPOO RAPOO 2.4G Remote Mouse: Configuring as mouse
    [ 29.103] (II) evdev: RAPOO RAPOO 2.4G Remote Mouse: Configuring as keyboard
    [ 29.103] (II) evdev: RAPOO RAPOO 2.4G Remote Mouse: Adding scrollwheel support
    [ 29.103] (**) evdev: RAPOO RAPOO 2.4G Remote Mouse: YAxisMapping: buttons 4 and 5
    [ 29.103] (**) evdev: RAPOO RAPOO 2.4G Remote Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
    [ 29.103] (II) XINPUT: Adding extended input device "RAPOO RAPOO 2.4G Remote Mouse" (type: KEYBOARD, id 13)
    [ 29.104] (II) evdev: RAPOO RAPOO 2.4G Remote Mouse: initialized for relative axes.
    [ 29.104] (WW) evdev: RAPOO RAPOO 2.4G Remote Mouse: ignoring absolute axes.
    [ 29.104] (**) RAPOO RAPOO 2.4G Remote Mouse: (accel) keeping acceleration scheme 1
    [ 29.104] (**) RAPOO RAPOO 2.4G Remote Mouse: (accel) acceleration profile 0
    [ 29.104] (**) RAPOO RAPOO 2.4G Remote Mouse: (accel) acceleration factor: 2.000
    [ 29.104] (**) RAPOO RAPOO 2.4G Remote Mouse: (accel) acceleration threshold: 4
    [ 29.104] (II) config/udev: Adding input device RAPOO RAPOO 2.4G Remote Mouse (/dev/input/mouse0)
    hacksign@XSign [14:59:47] : ~
    >> yaourt -Q|grep -i 'input-'
    local/xf86-input-evdev-trackpoint 2.9.1-1
    extra/xf86-input-keyboard 1.8.0-3 (xorg-drivers xorg)
    extra/xf86-input-mouse 1.9.1-1 (xorg-drivers xorg)
    extra/xf86-input-synaptics 1.8.1-1 (xorg-drivers xorg)
    Last edited by Hacksign (2015-01-14 02:22:51)

    Thanks for reply !
    change Driver 'mouse' to Driver 'evdev',solved cursor goes beyond controll problem.
    but I still can not use scroll button and 'go forward'&'go backward' button.
    (BTW:evdev_drv.so is from local/xf86-input-evdev-trackpoint, and local/xf86-input-evdev-trackpoint package is from AUR)
    I think, maybe something wrong with my button number mapping, but I still can not get scroll button number with 'xev' command....
    below is my configuration:
    hacksign@XSign [17:15:19] : /var/log
    >> cat /etc/X11/xorg.conf.d/50-mouse-acceleration.conf
    Section "InputClass"
    Identifier "Mouse2"
    MatchProduct "RAPOO RAPOO 2.4G Remote Mouse"
    MatchIsPointer "yes"
    MatchDevicePath "/dev/input/event*"
    Driver "evdev"
    Option "Protocol" "auto"
    Option "Emulate3Buttons" "no"
    Option "ZAxisMapping" "4 5"
    Option "Buttons" "9"
    Option "ButtonMapping" "1 2 3 6 7 8 9 4 5"
    EndSection
    and here is Xorg.0.log
    [ 11357.287] (**) RAPOO RAPOO 2.4G Remote Mouse: Applying InputClass "evdev keyboard catchall"
    [ 11357.287] (II) Using input driver 'evdev' for 'RAPOO RAPOO 2.4G Remote Mouse'
    [ 11357.287] (**) RAPOO RAPOO 2.4G Remote Mouse: always reports core events
    [ 11357.287] (**) evdev: RAPOO RAPOO 2.4G Remote Mouse: Device: "/dev/input/event7"
    [ 11357.287] (--) evdev: RAPOO RAPOO 2.4G Remote Mouse: Vendor 0x24ae Product 0x2000
    [ 11357.287] (--) evdev: RAPOO RAPOO 2.4G Remote Mouse: Found keys
    [ 11357.287] (II) evdev: RAPOO RAPOO 2.4G Remote Mouse: Configuring as keyboard
    [ 11357.287] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/0003:24AE:2000.0003/input/input8/event7"
    [ 11357.288] (II) XINPUT: Adding extended input device "RAPOO RAPOO 2.4G Remote Mouse" (type: KEYBOARD, id 12)
    [ 11357.288] (**) Option "xkb_rules" "evdev"
    [ 11357.288] (**) Option "xkb_model" "pc104"
    [ 11357.288] (**) Option "xkb_layout" "us"
    [ 11357.288] (II) config/udev: Adding input device RAPOO RAPOO 2.4G Remote Mouse (/dev/input/event8)
    [ 11357.288] (**) RAPOO RAPOO 2.4G Remote Mouse: Applying InputClass "evdev pointer catchall"
    [ 11357.288] (**) RAPOO RAPOO 2.4G Remote Mouse: Applying InputClass "evdev keyboard catchall"
    [ 11357.288] (**) RAPOO RAPOO 2.4G Remote Mouse: Applying InputClass "Mouse2"
    [ 11357.288] (II) Using input driver 'evdev' for 'RAPOO RAPOO 2.4G Remote Mouse'
    [ 11357.288] (**) RAPOO RAPOO 2.4G Remote Mouse: always reports core events
    [ 11357.288] (**) evdev: RAPOO RAPOO 2.4G Remote Mouse: Device: "/dev/input/event8"
    [ 11357.288] (**) evdev: RAPOO RAPOO 2.4G Remote Mouse: ButtonMapping '1 2 3 6 7 8 9 4 5'
    [ 11357.288] (--) evdev: RAPOO RAPOO 2.4G Remote Mouse: Vendor 0x24ae Product 0x2000
    [ 11357.288] (--) evdev: RAPOO RAPOO 2.4G Remote Mouse: Found 9 mouse buttons
    [ 11357.288] (--) evdev: RAPOO RAPOO 2.4G Remote Mouse: Found scroll wheel(s)
    [ 11357.288] (--) evdev: RAPOO RAPOO 2.4G Remote Mouse: Found relative axes
    [ 11357.288] (--) evdev: RAPOO RAPOO 2.4G Remote Mouse: Found x and y relative axes
    [ 11357.288] (--) evdev: RAPOO RAPOO 2.4G Remote Mouse: Found absolute axes
    [ 11357.288] (II) evdev: RAPOO RAPOO 2.4G Remote Mouse: Forcing absolute x/y axes to exist.
    [ 11357.288] (--) evdev: RAPOO RAPOO 2.4G Remote Mouse: Found keys
    [ 11357.288] (II) evdev: RAPOO RAPOO 2.4G Remote Mouse: Configuring as mouse
    [ 11357.288] (II) evdev: RAPOO RAPOO 2.4G Remote Mouse: Configuring as keyboard
    [ 11357.288] (II) evdev: RAPOO RAPOO 2.4G Remote Mouse: Adding scrollwheel support
    [ 11357.288] (**) Option "Emulate3Buttons" "no"
    [ 11357.288] (**) evdev: RAPOO RAPOO 2.4G Remote Mouse: YAxisMapping: buttons 4 and 5
    [ 11357.288] (**) evdev: RAPOO RAPOO 2.4G Remote Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
    [ 11357.288] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.1/0003:24AE:2000.0004/input/input9/event8"
    [ 11357.288] (II) XINPUT: Adding extended input device "RAPOO RAPOO 2.4G Remote Mouse" (type: KEYBOARD, id 13)
    [ 11357.288] (**) Option "xkb_rules" "evdev"
    [ 11357.288] (**) Option "xkb_model" "pc104"
    [ 11357.288] (**) Option "xkb_layout" "us"
    [ 11357.288] (II) evdev: RAPOO RAPOO 2.4G Remote Mouse: initialized for relative axes.
    [ 11357.288] (WW) evdev: RAPOO RAPOO 2.4G Remote Mouse: ignoring absolute axes.
    [ 11357.289] (**) RAPOO RAPOO 2.4G Remote Mouse: (accel) keeping acceleration scheme 1
    [ 11357.289] (**) RAPOO RAPOO 2.4G Remote Mouse: (accel) acceleration profile 0
    [ 11357.289] (**) RAPOO RAPOO 2.4G Remote Mouse: (accel) acceleration factor: 2.000
    [ 11357.289] (**) RAPOO RAPOO 2.4G Remote Mouse: (accel) acceleration threshold: 4
    [ 11357.289] (II) config/udev: Adding input device RAPOO RAPOO 2.4G Remote Mouse (/dev/input/mouse0)
    [ 11357.289] (II) No input driver specified, ignoring this device.
    [ 11357.289] (II) This device may have been added with another device file.
    olive wrote:In the config file you mentioned, all is commented; do you mean that you have problems when you have uncommented it? You should not use the mouse driver (old deprecated driver) but evdev. Try to remove xf86-input-mouse and xf86-input-keyboard (same as before, this is deprecated and handled by evdev) and remove also a "joystick" driver if you have it (I have had problem with it conflicting with the evdev driver).
    Last edited by Hacksign (2015-01-13 09:27:06)

  • Avoid window getting focus after pressing a mouse button on it

    I want that a window does not get focus although I press a mouse button on it, in Windows XP.
    I have search in Microsoft help and this fact is controlled by the Operating System itself. The notification that is sent after the user presses a mouse button is WM_MOUSEACTIVATE notification. The return value of this notification indicates the behaviour of the window after the mouse down, existing 4 options: MA_ACTIVATE, MA_ACTIVATEANDEAT; MA_NOACTIVATE & MA_NOACTIVATEANDEAT. The default is the first one, but I want to change the behaviour of the window to be the the third one: MA_NOACTIVATE, that does not activate the window, and does not discard the mouse message. The function that performs this is DefWindowProc according to the MSDN Help content.
    Any help about doing this in Labview? Is there any special function in Labview that allows setting this behaviour to a window or should I use a Windows dll? In that case how can be programmed? Has anyone done it before? I'm working with Labview 8.6.1, and I haven't found anything about this. Any help will be very useful.
    Thank you very much in advance.
    David Fernández

    It is the front panel window of a VI which I don't want to get focus. I have tried to achive this with property nodes, but the problem I think that cannot be solved in this way, because is the Operative System that gives the focus to the window when pressing a mouse button before Labview does anything. You can release the focus once the window have taken it with the Front Panel window focus property node, but what I really want is to keep the focus on the old window.
    My idea is that the VI act as a background of my application, so never can be over the rest of the windows. Some of them are floating but others are standard and I don't want to use modal windows, so I cannot solve this with the Window Appearance options.
    I have also tried to discard the mouse down in the Mouse Down? event, but I doesn't work, the window continues getting the focus although does not carry on any action.
    Any suggestion?
    Thank you for your interest
    David F

Maybe you are looking for