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.29k stars 49 forks source link

Lenovo Legion 5 15ACH6H overclocking issue #231

Open MarekChyra opened 1 week ago

MarekChyra commented 1 week ago

Problem Description When I click on GPU overclock button it throws an error and when I click on CPU overclock it does nothing. Only CPU long term power limit and CPU short term power limit works (it changes values in ryzenadj -i). Everything else in power options does nothing exept Power mode/platform profile and Read from HW/Apply to HW. Has the bug occurred following steps described in the README? No. What steps did you take? install: nobara kernel dkms-LenovoLegionLinux.x86_64 0.0.16-0 @copr:copr.fedorainfracloud.org:mrduarte: python-LenovoLegionLinux.x86_64 0.0.16-0 @copr:copr.fedorainfracloud.org:mrduarte: python-darkdetect.noarch 0.8.0-1 @copr:copr.fedorainfracloud.org:mrduarte: What commands did you enter? none What was the (full) error you received and what command or action did lead to it?

2024-06-22 17:39:49,798 - INFO: 
2024-06-22 17:39:49,798 - INFO: Feature LockFanController with pattern /sys/module/legion_laptop/drivers/platform:legion/PNP0C09:00/lockfancontroller and path /sys/module/legion_laptop/drivers/platform:legion/PNP0C09:00/lockfancontroller
2024-06-22 17:39:49,798 - INFO: Feature RapidChargingFeature with pattern /sys/module/legion_laptop/drivers/platform:legion/PNP0C09:00/rapidcharge and path /sys/module/legion_laptop/drivers/platform:legion/PNP0C09:00/rapidcharge
2024-06-22 17:39:49,799 - INFO: Feature BatteryConservation with pattern /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode and path /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode
2024-06-22 17:39:49,799 - INFO: Feature MaximumFanSpeedFeature with pattern /sys/module/legion_laptop/drivers/platform:legion/PNP0C09:00/fan_fullspeed and path /sys/module/legion_laptop/drivers/platform:legion/PNP0C09:00/fan_fullspeed
2024-06-22 17:39:49,799 - INFO: Feature FnLockFeature with pattern /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/fn_lock and path /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/fn_lock
2024-06-22 17:39:49,799 - INFO: Feature WinkeyFeature with pattern /sys/module/legion_laptop/drivers/platform:legion/PNP0C09:00/winkey and path /sys/module/legion_laptop/drivers/platform:legion/PNP0C09:00/winkey
2024-06-22 17:39:49,799 - INFO: Feature TouchpadFeature with pattern ['/sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/touchpad', '/sys/module/legion_laptop/drivers/platform:legion/PNP0C09:00/touchpad'] and path /sys/module/legion_laptop/drivers/platform:legion/PNP0C09:00/touchpad
2024-06-22 17:39:49,799 - INFO: Feature CameraPowerFeature with pattern /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/camera_power and path /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/camera_power
2024-06-22 17:39:49,799 - INFO: Feature OverdriveFeature with pattern /sys/module/legion_laptop/drivers/platform:legion/PNP0C09:00/overdrive and path /sys/module/legion_laptop/drivers/platform:legion/PNP0C09:00/overdrive
2024-06-22 17:39:49,799 - INFO: Feature GsyncFeature with pattern /sys/module/legion_laptop/drivers/platform:legion/PNP0C09:00/gsync and path /sys/module/legion_laptop/drivers/platform:legion/PNP0C09:00/gsync
2024-06-22 17:39:49,799 - INFO: Feature PlatformProfileFeature with pattern /sys/firmware/acpi/platform_profile and path /sys/firmware/acpi/platform_profile
2024-06-22 17:39:49,799 - INFO: Feature StrFileFeature with pattern /sys/firmware/acpi/platform_profile_choices and path /sys/firmware/acpi/platform_profile_choices
2024-06-22 17:39:49,799 - INFO: Feature IsOnPowerSupplyFeature with pattern /sys/class/power_supply/ADP0/online and path /sys/class/power_supply/ADP0/online
2024-06-22 17:39:49,799 - INFO: Feature AlwaysOnUSBChargingFeature with pattern /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/usb_charging and path /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/usb_charging
2024-06-22 17:39:49,799 - INFO: Feature BatteryCurrentCapacityPercentage with pattern /sys/class/power_supply/BAT0/capacity and path /sys/class/power_supply/BAT0/capacity
2024-06-22 17:39:49,799 - INFO: Feature CPUOverclock with pattern /sys/module/legion_laptop/drivers/platform:legion/PNP0C09:00/cpu_oc and path /sys/module/legion_laptop/drivers/platform:legion/PNP0C09:00/cpu_oc
2024-06-22 17:39:49,799 - INFO: Feature CPULongtermPowerLimit with pattern /sys/module/legion_laptop/drivers/platform:legion/PNP0C09:00/cpu_longterm_powerlimit and path /sys/module/legion_laptop/drivers/platform:legion/PNP0C09:00/cpu_longterm_powerlimit
2024-06-22 17:39:49,799 - INFO: Feature CPUShorttermPowerLimit with pattern /sys/module/legion_laptop/drivers/platform:legion/PNP0C09:00/cpu_shortterm_powerlimit and path /sys/module/legion_laptop/drivers/platform:legion/PNP0C09:00/cpu_shortterm_powerlimit
2024-06-22 17:39:49,799 - INFO: Feature CPUPeakPowerLimit with pattern /sys/module/legion_laptop/drivers/platform:legion/PNP0C09:00/cpu_peak_powerlimit and path /sys/module/legion_laptop/drivers/platform:legion/PNP0C09:00/cpu_peak_powerlimit
2024-06-22 17:39:49,800 - INFO: Feature CPUDefaultPowerLimit with pattern /sys/module/legion_laptop/drivers/platform:legion/PNP0C09:00/cpu_default_powerlimit and path /sys/module/legion_laptop/drivers/platform:legion/PNP0C09:00/cpu_default_powerlimit
2024-06-22 17:39:49,800 - INFO: Feature CPUCrossLoadingPowerLimit with pattern /sys/module/legion_laptop/drivers/platform:legion/PNP0C09:00/cpu_cross_loading_powerlimit and path /sys/module/legion_laptop/drivers/platform:legion/PNP0C09:00/cpu_cross_loading_powerlimit
2024-06-22 17:39:49,800 - INFO: Feature CPUAPUSPPTPowerLimit with pattern /sys/module/legion_laptop/drivers/platform:legion/PNP0C09:00/cpu_apu_sppt_powerlimit and path /sys/module/legion_laptop/drivers/platform:legion/PNP0C09:00/cpu_apu_sppt_powerlimit
2024-06-22 17:39:49,800 - INFO: Feature GPUOverclock with pattern /sys/module/legion_laptop/drivers/platform:legion/PNP0C09:00/gpu_oc and path /sys/module/legion_laptop/drivers/platform:legion/PNP0C09:00/gpu_oc
2024-06-22 17:39:49,800 - INFO: Feature GPUBoostClock with pattern /sys/module/legion_laptop/drivers/platform:legion/PNP0C09:00/gpu_boost_clock and path /sys/module/legion_laptop/drivers/platform:legion/PNP0C09:00/gpu_boost_clock
2024-06-22 17:39:49,800 - INFO: Feature GPUCTGPPowerLimit with pattern /sys/module/legion_laptop/drivers/platform:legion/PNP0C09:00/gpu_ctgp_powerlimit and path /sys/module/legion_laptop/drivers/platform:legion/PNP0C09:00/gpu_ctgp_powerlimit
2024-06-22 17:39:49,800 - INFO: Feature GPUPPABPowerLimit with pattern /sys/module/legion_laptop/drivers/platform:legion/PNP0C09:00/gpu_ppab_powerlimit and path /sys/module/legion_laptop/drivers/platform:legion/PNP0C09:00/gpu_ppab_powerlimit
2024-06-22 17:39:49,800 - INFO: Feature GPUTemperatureLimit with pattern /sys/module/legion_laptop/drivers/platform:legion/PNP0C09:00/gpu_temperature_limit and path /sys/module/legion_laptop/drivers/platform:legion/PNP0C09:00/gpu_temperature_limit
2024-06-22 17:39:49,800 - INFO: Feature YLogoLight with pattern /sys/class/leds/platform::ylogo/brightness and path /sys/class/leds/platform::ylogo/brightness
2024-06-22 17:39:49,800 - INFO: Feature IOPortLight with pattern /sys/class/leds/platform::ioport/brightness and path None
2024-06-22 17:39:49,800 - WARNING: Feature IOPortLight does not exist. exits: 0
2024-06-22 17:39:49,800 - INFO: CommandFeature PowerProfilesDeamonService: []
2024-06-22 17:39:49,800 - WARNING: Feature PowerProfilesDeamonService does not exist. exits: 0
2024-06-22 17:39:49,800 - INFO: CommandFeature PowerProfilesDeamonService execute "systemctl status power-profiles-daemon"
2024-06-22 17:39:49,808 - INFO: CommandFeature PowerProfilesDeamonService reading with code 4: 
2024-06-22 17:39:49,808 - INFO: CommandFeature LenovoLegionLaptopSupportService: []
2024-06-22 17:39:49,808 - WARNING: Feature LenovoLegionLaptopSupportService does not exist. exits: 0
2024-06-22 17:39:49,808 - INFO: CommandFeature LenovoLegionLaptopSupportService execute "systemctl status legiond.service legiond-onresume.service legiond-cpuset.service legiond-cpuset.timer"
2024-06-22 17:39:49,852 - INFO: CommandFeature LenovoLegionLaptopSupportService reading with code 3: ○ legiond.service - legiond daemon
     Loaded: loaded (/usr/lib/systemd/system/legiond.service; disabled; preset: disabled)
    Drop-In: /usr/lib/systemd/system/service.d
             └─10-timeout-abort.conf
     Active: inactive (dead)

