Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3497332ybi; Mon, 29 Jul 2019 07:34:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqz7Coqbg9hk9KhQ20nmlnqs2tCz4IXXVyTPu04i3poCDHsTozw3bBfl0xS2QUxBPiv811hm X-Received: by 2002:a63:4c5a:: with SMTP id m26mr102815906pgl.270.1564410849722; Mon, 29 Jul 2019 07:34:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564410849; cv=none; d=google.com; s=arc-20160816; b=p4y7q8Zf2475/vwR98EDHjttVeyG08n404zwo+xjRoWWKq7cI1SvMSKqM6PqFekVIP Cv74J2WmtM8FWQWiaqlwCVhj8wq/DC4FZr/ZTy8UxoYYWkC/p6PJkEuB6CCnIh+haNMY sa5GSqG48B4hZwWNPVI39e1HY+aHhwpNKnPFg045if29rUQtbS8GlQhHr/NW+RiE26Hs hUcnuRWG9NYmON6D1f7owqD5MppbfKnqK7Q9rCijAOP95mZYVM3ZvI5IQb2hceTH1ukJ VzUVP8Z3QmbF8a8c3XZ+rDkJ9uc1cD9u+rJwyT4Y9FDAbX27mezG5RlO6ybM9YFnKCVI cwKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:organization :subject:cc:to:from; bh=ZbxcKV8MceZYNkwHRTin2z4t1gJZTIRcyKnNXrdllN4=; b=To2Ya3uAD/pis9vRI4wDpXpxbifzveB9wCrodpT3vpX0lt/gzn8F1rJTmZ4ENZqaol kHHZgtkXo8z8gMzD9HGtewR98B77Tu1XvfKbICC1sXs2quP2syVEDRFNIt0q8xCNh66x 3JA+Iw/4rZMV1dbK24FCLH1CORtPaIC0nxajROAjrfEhnY6vBvT5mSev25z0+MoVlqjr FDYT/UEUd6csNBVoQ+5dsL7hECh79jMgR4PljNKmYHGt5xM179wsBtoD/AWMTxaRZY37 +Y9Sspx4ijD/NTS9Rrl0BNgu5DH/kQWBGk8lp3S5wtBlPMZxkuHW6aAjteb5RWmBOGeN npGA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y12si28650873pgg.585.2019.07.29.07.33.51; Mon, 29 Jul 2019 07:34:09 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727036AbfG2Odc (ORCPT + 99 others); Mon, 29 Jul 2019 10:33:32 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:51280 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727034AbfG2Odc (ORCPT ); Mon, 29 Jul 2019 10:33:32 -0400 Received: by mail-wm1-f65.google.com with SMTP id 207so54083658wma.1 for ; Mon, 29 Jul 2019 07:33:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:organization:date:message-id :mime-version; bh=ZbxcKV8MceZYNkwHRTin2z4t1gJZTIRcyKnNXrdllN4=; b=HdetlVMIT8tlj6eyOMKAK1QZ7RfyMG69wq1Qe4ABtR4ZTm9E/TTe5oZcsjjACV2/B9 bUmXthu6TyV1XszUBKptT3hGaFcWG2Otgaq+VTPY+GHnw4sTuORt/fFH1LNiStz+Q/Jp 0jq/Gz3ieJPmWDdxcB+L5QkPUV1hdlJVWfyevE+hUPkJsFEAYxO5cSgji63aNBTXMa7I fOIUrBWnHBRW08gdWNGMyYGA2+EKyWqbwPgrYpNT76HS5IWAAD6mI6lDews8RfywStnV bhhWTCnvp9yFokpUfYvxWoMV3gRDaVBlucjnVK9S+efco5jVXWkGxybsuD6gUFtFHZ2e gfOw== X-Gm-Message-State: APjAAAXIv4YKUGm2Ez6HdR57AYF6sqxL6Af7jJEmfCki+rzkptaanvmL 7UkiWxpzCefUdhbp0lPsvAP0SuXSC7I= X-Received: by 2002:a7b:c651:: with SMTP id q17mr93040617wmk.136.1564410810632; Mon, 29 Jul 2019 07:33:30 -0700 (PDT) Received: from localhost ([2a02:2450:102e:d85:877d:43b4:dd8f:144d]) by smtp.gmail.com with ESMTPSA id c11sm103850647wrq.45.2019.07.29.07.33.29 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 29 Jul 2019 07:33:30 -0700 (PDT) From: Christian Kellner To: linux-bluetooth@vger.kernel.org Cc: Mario.Limonciello@dell.com Subject: BT advertising packets and s2idle issue Organization: Red Hat Date: Mon, 29 Jul 2019 16:33:28 +0200 Message-ID: <87sgqoewqv.fsf@kellner.me> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi all, I have been wondering what to do about the bug that advertising packet will wake systems from s2idle when a device was previously paired with the HCI_AUTO_CONN_ALWAYS flag (kernel bug #200039[1]). I was thinking of creating a patch for bluez that would create a "delay lock"[2] and de-register any such device from the kernel before entering s2idle, but I wanted to check first if that is the best approach. In comment #27 it is suggested that using a "LE Privacy v1.2" feature could fix the issue as well. Is there some more information about this available somewhere? II can help out with development and testing as I have an affected system myself. Cheers, CK [1] https://bugzilla.kernel.org/show_bug.cgi?id=200039 [2] https://www.freedesktop.org/wiki/Software/systemd/inhibit/ -- Dr. Christian J. Kellner Desktop Hardware Enablement Red Hat