This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| function powersave() { | |
| powerprofilesctl set power-saver | |
| pkexec sh -c "echo low-power > /sys/firmware/acpi/platform_profile" | |
| if cat /proc/cmdline | grep pcie_aspm=force &> /dev/null; then | |
| pkexec sh -c "echo powersupersave > /sys/module/pcie_aspm/parameters/policy" | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [GENERAL] | |
| # Enable or disable the script execution | |
| Enabled: True | |
| # SYSFS path for checking if the system is running on AC power | |
| Sysfs_Power_Path: /sys/class/power_supply/ADP0/online | |
| # Auto reload config on changes | |
| Autoreload: True | |
| ## Settings to apply while connected to Battery power | |
| [BATTERY] |