○ legiond-onresume.service - Start legiond-ctl fanset on resume
     Loaded: loaded (/usr/lib/systemd/system/legiond-onresume.service; disabled; preset: disabled)
    Drop-In: /usr/lib/systemd/system/service.d
             └─10-timeout-abort.conf
     Active: inactive (dead)

○ legiond-cpuset.service - legiond daemon
     Loaded: loaded (/usr/lib/systemd/system/legiond-cpuset.service; disabled; preset: disabled)
    Drop-In: /usr/lib/systemd/system/service.d
             └─10-timeout-abort.conf
     Active: inactive (dead)

○ legiond-cpuset.timer - legiond daemon
     Loaded: bad-setting (Reason: Unit legiond-cpuset.timer has a bad unit file setting.)
     Active: inactive (dead)
    Trigger: n/a
   Triggers: ● legiond-cpuset.service

jún 22 17:38:48 fedora systemd[1]: /usr/lib/systemd/system/legiond-cpuset.timer:6: Unknown section 'Service'. Ignoring.
jún 22 17:38:48 fedora systemd[1]: legiond-cpuset.timer: Timer unit lacks value setting. Refusing.
jún 22 17:38:55 fedora systemd[1]: /usr/lib/systemd/system/legiond-cpuset.timer:6: Unknown section 'Service'. Ignoring.
jún 22 17:38:55 fedora systemd[1]: legiond-cpuset.timer: Timer unit lacks value setting. Refusing.
jún 22 17:38:56 fedora systemd[1]: /usr/lib/systemd/system/legiond-cpuset.timer:6: Unknown section 'Service'. Ignoring.
jún 22 17:38:56 fedora systemd[1]: legiond-cpuset.timer: Timer unit lacks value setting. Refusing.
jún 22 17:39:10 fedora systemd[1]: /usr/lib/systemd/system/legiond-cpuset.timer:6: Unknown section 'Service'. Ignoring.
jún 22 17:39:10 fedora systemd[1]: legiond-cpuset.timer: Timer unit lacks value setting. Refusing.
jún 22 17:39:49 fedora systemd[1]: /usr/lib/systemd/system/legiond-cpuset.timer:6: Unknown section 'Service'. Ignoring.
jún 22 17:39:49 fedora systemd[1]: legiond-cpuset.timer: Timer unit lacks value setting. Refusing.

