Added methods to create state file: CreateStateFile will create the state file with a default of 'Driver': 'batman', 'Profile': 'balanced'.
SetState will set states in the file. It takes in the driver and profile as arguments.
Profile setter and getter have also been added.
GetThermal uses gth to get thermal zones and average temperature.
UpdatePerformanceDegraded uses temp_avg to update the PerformanceDegraded property.
The Async function(thermal_check) runs every 5 seconds in the main to keep temp_avg monitoring.
If there's a state file on startups, it will set the profile to the existing one.
Added methods to create state file: CreateStateFile will create the state file with a default of 'Driver': 'batman', 'Profile': 'balanced'. SetState will set states in the file. It takes in the driver and profile as arguments. Profile setter and getter have also been added. GetThermal uses gth to get thermal zones and average temperature. UpdatePerformanceDegraded uses temp_avg to update the PerformanceDegraded property. The Async function(thermal_check) runs every 5 seconds in the main to keep temp_avg monitoring. If there's a state file on startups, it will set the profile to the existing one.