Parent: 08d9f2ee6203215a5328c21aa5ec40d8fc674e45
Author: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2020-07-07 20:46:45
Tree: 75496b449ec2c948a4966ac74dc184e5514b5963
device: Support marking a device with wake allowed If a device is allowed to wake the host system from suspend, it should be marked as wake allowed. We add support for a new property that is sent to the kernel via set device flags mgmt op. We also add the dbus endpoint to allow the wake allowed setting to be controlled. In order for wake allowed to be set, the profile must also support wake. This setting isn't exposed to the user but must be set by profiles that intend to support wake from suspend. If a device is connecting for the first time, it will be marked WakeAllowed if the profile supports it. On subsequent reloads of bluez, the stored setting "WakeAllowed" will be used to override any other setting.
Diffstat
| M | lib/mgmt.h | | | 2 | ++ |
| M | src/adapter.c | | | 93 | ++++++++++++++++++++++++++++++++++++++++ |
| M | src/adapter.h | | | 3 | ++- |
| M | src/device.c | | | 210 | ++++++++++++++++++++++++++++++++++++++++ |
| M | src/device.h | | | 10 | ++++++++++ |
5 files changed, 317 insertions(+), 1 deletions(-)