johnfanv2 / LenovoLegionLinux

Driver and tools for controlling Lenovo Legion laptops in Linux including fan control and power mode.
https://github.com/johnfanv2/LenovoLegionLinux
GNU General Public License v2.0
1.52k stars 55 forks source link

Legion R9000P's current fan curve are always zeros #183

Open lixit opened 6 months ago

lixit commented 6 months ago

Problem Description

Has the bug occurred following steps described in the README? yes, during test Quick Test: Reading Current Fancurve from Hardware What steps did you take? What commands did you enter? sudo cat /sys/kernel/debug/legion/fancurve What was the (full) error you received and what command or action did lead to it? EC Chip ID is not 8227 current fan curve are always zeros **Model and Debug Info** Distribution: Manjaro Linux 6.6.19-1-MANJARO (including version, e.g. Ubuntu 24.04) Model name: R9000P CPU model: AMD Ryzen 9 7945HX with Radeon Graphics (e.g. AMD Ryzen 7 5800H) GPU model: RTX4060 (e.g NVIDIA RTX 3700) Keyboard backlight: single color with off/medium/bright (RGB, single color with off/on, single color with off/medium/bright) Light in lid or logo: yes (yes/no) Light at IO-Ports at back: yes (yes/no) Output of `sudo dmidecode -t system`. Please remove Serial Number and UUID for privacy: ```text # dmidecode 3.5 Getting SMBIOS data from sysfs. SMBIOS 3.4.0 present. Handle 0x0001, DMI type 1, 27 bytes System Information Manufacturer: LENOVO Product Name: 82WM Version: Legion R9000P ARX8 Serial Number: ***** UUID: ****** Wake-up Type: Power Switch SKU Number: LENOVO_MT_82WM_BU_idea_FM_Legion R9000P ARX8 Family: Legion R9000P ARX8 Handle 0x0017, DMI type 12, 5 bytes System Configuration Options Option 1: String1 for Type12 Equipment Manufacturer Option 2: String2 for Type12 Equipment Manufacturer Option 3: String3 for Type12 Equipment Manufacturer Option 4: String4 for Type12 Equipment Manufacturer Handle 0x0026, DMI type 32, 20 bytes System Boot Information Status: No errors detected ``` Output of `sudo dmidecode -t bios`: ```text # dmidecode 3.5 Getting SMBIOS data from sysfs. SMBIOS 3.4.0 present. Handle 0x0000, DMI type 0, 26 bytes BIOS Information Vendor: LENOVO Version: LPCN42WW Release Date: 06/02/2023 Address: 0xE0000 Runtime Size: 128 kB ROM Size: 32 MB Characteristics: PCI is supported PNP is supported BIOS is upgradeable BIOS shadowing is allowed Boot from CD is supported Selectable boot is supported EDD is supported ACPI is supported USB legacy is supported BIOS boot specification is supported Function key-initiated network boot is supported Targeted content distribution is supported UEFI is supported BIOS Revision: 1.42 Firmware Revision: 1.42 Handle 0x0018, DMI type 13, 22 bytes BIOS Language Information Language Description Format: Long Installable Languages: 4 en|US|iso8859-1 fr|FR|iso8859-1 ja|JP|unicode zh|TW|unicode Currently Installed Language: en|US|iso8859-1 ``` Output of `sudo cat /sys/kernel/debug/legion/fancurve`: ```text sudo cat /sys/kernel/debug/legion/fancurve  ✔ EC Chip ID: 5507 EC Chip Version: 2a4 legion_laptop features: fancurve powermode platformprofile platformprofilenotify minifancurve legion_laptop ec_readonly: 0 ACPI CFG error: 0 ACPI CFG: 2081289482 temperature access method: 5 CPU temperature error: 0 CPU temperature: 49 CPU temperature EC error: 0 CPU temperature EC: 0 CPU temperature ACPI error: 0 CPU temperature ACPI: 49 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: 49 GPU temperature error: 0 GPU temperature: 39 GPU temperature EC error: 0 GPU temperature EC: 0 GPU temperature ACPI error: 0 GPU temperature ACPI: 39 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: 39 fan speed access method: 5 1 fanspeed error: 0 1 fanspeed: 1900 1 fanspeed EC error: 0 1 fanspeed EC: 48 1 fanspeed ACPI error: 0 1 fanspeed ACPI: 1900 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: 1900 2 fanspeed error: 0 2 fanspeed: 1800 2 fanspeed EC error: 0 2 fanspeed EC: 0 2 fanspeed ACPI error: 0 2 fanspeed ACPI: 1800 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: 1800 powermode access method: 3 powermode error: 0 powermode: 1 powermode EC error: 0 powermode EC: 18 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: 0 WMI light IO port: 0 WMI light Y logo/lid: 0 EC minifancurve feature enabled: 0 EC minifancurve on cool: error 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ===================== ```
artemrootman commented 1 month ago

