Hi Luiz, It has not yet been merged in the kernel so please avoid merging for the time being. We also need to discuss what the management API for setting the wake capable needs to be called as well (I think we want to create a generic Set Device Params sort of management api). Abhishek On Tue, Jan 28, 2020 at 12:31 PM Luiz Augusto von Dentz <luiz.dentz@xxxxxxxxx> wrote: > > Hi Abhishek, > > On Mon, Jan 27, 2020 at 6:05 PM Abhishek Pandit-Subedi > <abhishekpandit@xxxxxxxxxxxx> wrote: > > > > > > 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 v3: > > * Added profile_wake_support and made wake_capable dependent on it > > * Added documentation for WakeCapable > > * Mark HID device to support wake from suspend > > > > 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 (5): > > mgmt: Add docs for Set Wake Capable > > device: Allow device to be marked as wake capable > > client: Display wake capable property with info > > doc/device-api: Add WakeCapable > > input: Make HID devices wake capable > > > > client/main.c | 1 + > > doc/device-api.txt | 5 ++ > > doc/mgmt-api.txt | 19 +++++++ > > lib/mgmt.h | 9 ++++ > > profiles/input/device.c | 1 + > > profiles/input/hog.c | 1 + > > src/adapter.c | 65 ++++++++++++++++++++++ > > src/adapter.h | 2 + > > src/device.c | 116 ++++++++++++++++++++++++++++++++++++++++ > > src/device.h | 5 ++ > > 10 files changed, 224 insertions(+) > > > > -- > > 2.25.0.341.g760bfbb309-goog > > Other than the small comments I had this set is quite good, does the > kernel support has already been merged? > > -- > Luiz Augusto von Dentz