Skip to content

Add support for Legion Pro 7 16IAX10H (Q7CN, EC 0x5508)#396

Open
ChaoticSi1ence wants to merge 2 commits intojohnfanv2:mainfrom
ChaoticSi1ence:main
Open

Add support for Legion Pro 7 16IAX10H (Q7CN, EC 0x5508)#396
ChaoticSi1ence wants to merge 2 commits intojohnfanv2:mainfrom
ChaoticSi1ence:main

Conversation

@ChaoticSi1ence
Copy link

Add model_q7cn config for the 2025 Legion Pro 7 16IAX10H (83F5):

  • EC chip: ITE IT5508 (0x5508), verified on hardware
  • BIOS code: Q7CN
  • Fan curve/speed/temperature via WMI3
  • Power mode and fan full speed via WMI
  • RGB keyboard is USB-controlled (ACCESS_METHOD_NO_ACCESS)
  • Based on model_nscn (Legion 7 16IAX9) as closest match

Also fix minor line-length formatting in platform_profile_probe and platform_profile_init to comply with 80-column kernel style.

Add model_q7cn config for the 2025 Legion Pro 7 16IAX10H (83F5):
- EC chip: ITE IT5508 (0x5508), verified on hardware
- BIOS code: Q7CN
- Fan curve/speed/temperature via WMI3
- Power mode and fan full speed via WMI
- RGB keyboard is USB-controlled (ACCESS_METHOD_NO_ACCESS)
- Based on model_nscn (Legion 7 16IAX9) as closest match

Also fix minor line-length formatting in platform_profile_probe and
platform_profile_init to comply with 80-column kernel style.
@ChaoticSi1ence
Copy link
Author

CI Failure Analysis

Pushed commit 13dc531 to fix checkpatch //-style comment warnings in my Q7CN model code (now uses /* */ block comments).

Remaining CI failures are pre-existing on main

My PR only modifies kernel_module/legion-laptop.c (+36 lines). The Run Tests job failures are all in upstream code untouched by this PR:

Failure Root Cause
checkpatch.pl (step 4) Runs against the entire 6500-line file. The ~60 //-spacing warnings, spelling typos (temmperature, hysteris, etc.), and remaining long lines all pre-date this PR.
pylint (step 5) Warnings in legion_gui.py (unused vars w/h, broad-except) and legion_cli.py (unnecessary lambdas, unused **kwargs, broad-except) — all in boot logo code not touched by this PR.
test_python_cli.sh (step 6) ModuleNotFoundError: No module named 'PIL'legion.py imports from PIL import Image but Pillow is not listed in setup.cfg install_requires nor installed by any CI dependency script.
python_install_pip_pkg.sh git describe --tags fails in CI's shallow checkout (no tags fetched).

These would need a separate upstream fix. Happy to open an issue or a follow-up PR for them if that would help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant