Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4172831ybl; Tue, 21 Jan 2020 14:24:11 -0800 (PST) X-Google-Smtp-Source: APXvYqwCKMVR1LNlvuDjGuEMvfNlwvo+ZVUPbg/xMdpskNmrFx3Bn40ct6mbAyZUV6P62b3acjah X-Received: by 2002:a05:6830:194:: with SMTP id q20mr5510036ota.92.1579645451177; Tue, 21 Jan 2020 14:24:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579645451; cv=none; d=google.com; s=arc-20160816; b=bUQULpWfzaCW4zttPtfMaQshovxFXg3W6brhnCd2ttA6nNGlXy/3GPGMrw9CKx6Yv+ QNUex5qssSB+HH90E0TUrO4tFAV7DwTQforUZepVZ3nZucuypzDm0+iAeXP285St1HTh wiKLj/gFeDZtHSOCQIDu7ZBeeROZ6Aes7RF9466WngkwgfJL+lF5xzC+PD2NysKAjlgK 6tJSfmfUmaizmGWGeqUH156QrfH8HZy8SMMJCq5adlkAxSuPQHF1upaCuMZiuYf013Do GxVmZw+5PLan4N2hT68rudBAK7it7fV0j8wc8cM/9tK3BLIm0dWfiEjzBI7GIfjRiJw/ 0WPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=iD6ZGhDQZrOHRv/A01FwXuPAY9l9Xe49LbJoITnwCmM=; b=mX3dMB0x4tLV2MTAOwf5Jz9m4bIl322FqmVglrdS2vd/MXx5UF0eLQk2AiyKay37lG LL8QguduFGn8mAOdL8uvjU717sPw9bMsWOG/hcIIPndHdcEEuGkIhpDLAV+mFgjLyPUD n8nY8GY/gElY37yyAbS9NAjEOSsWxD5Ce+wR0zqg1bI2+H2Im/7jpL+MyGu3P+ZHQ7X8 0jyro6MbjrzMazy74vAFSiePrFpK7CMOKkGlKCMiO8INVvoV24n4gNmmBSkjMQcBFqRp Uux4nzwVYYVMGF4nLHEOj3e+dYpp5+Oswj49t539YIyOeynnGlth2t72jIusiqWfY1o2 K54Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=F71lfE9h; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 38si23825941otj.136.2020.01.21.14.23.57; Tue, 21 Jan 2020 14:24:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=F71lfE9h; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728981AbgAUWXw (ORCPT + 99 others); Tue, 21 Jan 2020 17:23:52 -0500 Received: from mail-vs1-f67.google.com ([209.85.217.67]:38746 "EHLO mail-vs1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728139AbgAUWXw (ORCPT ); Tue, 21 Jan 2020 17:23:52 -0500 Received: by mail-vs1-f67.google.com with SMTP id v12so2977211vsv.5 for ; Tue, 21 Jan 2020 14:23:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=iD6ZGhDQZrOHRv/A01FwXuPAY9l9Xe49LbJoITnwCmM=; b=F71lfE9hbq8RxLcp0uDCRXCiTJpoXNF4XotknaJAmZSTIihIu22T2MA9GBRM0OH/be rvSzPVmvRdjl78yonzxCqdGyR+udgzZzhflh0LHdKmSR65W0Z1Y31cjZUyoI8WJsJqVA YOAdiKGb0ogy7cT6v6BH6jmWeyk3vvfxGyD8Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=iD6ZGhDQZrOHRv/A01FwXuPAY9l9Xe49LbJoITnwCmM=; b=VU2RCoFZ2VKymqEZu9sIUgAfdeXRkwDjCd6zpkfhw/YLcW0rjXEz+o4OykxL4mCv5L 0/UhPChsfgm3juV5ifz0n7aBg70nDiw6C0L2GaNWYkHxsEFEXQ5aBq+Kk2Nmd+pyINkz jASgS75nzfoo1V3FgxIJTkD8SExx2UURMDCEarKKTtSh9XupR1ylCH4Hwwb38vMwgaiL K1WZNoOTWV/PdQUCn4nM/s+/xoCjTey9fdbu6ldfQn+CxR6jarCB+BhnaOONaQMg2PfW 3wu/QDrdAj+xsng2H6R541bstXT3MdDVJnf3QVvaIwlOsZtSn2WYezluCypQ5IjUm1GQ eoww== X-Gm-Message-State: APjAAAWvck1lY2BeYvZ2ZSOFUw+4l8wE3UQ8OCqnuxs9KtTh4n/HG0B3 oMvYmbKwM/GPoo+CcMWcPJtGL1p/0aksbQQ6Hfvspg== X-Received: by 2002:a67:d007:: with SMTP id r7mr689536vsi.93.1579645431053; Tue, 21 Jan 2020 14:23:51 -0800 (PST) MIME-Version: 1.0 References: <20200117132754.BlueZ.1.I56a225147d9cabef55f94b57129a5e37ea79d165@changeid> <20200117132754.BlueZ.2.Ie24be91b472c0a274606191bc4d14df030fe3598@changeid> In-Reply-To: From: Abhishek Pandit-Subedi Date: Tue, 21 Jan 2020 14:23:40 -0800 Message-ID: Subject: Re: [BlueZ PATCH 2/2] input: Make HID devices wake capable To: Luiz Augusto von Dentz Cc: Marcel Holtmann , Alain Michaud , "linux-bluetooth@vger.kernel.org" , chromeos-bluetooth-upstreaming@chromium.org Content-Type: text/plain; charset="UTF-8" Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hey Luiz, Yes, I will be following up. I sent an email on Friday but I think with html so it may have been lost. Will resend the patches today with wake_capable exposed via dbus and not automatically set by the profile. Abhishek On Tue, Jan 21, 2020 at 2:15 PM Luiz Augusto von Dentz wrote: > > Hi Abhishek, > > On Fri, Jan 17, 2020 at 2:16 PM Luiz Augusto von Dentz > wrote: > > > > Hi Abhishek, > > > > On Fri, Jan 17, 2020 at 1:28 PM Abhishek Pandit-Subedi > > wrote: > > > > > > HID devices can wake the host from a suspended state. Mark them as wake > > > capable when they are accepted. > > > > My suggestion is that we do this via application so we let the user > > decide if he wants or not to wake up the system, you may still opt-in > > to always enable to wake up in your system setting if you choose to, > > going this route actually means the user can select not to wake up if > > the device is somewhat broken or misbehaving in some respect which is > > not that uncommon nowadays. > > Will there be any follow up on this or you didn't quite understand > what Im suggesting here? > > > > --- > > > > > > profiles/input/device.c | 1 + > > > profiles/input/hog.c | 1 + > > > 2 files changed, 2 insertions(+) > > > > > > diff --git a/profiles/input/device.c b/profiles/input/device.c > > > index 2cb3811c8..a6b0e8053 100644 > > > --- a/profiles/input/device.c > > > +++ b/profiles/input/device.c > > > @@ -1381,6 +1381,7 @@ int input_device_register(struct btd_service *service) > > > } > > > > > > btd_service_set_user_data(service, idev); > > > + device_set_wake_capable(device, true); > > > > > > return 0; > > > } > > > diff --git a/profiles/input/hog.c b/profiles/input/hog.c > > > index 83c017dcb..8627f3557 100644 > > > --- a/profiles/input/hog.c > > > +++ b/profiles/input/hog.c > > > @@ -159,6 +159,7 @@ static int hog_probe(struct btd_service *service) > > > return -EINVAL; > > > > > > btd_service_set_user_data(service, dev); > > > + device_set_wake_capable(device, true); > > > return 0; > > > } > > > > > > -- > > > 2.25.0.341.g760bfbb309-goog > > > > > > > > > -- > > Luiz Augusto von Dentz > > > > -- > Luiz Augusto von Dentz