2024-06-22 17:39:49,852 - INFO: Feature LegionGUIAutostart with pattern /home/marek/.config and path /home/marek/.config
2024-06-22 17:39:49,853 - WARNING: Feature LegionGUIAutostart does not exist. exits: 0
2024-06-22 17:39:49,853 - INFO: Feature NVIDIAGPUIsRunning with pattern /sys/bus/pci/devices/0000:01:00.0/power/runtime_status and path /sys/bus/pci/devices/0000:01:00.0/power/runtime_status
2024-06-22 17:39:49,853 - INFO: Setting feature automatic_close to 0
2024-06-22 17:39:49,853 - INFO: Notifying subscribers of change
2024-06-22 17:39:49,853 - INFO: Setting feature close_to_tray to 0
2024-06-22 17:39:49,853 - INFO: Notifying subscribers of change
2024-06-22 17:39:49,853 - INFO: Setting feature open_closed_to_tray to 0
2024-06-22 17:39:49,853 - INFO: Notifying subscribers of change
2024-06-22 17:39:49,853 - INFO: Setting feature enable_gui_monitoring to 0
2024-06-22 17:39:49,853 - INFO: Notifying subscribers of change
2024-06-22 17:39:49,853 - INFO: Setting feature icon_color_mode to always-color
2024-06-22 17:39:49,853 - INFO: Notifying subscribers of change
2024-06-22 17:39:49,853 - INFO: Settings file exists and will be loaded.
2024-06-22 17:39:49,855 - INFO: Loaded settings:
 setting_entries:
  close_to_tray: false
  open_closed_to_tray: false
  enable_gui_monitoring: false
  icon_color_mode: always-color

