From: Marcos Alano <marcoshalano@gmail.com>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: linux-input@vger.kernel.org
Subject: Re: [PATCH] Add keycode to Dell G-Mode key
Date: Tue, 29 Apr 2025 07:28:19 -0300 [thread overview]
Message-ID: <a13e82a2-31f0-4466-bf72-1e36a996a7fe@gmail.com> (raw)
In-Reply-To: <vyyy42prkuhvaqxhcuy42v3viwb4t63ptoxu6etopy7kh5shcu@cq3354ua7fqu>
On 28/04/2025 22:44, Dmitry Torokhov wrote:
> Hi Marcos,
>
Hi Dmitry,
>
> Could you please tell me more about the performance mode? What does it
> do and how it differs from normal (?) mode, and also whether it is
> something Dell-specific or whether it is also available on other
> devices.
This is the performance mode related to power consumption. I think
kernel calls this "performance profile".
When you don't need to save power, you can improve performance by
increasing the clock.
For some machines this G-Mode is already enabled when selecting the
performance profile:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/platform/x86/dell/alienware-wmi-wmax.c#n51
>
> What input device emits this key code? atkbd? Something
> platform-specific?
atkbd, I think. It parts of the regular keyboard, scan code 0x68.
>
> My inclination would be to use KEY_VENDOR for this functionality, at
> least for now, as the feature seems very vendor-specific.
Yes, it's very vendor-specific. Dell uses for some Dell and Alienware
machines.
I don't think we can use KEY_VENDOR because that could have another
KEY_VENDOR in the keyboard, I think. The idea is to be a very exclusive
keycode, that when detected, it would indicate that you want to activate
the "performance profile" and don't do anything else.
An alternative would be create a new keycode called KEY_PERF or
KEY_PERF_MODE. That would activate the performance profile, but it would
be vendor-agnostic and if any other vendors, like HP, Lenovo, Acer, etc.
want to implement the same feature, that would be possible.
>
> Thanks.
>
No, thank you. Please let me know what you think. :)
--
Marcos Alano
prev parent reply other threads:[~2025-04-29 10:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-19 11:31 [PATCH] Add keycode to Dell G-Mode key Marcos Alano
2025-04-22 13:49 ` Marcos Alano
2025-04-29 1:44 ` Dmitry Torokhov
2025-04-29 10:28 ` Marcos Alano [this message]
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=a13e82a2-31f0-4466-bf72-1e36a996a7fe@gmail.com \
--to=marcoshalano@gmail.com \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-input@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;
as well as URLs for NNTP newsgroup(s).