Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2721808rdb; Mon, 12 Feb 2024 14:32:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXM+iqtuD8dLMTjz9Ou9u3KbLQ3lesHv6uqC72/CqFp9eJiBtD3N0aRlYly5YSkmt6Knz+4MGkZWWIy249b/BfUXwGRjPMASQcRc9FYbQ== X-Google-Smtp-Source: AGHT+IEv8ENsh6je1jXET8dawqjnL7Qcw+h2QNlii4VY+zLth3zP3WTXk1jeeLgtmeFQSbLp73oH X-Received: by 2002:a17:90a:9b04:b0:298:9d78:b2c9 with SMTP id f4-20020a17090a9b0400b002989d78b2c9mr840301pjp.8.1707777154637; Mon, 12 Feb 2024 14:32:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707777154; cv=pass; d=google.com; s=arc-20160816; b=BcWWIaWyhw+m5m3wrc/nt+cUwwhwavqG/+MnXJJRbsi1RetNQYbYUyT6+R72e+8kEm 4h0/7hziCxdBV9YkeMBKA2eZw9TGklYkS6t7vogOG8N5+BnMTvkK2DTfiS4pMTS/Ldev 2RTKyIdh2SxapT111wxo91O803AIlGMFgsLplTXj5q91TKBV/mzMb24aJIoCAf91MCKF yApEQlby7lwmEIA0DKOkL+Fct2NbRg93J+/LkTLro4Tm9qFCM0vBuvTGkVq1p7viC8/f M8fZTwLwHnt7RlK0ZFN9EwdY6UCaYe26FguPT+qPB06MTrtMwlsulONc3YYq29KdjFKG /fnQ== 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=4kAGhHA/F4F4m8PaN/GFfvTrWCN3YPm3thn164WVswE=; fh=W/aedf6xgDpqQy+Q6ukAceELCTYGZ5NE8g9xeMfRqvM=; b=b2SjBfIRpRvNSbmE+70NsuUXlFL6mEEKPbsKfQyX6kO8/DCu3a8v1l3WLqAbTSWobZ bhPy0pgL6LdrPGRv83VYmRDMC8jnqkeMbya8drcWKKmWXnl72l7LMfsmK3jkMCK+eOah wpoQcMznRZGf8Igi0Bl25qjM1udIvQJyrYtg7UIUH+yscP/E/FLiOruCRHRa2iqMyqaZ ehc/VP0I4uig5MPa8tOzc6Sl+OZFB3x3/fjqcg38J1TlUh55Swl0McMF8Syl3WVToKDh 9TfrzoILbBf3bVRPNf4uNyztcxTqpKKADZAjBvNJE9gotxbxWmvyLxf6MVNeVH8aLg3Y P+tg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=llliLZ2G; 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-1801-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1801-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; AJvYcCWkH7Gh+H/IWjjj/t7df2rPnWAf2ElQd9qhlxFY+frJq+jy0aPnhV4aF5FH4UqeyQDWTLC2m5L0C6zjg9vtEZIX3gFNDy5Rr9cmi6zqjg== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id a3-20020a17090a8c0300b002967965ebf9si908748pjo.18.2024.02.12.14.32.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 14:32:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-1801-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=llliLZ2G; 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-1801-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1801-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 352742821B9 for ; Mon, 12 Feb 2024 22:32:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5889E4E1CC; Mon, 12 Feb 2024 22:31:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="llliLZ2G" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-vk1-f179.google.com (mail-vk1-f179.google.com [209.85.221.179]) (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 3ECCA3FB2E for ; Mon, 12 Feb 2024 22:31:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707777114; cv=none; b=X5iEGr6hFXG4vP+SEp887OmJ0lsYlQYsyHAHedP5VoWz3y30Y2CwNld0z0OZ8+5QIn0nHxjkODCsWh9Iucc5+S8CoQm3bgljjunu0d43jYswUyTqKsRtyQNAQ6vmaRKJ4UXwv4k8VlKmgvi44qb270qviG8ActBa9sanQWcmy/A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707777114; c=relaxed/simple; bh=j13zusx1iNy1VSpCf0/7Uh5Vuxv9p4qo5PlC9S9RetM=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=eFv2vpt0enWND2TvOCRLVp095Fs9nwCNFWrRZloHGxOwMFezyefOGLJ1lp/k2SreW64Uh9GYVMVp6TqlMuAqwLIMSmfqAmkAMBau/MnVnCLNLi4HuZbra4kRr+P5eojnlpWnpsS4OLqWtTGdWkH0/LjeSFcpCnx7F8yqnmWIBZw= 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=llliLZ2G; arc=none smtp.client-ip=209.85.221.179 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-vk1-f179.google.com with SMTP id 71dfb90a1353d-4c0819bf523so644875e0c.1 for ; Mon, 12 Feb 2024 14:31:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707777111; x=1708381911; 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=4kAGhHA/F4F4m8PaN/GFfvTrWCN3YPm3thn164WVswE=; b=llliLZ2GqkOkMJz/U3aX5rSeK7Ga7Fg3R2F3vYsh2RZrnBrCC/E3XGzHz1qSBSyK+Q S9U5avaHPwyAiqZMnmPbyAmeZlpgvjuG2u/Fp/sFi4rvox4W0zxoq0HhSWfnlSdHk1W2 rTTR3Xa91N8H3w8OyylluFB9gjV+KzCI97MTzGqhbQLVcUt3NTUZV3DpCxR7I04I4YE3 oIuuEtceaem5khVGoz6nE01Q7/XYfFB/wcbBdNE77Xp7D43yhx+aGO8ec8IGrdXOO0Lz IXpEeOe+YldtvkgKqUiPe7BmrwkEpR+rbXgX32SSvJclROhjZEdEiIfuCQdLYoDoVk8e 37Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707777111; x=1708381911; 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=4kAGhHA/F4F4m8PaN/GFfvTrWCN3YPm3thn164WVswE=; b=mcyvQwsDYM0l/NQIdFlf0OmrMPxQi2ib+Oz4Xih2QxbU1k+MIyb7oAozBw2Psy2wo9 AApS72OwX2h69nzOxJpKHvC6+de2Tx7pDXZd7Bpf4DNu5mqPU1BQFbGXQwHF/BoNYxN0 kUEssdZAqv/QlwLLJInxDYD0kastoUvl1HtOZczUia+QqdOE/75Rh3u74iBWKQaQ2Mgc PgzAlHimjvYMyzF9U4fbASNTGZJalye+aY2k1BxRYc1aLbSbsrflU9/JRTgRyvF1r1UR 0Z9aNYHbckb5xSAc3wqNBqdm153BK7kGzKSsXYFxX1aoJe7JIoT7QiC2ic62DKAsms9v wnqw== X-Gm-Message-State: AOJu0YzU/heo4e+h765px8MO7zOLufu8qw39bNk0tQ76LL4qf3gPqfIW xov4IZn35FMx6btkOagtG9xEFJVHfy4lAQaGEG4F1Eewc89MaZpE3xilPdOg X-Received: by 2002:a1f:4b41:0:b0:4b9:e8bd:3b2 with SMTP id y62-20020a1f4b41000000b004b9e8bd03b2mr883533vka.2.1707777110935; Mon, 12 Feb 2024 14:31:50 -0800 (PST) Received: from lvondent-mobl4.. (071-047-239-151.res.spectrum.com. [71.47.239.151]) by smtp.gmail.com with ESMTPSA id z13-20020ac5c18d000000b004c0460eeea3sm840483vkb.43.2024.02.12.14.31.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 14:31:48 -0800 (PST) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ v4 2/3] input.conf: Make UserspaceHID defaults to true Date: Mon, 12 Feb 2024 17:31:45 -0500 Message-ID: <20240212223146.4142264-2-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240212223146.4142264-1-luiz.dentz@gmail.com> References: <20240212223146.4142264-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/device.c | 2 +- profiles/input/input.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/profiles/input/device.c b/profiles/input/device.c index 6c64ff1c1c52..ff7e3482d0eb 100644 --- a/profiles/input/device.c +++ b/profiles/input/device.c @@ -81,7 +81,7 @@ struct input_device { }; static int idle_timeout = 0; -static bool uhid_enabled = false; +static bool uhid_enabled = true; static bool classic_bonded_only = true; void input_set_idle_timeout(int timeout) 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 -- 2.43.0