From: John Martens <johnfanv2@gmail.com>
To: derekjohn.clark@gmail.com
Cc: corbet@lwn.net, hdegoede@redhat.com,
ilpo.jarvinen@linux.intel.com, linux-doc@vger.kernel.org,
linux-kernel@vger.kernel.org, luke@ljones.dev,
mpearson-lenovo@squebb.ca, nijs1@lenovo.com,
pgriffais@valvesoftware.com, platform-driver-x86@vger.kernel.org,
shaohz1@lenovo.com, superm1@kernel.org, zhangzx36@lenovo.com
Subject: Re: [PATCH 0/1] platform/x86: Add Lenovo Legion WMI Drivers
Date: Sun, 22 Dec 2024 09:42:16 +0100 [thread overview]
Message-ID: <20241222084216.1420666-1-johnfanv2@gmail.com> (raw)
In-Reply-To: <20241217230645.15027-1-derekjohn.clark@gmail.com>
> Adds support for the Lenovo Legion series of laptop hardware to use WMI
> interfaces that control various power settings.
Note that there already is a driver for Lenovo Legion laptops that I
wanted to merge upstream.
https://github.com/johnfanv2/LenovoLegionLinux
Compared to the proposed patch, it has the following
advantages:
1. already popular and tested by thousands of users
- many stars and discussions on github
- patched into multiple kernels of gaming-related distros
- packaged as dkms module for almost all relevant Linux
distributions including Debian by other developers
2. supports many different Lenovo Legion models starting from 2020/2021
3. supports a lot of more functions, including fan control, which is the
most requested feature
4. supports the many changes between different in the WMI/ACPI method
5. actually shares some credtis with persons who revere engineered it :)
6. support by GUI tool to configure it all
On the other hand, my driver has the following disadvantages:
1. The version of master on github is the most recent one and contains
a lot of debug output that has to be removed (often indicated by TODO)
2. It is all in one large c file instead of organizing it neatly into
multiple files.
3. It was modeled after the ideapad driver instead of the newer ASUS
driver.
A few notes regarding the many changes of the WMI methods that I tried
to deal with in my driver: note that in almost every new model a new
WMI method is used to control the same functionality (e.g. fan control
or powermode). Additionally, often the constants or the unit changes
: e.g. percent or rpm for fan speed.
> The driver has been tested by me on the Lenovo Legion Go.
The driver on github has been tested by thousands of users.
I suggest that we maybe combine the two drivers before merging them,
since Derek seems to have more kernel patching knowledge and I seem
to have more worked on all the Legion laptops.
next prev parent reply other threads:[~2024-12-22 8:42 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-17 23:06 [PATCH 0/1] platform/x86: Add Lenovo Legion WMI Drivers Derek J. Clark
2024-12-17 23:06 ` [PATCH 1/1] platform/x86: Add lenovo-legion-wmi drivers Derek J. Clark
2024-12-18 2:39 ` Mario Limonciello
2024-12-18 3:36 ` Derek J. Clark
2024-12-22 22:55 ` Armin Wolf
2024-12-23 15:47 ` Derek John Clark
2024-12-23 16:50 ` Armin Wolf
2024-12-25 5:25 ` Cody T.-H. Chiu
2024-12-25 8:34 ` Derek J. Clark
2024-12-25 21:11 ` Armin Wolf
2024-12-26 7:17 ` Derek J. Clark
2024-12-27 17:21 ` Mark Pearson
2024-12-30 7:51 ` Cody T.-H. Chiu
2024-12-27 18:48 ` [PATCH 0/1] platform/x86: Add Lenovo Legion WMI Drivers Antheas Kapenekakis
2024-12-27 23:22 ` Derek John Clark
2024-12-28 1:09 ` Antheas Kapenekakis
2024-12-28 3:30 ` Derek John Clark
2024-12-28 11:50 ` Antheas Kapenekakis
2024-12-29 20:45 ` Armin Wolf
2024-12-29 22:41 ` Antheas Kapenekakis
2024-12-30 13:41 ` Antheas Kapenekakis
2024-12-29 20:28 ` Armin Wolf
2024-12-22 8:42 ` John Martens [this message]
[not found] ` <CAFqHKT==PiLb_VuFPHJzgfrprukGGig+iUzcih+3TJ1VYt94Dw@mail.gmail.com>
2024-12-22 20:34 ` Derek John Clark
2024-12-22 23:05 ` Armin Wolf
2024-12-26 0:18 ` John Martens
2024-12-26 23:19 ` Armin Wolf
2024-12-27 17:06 ` Mark Pearson
2024-12-27 23:18 ` Derek John Clark
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=20241222084216.1420666-1-johnfanv2@gmail.com \
--to=johnfanv2@gmail.com \
--cc=corbet@lwn.net \
--cc=derekjohn.clark@gmail.com \
--cc=hdegoede@redhat.com \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luke@ljones.dev \
--cc=mpearson-lenovo@squebb.ca \
--cc=nijs1@lenovo.com \
--cc=pgriffais@valvesoftware.com \
--cc=platform-driver-x86@vger.kernel.org \
--cc=shaohz1@lenovo.com \
--cc=superm1@kernel.org \
--cc=zhangzx36@lenovo.com \
/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