2024-06-22 17:39:49,855 - ERROR: Try seting close_to_tray from preset to False
2024-06-22 17:39:49,855 - INFO: Setting feature close_to_tray to 0
2024-06-22 17:39:49,855 - INFO: Notifying subscribers of change
2024-06-22 17:39:49,855 - ERROR: Try seting open_closed_to_tray from preset to False
2024-06-22 17:39:49,855 - INFO: Setting feature open_closed_to_tray to 0
2024-06-22 17:39:49,855 - INFO: Notifying subscribers of change
2024-06-22 17:39:49,855 - ERROR: Try seting enable_gui_monitoring from preset to False
2024-06-22 17:39:49,855 - INFO: Setting feature enable_gui_monitoring to 0
2024-06-22 17:39:49,855 - INFO: Notifying subscribers of change
2024-06-22 17:39:49,855 - ERROR: Try seting icon_color_mode from preset to always-color
2024-06-22 17:39:49,855 - INFO: Setting feature icon_color_mode to always-color
2024-06-22 17:39:49,855 - INFO: Notifying subscribers of change
2024-06-22 17:39:49,855 - INFO: Using icon_color color
2024-06-22 17:39:49,855 - INFO: Using icon legion_logo
2024-06-22 17:39:49,908 - INFO: update_view_from_feature: 0
2024-06-22 17:39:49,910 - INFO: Feature LockFanController reading
2024-06-22 17:39:49,910 - INFO: Feature LockFanController reading: 0
2024-06-22 17:39:49,910 - INFO: Feature MaximumFanSpeedFeature reading
2024-06-22 17:39:49,910 - INFO: Feature MaximumFanSpeedFeature reading: 0
2024-06-22 17:39:49,910 - INFO: Feature FnLockFeature reading
2024-06-22 17:39:49,910 - INFO: Feature FnLockFeature reading: 0
2024-06-22 17:39:49,910 - INFO: Feature WinkeyFeature reading
2024-06-22 17:39:49,911 - INFO: Feature WinkeyFeature reading: 1
2024-06-22 17:39:49,911 - INFO: Feature TouchpadFeature reading
2024-06-22 17:39:49,911 - INFO: Feature TouchpadFeature reading: 0
2024-06-22 17:39:49,911 - INFO: Feature CameraPowerFeature reading
2024-06-22 17:39:49,912 - INFO: Feature CameraPowerFeature reading: 0
2024-06-22 17:39:49,912 - INFO: Feature BatteryConservation reading
2024-06-22 17:39:49,912 - INFO: Feature BatteryConservation reading: 1
2024-06-22 17:39:49,912 - INFO: Feature RapidChargingFeature reading
2024-06-22 17:39:49,913 - INFO: Feature RapidChargingFeature reading: 0
2024-06-22 17:39:49,913 - INFO: Feature AlwaysOnUSBChargingFeature reading
2024-06-22 17:39:49,913 - INFO: Feature AlwaysOnUSBChargingFeature reading: 1
2024-06-22 17:39:49,913 - INFO: Feature CPUOverclock reading
2024-06-22 17:39:49,913 - ERROR: Feature CPUOverclock reading error [Errno 22] Invalid argument
2024-06-22 17:39:49,916 - ERROR: 
2024-06-22 17:39:49,917 - INFO: Feature GPUOverclock reading
2024-06-22 17:39:49,917 - ERROR: Feature GPUOverclock reading error [Errno 22] Invalid argument
2024-06-22 17:39:49,920 - ERROR: 
2024-06-22 17:39:49,921 - INFO: Feature OverdriveFeature reading
2024-06-22 17:39:49,921 - INFO: Feature OverdriveFeature reading: 1
2024-06-22 17:39:49,921 - INFO: Feature GsyncFeature reading
2024-06-22 17:39:49,921 - INFO: Feature GsyncFeature reading: 1
2024-06-22 17:39:49,921 - INFO: update_view_from_feature: 0
2024-06-22 17:39:49,921 - INFO: Feature StrFileFeature reading
2024-06-22 17:39:49,922 - INFO: Feature StrFileFeature reading: quiet balanced balanced-performance performance
2024-06-22 17:39:49,922 - INFO: Feature PlatformProfileFeature reading
2024-06-22 17:39:49,922 - INFO: Feature PlatformProfileFeature reading: balanced-performance
2024-06-22 17:39:49,922 - INFO: Feature CPULongtermPowerLimit reading
2024-06-22 17:39:49,923 - INFO: Feature CPULongtermPowerLimit reading: 200
2024-06-22 17:39:49,923 - INFO: Feature CPUShorttermPowerLimit reading
2024-06-22 17:39:49,923 - INFO: Feature CPUShorttermPowerLimit reading: 200
2024-06-22 17:39:49,923 - INFO: Feature CPUPeakPowerLimit reading
2024-06-22 17:39:49,923 - INFO: Feature CPUPeakPowerLimit reading: 0
2024-06-22 17:39:49,923 - INFO: Feature CPUCrossLoadingPowerLimit reading
2024-06-22 17:39:49,924 - INFO: Feature CPUCrossLoadingPowerLimit reading: 0
2024-06-22 17:39:49,924 - INFO: Feature CPUAPUSPPTPowerLimit reading
2024-06-22 17:39:49,924 - INFO: Feature CPUAPUSPPTPowerLimit reading: 0
2024-06-22 17:39:49,924 - INFO: Feature GPUCTGPPowerLimit reading
2024-06-22 17:39:49,924 - INFO: Feature GPUCTGPPowerLimit reading: 200
2024-06-22 17:39:49,924 - INFO: Feature GPUPPABPowerLimit reading
2024-06-22 17:39:49,925 - INFO: Feature GPUPPABPowerLimit reading: 200
2024-06-22 17:39:49,925 - INFO: Feature GPUTemperatureLimit reading
2024-06-22 17:39:49,925 - INFO: Feature GPUTemperatureLimit reading: 0
2024-06-22 17:39:49,925 - INFO: CommandFeature LenovoLegionLaptopSupportService execute "systemctl is-active legiond.service legiond-onresume.service legiond-cpuset.service legiond-cpuset.timer"
2024-06-22 17:39:49,940 - INFO: CommandFeature LenovoLegionLaptopSupportService reading with code 3: inactive
inactive
inactive
inactive

