-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Yoga Slim 7 Pro 14ARH7 82UU #101
Comments
It seems like the kernel module was not loaded. I updated the code and added your model for testing. Please get the newest code. What is the output after you have run these commands # Go to folder kernel_module in the directory LenovoLegionLinux
cd LenovoLegionLinux/kernel_module
# Compile
make
# Load but disable platform_profile since there might be conflict between ideapad driver and legion driver for now (will be fixed in future)
# This is the only difference compared to the instructions in the README
# This output is particularly interesting
sudo make forcereloadmodule_disableplatformprofile
sudo cat /sys/kernel/debug/legion/fancurve
sudo cat /sys/kernel/debug/legion/ecmemory | hexdump -C
sudo cat /sys/kernel/debug/legion/ecmemoryram | hexdump -C Please also get the output of the following Disassembling ACPI tables# Install requiered tools
sudo apt install acpica-tools # Create folder for all the new files
mkdir acpi_re
cd acpi_re
# List ACPI tables and copy them
ls /sys/firmware/acpi/tables/
sudo cp --no-preserve=mode /sys/firmware/acpi/tables/*SDT* .
# Disassemble tables to output DSDT.dsl
iasl -e SSDT* -d DSDT |
Thank you! Edit: reading and setting fan curve works. Reading and setting power options does not.
sudo make forcereloadmodule_disableplatformprofile
sudo cat /sys/kernel/debug/legion/fancurve
sudo cat /sys/kernel/debug/legion/ecmemory | hexdump -C
sudo cat /sys/kernel/debug/legion/ecmemoryram | hexdump -C
ls /sys/firmware/acpi/tables/
iasl -e SSDT* -d DSDT
Note, I did |
Ok, there is still some stuff to fix later. Let try the most important one. Please use the python GUI to adapt the fan speed as described Open the GUI, click "Read from HW", then change the fan speeds, click "Apply from HW", and click "Read from HW". Check if your values are accepted and if you can hear a difference in fan speed. Try if small changes are accepted and larger changes are accepted and make a difference in reality. Sorry, that I forget to mention that I also need the the generated from the step that you generated in the folder |
Thanks again for the quick reply and your support! Here's the files zipped. I hope it contains all you need, otherwise please let me know: https://drive.google.com/file/d/1E7n8rh2-FDllEfpVnmnuU7vm-51y5ulf/view Yes, reading, writing and re-reading the values works. I can hear the effect and smaller and incremental changes seem to work as well. |
Ok, next we can try testing the power mode. I updated the code. Please get the newest code, compile again, and load the module again. Then change the power mode with Fn + Q and output You can also try to change the power mode, e.g. with the Python GUI. In you distro you might also have a power mode option to set the mode. In Ubuntu/Gnome it looks like this https://fostips.com/changing-power-mode-easy-ubuntu-21-04/. Maybe there is a similar setting in EndeavourOS. Your upload for reference: acpi.zip |
I'd be very thankful for support for the 2022 Yoga Slim 7 Pro.
Currently
sudo make forcereloadmodule
errors withlegion PNP0C09:00: Creating platform profile failed: -17
.Model and Debug Info
Distribution: EndeavourOS 6.4.11-arch2-1 (64-bit)
Model name: Yoga Slim 7 Pro 14ARH7 82UU
CPU model: Ryzen 9 6900HS
GPU model: integrated
Keyboard backlight: single color with off/auto/medium/bright
Light in lid or logo: no
Light at IO-Ports at back: no
Output of
sudo dmidecode -t system
:Output of
sudo dmidecode -t bios
:Bios here: https://download.lenovo.com/consumer/mobiles/khcn29ww.exe
Thank you very much!
The text was updated successfully, but these errors were encountered: