linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mario Limonciello <mario_limonciello@dell.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: [PATCH] Explicitly disable BT radio using rfkill interface on
Date: Tue, 14 Jul 2009 16:40:20 +0000	[thread overview]
Message-ID: <4A5CB4F4.1090905@dell.com> (raw)
In-Reply-To: <4A4A8B6D.3060509@dell.com>

[-- Attachment #1: Type: text/plain, Size: 1744 bytes --]

Hi Alan:

Alan Stern wrote:
> Right.  The log clearly shows that HID devices 4-1.1 and 4-1.2 survive 
> the suspend-resume cycle intact, whereas the BT device 4-1.3 is gone.
>
> Since the BT device was created by means of a userspace script in the 
> first place, it seems logical that a userspace script should respond to 
> the uevent announcing its disappearance and try to bring it back to 
> life.
>
> Last I heard, you had created a udev rule which was supposed to match
> the removal event for the BT device, but which udev wasn't executing.  
> Is that still the case?  If it is, you should post the rule together
> with the udev log for a resume.  Maybe somebody will be able to figure 
> out why the rule isn't being executed.
>   
Yeah, Kay already identified why the rule wasn't being executed.  It was
reliant on properties of the device that aren't cached in the udev database.
> Also, I noticed that your C program for reviving the BT device seemed
> more complex than necessary.  You should know beforehand that if the BT
> device's path is 4-1.3 then the corresponding mouse device's path will
> be 4-1.2 (just decrement the last byte of the pathname).  You can then
> match this device up with libusb by reading the busnum and devnum
> attributes from the sysfs directory.
>   
I wasn't sure I wanted to jump to this conclusion as I can't predict if
this will change for future hardware that supports these features.
> Alan Stern
>
>   
I'm at a loss at what else can really be done from userspace.  If I
can't match the device on removal and send it to the userspace app, not
sure how else it can be revived.
-- 
Mario Limonciello
*Dell | Linux Engineering*
mario_limonciello@dell.com


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

  parent reply	other threads:[~2009-07-14 16:40 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-30 22:02 [PATCH] Explicitly disable BT radio using rfkill interface on Mario Limonciello
2009-06-30 22:26 ` Kay Sievers
2009-07-01  3:53 ` [PATCH] Explicitly disable BT radio using rfkill interface on suspend Mario_Limonciello
2009-07-01 12:06 ` [PATCH] Explicitly disable BT radio using rfkill interface on Marcel Holtmann
2009-07-01 13:13 ` [PATCH] Explicitly disable BT radio using rfkill interface on suspend Mario_Limonciello
2009-07-01 15:03 ` [PATCH] Explicitly disable BT radio using rfkill interface on Marcel Holtmann
2009-07-01 17:12 ` Mario Limonciello
2009-07-01 17:18 ` Matthew Garrett
2009-07-01 22:13 ` Marcel Holtmann
2009-07-01 22:16 ` Matthew Garrett
2009-07-01 22:23 ` Mario Limonciello
2009-07-01 22:49 ` Marcel Holtmann
2009-07-01 22:52 ` Matthew Garrett
2009-07-02 14:02 ` Alan Stern
2009-07-10 14:46 ` Alan Stern
2009-07-14 16:40 ` Mario Limonciello [this message]
2009-07-14 16:51 ` Alan Stern
2009-07-14 16:52 ` Kay Sievers
2009-07-14 17:32 ` Mario Limonciello
2009-07-14 18:46 ` Marcel Holtmann
2009-07-14 19:12 ` Kay Sievers
2009-07-14 21:00 ` Mario Limonciello
2009-07-14 21:20 ` Marcel Holtmann
2009-07-14 21:24 ` Kay Sievers
2009-07-14 22:45 ` Kay Sievers
2009-07-15  2:07 ` Alan Stern
2009-07-15  2:26 ` Kay Sievers
2009-07-15 22:15 ` Mario Limonciello
2009-07-15 22:24 ` Mario Limonciello
2009-07-15 23:27 ` Kay Sievers

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=4A5CB4F4.1090905@dell.com \
    --to=mario_limonciello@dell.com \
    --cc=linux-hotplug@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).