2024-06-22 17:39:49,940 - INFO: update_view_from_feature: 0
2024-06-22 17:39:49,943 - INFO: Feature BatteryConservation reading
2024-06-22 17:39:49,943 - INFO: Feature BatteryConservation reading: 1
2024-06-22 17:39:49,944 - INFO: Feature RapidChargingFeature reading
2024-06-22 17:39:49,944 - INFO: Feature RapidChargingFeature reading: 0
2024-06-22 17:39:49,944 - INFO: Feature FnLockFeature reading
2024-06-22 17:39:49,944 - INFO: Feature FnLockFeature reading: 0
2024-06-22 17:39:49,944 - INFO: Feature TouchpadFeature reading
2024-06-22 17:39:49,945 - INFO: Feature TouchpadFeature reading: 0
2024-06-22 17:39:49,945 - INFO: Feature AlwaysOnUSBChargingFeature reading
2024-06-22 17:39:49,945 - INFO: Feature AlwaysOnUSBChargingFeature reading: 1
2024-06-22 17:39:49,945 - INFO: update_view_from_feature in EnumFeatureTrayController 
2024-06-22 17:39:49,945 - INFO: Feature StrFileFeature reading
2024-06-22 17:39:49,945 - INFO: Feature StrFileFeature reading: quiet balanced balanced-performance performance
2024-06-22 17:39:49,945 - INFO: Feature PlatformProfileFeature reading
2024-06-22 17:39:49,946 - INFO: Feature PlatformProfileFeature reading: balanced-performance
2024-06-22 17:39:49,946 - INFO: update_view_from_feature in EnumFeatureTrayController 
2024-06-22 17:39:49,946 - INFO: Feature StrFileFeature reading
2024-06-22 17:39:49,946 - INFO: Feature StrFileFeature reading: quiet balanced balanced-performance performance
2024-06-22 17:39:49,946 - INFO: Feature PlatformProfileFeature reading
2024-06-22 17:39:49,946 - INFO: Feature PlatformProfileFeature reading: balanced-performance
2024-06-22 17:40:07,052 - INFO: Click on UI GPU Overclock element for GPUOverclock
2024-06-22 17:40:07,052 - INFO: FileFeature GPUOverclock execute "['pkexec', 'legion_cli', 'set-feature', 'GPUOverclock', '1']"
2024-06-22 17:40:09,647 - INFO: FileFeature GPUOverclock executed with code 1: ; INFO:legion_linux.legion:Feature GPUOverclock writing: 1
ERROR:legion_linux.legion:Feature GPUOverclock writing error [Errno 5] Input/output error
ERROR:legion_linux.legion:[  115.182978] ACPI Error: Aborting method \_SB.GZFD.WMB4 due to previous error (AE_AML_BUFFER_LIMIT) (20230628/psparse-529)
[  115.326864] ACPI Error: Aborting method \_SB.GZFD.WMB4 due to previous error (AE_AML_BUFFER_LIMIT) (20230628/psparse-529)
[  115.326878] legion_laptop: WMI evaluation error for: da7547f1-824d-405f-be79-d9903e29ced7:1
[  154.246242] legion_laptop: get_simple_wmi_attributewith raw value: 0
[  154.246743] legion_laptop: get_simple_wmi_attributewith raw value: 0
[  154.247000] legion_laptop: get_simple_wmi_attributewith raw value: 1
[  154.249393] legion_laptop: Unexpected ACPI result for 14afd777-106f-4c9b-b334-d388dc7809be:1: expected type 3 but got 1; expected length 16 but got 0;
[  154.253624] ACPI Error: Aborting method \_SB.GZFD.WMB4 due to previous error (AE_AML_BUFFER_LIMIT) (20230628/psparse-529)
[  154.253634] legion_laptop: WMI evaluation error for: da7547f1-824d-405f-be79-d9903e29ced7:1
[  154.257159] legion_laptop: get_simple_wmi_attributewith raw value: 1
[  154.257495] legion_laptop: get_simple_wmi_attributewith raw value: 0
[  154.259465] legion_laptop: get_simple_wmi_attributewith raw value: 0
[  154.259758] legion_laptop: get_simple_wmi_attributewith raw value: 0
[  154.260040] legion_laptop: get_simple_wmi_attributewith raw value: 0
[  154.261004] legion_laptop: get_simple_wmi_attributewith raw value: 0
[  154.280826] legion_laptop: get_simple_wmi_attributewith raw value: 1
[  173.939010] ACPI BIOS Error (bug): AE_AML_BUFFER_LIMIT, Field [OCVA] at bit offset/length 8/8 exceeds size of target Buffer (8 bits) (20230628/dsopcode-198)
[  173.939018] ACPI Error: Aborting method \_SB.GZFD.WMB4 due to previous error (AE_AML_BUFFER_LIMIT) (20230628/psparse-529)
[  173.939087] ACPI BIOS Error (bug): AE_AML_BUFFER_LIMIT, Field [OCVA] at bit offset/length 8/8 exceeds size of target Buffer (8 bits) (20230628/dsopcode-198)
[  173.939091] ACPI Error: Aborting method \_SB.GZFD.WMB4 due to previous error (AE_AML_BUFFER_LIMIT) (20230628/psparse-529)

