2008-10-22 20:54:03

by Mario Limonciello

[permalink] [raw]
Subject: [PATCH] Run hid2hci after resuming from suspend

Hello,

This patch adds support for the hid2hci command to be ran upon resuming
from suspend. At least the USB adapters I've been operating with that
need to switch modes need to do so upon resume.

Regards
--
Mario Limonciello
*Dell | Linux Engineering*
[email protected]


Attachments:
hid2hci_pm-utils.patch (3.14 kB)
signature.asc (260.00 B)
OpenPGP digital signature
Download all attachments

2008-10-24 08:06:50

by Bastien Nocera

[permalink] [raw]
Subject: Re: [PATCH] Run hid2hci after resuming from suspend

On Thu, 2008-10-23 at 11:29 -0500, Mario Limonciello wrote:
>
> +[ -f /etc/default/bluetooth ] || exit $NA
> +
> +. /etc/default/bluetooth

Wrong file to source under Fedora.

> + if [ "$HID2HCI_ENABLED" = "1" ] && [ -x /usr/sbin/hid2hci ];
> then

$ grep "HID2HCI_ENABLE[D=]" /etc/sysconfig/bluetooth
#HID2HCI_ENABLE=true

Cheers


2008-10-23 16:29:48

by Mario Limonciello

[permalink] [raw]
Subject: Re: [PATCH] Run hid2hci after resuming from suspend

Hi Marcel:

Marcel Holtmann wrote:
> Hi Mario,
>
> we should not install multiple scripts. Lets only install one "bluez"
> file for pm-utils. So no need for a hid2hci specific script.
>
> Regards
>
> Marcel
>
Attached is an updated patch that will install this as "48bluez" for
pm-utils. Of course the only thing in it right now is hid2hci, but
should that need to change, it's easy to add more.

Regards
--
Mario Limonciello
*Dell | Linux Engineering*
[email protected]


Attachments:
hid2hci_pm-utils.patch (3.19 kB)
signature.asc (260.00 B)
OpenPGP digital signature
Download all attachments

2008-10-23 04:44:01

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [PATCH] Run hid2hci after resuming from suspend

Hi Mario,

> This patch adds support for the hid2hci command to be ran upon resuming
> from suspend. At least the USB adapters I've been operating with that
> need to switch modes need to do so upon resume.

we should not install multiple scripts. Lets only install one "bluez"
file for pm-utils. So no need for a hid2hci specific script.

Regards

Marcel