diff --git a/auto_cpufreq/battery_scripts/battery.py b/auto_cpufreq/battery_scripts/battery.py index 2e85c6a4..cbec71a5 100644 --- a/auto_cpufreq/battery_scripts/battery.py +++ b/auto_cpufreq/battery_scripts/battery.py @@ -5,7 +5,7 @@ from auto_cpufreq.battery_scripts.ideapad_laptop import ideapad_laptop_print_thresholds, ideapad_laptop_setup from auto_cpufreq.battery_scripts.thinkpad import thinkpad_print_thresholds, thinkpad_setup -def lsmod(module): return module in run(['lsmod'], stdout=PIPE, stderr=PIPE, text=True).stdout +def lsmod(module): return module in run(['lsmod'], stdout=PIPE, stderr=PIPE, text=True, shell=True).stdout def battery_get_thresholds(): if lsmod("ideapad_acpi"): ideapad_acpi_print_thresholds()