Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1121678rdb; Fri, 9 Feb 2024 10:52:51 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUeuL2H84HqSaCteM5KCv4cMp1DdwQ0UNQHexVesZNr/MiQdVdEaKfISbT7rqcDLQFvuNLtW8DvrdwH7rW6p3fdok9vnsQXJJ66aCytSg== X-Google-Smtp-Source: AGHT+IGHLsgnXRWdpdPwUlSQiTDxelRKzCwTQ+joTPngeRgB5FdV8n5khvSoLicxhUNFIIE3Z/Cg X-Received: by 2002:a50:e703:0:b0:560:dfa:61c6 with SMTP id a3-20020a50e703000000b005600dfa61c6mr1807128edn.20.1707504771442; Fri, 09 Feb 2024 10:52:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707504771; cv=pass; d=google.com; s=arc-20160816; b=nreAzmcY0y9TgPChXRRavBETwTvQ2W9Jr+S2t5Oe+rivEu7oTdO9Iex66Zb3Z8ofnL gDFsYzODxOPnWd86NR68xGt2nj/XhZK/KEsxMb69KCH1oJ/G2U+KxgP0BYyngGWnFmcM 7wu8SiSE1w+byFZ1m4cgVOwWeKR+6GnQeYlfV2AZiLp1NKNMoiodfxtSIWwFFcVVW/zE 0wmmBEMNQfIR0WWOxmMpyyT4Y6vAti+Ks6D+yGguqMrWFk/BkkJyLnDqLXfuU9scYI8N qcwaGXoq0+PMpUZhVpiP4ndmsniplnhOdJPewXWvC7BU7rsL5cEp2Y/tpGmPfWQyqRXP PxRw== 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=Qo5zYZ+TMVl73Tg60+3Tg0r7qMMUMusb+RfFhPG0uT8=; fh=WfjPpElSXsR++0pvidCNLOPcoYL173FU3Z1VpeEbWwc=; b=ZI4yA2ghEjO/8rR5mm3sLFh6ztsRU6x5pss3iHaoLuJ8TECO4ktG/dxdbtSzeqk1+7 FGo/hAe9WsIDI/dW63Hq9VE41SY1sb7PR0+lxWvX3keJaW4eFuyfbT1KSPm9I/uYosws OP6TEnxaQq2F7uxYJucY+nMIBlWyXyxAh4Z1I7XmOzrTMvAF/b6eny08kRidPqXd7Jod Ar4qpMQNdGr1PFU1Nzl9w4hkVstBdawnVhmqK9CqLJ1SOUIlGJzFz0P4Ye/kSrLXJKws M5qDbwxUG2BJOj8Ppshhy7Tg286JEdL9OcYCi9eF7+isz5IxeS9hJnlUhC+dQ+5AO5Am yrGw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="nmNQ/495"; 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-1727-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1727-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=2; AJvYcCXyvfgUat+Yw2SwVPfAT72nb2n4xzE/XKhRppQwTiMv3bItefxj+urIclRGZoo5kuvZvU3HIZ3lCFkEFLgZnFUCgzMeTbpTv2NQ9QU21g== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id b5-20020a05640202c500b0056001f92c29si7344edx.340.2024.02.09.10.52.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 10:52:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-1727-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="nmNQ/495"; 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-1727-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1727-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 2E5E41F23145 for ; Fri, 9 Feb 2024 18:52:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A288180C17; Fri, 9 Feb 2024 18:52:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nmNQ/495" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-ua1-f43.google.com (mail-ua1-f43.google.com [209.85.222.43]) (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 A28937E770 for ; Fri, 9 Feb 2024 18:52:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707504764; cv=none; b=Vrl0iXV/l9nKiHTSvrOmwI/6fBeEJW5YQKsTreSNGmtwe8Ci+PGiNdtCryRhjgpefpp6/LwjVqKbCsscI/xw1IoxfeFVdcsTZQ/pq8GmVnmExTlAc2Vhuep9eTmDd8YY0jkHKDSZVGWvwwBA3rXZfFhMExPfiaXSUWCSAf7ji/M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707504764; c=relaxed/simple; bh=beeQn/gyfJ47So4yCSma52+M11bk3Rx1U42gIB+DhDU=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=C9lqF8KPVXFQznlOpwZTgsnxQtURcKSWkYP5pgJhjV8cYZKuXy3UQ1XANGGi6DjPkDxwY+PQUMnI3QY+1SSvQTj4vQZa6AMZjft1OeC4fdI9cCuo5bcjzyERQufG9auF85MqHzwLhwu1JxOZD6Sx8KlxRucKB+wNGQ8BUTiUTV4= 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=nmNQ/495; arc=none smtp.client-ip=209.85.222.43 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-ua1-f43.google.com with SMTP id a1e0cc1a2514c-7cedcea89a0so531588241.1 for ; Fri, 09 Feb 2024 10:52:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707504761; x=1708109561; 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=Qo5zYZ+TMVl73Tg60+3Tg0r7qMMUMusb+RfFhPG0uT8=; b=nmNQ/4955cvgU2FAJ8rhO3+pcmQzn9dIvdIP9fWGvNBiLis3IIciXNh5agp6iLeIBD KTfnAUoflmhis3Y9hQI9gyuRYP5Pj//UX1yxrcF64XvMciE4pBHEhtTefus2u9Cpkho4 Iu0LtMP5zWth2xIFs8MQIT8C/djdqGYSW0nCbCBUfeX1baJV/YkYDWaSUawrMw9B43eA ASi1UElVcIdLFRBQx9Da/BJDMbftWk/lLNcNNw4JEBH8HsVuA6IhUtMme95nRNNypamQ 0eRt+CU2OoL6GgcAdkRp/N8WRdz9TALKMJUgRQqD4Gzvp9M5DAwDnVoOPpM7gtO29/Gy i3gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707504761; x=1708109561; 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=Qo5zYZ+TMVl73Tg60+3Tg0r7qMMUMusb+RfFhPG0uT8=; b=ro149EysII1Ce/4d5WBeIBW6IImziqibn43EPL7u8OD9PxH35Vlj9G2QdAoFBLjiWR HsgAATKIM5D1kKO/oevyLIJidMb+KNWFHyI789yytDZtoAHAFJfiD+wOs3bPTVBKXGm+ SZlkHwZFiQY0h+fGeTpM4ZYd43iAMnQRIOytzQJ+gwRBsRX5c2rVNbXYDX4l37jLLEtl SNt7kmBpxuzy/in7fYXyqd0xh13XlqmXtRRWCAzx3SpsJ0MdzkFc5Pm7gJjcu9bUFB70 nGBTtmsHcCvzwAU6sLEF4bfma4FOa19yZqeP4zM9548slkj/YejjgMdlLOb+L0oVdXHv aw7Q== X-Gm-Message-State: AOJu0YxC7UVwpdkGBAZMXgn50+7MyUv1LVwuPz7GyDcVs+mEh+1khyfe 7WSdyGD1zw23nNW10GYNOpE39wZa8X0rQWl454/jNjALok8JyZeEvZFlpgkw X-Received: by 2002:a05:6102:2a61:b0:46d:2443:6ea9 with SMTP id hp1-20020a0561022a6100b0046d24436ea9mr329545vsb.7.1707504760794; Fri, 09 Feb 2024 10:52:40 -0800 (PST) Received: from lvondent-mobl4.. (071-047-239-151.res.spectrum.com. [71.47.239.151]) by smtp.gmail.com with ESMTPSA id p7-20020ab06247000000b007cea1ac338esm116989uao.27.2024.02.09.10.52.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 10:52:39 -0800 (PST) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ v2 2/3] input.conf: Make UserspaceHID defaults to true Date: Fri, 9 Feb 2024 13:52:36 -0500 Message-ID: <20240209185237.3611995-2-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240209185237.3611995-1-luiz.dentz@gmail.com> References: <20240209185237.3611995-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 makes UserspaceHID defaults to true so the plugin has more control over the input device lifetime. --- profiles/input/input.conf | 2 +- profiles/input/manager.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/profiles/input/input.conf b/profiles/input/input.conf index d8645f3dd664..00a34eb63de1 100644 --- a/profiles/input/input.conf +++ b/profiles/input/input.conf @@ -9,7 +9,7 @@ #IdleTimeout=30 # Enable HID protocol handling in userspace input profile -# Defaults to false (HIDP handled in HIDP kernel module) +# Defaults to true (Use UHID instead of kernel HIDP) #UserspaceHID=true # Limit HID connections to bonded devices diff --git a/profiles/input/manager.c b/profiles/input/manager.c index 92789a003c89..69ed646727d5 100644 --- a/profiles/input/manager.c +++ b/profiles/input/manager.c @@ -83,7 +83,7 @@ static int input_init(void) config = load_config_file(CONFIGDIR "/input.conf"); if (config) { int idle_timeout; - gboolean uhid_enabled, classic_bonded_only, auto_sec; + gboolean uhid_enabled = TRUE, classic_bonded_only, auto_sec; idle_timeout = g_key_file_get_integer(config, "General", "IdleTimeout", &err); -- 2.43.0