Skip to content
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

[BUG] #274

Open
LaSaN-101 opened this issue Nov 5, 2024 · 0 comments
Open

[BUG] #274

LaSaN-101 opened this issue Nov 5, 2024 · 0 comments

Comments

@LaSaN-101
Copy link

Problem Description
Cannot Set Custom Power option.
Whenever Apply to HW is clicked all the options go to default.

Has the bug occurred following steps described in the README?
No

What steps did you take?
Using the legion_gui.py
The set speed to max fan option works and other lights options are working too.


What commands did you enter?
What was the (full) error you received and what command or action did lead to it?

Set to value: 22
INFO:legion_linux.legion:Feature CPULongtermPowerLimit writing: 22
update_view_from_feature 0
INFO:legion_linux.legion:Feature CPULongtermPowerLimit reading
INFO:legion_linux.legion:Feature CPULongtermPowerLimit reading: 176
Set to value: 22
INFO:legion_linux.legion:Feature CPUShorttermPowerLimit writing: 22
update_view_from_feature 0
INFO:legion_linux.legion:Feature CPUShorttermPowerLimit reading
INFO:legion_linux.legion:Feature CPUShorttermPowerLimit reading: 176
Set to value: 0
INFO:legion_linux.legion:Feature CPUPeakPowerLimit writing: 0
update_view_from_feature 0
INFO:legion_linux.legion:Feature CPUPeakPowerLimit reading
INFO:legion_linux.legion:Feature CPUPeakPowerLimit reading: 0
Set to value: 0
INFO:legion_linux.legion:Feature CPUCrossLoadingPowerLimit writing: 0
update_view_from_feature 0
INFO:legion_linux.legion:Feature CPUCrossLoadingPowerLimit reading
INFO:legion_linux.legion:Feature CPUCrossLoadingPowerLimit reading: 0
Set to value: 0
INFO:legion_linux.legion:Feature CPUAPUSPPTPowerLimit writing: 0
update_view_from_feature 0
INFO:legion_linux.legion:Feature CPUAPUSPPTPowerLimit reading
INFO:legion_linux.legion:Feature CPUAPUSPPTPowerLimit reading: 0
Set to value: 10
INFO:legion_linux.legion:Feature GPUCTGPPowerLimit writing: 10
update_view_from_feature 0
INFO:legion_linux.legion:Feature GPUCTGPPowerLimit reading
INFO:legion_linux.legion:Feature GPUCTGPPowerLimit reading: 10
Set to value: 0
INFO:legion_linux.legion:Feature GPUPPABPowerLimit writing: 0
update_view_from_feature 0
INFO:legion_linux.legion:Feature GPUPPABPowerLimit reading
INFO:legion_linux.legion:Feature GPUPPABPowerLimit reading: 0
Set to value: 0
INFO:legion_linux.legion:Feature GPUTemperatureLimit writing: 0
update_view_from_feature 0
INFO:legion_linux.legion:Feature GPUTemperatureLimit reading
INFO:legion_linux.legion:Feature GPUTemperatureLimit reading: 0
INFO:legion_linux.legion:update_view_from_feature: 0
INFO:legion_linux.legion:Feature StrFileFeature reading
INFO:legion_linux.legion:Feature StrFileFeature reading: quiet balanced balanced-performance performance
INFO:legion_linux.legion:Feature PlatformProfileFeature reading
INFO:legion_linux.legion:Feature PlatformProfileFeature reading: balanced-performance
update_view_from_feature 0
INFO:legion_linux.legion:Feature CPULongtermPowerLimit reading
INFO:legion_linux.legion:Feature CPULongtermPowerLimit reading: 176
update_view_from_feature 0
INFO:legion_linux.legion:Feature CPUShorttermPowerLimit reading
INFO:legion_linux.legion:Feature CPUShorttermPowerLimit reading: 176
update_view_from_feature 0
INFO:legion_linux.legion:Feature CPUPeakPowerLimit reading
INFO:legion_linux.legion:Feature CPUPeakPowerLimit reading: 0
update_view_from_feature 0
INFO:legion_linux.legion:Feature CPUCrossLoadingPowerLimit reading
INFO:legion_linux.legion:Feature CPUCrossLoadingPowerLimit reading: 0
update_view_from_feature 0
INFO:legion_linux.legion:Feature CPUAPUSPPTPowerLimit reading
INFO:legion_linux.legion:Feature CPUAPUSPPTPowerLimit reading: 0
update_view_from_feature 0
INFO:legion_linux.legion:Feature GPUCTGPPowerLimit reading
INFO:legion_linux.legion:Feature GPUCTGPPowerLimit reading: 10
update_view_from_feature 0
INFO:legion_linux.legion:Feature GPUPPABPowerLimit reading
INFO:legion_linux.legion:Feature GPUPPABPowerLimit reading: 0
update_view_from_feature 0
INFO:legion_linux.legion:Feature GPUTemperatureLimit reading
INFO:legion_linux.legion:Feature GPUTemperatureLimit reading: 0



