linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BlueZ PATCH v2 0/3] device: Allow devices to be marked as wake capable
@ 2020-01-21 23:26 Abhishek Pandit-Subedi
  2020-01-21 23:26 ` [BlueZ PATCH v2 1/3] mgmt: Add docs for Set Wake Capable Abhishek Pandit-Subedi
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Abhishek Pandit-Subedi @ 2020-01-21 23:26 UTC (permalink / raw)
  To: luiz.dentz, marcel, alainm
  Cc: linux-bluetooth, chromeos-bluetooth-upstreaming, Abhishek Pandit-Subedi


Hi bluez maintainers,

This change accompanies changes in the kernel to mark HID devices as
wake capable so they can wake the system from suspend. The
implementation depends on the Set Wake Capable management operation. It
is currently a separate management operation but it may be added as an
extension to an exiting operand like add_device (need some feedback
regarding this).

Per request on the last patch, I've moved docs/mgmt-api.txt into its own
patch so we can continue discussions on it.

This change was tested with appropriate kernel changes on v4.19
(verified that HID devices were being marked as wake capable in the
kernel).

Thanks
Abhishek


Changes in v2:
* Separated docs/mgmt-api.txt into its own patch
* Added dbus api "WakeCapable" to set value
* Update device_set_wake_capable to be called by
  adapter_set_wake_capable_complete so we can emit property changed
* Newly added to show whether device is wake capable
* Removed automatically setting wake capable for HID devices

Abhishek Pandit-Subedi (3):
  mgmt: Add docs for Set Wake Capable
  device: Allow device to be marked as wake capable
  client: Display wake capable property with info

 client/main.c    |  1 +
 doc/mgmt-api.txt | 19 ++++++++++++++
 lib/mgmt.h       |  9 +++++++
 src/adapter.c    | 65 ++++++++++++++++++++++++++++++++++++++++++++++++
 src/adapter.h    |  2 ++
 src/device.c     | 59 +++++++++++++++++++++++++++++++++++++++++++
 src/device.h     |  2 ++
 7 files changed, 157 insertions(+)

-- 
2.25.0.341.g760bfbb309-goog


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

end of thread, other threads:[~2020-01-22 23:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-21 23:26 [BlueZ PATCH v2 0/3] device: Allow devices to be marked as wake capable Abhishek Pandit-Subedi
2020-01-21 23:26 ` [BlueZ PATCH v2 1/3] mgmt: Add docs for Set Wake Capable Abhishek Pandit-Subedi
2020-01-21 23:26 ` [BlueZ PATCH v2 2/3] device: Allow device to be marked as wake capable Abhishek Pandit-Subedi
2020-01-22 23:22   ` Luiz Augusto von Dentz
2020-01-21 23:27 ` [BlueZ PATCH v2 3/3] client: Display wake capable property with info Abhishek Pandit-Subedi

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).