Find the answer to your Linux question:
Results 1 to 3 of 3
I install Debian on a Power book g3 and i need the right click function. I try mouseemu but it give me an error : open: No such file or ...
  1. #1
    Just Joined!
    Join Date
    Dec 2009
    Posts
    6

    Right Click

    I install Debian on a Power book g3 and i need the right click function. I try mouseemu but it give me an error :

    open: No such file or directory
    No uinput device found! Make sure the uinput module is loaded
    or CONFIG_INPUT_UINPUT is compiled in kernel.

    if there are other way for the right click function ?

  2. #2
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    I was able to map the middle click to the useless menu key on my keyboard. The same procedure should work to map the right click to a key.

    You need xkbset. As root do
    Code:
    apt-get install xkbset
    As I understand, you then need to remove some of the default cursor control settings. Edit the file /usr/share/X11/xkb/compat/mousekeys with your favorite text editor and remove everything between interpret.repeat=False (or True) and // New Keysym Actions

    Then create a script to turn it on and map the key. Save something like this to a file, say, rightclick.sh.
    Code:
    #!/bin/bash
    # set XKB layout
    setxkbmap -layout us
    # turn on mousekeys
    xkbset m
    # stop mousekeys expiring after a timeout
    xkbset exp =m
    # map keysym to other keysym
    xmodmap -e "keysym Menu = Pointer_Button3"
    This would map the right click to the Menu button on a windows keyboard. Using the keycode also works.
    Code:
    xmodmap -e "keycode 135 = Pointer_Button3"
    You can use xev to find the keysym/keycode of whichever key you want to use.

    Then set this to run when you boot into X.

    EDIT: Just wanted to acknowledge this guide for the help: Linux Aleph: mapping middle-click to a keyboard key

  3. #3
    Just Joined!
    Join Date
    Dec 2009
    Posts
    6
    Working...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •