Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp522199lqh; Thu, 28 Mar 2024 08:33:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWqw4cvB3vBWwSWCMywXSHiQQRndc7W3/yB+mZh41H3vG7OV6oh3UWdwGoB3uqwHYCkw11/FPu9DP49XeXxH6h++QuWIc23Fqf2j1+q1g== X-Google-Smtp-Source: AGHT+IF1Z3MOMKdOgV54gN5aHpu9i3bgmsGJ3EhVaJg5P6lvuVawmmVH7oZcw3crinQHsxcBPJpH X-Received: by 2002:a9d:5a02:0:b0:6e6:e639:6f22 with SMTP id v2-20020a9d5a02000000b006e6e6396f22mr3629369oth.21.1711639986619; Thu, 28 Mar 2024 08:33:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711639986; cv=pass; d=google.com; s=arc-20160816; b=vCfZcqn3Amt5cKX8EjmoVJdRZICQZkEsY/nQzeL3VYmuwTjUEp1QxuQorqmCLHLwPV oiiThEfCUse7Nw7lWg0XOCjzwVnVAf0oS/RxsdYo2TANNq0kAVs5pUJGXIvASyIZjiG3 wMwWMtz64TUdiOfnTZDaJFABrLTI5NRamklAdi31OZcSb7uAO/aBlWqISzKgvnLh/pIr zGTlPSeajknfg+PKrIJdEXYNmRhZcMGQCItMf3jnx5BWxW18/pEAwBtEuhpWpa+/Fujn COd0mVYocc6Zhu/S7vWFFRXUrVnpO9ThKpcED58h4bhMGkCpNL6Eo5Yw2YlQkf8iYM+6 gG5g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:to:from:dkim-signature; bh=5xhyNVQ9ZSEd+DznykOtJOMpyp8tgw0j029Fgjisiwo=; fh=4lGQI6056MBa4/oovMyIYaKLn+Wz/24RGvUivMmQP8E=; b=og5GY1sUb92K0Tc7ikUjrxf/V12wfsfMdOGPxmEYkSJS9SXCbe/OpDkMr1KIUMdgga 3i0WdXWMdwzY6laNzGCLBOcuTsPqA324J6oJ0rwgmxkNKo/mE0x/h/FvgmmIuz0OC1Sj La0O6YAPA8+zV5uHiupcqZDOerHno8ptgQ/Bjug1DGWXaOPTEy9qRstJtP+7txKQEEwK QiG5zMPD1QPCeWOF3p4mZoFKuKon9OITQPfiToWbkJk92JCdx+1dZ9nFG0t+GnRYEMVt VunuUPp1sTLjYtOnjizzcsLXneErS8ZaUEfqKNnBr3a0m8NjShVVe4qnEO22ktdIiXhl df8Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=iH19th8U; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-bluetooth+bounces-2919-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2919-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id vr21-20020a05620a55b500b0078a20dde744si1567485qkn.738.2024.03.28.08.33.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 08:33:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-2919-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=iH19th8U; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-bluetooth+bounces-2919-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2919-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 583F31C22018 for ; Thu, 28 Mar 2024 15:33:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D328B12F5B2; Thu, 28 Mar 2024 15:33:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="iH19th8U" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-yb1-f182.google.com (mail-yb1-f182.google.com [209.85.219.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D6A1C42061 for ; Thu, 28 Mar 2024 15:32:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711639980; cv=none; b=o8+NYoMxoV4M7xolQJX9rK8EbXSGPITDmQXnAiIVBfVVhWBsCIWsAVT+34r2oE2eypzgDChljFWSVfhCHaOfGOOLjULyaX9jHxuv6+Z7Y1gJTN322ccKvB3jSjbDqt75T25MqGlxE8sVdicRliYcmS7jevhnXH6ZX8/J112HgZ0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711639980; c=relaxed/simple; bh=oBYiZuw4EXH6CclXvwVXPz++tRo1ZT9usZqsMq50P3o=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TYSUo/+kqJ29OE1RA9YSdNuryCx624gmeAQIC8ha1VmRkos1n0zfxucoGy0Di4IyOkNMIwptt/WU3o+wziKNOkpCMqZF5xtNI9X5tWA49v9ZquQNv/tgztLa5robsa1sH77aw6L8vMKDKUx6HU9dADvG6Exysk95BnKYIbgNS9U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=iH19th8U; arc=none smtp.client-ip=209.85.219.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yb1-f182.google.com with SMTP id 3f1490d57ef6-dd045349d42so1049108276.2 for ; Thu, 28 Mar 2024 08:32:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711639977; x=1712244777; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=5xhyNVQ9ZSEd+DznykOtJOMpyp8tgw0j029Fgjisiwo=; b=iH19th8UOpCR+bZyohYUVgkDwQtAdw03U6ch1LKoheVVvQTAVwmDYL3VwaRuLt6eCE 3gVQxwWwx3zlzSEK78r//cPjUA+fO/Ohr5Fygj4qc9G2o3Z3p14K5TL3buUksjhektVy 0QyECzejX3ERYT8FpwMn/GQn08UhBYhogvxOhXPZOTKE62x1T6TG1vEX9pg1AtSLezFD WnCVmtUXIH6EpazcIMbd8s1yjJgNQyYiBhMNT86USW+3dH66sLbgdlH9+PG46o2DGIR3 NFaMh0rkLEgTO9+6tNR5826cix9gXbmEhmWsam8xHuI4zw/edZnEug8A7bWECDA+ZlgM emag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711639977; x=1712244777; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5xhyNVQ9ZSEd+DznykOtJOMpyp8tgw0j029Fgjisiwo=; b=b/No8c9ktLIvGZ50UY0tqnCXNUqyNKhf9BvQLc2lloP8f0IX6aaMa12acKZail+T11 cQ+nEEdUrp8kk3aUYlJ9v7FZSNayqHF2J7M3JeBuAenW0kKbGBaADmR+vwbVuzl3lbgY o2Fx1tZpXU1790VUOdMHb8+63SCjJIOre3ThFkscxIEzYnFIvdJmVSkLcMWEOFkmA4OX M327Vdb4FbhqpPSoeToJB+5cPrNfaADl2bfVja8okueIaoWW2QITgWwCJT6Y9HSyQ26V fufy5Sh8QP1aWXzL5wqwOmIJhexP8SCCkmOutInPPtAi51mAgnziDfuaD1ttsPWBbQcr v6xA== X-Gm-Message-State: AOJu0YzHz+21xkrK2q1TuxfuykaNzNx8tNEo2VKDw+HzFJqMxNmzEiv5 wIuIsgJl3zS3jT217CF1sP/EiP1Nfph9aW2eVE9txVuRV0BpIFY9WSMMvEkh X-Received: by 2002:a25:6b49:0:b0:dd1:491e:bf0 with SMTP id o9-20020a256b49000000b00dd1491e0bf0mr2878518ybm.60.1711639976773; Thu, 28 Mar 2024 08:32:56 -0700 (PDT) Received: from lvondent-mobl4.. (107-146-107-067.biz.spectrum.com. [107.146.107.67]) by smtp.gmail.com with ESMTPSA id 83-20020a250656000000b00dcd3e78d086sm347473ybg.46.2024.03.28.08.32.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 08:32:54 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ v3 2/2] input.conf: Change IdleTimeout unit to be in seconds Date: Thu, 28 Mar 2024 11:32:52 -0400 Message-ID: <20240328153252.1752439-2-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240328153252.1752439-1-luiz.dentz@gmail.com> References: <20240328153252.1752439-1-luiz.dentz@gmail.com> Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Luiz Augusto von Dentz This changes IdleTimeout unit to be in seconds instead of in minutes which offer better granularity. --- profiles/input/input.conf | 5 +++-- profiles/input/manager.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/profiles/input/input.conf b/profiles/input/input.conf index fc20c58b6b32..273e15bc9c80 100644 --- a/profiles/input/input.conf +++ b/profiles/input/input.conf @@ -4,8 +4,9 @@ # particular interface [General] -# Set idle timeout (in minutes) before the connection will -# be disconnect (defaults to 0 for no timeout) +# Set idle timeout (in seconds) before the connection will be disconnect and +# the input device is removed. +# Defaults: 0 (disabled) #IdleTimeout=0 # Enable HID protocol handling in userspace input profile diff --git a/profiles/input/manager.c b/profiles/input/manager.c index 92789a003c89..f4598bcd4e47 100644 --- a/profiles/input/manager.c +++ b/profiles/input/manager.c @@ -89,7 +89,7 @@ static int input_init(void) "IdleTimeout", &err); if (!err) { DBG("input.conf: IdleTimeout=%d", idle_timeout); - input_set_idle_timeout(idle_timeout * 60); + input_set_idle_timeout(idle_timeout); } else g_clear_error(&err); -- 2.44.0