All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] toshiba_acpi: Add support for bluetooth toggling through rfkill
@ 2008-07-27 18:17 Philip Langdale
  2008-07-28  2:55 ` Henrique de Moraes Holschuh
  2008-08-02 19:14 ` [PATCH 0/1] toshiba_acpi: Add support for bluetooth toggling through rfkill (v2) Philip Langdale
  0 siblings, 2 replies; 3+ messages in thread
From: Philip Langdale @ 2008-07-27 18:17 UTC (permalink / raw)
  To: LKML
  Cc: Matthew Garrett, toshiba_acpi, Henrique de Moraes Holschuh,
	Ivo van Doorn, linux-wireless

As requested by Henrique, I have reworked this patch against wireless-testing
and it uses the new-style rfkill API and to report the input device as a switch.

I did some digging to try and find a usable gpe event but had only limited
success. From another look through the AML, it uses GPE08 for almost everything
- inspecting a bunch of state for each event and then sending notifications on
different objects. I couldn't find one for the hardware kill switch itself but I
did manage to find one that's emitted when the bluetooth device enters the
equivalent of the SOFT_BLOCKED state. This is useful for noticing that the
hardware switch has been released, but it also fires on transitions from UNBLOCKED
to SOFT_BLOCKED - so I had to try and avoid turning around and unblocking the
device! I'm not particularly happy with how I did it (ignore-the-next-event)
but I can't think of a better way.

--phil

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-08-02 19:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-27 18:17 [PATCH 0/1] toshiba_acpi: Add support for bluetooth toggling through rfkill Philip Langdale
2008-07-28  2:55 ` Henrique de Moraes Holschuh
2008-08-02 19:14 ` [PATCH 0/1] toshiba_acpi: Add support for bluetooth toggling through rfkill (v2) Philip Langdale

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.