Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1801924pxb; Fri, 20 Aug 2021 14:33:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJysjUFSUhIIvp11DhLi5Pa3dQDYizdrnbwy/TuFlsy46BhH6LHUqdrXfu/9ZBODgL7qvT+O X-Received: by 2002:a17:906:16d4:: with SMTP id t20mr24058362ejd.252.1629495212660; Fri, 20 Aug 2021 14:33:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629495212; cv=none; d=google.com; s=arc-20160816; b=vL69MSE69fSGRtHpec3MvEwA6yxLRInFPaxLEYiCYsnEyjoCl9eNYYdr2j8SXBrJ4N BPQjXf17CFon05OkcNSlu+apILMSRWPTHeT+CVlTVHP29XTqQSnDp5D4Va3hTj19dT63 lfxpOubFmUJ+SwnlCKUKp+yJzZwqFTKYAQuSeRfgTv3i3DpV7E8Mrq2FenPbtuboz/1i t9JGbsi0pMP6cuvLZdJ0BmHzP2oO7UUkWdN1O+QvUbf4Xpef+TMzGiiOxxzdKOLYDzZ9 mrs4fEv7HW5cektxY/NsfeFwNtlMD4bdsMmAVeRvZyJuGsPT3sSO60pQ5HBwc2bLdEMO VT4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :cc:to:subject:from:date:dkim-signature; bh=U5X+tI73SRv3hWvY6y5Sg5KMMobaVA4WYF5XYgKBPIc=; b=0J9BKHXlRRZ2QZUaAL8x+ztAHNvWgsFKRj/R2jEfakwgDCCpf1MY/PlNUoh9mCXLDZ oVrJfjRHIiPIN4sLOdXyd6/W2zbRIxuRiL0U4LLE961I7fRU6l4a8l3wzGSmyOJMBPXf rMlv/wwiw1BUvAWG1nPOXB/4QWG84ga5pLA4osa9ThbC49h0whPoPh0YG2hC+u1+dF3D M3FvjfVsEWwg6RnXKxmUW2beJByzGNopHAFhzgYOAX5XYlQ6jG4bfq0cME3O3DQ3TN7t UP2uvEqrE18REpK4fphP2+13r0Ws1vD89X3qDjyChJIjp3oo4os1ZSBl74yyxsCdEArB /ZOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="GLzNIOM/"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t2si3729500edd.73.2021.08.20.14.33.01; Fri, 20 Aug 2021 14:33:32 -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; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="GLzNIOM/"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240681AbhHTVbB (ORCPT + 99 others); Fri, 20 Aug 2021 17:31:01 -0400 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:49999 "EHLO wout4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231761AbhHTVbB (ORCPT ); Fri, 20 Aug 2021 17:31:01 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 4146A3200933; Fri, 20 Aug 2021 17:30:22 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 20 Aug 2021 17:30:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=U5X+tI 73SRv3hWvY6y5Sg5KMMobaVA4WYF5XYgKBPIc=; b=GLzNIOM/ezHv7mTy4UJ+gC LkEexKc/PcfAfbzhfSlVWSoWC5jnI+BTnbpDARKxrSbIqB2oWgLXKjgfUw3Jzhd3 aglevuoWnA6FXDv1xEAE0brHXthW32X825umIzZsxAJqlP9CT+G7YQxeoE9Nl6qI V65JXbupifmlmA9qLteS2GGDCIZKGaqs+3tY/K4dfBOXfToGFZhEV8zLXEPVJLEq zd085eFd+AetqkbCwEJSEza3tg3yussUWxycbRPYRc1kmA0QMxBesGPhrpXithCN 2lCmDEp/hfQAORMEmXKwy2h9XzzjZkjb0i52jjWmnvE17cjSIpA3GbkUToCrrg7Q == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrleelgdduiedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffuvffkjghfofggtgesthdtre dtredtvdenucfhrhhomhepnfhukhgvucflohhnvghsuceolhhukhgvsehljhhonhgvshdr uggvvheqnecuggftrfgrthhtvghrnhepgfeffedufffhgfeuheegffffgeegveeifeeute fhieejffetudfgueevteehtdetnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehmrghilhhfrhhomheplhhukhgvsehljhhonhgvshdruggvvh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 20 Aug 2021 17:30:16 -0400 (EDT) Date: Sat, 21 Aug 2021 09:30:00 +1200 From: Luke Jones Subject: Re: [PATCH v4 1/1] asus-wmi: Add support for custom fan curves To: Bastien Nocera Cc: linux-kernel@vger.kernel.org, hdegoede@redhat.com, platform-driver-x86@vger.kernel.org Message-Id: <1EQ5YQ.6O8MNIPTU6V4@ljones.dev> In-Reply-To: References: <20210820095726.14131-1-luke@ljones.dev> <20210820095726.14131-2-luke@ljones.dev> <321afe1a293be3a623a9be53feea3a008e044b31.camel@hadess.net> X-Mailer: geary/40.0 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 20 2021 at 13:39:02 +0200, Bastien Nocera wrote: > On Fri, 2021-08-20 at 23:00 +1200, Luke Jones wrote: >> >> >> On Fri, Aug 20 2021 at 12:51:08 +0200, Bastien Nocera >> wrote: >> > On Fri, 2021-08-20 at 12:43 +0200, Bastien Nocera wrote: >> > > On Fri, 2021-08-20 at 22:33 +1200, Luke Jones wrote: >> > > > > Am I going to get bug reports from Asus users that will >> > > complain >> > > > > that >> > > > > power-profiles-daemon doesn't work correctly, where I will >> > > have >> > > > > to >> > > > > wearily ask if they're using an Asus Rog laptop? >> > > > >> > > > No. Definitely not. The changes to fan curves per-profile >> need >> > > to >> > > > be >> > > > explicitly enabled and set. So a new user will be unaware >> that >> > > this >> > > > control exists (until they look for it) and their laptop will >> > > > behave >> > > > exactly as default. >> > > >> > > "The user will need to change the fan curves manually so will >> > > definitely remember to mention it in bug reports" is a very >> > > different >> > > thing to "the user can't change the fan curves to be >> nonsensical >> > > and >> > > mean opposite things". >> > > >> > > I can assure you that I will eventually get bug reports from >> > > "power >> > > users" who break their setup and wonder why things don't work >> > > properly, >> > > without ever mentioning the changes they made changes to the >> fan >> > > curves, or anything else they might have changed. >> > >> > A way to taint the settings that power-profiles-daemon could catch >> > would be fine by me. I absolutely don't want to have to support >> > somebody's tweaks until they undo them. >> >> Definitely understood. Do you have something in mind? > > A sysfs attribute with boolean data that shows whether custom fan > curves are used would be enough. The path /sys/devices/platform/asus-nb-wmi/active_fan_curve_profiles should be usable like this? I added this as the method for controlling which fan curves for which profiles are active. If empty, then no custom fan curves are active at all. If it contains any combination of strings "quiet, balanced, performance" then those associated (named) platform_profiles have an active fan curve and you can throw up a general warning, maybe add the contents of that file too? > > I could then check whether that file exists on startup, and throw a > warning if custom curves are used, or become used, so that it shows up > in power-profiles-daemon's logs. >