[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to unbind MacBook mouse buttons from Fn-F10 and Fn-F11



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 2014-01-20 15:03, Julian Gilbey wrote:
> I've just installed Debian jessie (testing) on a MacBook Pro and
> it's doing my head in :-(  I wonder if anyone has any ideas that
> might help me....
> 
> I'm using XFCE4 as my window manager, if that makes any
> difference.
> 
> I really want to still have my F10 and F11 function keys work as
> just that; I'm happy to lose the "apple-cmd" keys to the left and
> right mouse buttons (which are also in a much more convenient
> location).
> 
> I found that the page 
> https://wiki.debian.org/MacBook#Mouse_2nd_and_3rd_buttons is fine 
> (though I had to change the keycodes), as long as I then enabled
> it using xkbset -m.
> 
> But I can't find any way to turn off the F10 and F11 mouse button 
> emulation :-(
> 
> I found that /proc/sys/dev/mac_hid/mouse_button2_keycode was 97, 
> mouse_button3_keycode was 100 (or perhaps it was the other way 
> around), and mouse_button_emulation was 0, yet it was still 
> emulating.  I set mouse_button2_keycode to 133 (left apple) and 
> mouse_button3_keycode to 134, and echo'd 1 to
> mouse_button_emulation, but that made no difference to the function
> key behaviour.
> 
> So something somewhere else is capturing these button presses, but
> I don't know where.
> 
> Does anyone have any clue?

IIRC there's the mouseemu package.

You may also be interested in this:
https://help.ubuntu.com/community/AppleKeyboard

> Many thanks,
> 
> Julian


- - Felix

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iQIcBAEBCgAGBQJS3ZGrAAoJELIY/ywn/GzG9mAQAJbepJ9799eyx44+zup3d8u5
XuM+V78/87pFJdZu+1llFd7RO6LDqPpUpU+PBESPCzI0H4SsAlkm8VtcajL9sKcn
FFYZKDUglbuehfcQnMsriiaoRH5pVRv/5hQJ8kGgUX8cLDt+l3h8PCPDzUVCIxjH
7chkedEK1j2Cvx2Mz27DgeUo2aAr6kPqPWYAUGjdIu9mWe4mzsC/vyWoph7NKLQP
kdRwW5x47TTt6HQVgMCpChH6lRKF1Iotxs9da0kJtLGTbSXhD51FLxqlQlux4bz5
URaKlpTSaMY0cAAG6xPD2gvemHH8fNiAC4of2KbyzRX7ZSdC/Y2OOSl9+YtKbu7Z
nkaW+ZTTpEUHf0UG9Ms69dyP+zUqA/AY25RgPCvGeGEc5oAq5TW10osnSpuFt99O
6pI/+AQpXbeykDroPARRTMnnnGjoX6bMtWwueKLiwxfU6DqvEDQNqae6KoGcfJKF
kW8/HTvATTZDvfWg+TC4FWMdFHKJdFTBN6pYXmNUWGEaQ+Uvr1m3N4giB92rF3yc
mT9UlxbjWJnmcojAk09NEwSoejY8LUi5Y26+HyoFXAbY6wqJvwIFmcJQeAmQ4sGT
qtK6R0eZyW43jId5N8kpDVT34HS3wyS3ESJL31vkMwzMcVgpQ8XQE4/xFq+AaWj9
b1mDpIFpZVPfyyayJGPY
=tIe+
-----END PGP SIGNATURE-----


Reply to: