Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp734194imm; Fri, 15 Jun 2018 05:32:12 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJyr/TlZb7V9jgTAu+WTgCucqfN27O93Cc1cwrDZaSWXIP0YiouHd4FycWYD/Kbq4lSvNSN X-Received: by 2002:a63:6f42:: with SMTP id k63-v6mr1445354pgc.135.1529065932046; Fri, 15 Jun 2018 05:32:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529065932; cv=none; d=google.com; s=arc-20160816; b=hneUB5newmMqvE8hAtWKQ3xnmVmv3MWXemECXcoljDM3YxZJEzPOpd5jKhKlM6aG+k wjJP3FCRv3nVtrbyHSv3Y+Ana2xAPl2mo0SuZ+K6r2Yqq7RFA92GRx5SxuLZEIOy7C0X bVZv2/8OjaSIeAvohyzgxiNiQxuFQeXyEd+noF3BFAmAUsGJ4n1qiTt5w1sAvVF8nLDk Js9rP7OWBWMbxbXhSvKlGWX+xoj2KnQTaAdpSW8p9pMxQ7jqzrWz2ktRk0dzCOxjd8Lr JVs2OwQcfssCwPKXujz3HFbDeR0K1ZIffRcrRXrAMec7mgQNMfJThk/SGvs4KV4a/sKT 3hnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature:arc-authentication-results; bh=ItZOvyUjLEfpHjDx8AluSd3x7RLik+4jwXIKBNMCUGE=; b=TFn0X6+Vgy1vjWbiJzR00phxinjY5EE6ntdAVs3vY3th62ejos+LjYtHxzTWjyAkow NV2ntp3nT3v3ZoiyyMFgcM6+4vg+LEF7Coy/ftgqWySTm/2cFSws2gKHUsLwWafzeUeW KoPZl1pPEno7pPZuTtJpeMwNO3FDqMQHg/bmOUs1s8pS/TWoKylXJ2DrGogn5KtSJ2EO 9ZGKM7IEnWml+BETPPEozmaZU9l10VfeeH3DFTEv9W5/RaAtsB9tbTZ1lteuf8o/WE4L iCqVFuUcxTKQUk69wA1D5v9Al/9VWps89LY2WOprNLLDtWUSI+9Nnx7Wx0AWqE24nx0u oa5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hmh.eng.br header.s=fm2 header.b=iDfyKSje; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=fHOMc0V7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u190-v6si7771154pfb.325.2018.06.15.05.31.56; Fri, 15 Jun 2018 05:32:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@hmh.eng.br header.s=fm2 header.b=iDfyKSje; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=fHOMc0V7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756151AbeFOMaO (ORCPT + 99 others); Fri, 15 Jun 2018 08:30:14 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:41665 "EHLO out2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756133AbeFOMaL (ORCPT ); Fri, 15 Jun 2018 08:30:11 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id BC84421AC0; Fri, 15 Jun 2018 08:30:10 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Fri, 15 Jun 2018 08:30:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hmh.eng.br; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=ItZOvyUjLEfpHjDx8AluSd3x7RLik +4jwXIKBNMCUGE=; b=iDfyKSjezByML7IQb5GySofjiaJfjVSzmr3+RgAO0xEWZ su4rhCzHsZSZdqvwTMMfAxpwmxbcEMe0F4/OfCxXHr09rXoD6PTUt5ib4unkJ3Kz 3CTES+oukM4R5afmg7Y93YZWlNw8snonraVXd6yLXp1PANWL/cl+vecHGCcqQMLI dRbrqmRBQ1hDBEoWoZWK0vmjusUeYHgFRPIgUMdwrDEs1MOYNHgQXOyQ++88AlFV ppA1+i2yGtQjLhBVBCUz8xUbUWOh1aphKKLi1gZq2UiBdp9A5/0TSJKwgCCiuiIz FLRfedWoqpHJlLGXmjXKG2ytl7mdcy0zDefQqTA0Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=ItZOvy UjLEfpHjDx8AluSd3x7RLik+4jwXIKBNMCUGE=; b=fHOMc0V7SaHM6M7UurWkEJ 2fBbqCK0S0/FvwC/Tie9JjvP6BZEndWupNAYZI71XcXg7v7v8/RLdqDBLlmSyGjm cWzBgtcHvnUHt9zvPJFjzEFKwaoT0KSq6ed9dGEGcUET1SvKHm5qjVIuqoWtZf7+ 9ye0WuSb4VPYHCjB+eB1nICAFwzj/jfWtDTy31zkO0s0IxJeTzT8sskadNx6J1cQ WcMRBJA06L9gP2fFx4uzP2di5AU0vqDpxeqrBzqiVRGdiMC4EykPjGq8yP+XkGpD sIDLSL50wrXuxtY8g9kSV0uKldzdwjEXECYwfvHX5iWEMaFsAolFP11AP2jCcuvw == X-ME-Proxy: X-ME-Sender: Received: from khazad-dum.debian.net (unknown [201.53.245.99]) by mail.messagingengine.com (Postfix) with ESMTPA id 4AC0510273; Fri, 15 Jun 2018 08:30:10 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by localhost.khazad-dum.debian.net (Postfix) with ESMTP id 89D5F3400BEA; Fri, 15 Jun 2018 09:30:08 -0300 (-03) X-Virus-Scanned: Debian amavisd-new at khazad-dum.debian.net Received: from khazad-dum.debian.net ([127.0.0.1]) by localhost (khazad-dum2.khazad-dum.debian.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Mq-NmPNcgPW4; Fri, 15 Jun 2018 09:30:07 -0300 (-03) Received: by khazad-dum.debian.net (Postfix, from userid 1000) id 9D3753400436; Fri, 15 Jun 2018 09:30:07 -0300 (-03) Date: Fri, 15 Jun 2018 09:30:07 -0300 From: Henrique de Moraes Holschuh To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Pavel Machek , Henrique de Moraes Holschuh , ibm-acpi-devel@lists.sourceforge.net, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: ThinkPad T480s & LED_MUTE, LED_MICMUTE Message-ID: <20180615123007.nxsymdvr3nj3it5i@khazad-dum.debian.net> References: <20180608111057.4wxpg7m7nm7suf6n@pali> <20180615112606.GA3986@amd> <20180615113728.h7snxhe2juaqvjyx@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180615113728.h7snxhe2juaqvjyx@pali> X-GPG-Fingerprint1: 4096R/0x0BD9E81139CB4807: C467 A717 507B BAFE D3C1 6092 0BD9 E811 39CB 4807 User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 15 Jun 2018, Pali Roh?r wrote: > Henrique, any idea why there are no exported led classes for mute and > micmute? And how are suppose to be controlled? I have to look into the code, it was contributed by someone who had access to the proper hardware to test it. But the way *I* would like it to work is this: 1. When implemented in *hardware* or *EC*, let the hardware and EC take full control, and never allow the operating system to mess with it. So, it becomes much harder for that LED to "lie". 2. Otherwise implement it in-kernel, so that userspace cannot unmute when the human has activated the "mute" switch, and the LED cannot be controlled by userspace to lie (report mute when it is not mute). It might, or might not be possible to achieve the above. > > With thinkpad_acpi.ko unloaded, hardware drives the LEDs, so nothing > > for us to do... > > So somehow tell thinkpad_acpi.ko to let hardware control those LEDs when > thinkpad_acpi.ko is loaded? I.e. look into the DSDT and XSDT, to find out what it is doing. It will be there: it is very rare for the thinkpad EC itself to implement these behavior changes. -- Henrique Holschuh