Home > Community > A Little Help From The Readers…

A Little Help From The Readers…

I have spent the last two hours on Google, Ubuntu Forums and IRC trying to find a seemingly simple solution to a problem.  I’m not able to find anything yet… so I thought I’d blog the question and see if any of the general public had an answer for me.

Question: How can I un-map a keyboard binding?  My macbook F10 key has been mapped to right-click (although I don’t remember doing it) and I would like to have F10 actually do F10.

I’d appreciate any comments for tips on doing this.  I’ve already looked at my xmodmap.  I don’t see it defined in there.  I don’t think it is in my xorg.conf either…

Cheers

Categories: Community Tags:
  1. June 23rd, 2007 at 16:57 | #1

    Check out the following files in /proc

    /proc/sys/dev/mac_hid
    mouse_button2_keycode
    mouse_button3_keycode
    mouse_button_emulation

    It’s a kernel thing rather than an X thing.

    echo 0 > /proc/sys/dev/mac_hid/mouse_button_emulation

    will probably do the trick

  2. June 23rd, 2007 at 20:04 | #2

    johnf – the values from those three components are:
    97
    100
    0

    It appears the value you’re suggesting to set is already set. Any other ideas?

  3. mlissner
    June 23rd, 2007 at 21:13 | #3

    You might try xkeycaps. It’s a graphical way to modify Xmodmap that will allow you to do it graphically and then export a new one to live in your home directory. After hours of struggle trying to make my laptop buttons work properly, this was the fix for me.

  4. June 24th, 2007 at 01:32 | #4

    Hm… look here:
    System – (user)settings – keyboard shourtcut.

    You might find something there.

    ps. I’m not too sure about the names of the folders, since I’m on a swedish version of gnome.

  5. fdoving
    June 24th, 2007 at 01:59 | #5

    It’s set in /etc/sysctl.conf

  6. June 24th, 2007 at 08:43 | #6

    fdoving – actually the only uncommented line in my sysctl.conf is:

    kernel.printk = 4 4 1 7

    …I had looked in there as well.

  7. fdoving
    June 26th, 2007 at 14:05 | #7

    Ok, you have an macbook, i did this on an iBook, on powerpc the sysctl.conf contains this:

    # Emulate the middle mouse button with F11 and the right with F12.
    dev/mac_hid/mouse_button_emulation = 1
    dev/mac_hid/mouse_button2_keycode = 87
    dev/mac_hid/mouse_button3_keycode = 88

    # end

    This will probably not work on your macbook. You can of course try.

    Sorry for the confusion.

  8. Mark
    July 5th, 2007 at 08:39 | #8

    Trying to update Avast on Edgy virus signature…. I get message file is corrupt try again… I removed the new .vps file and tried again and had no luck.. Any suggestions? Guess it could be their file but I tried again a day later with the same results………tnx
    best regards Mark

  1. June 23rd, 2007 at 17:59 | #1