From: Hans de Goede <hdegoede@redhat.com>
To: 艾超 <aichao@kylinos.cn>,
"ilpo.jarvinen" <ilpo.jarvinen@linux.intel.com>,
markgross <markgross@kernel.org>
Cc: linux-kernel <linux-kernel@vger.kernel.org>,
platform-driver-x86 <platform-driver-x86@vger.kernel.org>
Subject: Re: [PATCH v3] platform/x86: inspur-wmi: Add platform profile support
Date: Thu, 19 Oct 2023 14:31:18 +0200 [thread overview]
Message-ID: <972d21dc-de29-fbac-bf04-efecfdbe565e@redhat.com> (raw)
In-Reply-To: <t4mw22in81-t4pfxpcqvm@nsmail7.0.0--kylin--1>
Hi,
On 10/19/23 04:20, 艾超 wrote:
> Hi.
>
>
>> Thanks this is much better.
>
>> Only remaining question I have is can the platform_profile
>> setting be changed by a hotkey (directly by the hotkey,
>> so upon pressing the hotkey the EC changes the platform_profile
>> itself).
>
>> If the answer to this is yes, is there then any event which
>> the driver could listen to and then use to notify userspace
>> about the change by calling platform_profile_notify() upon
>> receiving the event ?
>
>> Or maybe the event will be received by the discussed
>> hotkeys driver, so that can call platform_profile_notify()
>> instead. Note platform_profile_notify() does not require a
>> platform_profile_handler pointer, so it could indeed be
>> called from a separate driver if the events are received
>> elsewhere.
>
>> Regards,
>
>> Hans
>
> There is no any event need to listen by this driver. If user
>
> pressing the hotkey, desktop applications receive
>
> hotkeys(Fn+Q) event, then APP get the currently power mode
> and change it. The desktop applications modify brightness
>
> based on power mode. EC can't changes the power mode
>
> itself.
OK, that is good to know. Thank you for answering
my questions about this.
I believe that once the few small remaining review remarks
are addressed this should be ready for merging then.
Regards,
Hans
next parent reply other threads:[~2023-10-19 12:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <t4mw22in81-t4pfxpcqvm@nsmail7.0.0--kylin--1>
2023-10-19 12:31 ` Hans de Goede [this message]
2023-10-18 8:00 Ai Chao
2023-10-18 12:23 ` Armin Wolf
2023-10-18 13:38 ` Thomas Weißschuh
2023-10-18 14:36 ` Armin Wolf
2023-10-18 13:48 ` Hans de Goede
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=972d21dc-de29-fbac-bf04-efecfdbe565e@redhat.com \
--to=hdegoede@redhat.com \
--cc=aichao@kylinos.cn \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=markgross@kernel.org \
--cc=platform-driver-x86@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®