Before applying

image

After applying to HW
image

Model and Debug Info

Distribution: EndeavourOS 6.11.5-arch1-1 (64-bit)
Model name: Legion 5PRO 16ITH6H
CPU model: Intel i7-11800H
GPU model: NVIDIA RTX 3060
Keyboard backlight: single color with off/medium/bright
Light in lid or logo: yes
Light at IO-Ports at back: no

Output of sudo dmidecode -t system. Please remove Serial Number and UUID for privacy:

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

Handle 0x0001, DMI type 1, 27 bytes
System Information
        Manufacturer: LENOVO
        Product Name: 82JD
        Version: Legion 5PRO 16ITH6H
        Serial Number: *****
        UUID: *****
        Wake-up Type: Power Switch
        SKU Number: LENOVO_MT_82JD_BU_idea_FM_Legion 5PRO 16ITH6H
        Family: Legion 5PRO 16ITH6H

Handle 0x0020, DMI type 12, 5 bytes
System Configuration Options
        Option 1: ConfigOptions1
        Option 2: ConfigOptions2
        Option 3: ConfigOptions3

Handle 0x0023, DMI type 15, 29 bytes
System Event Log
        Area Length: 0 bytes
        Header Start Offset: 0x0000
        Header Length: 8192 bytes
        Data Start Offset: 0x2000
        Access Method: General-purpose non-volatile data functions
        Access Address: 0x0000
        Status: Valid, Not Full
        Change Token: 0x12345678
        Header Format: OEM-specific
        Supported Log Type Descriptors: 3
        Descriptor 1: POST memory resize
        Data Format 1: None
        Descriptor 2: POST error
        Data Format 2: POST results bitmap
        Descriptor 3: Log area reset/cleared
        Data Format 3: None

Handle 0x0030, DMI type 32, 11 bytes
System Boot Information
        Status: No errors detected

Output of sudo dmidecode -t bios:

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

Handle 0x0000, DMI type 0, 26 bytes
BIOS Information
        Vendor: LENOVO
        Version: H1CN58WW
        Release Date: 04/11/2024
        Address: 0xE0000
        Runtime Size: 128 kB
        ROM Size: 16 MB
        Characteristics:
                PCI is supported
                BIOS is upgradeable
                BIOS shadowing is allowed
                Boot from CD is supported
                Selectable boot is supported
                EDD is supported
                Japanese floppy for NEC 9800 1.2 MB is supported (int 13h)
                Japanese floppy for Toshiba 1.2 MB is supported (int 13h)
                5.25"/360 kB floppy services are supported (int 13h)
                5.25"/1.2 MB floppy services are supported (int 13h)
                3.5"/720 kB floppy services are supported (int 13h)
                3.5"/2.88 MB floppy services are supported (int 13h)
                8042 keyboard services are supported (int 9h)
                CGA/mono video services are supported (int 10h)
                ACPI is supported
                USB legacy is supported
                BIOS boot specification is supported
                Targeted content distribution is supported
                UEFI is supported
        BIOS Revision: 1.58
        Firmware Revision: 1.58

