diff --git a/auto_cpufreq/core.py b/auto_cpufreq/core.py index f82d5271..c693018b 100644 --- a/auto_cpufreq/core.py +++ b/auto_cpufreq/core.py @@ -186,6 +186,14 @@ def charging(): else: ac_state = True + try: + heat = get_config() + if(heat['heating_problem']['charging_heating_problem'] == 1): + ac_state = False + except: + print("No config file being used") + + # if both ac-adapter and battery states are unknown default to not charging return ac_state