Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2850663pxb; Fri, 5 Nov 2021 05:52:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlUfVEwIE/7StQMI4iB1RlX033gqtbxwCXx8TGOBPCbsaj5+X/lOuzBqNdELVNlj+RpeUQ X-Received: by 2002:a17:906:7802:: with SMTP id u2mr69288161ejm.422.1636116732666; Fri, 05 Nov 2021 05:52:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636116732; cv=none; d=google.com; s=arc-20160816; b=xpTSyRpNbaHpFZMFEI+ZKeXCF3dCiGZRH8/zo4Fgh4sFHp3YhzHxxdhZrp7PqgcdhG ZfHsdyV/KelfI1LVEWTCAxPO367IKon3bXDNd02BGgqGXJv4noOcxXAmHypU0gcR+S+z 7F5OVSN00Ieib8hSIU56o3iYBIRLBjiNsVJYMCL+LwZ/ASgO5H/SOuMAgTxPfMZyxbfh VgAuqvJDH2qaIO0IKISVnowGfTQ6ZTiVq3016oyy/AoSL9NmYWpISqOPwtOX5Fx0FAmW OvXi4+d3Nnswll20BgE6dOgOsFZ883cDaRujRgeBifPaoSJGpRUAx/hn8cCWldCG/Iff dziQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=gOt1Lj8KDYFmHVVCYZKeOKezCMdhw6DZ3X4u9Nu9uEw=; b=J1ohD0p17lM1oxLtJwYnbkaTTMggL3vxSaemtH9shFg+Lyb5Nfpvca+YTuW7IuGD1P 5i+iVHar7z2fA4tUXHIwyd/9QfUP3rAx1vp1HoZoa2Q6MDUMaAAxzKmmsNN2dv2LmS6L IuO8ttiknoBayvrcMeWL+71AncYZjWsOeeIseWf7Ol4pGAY28cAJ/bFv9dXQrBm4WQ21 o8TRw8LOj9Dwawkx19PiWU/kqSFsxd1rBMVYLFJCdORz2jcwsgoj/JgkpMFIax4c8Scx 5p68i+zIx8UrNwTkvCW4JqxaNbT7VIL8/75NleHj2W8kLrSk69LjVUBNyRVTEcHC+Fli 2fjw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hc38si12331282ejc.749.2021.11.05.05.51.49; Fri, 05 Nov 2021 05:52:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229740AbhKEMwZ (ORCPT + 99 others); Fri, 5 Nov 2021 08:52:25 -0400 Received: from mga03.intel.com ([134.134.136.65]:8164 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbhKEMwZ (ORCPT ); Fri, 5 Nov 2021 08:52:25 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10158"; a="231838477" X-IronPort-AV: E=Sophos;i="5.87,211,1631602800"; d="scan'208";a="231838477" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Nov 2021 05:49:45 -0700 X-IronPort-AV: E=Sophos;i="5.87,211,1631602800"; d="scan'208";a="450561560" Received: from smile.fi.intel.com ([10.237.72.184]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Nov 2021 05:49:43 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1miyev-003nK4-0Z; Fri, 05 Nov 2021 14:49:29 +0200 Date: Fri, 5 Nov 2021 14:49:28 +0200 From: Andy Shevchenko To: lianzhi chang Cc: linux-kernel@vger.kernel.org, dmitry.torokhov@gmail.com, gregkh@linuxfoundation.org, jirislaby@kernel.org, 282827961@qq.com Subject: Re: [PATCH v10] tty: Fix the keyboard led light display problem Message-ID: References: <20211105122443.23897-1-changlianzhi@uniontech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211105122443.23897-1-changlianzhi@uniontech.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 05, 2021 at 08:24:43PM +0800, lianzhi chang wrote: > Switching from the desktop environment to the tty environment, > the state of the keyboard led lights and the state of the keyboard > lock are inconsistent. This is because the attribute kb->kbdmode > of the tty bound in the desktop environment (Xorg) is set to > VC_OFF, which causes the ledstate and kb->ledflagstate > values of the bound tty to always be 0, which causes the switch > from the desktop When to the tty environment, the LED light > status is inconsistent with the keyboard lock status. > In order to ensure that the keyboard LED lights are displayed > normally during the VT switching process, when the VT is > switched, the current VT LED configuration is forced to be issued. > > Signed-off-by: lianzhi chang > --- > v10: > The led state of the input device is no longer synchronized to > ledstate, and the related code is deleted. The current plan is > changed to: when the VT is switched, the LED state saved by the > current VT is forced to be issued. Shouldn't you add a Suggested-by tag? -- With Best Regards, Andy Shevchenko