OSError: [Errno 5] Input/output error

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/legion_cli", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/lib/python3.12/site-packages/legion_linux/legion_cli.py", line 471, in main
    args.func(legion, **vars(args))
  File "/usr/lib/python3.12/site-packages/legion_linux/legion_cli.py", line 359, in set_feature
    if legion.set_feature_to_str_value(name, values):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/legion_linux/legion.py", line 1450, in set_feature_to_str_value
    return Feature.set_feature_to_str_value(name, values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/legion_linux/legion.py", line 181, in set_feature_to_str_value
    feat.set_str_value(values[0])
  File "/usr/lib/python3.12/site-packages/legion_linux/legion.py", line 272, in set_str_value
    return self._write_file(self.filename, value)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/legion_linux/legion.py", line 287, in _write_file
    raise err
  File "/usr/lib/python3.12/site-packages/legion_linux/legion.py", line 282, in _write_file
    with open(file_path, "w", encoding=DEFAULT_ENCODING) as filepointer:
OSError: [Errno 5] Input/output error

2024-06-22 17:40:09,750 - INFO: Feature GPUOverclock reading
2024-06-22 17:40:09,750 - ERROR: Feature GPUOverclock reading error [Errno 22] Invalid argument
2024-06-22 17:40:09,753 - ERROR: 
2024-06-22 17:40:14,465 - INFO: Click on UI CPU Overclock element for CPUOverclock
2024-06-22 17:40:14,466 - INFO: FileFeature CPUOverclock execute "['pkexec', 'legion_cli', 'set-feature', 'CPUOverclock', '1']"
2024-06-22 17:40:14,626 - INFO: FileFeature CPUOverclock executed with code 0: ; INFO:legion_linux.legion:Feature CPUOverclock writing: 1

2024-06-22 17:40:14,727 - INFO: Feature CPUOverclock reading
2024-06-22 17:40:14,728 - ERROR: Feature CPUOverclock reading error [Errno 22] Invalid argument
2024-06-22 17:40:14,731 - ERROR: 

Model and Debug Info

Distribution: Fedora Linux 39 Model name: Legion 5 15ACH6H (82JU) CPU model: AMD Ryzen 7 5800H GPU model: NVIDIA GeForce RTX 3070 Mobile / Max-Q Keyboard backlight: 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:

# 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: 82JU
        Version: Legion 5 15ACH6H
        Serial Number: 
        UUID: 
        Wake-up Type: Power Switch
        SKU Number: LENOVO_MT_82JU_BU_idea_FM_Legion 5 15ACH6H
        Family: Legion 5 15ACH6H

Handle 0x0020, 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 0x0030, DMI type 32, 20 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: GKCN64WW
        Release Date: 12/07/2023
        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.64
        Firmware Revision: 1.64

Handle 0x0021, 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:

EC Chip ID: 8227
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: 1
CPU temperature error: 0
CPU temperature: 58
CPU temperature EC error: 0
CPU temperature EC: 58
CPU temperature ACPI error: 0
CPU temperature ACPI: 58
CPU temperature WMI error: 0
CPU temperature WMI: 0
CPU temperature WMI2 error: 0
CPU temperature WMI2: 58
CPU temperature WMI3 error: 0
CPU temperature WMI3: 0
GPU temperature error: 0
GPU temperature: 46
GPU temperature EC error: 0
GPU temperature EC: 46
GPU temperature ACPI error: 0
GPU temperature ACPI: 46
GPU temperature WMI error: 0
GPU temperature WMI: 0
GPU temperature WMI2 error: 0
GPU temperature WMI2: 46
GPU temperature WMI3 error: 0
GPU temperature WMI3: 0
fan speed access method: 1
1 fanspeed error: 0
1 fanspeed: 2272
1 fanspeed EC error: 0
1 fanspeed EC: 2272
1 fanspeed ACPI error: 0
1 fanspeed ACPI: 2200
1 fanspeed WMI error: 0
1 fanspeed WMI: 0
1 fanspeed WMI2 error: 0
1 fanspeed WMI2: 2200
1 fanspeed WMI3 error: 0
1 fanspeed WMI3: 0
2 fanspeed error: 0
2 fanspeed: 2151
2 fanspeed EC error: 0
2 fanspeed EC: 2151
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: 2100
2 fanspeed WMI3 error: 0
2 fanspeed WMI3: 0
powermode access method: 3
powermode error: 0
powermode: 255
powermode EC error: 0
powermode EC: 1
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: true
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: 3
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       2       2       0       48      0       60      0       42
1700     1900    2       2       45      54      56      60      39      44
1900     2000    2       2       51      58      56      60      42      50
2200     2100    2       2       55      62      56      60      46      127
2300     2400    2       2       59      71      56      60      127     127
2600     2700    2       2       68      76      56      65      127     127
2900     3000    2       2       72      81      61      69      127     127
3500     3500    2       2       78      90      66      77      127     127
3800     3800    2       2       87      95      72      79      127     127
4500     4500    2       2       91      127     78      127     127     127
=====================
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
=====================