Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My (capacitive) media keys have recently become autonomous, causing my wifi to switch on and off at random intervals and effectively rendering the machine unusable.

How can I disable those keys? My preferred solution is to simply disable or misconfigure the daemon that intercepts the XF86WLAN and XF86Bluetooth keyboard events. I can't seem to figure out though which daemon is currently responsible for this, so some help is appreciated.

I'm running Debian Wheezy with a default GNOME 3 setup.

share|improve this question

Since this is a keyboard malfunction, I'd favor blocking the keys at the keyboard level.

A simple way to do this is to reassign the keys to do nothing. You can do it with the following shell snippet:

xmodmap - <<EOF
keysym XF86WLAN = NoSymbol
keysym XF86Bluetooth = NoSymbol

Write this script to a file, make it executable (chmod +x /path/to/script) and add it to your Gnome startup applications.

share|improve this answer
Hi Gilles, thanks, that's a useful suggestion. Unfortunately it does not seem to solve the problem and I fail to understand why. After the suggested xmodmap command I tested with xev and found: KeyPress event, (...) keycode 245 (keysym 0x0, NoSymbol) (...). Yet bluetooth switches off like before. I am starting to believe that the button switches the hardware directly but I am unsure how to verify that. Any further suggestions are welcome! – gertjan Jun 4 '12 at 7:48
@gertjan Oh. Then this button might be controlled by ACPI. Come to think of it, I usually see these functions controlled by ACPI, unlike things like volume controls which are often keys. That's not a subsystem I'm familiar with. I've made a small edit to your question to try to draw in the right crowd. – Gilles Jun 4 '12 at 22:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.