Received: by 2002:a05:7208:31d3:b0:81:e143:7c29 with SMTP id v19csp410194rbd; Fri, 5 Apr 2024 08:05:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXzS7BfdJ60mfUN3nHiPEA7mEAzagh3fMiO8o8ck1NTghWjN/uDssJhz7PfB3I+l+oZu4vKkX4gBzYhwi+EKecdzfOCSO0gQAkZdtdqlQ== X-Google-Smtp-Source: AGHT+IH20/8v1tiHMl5dbK4WujG4+eaTb1RhSxMXiAgHN2p7hc0y83gK/3/sYafTFGsOo/RkqBmj X-Received: by 2002:a05:6358:793:b0:184:fdc:2594 with SMTP id n19-20020a056358079300b001840fdc2594mr2191489rwj.12.1712329558181; Fri, 05 Apr 2024 08:05:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712329558; cv=pass; d=google.com; s=arc-20160816; b=nOyf9yNw+ULeODoAE9b5AGXZ7/AZO1tIZzURQLm1N7CXSWGxDVN13iCeExnZqNTy48 z4nXwP/ixjMT5vzhUk/+cZFDwuApR76qauOu7CNPqgERUg56SoqcdcoxTpKddnmMeMP1 1tSaYGrr/0AkytBzOP2jpLqQbdH6TK0+V1PbGPEZohkFB9uQCt3ZbaItHusSg+D39ZJc wA1DoEPK6pAW9q94w1fZNEbr76CqXzZhT7Qvnd7jSHhJLJ/weXJchgJGbZm5+wtmI5Wh 7eWoPhIS5hlNJgpYy7RrtgUqti6Y8cd1xwr0t2m1M1+vejx7yrCxePnnZrL2FifagMXu VlYg== 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=sbWMOHsuWn+MHvy66IEUoc6NFVH5ScN2tnJSW6btvPw8qmMV4Oyba4lbZiyK3FPN/C W+YHGBzkvFEzxMQtuBRBKTvJ9kgKH5WvVus80ebHUJ+03RHObWj0x+s/K3aaBVhvTsBG HiIp6LVBjbx+bDeiBAxu/6RM9aCI7VvWDX6g8SR9nSWOePffctjqvWOSQDWoATFyg6z7 Ii7ROWwa6r10cPXTWnausOEbAloJNv726+X40tyGjcVtfhqcwcfRkqXjv+o8Rd6w/NAX RHkisCXK28y4a9L0VrJ/GikkS11fE7aQCikvV8Td/Z8qN45e/jxwzguY2JSbS3NIN+BU 78Wg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bqFsn7T+; 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-3279-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3279-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. [147.75.199.223]) by mx.google.com with ESMTPS id ib11-20020a0561022b8b00b004784a9d0215si304558vsb.134.2024.04.05.08.05.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 08:05:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-3279-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bqFsn7T+; 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-3279-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3279-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 C71C51C22BA7 for ; Fri, 5 Apr 2024 15:05:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7FCA116F8F3; Fri, 5 Apr 2024 15:04:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bqFsn7T+" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-oa1-f49.google.com (mail-oa1-f49.google.com [209.85.160.49]) (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 7397016F84B for ; Fri, 5 Apr 2024 15:04:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712329480; cv=none; b=sSIfMoA4P3TpzxmQGK3KRPVvdK/AqJ9BNlT/9hVSrq+CqKbxAjz6JIc+4BXGxIT3iev3UeQGVyGU4ZHfPXXkYm4fqBI6pIGOKDBZGeCmOf3EJflhzPjVko5vJB1mKZE/uUGJb1vdUO++/Y1rRFRET+5RFpurSAgaNLrUaPokr1g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712329480; c=relaxed/simple; bh=oBYiZuw4EXH6CclXvwVXPz++tRo1ZT9usZqsMq50P3o=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WybgzgCrxxJF87RqtYPVdPBK7UNdxLGppxEWaluIrNXg5OHV1Ig9QSgGSUsNamhYKP95anaaZSYkA2weyfUZ3tJsiGB7LBbtZ8az5ylxusm7FcQc6eTC8e0AYNeO3rFVGck0PkFV+MXl4xa5FiM9A+8LU0fXVqmObT9Ps5KjVx4= 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=bqFsn7T+; arc=none smtp.client-ip=209.85.160.49 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-oa1-f49.google.com with SMTP id 586e51a60fabf-22eccfeee22so514711fac.2 for ; Fri, 05 Apr 2024 08:04:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712329477; x=1712934277; 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=bqFsn7T+x/c7hj4ydcRKWIZWemOhgNAhxQHbYomUHam9o0HO3olYNZM+ujX+QSwr5y BXqbg88aH0VU2oDfFiVH1an9NBQcWTaitWYVYELjj2BI3xnoJ0qHcE5foIrQkseulAFP WfmQDYcOazZwufTYTd1GfbHVqdL/YFJh+T0sazf9OUdWpg3AaDfpAMbA9i6RvfqjgCn3 WsSKUZWHMGRsL3KMn9srURdfHpAPGtR5OHh0MtaXJFi+r/c9olzVLdEsrWzuYsmggoF+ mIuXx7wjWdko4RwFF/1+Z+lJnBT/q3jkdX+G1dwngcng5eR6bBKhGzTzUwzrImcG/45t kznQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712329477; x=1712934277; 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=LaXkJQdzIhsSlW+ezknFsdwm7ovFkEEE1vxNGzobBuEvb4+0HZau6xavw87iOQbwdA bK7w7Gz2V8a9NAT7a8htMoblkLEuN+db8LIhH+Krn1ZeYn8CMhL7oXhbgsXO9hVyFfKz djk8my8yEgXBZr0smVqLmKzkQAWZPSBrL/tIlH1UsD23SQBxw8ywuFbJLPS8DAOGSr2G Avqpu+G60mLiDK7POeGa/foR4i5oKOoe6zFdfSKvD5uLi4h+ReyXcUyCpfXKa1Ddgmuf GzQCNzX7IdcGdRn6xw2J/LUQKcIzg3NHLtf+2xXnLjaG9DYE09Bu1Oc+1dR5IeQGSk5P wtWA== X-Gm-Message-State: AOJu0Ywj8LrAwLLKk2iyvMOjQhHT8nMrE7YSLpHAxvuWw2gyhHLHZL3f ZEJmx9rfngliD5KOG3QpejUmS4KLpP/efFFcwER4JTBVFq8oLBelzJ4idtml X-Received: by 2002:a05:6871:3211:b0:22e:c08c:b1cd with SMTP id mo17-20020a056871321100b0022ec08cb1cdmr1407217oac.3.1712329477587; Fri, 05 Apr 2024 08:04:37 -0700 (PDT) Received: from lvondent-mobl4.. (107-146-107-067.biz.spectrum.com. [107.146.107.67]) by smtp.gmail.com with ESMTPSA id l9-20020a9d4c09000000b006e82f65ad4esm306451otf.11.2024.04.05.08.04.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 08:04:35 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ v5 2/3] input.conf: Change IdleTimeout unit to be in seconds Date: Fri, 5 Apr 2024 11:04:31 -0400 Message-ID: <20240405150432.3360157-2-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240405150432.3360157-1-luiz.dentz@gmail.com> References: <20240405150432.3360157-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