Re: [PATCH] Explicitly disable BT radio using rfkill interface onsuspend

From: Mario Limonciello
Date: Wed May 20 2009 - 13:52:21 EST


Hi Alan:

Alan Stern wrote:
> On Wed, 20 May 2009, Oliver Neukum wrote:
>
>
>
> That's okay. Inelegant, perhaps, but workable. Besides, as we see
> below, the new rule would have to do more than the old rule.
>
>
I agree this is a rather inelegant solution. A new rule would have to
be added to hid2hci then. It's much more preferable to be able to fix
kernel space from mucking up the device. Is there a way to mark a
device to /not/ run reset-resume after S3?
>
> Does that create the same removal event? If it does then you wouldd be
> in an unfortunate state. The script would have to check somehow
> whether the removal was deliberate or spontaneous.
>
Yes it does create the same removal event when you switch to HID mode.
I don't know of any way that you can calculate if the switch was
intentional.


--
Mario Limonciello
*Dell | Linux Engineering*
mario_limonciello@xxxxxxxx

Attachment: signature.asc
Description: OpenPGP digital signature