It's the same situation with me, all zeros.

fedora 40, 6.9.12-200.fc40.x86_64

dmidecode -t system

# dmidecode 3.6
Getting SMBIOS data from sysfs.
SMBIOS 3.4.0 present.

Handle 0x0001, DMI type 1, 27 bytes
System Information
        Manufacturer: LENOVO
        Product Name: 82WM
        Version: Legion R9000P ARX8
        Serial Number: XXXXXXX
        UUID: XXXXXXX
        Wake-up Type: Power Switch
        SKU Number: LENOVO_MT_82WM_BU_idea_FM_Legion R9000P ARX8
        Family: Legion R9000P ARX8

Handle 0x0017, DMI type 12, 5 bytes
System Configuration Options
        Option 1: String1 for Type12 Equipment Manufacturer
        Option 2: String2 for Type12 Equipment Manufacturer
        Option 3: String3 for Type12 Equipment Manufacturer
        Option 4: String4 for Type12 Equipment Manufacturer

Handle 0x0026, DMI type 32, 20 bytes
System Boot Information
        Status: No errors detected

dmidecode -t bios

# dmidecode 3.6
Getting SMBIOS data from sysfs.
SMBIOS 3.4.0 present.

Handle 0x0000, DMI type 0, 26 bytes
BIOS Information
    Vendor: LENOVO
    Version: LPCN52WW
    Release Date: 05/21/2024
    Address: 0xE0000
    Runtime Size: 128 kB
    ROM Size: 32 MB
    Characteristics:
        PCI is supported
        PNP is supported
        BIOS is upgradeable
        BIOS shadowing is allowed
        Boot from CD is supported
        Selectable boot is supported
        EDD is supported
        ACPI is supported
        USB legacy is supported
        BIOS boot specification is supported
        Function key-initiated network boot is supported
        Targeted content distribution is supported
        UEFI is supported
    BIOS Revision: 1.52
    Firmware Revision: 1.52

Handle 0x0018, DMI type 13, 22 bytes
BIOS Language Information
    Language Description Format: Long
    Installable Languages: 4
        en|US|iso8859-1
        fr|FR|iso8859-1
        ja|JP|unicode
        zh|TW|unicode
    Currently Installed Language: en|US|iso8859-1

/sys/kernel/debug/legion/fancurve

EC Chip ID: 5507
EC Chip Version: 2a4
legion_laptop features: fancurve powermode platformprofile platformprofilenotify minifancurve
legion_laptop ec_readonly: 0
ACPI CFG error: 0
ACPI CFG: 2081289482
temperature access method: 5
CPU temperature error: 0
CPU temperature: 55
CPU temperature EC error: 0
CPU temperature EC: 0
CPU temperature ACPI error: 0
CPU temperature ACPI: 55
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: 55
GPU temperature error: 0
GPU temperature: 0
GPU temperature EC error: 0
GPU temperature EC: 0
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: 2100
1 fanspeed EC error: 0
1 fanspeed EC: 48
1 fanspeed ACPI error: 0
1 fanspeed ACPI: 2100
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: 2100
2 fanspeed error: 0
2 fanspeed: 2100
2 fanspeed EC error: 0
2 fanspeed EC: 0
2 fanspeed ACPI error: 0
2 fanspeed ACPI: 2100
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: 2100
powermode access method: 3
powermode error: 0
powermode: 2
powermode EC error: 0
powermode EC: 0
powermode ACPI error: -5
powermode ACPI: 0
powermode WMI error: 0
powermode WMI: 2
has custom powermode: 1
ACPI rapidcharge error: 0
ACPI rapidcharge: 0
WMI backlight 2 state: 0
WMI backlight 3 state: 1
WMI light IO port: 0
WMI light Y logo/lid: 0
EC minifancurve feature enabled: 0
EC minifancurve on cool: error
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
0    0   0   0   0   0   0   0   0   0
0    0   0   0   0   0   0   0   0   0
0    0   0   0   0   0   0   0   0   0
0    0   0   0   0   0   0   0   0   0
0    0   0   0   0   0   0   0   0   0
0    0   0   0   0   0   0   0   0   0
0    0   0   0   0   0   0   0   0   0
0    0   0   0   0   0   0   0   0   0
0    0   0   0   0   0   0   0   0   0
0    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
0    0   0   0   0   0   0   0   0   0
0    0   0   0   0   0   0   0   0   0
0    0   0   0   0   0   0   0   0   0
0    0   0   0   0   0   0   0   0   0
0    0   0   0   0   0   0   0   0   0
0    0   0   0   0   0   0   0   0   0
0    0   0   0   0   0   0   0   0   0
0    0   0   0   0   0   0   0   0   0
0    0   0   0   0   0   0   0   0   0
0    0   0   0   0   0   0   0   0   0
=====================