Open Drakanio opened 4 months ago
Added to legion-laptop.c (try and error :D)
// test Legion Pro 5 16IRX9
static const struct model_config model_n0cn = {
.registers = &ec_register_offsets_v0, //v0 ok?
.check_embedded_controller_id = false, //???
.embedded_controller_id = 0x5507,
.memoryio_physical_ec_start = 0xC400,
.memoryio_size = 0x300,
.has_minifancurve = false, //???
.has_custom_powermode = true, //OK
.access_method_powermode = ACCESS_METHOD_WMI, //OK
.access_method_keyboard = ACCESS_METHOD_WMI, // ???
.access_method_fanspeed = ACCESS_METHOD_WMI3, //OK
.access_method_temperature = ACCESS_METHOD_WMI3, //OK
.access_method_fancurve = ACCESS_METHOD_WMI3, //???
.access_method_fanfullspeed = ACCESS_METHOD_WMI, //???
.acpi_check_dev = true, //???
.ramio_physical_start = 0xFE0B0400,
.ramio_size = 0x600
};
and
{
// e.g. Legion Pro 5 16IRX9
.ident = "N0CN",
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
DMI_MATCH(DMI_BIOS_VERSION, "N0CN"),
},
.driver_data = (void *)&model_n0cn
},
{}
Output of sudo cat /sys/kernel/debug/legion/fancurve
:
EC Chip Version: 2a4
legion_laptop features: fancurve powermode platformprofile platformprofilenotify minifancurve
legion_laptop ec_readonly: 0
ACPI CFG error: 0
ACPI CFG: 2081289494
temperature access method: 5
CPU temperature error: 0
CPU temperature: 52
CPU temperature EC error: 0
CPU temperature EC: 55
CPU temperature ACPI error: 0
CPU temperature ACPI: 52
CPU temperature WMI error: 0
CPU temperature WMI: 0
CPU temperature WMI2 error: 0
CPU temperature WMI2: 0
CPU temperature WMI3 error: 0
CPU temperature WMI3: 52
GPU temperature error: 0
GPU temperature: 0
GPU temperature EC error: 0
GPU temperature EC: 87
GPU temperature ACPI error: 0
GPU temperature ACPI: 0
GPU temperature WMI error: 0
GPU temperature WMI: 0
GPU temperature WMI2 error: 0
GPU temperature WMI2: 0
GPU temperature WMI3 error: 0
GPU temperature WMI3: 0
fan speed access method: 5
1 fanspeed error: 0
1 fanspeed: 1800
1 fanspeed EC error: 0
1 fanspeed EC: 18039
1 fanspeed ACPI error: 0
1 fanspeed ACPI: 1800
1 fanspeed WMI error: 0
1 fanspeed WMI: 0
1 fanspeed WMI2 error: 0
1 fanspeed WMI2: 0
1 fanspeed WMI3 error: 0
1 fanspeed WMI3: 1800
2 fanspeed error: 0
2 fanspeed: 1700
2 fanspeed EC error: 0
2 fanspeed EC: 14177
2 fanspeed ACPI error: 0
2 fanspeed ACPI: 1700
2 fanspeed WMI error: 0
2 fanspeed WMI: 0
2 fanspeed WMI2 error: 0
2 fanspeed WMI2: 0
2 fanspeed WMI3 error: 0
2 fanspeed WMI3: 1700
powermode access method: 3
powermode error: 0
powermode: 1
powermode EC error: 0
powermode EC: 2
powermode ACPI error: -5
powermode ACPI: 0
powermode WMI error: 0
powermode WMI: 1
has custom powermode: 1
ACPI rapidcharge error: 0
ACPI rapidcharge: 0
WMI backlight 2 state: 0
WMI backlight 3 state: -14
WMI light IO port: 0
WMI light Y logo/lid: 0
EC minifancurve feature enabled: 0
EC minifancurve on cool: false
EC lockfancontroller error: 0
EC lockfancontroller: false
fanfullspeed error: 0
fanfullspeed: 0
fanfullspeed EC error: 0
fanfullspeed EC: 0
EC fan curve current point id: 0
EC fan curve points size: 10
Current fan curve in hardware:
rpm1|rpm2|acceleration|deceleration|cpu_min_temp|cpu_max_temp|gpu_min_temp|gpu_max_temp|ic_min_temp|ic_max_temp
100 0 0 0 0 0 0 0 0 0
200 0 0 0 0 0 0 0 0 0
300 0 0 0 0 0 0 0 0 0
400 0 0 0 0 0 0 0 0 0
500 0 0 0 0 0 0 0 0 0
600 0 0 0 0 0 0 0 0 0
700 0 0 0 0 0 0 0 0 0
800 0 0 0 0 0 0 0 0 0
800 0 0 0 0 0 0 0 0 0
800 0 0 0 0 0 0 0 0 0
=====================
Current fan curve in hardware (WMI; might be empty)
rpm1|rpm2|acceleration|deceleration|cpu_min_temp|cpu_max_temp|gpu_min_temp|gpu_max_temp|ic_min_temp|ic_max_temp
100 0 0 0 0 0 0 0 0 0
200 0 0 0 0 0 0 0 0 0
300 0 0 0 0 0 0 0 0 0
400 0 0 0 0 0 0 0 0 0
500 0 0 0 0 0 0 0 0 0
600 0 0 0 0 0 0 0 0 0
700 0 0 0 0 0 0 0 0 0
800 0 0 0 0 0 0 0 0 0
800 0 0 0 0 0 0 0 0 0
800 0 0 0 0 0 0 0 0 0
=====================
Change Power Options work, Read from HW / Apply to HW doesn´t:
Options: Fn Lock: work Win Key Enable: work Touchpad Enable: work Camera Power: ??? Battery Conversation: work
Distribution: Arch Model name: Legion Pro 5 16IRX9 CPU model: i9-14900HX GPU model: RTX 4070 Keyboard backlight: 4-Zone RGB Light in lid or logo: no Light at IO-Ports at back: no
Output of
sudo dmidecode -t system
. Please remove Serial Number and UUID for privacy:Output of
sudo dmidecode -t bios
:Output of
sudo cat /sys/kernel/debug/legion/fancurve
:fwts_wmi.log
acpi_re.tar.gz