LenovoLegionLinux icon indicating copy to clipboard operation
LenovoLegionLinux copied to clipboard

Upstream Lenovo Legion Linux driver

Open pm4rcin opened this issue 1 year ago • 9 comments

Hi, it seems like Derek J. Clark sent patches to upstream parts of the driver to mainline. It's not everything but it's worth looking at and maybe even contacting him since I don't know if he is aware of this repository existing because he made the patches based on Legion Go console as noted in thread. Here's the thread on LKML. What do you guys think?

pm4rcin avatar Dec 18 '24 08:12 pm4rcin

Personally, if it works on my 2023 legion laptop, I'd be overjoyed. The driver in this repository seems to be outdated in that regard.

ryanabx avatar Dec 24 '24 03:12 ryanabx

Here are the download links pointing to the actual driver: Lenovo Legion WMI Lenovo Legion WMI - DKMS

MartinVonReichenberg avatar Jan 13 '25 22:01 MartinVonReichenberg

Here are the download links pointing to the actual driver: Lenovo Legion WMI Lenovo Legion WMI - DKMS

Those repos are last updated 3 and 4 years ago, were those the right links? Those don't look like "upstream" and the first one even says "THIS DRIVER DOES NOT WORK".

chennin avatar Jan 14 '25 03:01 chennin

The driver will be upstream when it ready, @johnfanv2 did send the driver to kernel maling list for feedback and we need to rewrite a couple of thing before being considered "upstream-able": https://lore.kernel.org/lkml/[email protected]/

MrDuartePT avatar Feb 04 '25 15:02 MrDuartePT

It might also be good to make sure the driver works for newer legion devices, considering all the issues asking for support and this thread

I'm not sure but I think the other drive Derek Clark made covered modern legions as well, so inspiration could be taken from that.

ryanabx avatar Feb 04 '25 22:02 ryanabx

https://github.com/torvalds/linux/commit/02c6e43397c39edd0c172859bf8c851b46be09a8 Recently the linux kernel added support for platform_profile_cycle for Fn+Q for ideapad.

st0nie avatar May 12 '25 01:05 st0nie

torvalds/linux@02c6e43 Recently the linux kernel added support for platform_profile_cycle for Fn+Q for ideapad.

That's cool -- does it sync up with stuff like power-profiles-daemon? If I Fn+Q will it desync my platform profile with the power profile from power-profiles-daemon?

ryanabx avatar May 12 '25 05:05 ryanabx

Did some research -- unsure if it will desync from ppd, but given that it's using the standard platform profile interface, it should sync up nicely for when the new lenovo wmi drivers land upstream (should be really soon!)

ryanabx avatar May 21 '25 01:05 ryanabx

Looks like rapid charge is being mainlined :)

pm4rcin avatar Nov 09 '25 15:11 pm4rcin