Handle 0x0021, DMI type 13, 22 bytes
BIOS Language Information
        Language Description Format: Long
        Installable Languages: 8
                en|US|iso8859-1,0
                fr|FR|iso8859-1,0
                zh|TW|unicode,0
                ja|JP|unicode,0
                it|IT|iso8859-1,0
                es|ES|iso8859-1,0
                de|DE|iso8859-1,0
                pt|PT|iso8859-1,0
        Currently Installed Language: en|US|iso8859-1,0


Output of sudo cat /sys/kernel/debug/legion/fancurve:

EC Chip ID: 8227
EC Chip Version: 2a4
legion_laptop features: fancurve powermode platformprofile platformprofilenotify minifancurve fancurve_pmw_speed fancurve_rpm_speed
legion_laptop ec_readonly: 0
ACPI CFG error: 0
ACPI CFG: 2081289494
temperature access method: 1
CPU temperature error: 0
CPU temperature: 62
CPU temperature EC error: 0
CPU temperature EC: 62
CPU temperature ACPI error: 0
CPU temperature ACPI: 63
CPU temperature WMI error: 0
CPU temperature WMI: 0
CPU temperature WMI2 error: 0
CPU temperature WMI2: 63
CPU temperature WMI3 error: 0
CPU temperature WMI3: 0
GPU temperature error: 0
GPU temperature: 56
GPU temperature EC error: 0
GPU temperature EC: 56
GPU temperature ACPI error: 0
GPU temperature ACPI: 56
GPU temperature WMI error: 0
GPU temperature WMI: 0
GPU temperature WMI2 error: 0
GPU temperature WMI2: 56
GPU temperature WMI3 error: 0
GPU temperature WMI3: 0
fan speed access method: 1
1 fanspeed error: 0
1 fanspeed: 0
1 fanspeed EC error: 0
1 fanspeed EC: 0
1 fanspeed ACPI error: 0
1 fanspeed ACPI: 0
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: 0
2 fanspeed error: 0
2 fanspeed: 0
2 fanspeed EC error: 0
2 fanspeed EC: 0
2 fanspeed ACPI error: 0
2 fanspeed ACPI: 0
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: 0
powermode access method: 3
powermode error: 0
powermode: 255
powermode EC error: 0
powermode EC: 16
powermode ACPI error: -5
powermode ACPI: 0
powermode WMI error: 0
powermode WMI: 255
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: 1
EC minifancurve on cool: false
EC lockfancontroller error: 0
EC lockfancontroller: false
fanfullspeed error: 0
fanfullspeed: 0
fanfullspeed EC error: 0
fanfullspeed EC: 0
Max speed for fancurve: 10000
Current fan curve in hardware:
Fan curve current point id: 3
Fan curve points size: 4
u(speed_of_unit)|speed1[u]|speed2[u]|speed1[pwm]|speed2[pwm]|acceleration|deceleration|cpu_min_temp|cpu_max_temp|gpu_min_temp|gpu_max_temp|ic_min_temp|ic_max_temp
3        0       0       0       0       5       5       0       0       0       0       0       0
3        0       0       0       0       5       5       0       0       0       0       0       0
3        0       0       0       0       5       5       0       0       0       0       0       0
3        0       0       0       0       5       5       0       0       0       0       0       0
=====================
Current fan curve in hardware (WMI; might be empty)
Fan curve current point id: 0
Fan curve points size: 0
u(speed_of_unit)|speed1[u]|speed2[u]|speed1[pwm]|speed2[pwm]|acceleration|deceleration|cpu_min_temp|cpu_max_temp|gpu_min_temp|gpu_max_temp|ic_min_temp|ic_max_temp
=====================

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

No branches or pull requests

1 participant