A Little Help From The Readers…

By | 2007/06/23

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

9 thoughts on “A Little Help From The Readers…

  1. johnf

    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. Pingback: University Update - Google - A Little Help From The Readers…

  3. Ubuntu Tutorials

    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?

  4. mlissner

    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.

  5. Gasten

    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.

  6. fdoving

    It’s set in /etc/sysctl.conf

  7. Ubuntu Tutorials

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

    kernel.printk = 4 4 1 7

    …I had looked in there as well.

  8. fdoving

    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.

  9. Mark

    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

Comments are closed.