mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
To: Lukas Hejtmanek <xhejtman@ics.muni.cz>
Cc: reinette chatre <reinette.chatre@intel.com>,
	Johannes Berg <johannes@sipsolutions.net>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: iwlwifi (4965) regression since 2.6.30
Date: Thu, 6 Aug 2009 20:07:04 -0300	[thread overview]
Message-ID: <20090806230704.GA14381@khazad-dum.debian.net> (raw)
In-Reply-To: <20090806224110.GJ3382@ics.muni.cz>

On Fri, 07 Aug 2009, Lukas Hejtmanek wrote:
> 0x0004 = 238  # KEY_WLAN

This means any rfkill input handler (be it in kernel or userspace) will
toggle your WLAN cards when fn+f5 is pressed.  You can just assign a
different keycode to it (use KEY_RESERVED or KEY_UNKNOWN if you don't want
the key to do anything).

If you unmask the key on hotkey_mask, it will revert to BIOS actions, which
depending on the thinkpad, might cause it to operate on bluetooth, wwan,
etc...

> 0x0007 = 192  # KEY_F22
> 0x0008 = 194  # KEY_F24

Hmm? What does that do in your distro?  That's fn+f8 and fn+f9, BTW.

> 0x0011 = 228  # KEY_KBDILLUMTOGGLE

Didn't know this one existed!  Heh.  Still, it should not be enabled in
thinkpad-acpi, the thinkpad will react to it by itself, and the input layer
is not to be used for status reports...

> well, at least, I would like behavior where Fn+F5 does not do rfkill silently
> (I guess in kernel?). I would prefer an event or just a key code. This is not
> possible any more?

> CONFIG_RFKILL=m
> CONFIG_RFKILL_LEDS=y
> CONFIG_RFKILL_INPUT=y

Disable CONFIG_RFKILL_INPUT, then.  Otherwise, the kernel WILL react to any
of the keycodes it knows about.  And also to the radio-kill switch (in more
ways than the strictly enforced by the firmware and thinkpad-acpi, that is).

I think you should add a HAL .fdi file to your system to reprogram fn+f5 to
something else: this is likely the best way to go about it in the long run,
as I bet userspace will start grokking rfkill input events really soon
now...

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

  reply	other threads:[~2009-08-06 23:07 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-26  7:57 Lukas Hejtmanek
2009-07-27 16:03 ` reinette chatre
2009-07-27 16:06   ` Johannes Berg
2009-07-28 11:21     ` Lukas Hejtmanek
2009-07-28 12:54       ` Johannes Berg
2009-08-02 22:12         ` Lukas Hejtmanek
2009-08-03 21:47       ` reinette chatre
2009-08-04  8:49         ` Lukas Hejtmanek
2009-08-04 22:49           ` reinette chatre
2009-08-04 22:56             ` Lukas Hejtmanek
2009-08-04 23:38               ` reinette chatre
2009-08-06 13:22                 ` Henrique de Moraes Holschuh
2009-08-06 22:41                   ` Lukas Hejtmanek
2009-08-06 23:07                     ` Henrique de Moraes Holschuh [this message]
2009-08-07 20:32                       ` Johannes Stezenbach
2009-08-07 21:16                         ` Lukas Hejtmanek
2009-08-07 21:35                       ` Lukas Hejtmanek
2009-08-13 22:59                         ` reinette chatre
2009-08-14  2:10                           ` Henrique de Moraes Holschuh
2009-08-14 16:07                             ` reinette chatre
2009-07-27 16:07   ` Marcel Holtmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090806230704.GA14381@khazad-dum.debian.net \
    --to=hmh@hmh.eng.br \
    --cc=johannes@sipsolutions.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=reinette.chatre@intel.com \
    --cc=xhejtman@ics.muni.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®