Skip to content

Commit

Permalink
Merge branch '1.9.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
AdnanHodzic committed Aug 9, 2022
2 parents 29d5d87 + 559350f commit 7b81b4a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
6 changes: 5 additions & 1 deletion auto_cpufreq/power_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def gnome_power_detect():
print("git clone https://github.com/AdnanHodzic/auto-cpufreq.git")
print("cd auto-cpufreq/auto_cpufreq")
print("python3 power_helper.py --gnome_power_disable")
print("\nReference: https://github.com/AdnanHodzic/auto-cpufreq#configuring-auto-cpufreq")


# automatically disable gnome power profile service in case it's running during install
Expand All @@ -109,6 +110,7 @@ def gnome_power_detect_snap():
print("git clone https://github.com/AdnanHodzic/auto-cpufreq.git")
print("cd auto-cpufreq/auto_cpufreq")
print("python3 power_helper.py --gnome_power_disable")
print("\nReference: https://github.com/AdnanHodzic/auto-cpufreq#configuring-auto-cpufreq")


# stops gnome >= 40 power profiles (live)
Expand Down Expand Up @@ -229,6 +231,8 @@ def gnome_power_rm_reminder_snap():
print("git clone https://github.com/AdnanHodzic/auto-cpufreq.git")
print("cd auto-cpufreq/auto_cpufreq")
print("python3 power_helper.py --gnome_power_enable")
print("\nReference: https://github.com/AdnanHodzic/auto-cpufreq#configuring-auto-cpufreq")



def valid_options():
Expand Down Expand Up @@ -337,7 +341,7 @@ def gnome_power_svc_disable_ext(ctx, power_selection):


@click.command()
@click.option("--gnome_power_disable", help="Disable GNOME Power profiles service (default: balanced)", type=click.Choice(['balanced', 'performance'], case_sensitive=False))
@click.option("--gnome_power_disable", help="Disable GNOME Power profiles service (default: balanced), reference:\n https://bit.ly/3bjVZW1", type=click.Choice(['balanced', 'performance'], case_sensitive=False))
# ToDo:
# * update readme/docs
@click.option("--power_selection", hidden=True)
Expand Down
7 changes: 4 additions & 3 deletions bin/auto-cpufreq
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ from auto_cpufreq.power_helper import *
default=True,
help="Install/remove daemon for (permanent) automatic CPU optimizations",
)
@click.option("--install_performance", is_flag=True, hidden=True)
@click.option("--install_performance", is_flag=True, help="Install daemon in \"performance\" mode, reference:\n https://bit.ly/3bjVZW1")
@click.option("--stats", is_flag=True, help="View live stats of CPU optimizations made by daemon")
@click.option(
"--config",
Expand Down Expand Up @@ -176,8 +176,9 @@ def main(config, daemon, debug, install, install_performance, live, log, monitor
elif install_performance:
if os.getenv("PKG_MARKER") == "SNAP":
root_check()
print("This option is only available on non Snap installs\n"
"Please refer to auto-cpufreq power_helper.py script for more info\n")
print("\nThis option is only available on non Snap installs.\n\n"
"Please refer to auto-cpufreq power_helper.py script for more info\n"
"Reference: https://github.com/AdnanHodzic/auto-cpufreq#configuring-auto-cpufreq\n")
else:
root_check()
running_daemon()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def read(name):
return f.read()

# Used for the tar.gz/snap releases
VERSION = "1.9.4"
VERSION = "1.9.5"

setup(
name="auto-cpufreq",
Expand Down
2 changes: 1 addition & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: auto-cpufreq
base: core20
base: core22
summary: Automatic CPU speed & power optimizer for Linux
description: |
Automatic CPU speed & power optimizer for Linux based on active
Expand Down

0 comments on commit 7b81b4a

Please sign in to comment.