@@ -122,14 +122,14 @@ def set_override(override):
122
122
# Current work-around for Pop!_OS where symlink causes permission issues
123
123
print ("[!] Warning: Cannot get distro name" )
124
124
if os .path .exists ("/etc/pop-os/os-release" ):
125
- # Check if using a Snap
125
+ # Check if using a Snap
126
126
if os .getenv ("PKG_MARKER" ) == "SNAP" :
127
- print ("[!] Snap install on PopOS detected, you must manually run the following"
128
- " commands in another terminal:\n " )
127
+ print ("[!] Snap install on PopOS detected, you must manually run the following"
128
+ " commands in another terminal:\n " )
129
129
print ("[!] Backup the /etc/os-release file:" )
130
- print ("sudo mv /etc/os-release /etc/os-release-backup\n " )
130
+ print ("sudo mv /etc/os-release /etc/os-release-backup\n " )
131
131
print ("[!] Create hardlink to /etc/os-release:" )
132
- print ("sudo ln /etc/pop-os/os-release /etc/os-release\n " )
132
+ print ("sudo ln /etc/pop-os/os-release /etc/os-release\n " )
133
133
print ("[!] Aborting. Restart auto-cpufreq when you created the hardlink" )
134
134
sys .exit (1 )
135
135
else :
@@ -182,7 +182,7 @@ def check_for_update():
182
182
print ("Error fetching recent release!" )
183
183
if message is not None and message .startswith ("API rate limit exceeded" ):
184
184
print ("GitHub Rate limit exceeded. Please try again later within 1 hour or use different network/VPN." )
185
- else :
185
+ else :
186
186
print ("Unexpected status code:" , response .status_code )
187
187
return False
188
188
except (requests .exceptions .ConnectionError , requests .exceptions .Timeout ,
@@ -215,8 +215,8 @@ def check_for_update():
215
215
# Handle the case where "tag_name" key doesn't exist
216
216
print ("Malformed Released data!\n Reinstall manually or Open an issue on GitHub for help!" )
217
217
218
-
219
-
218
+
219
+
220
220
def new_update (custom_dir ):
221
221
os .chdir (custom_dir )
222
222
print (f"Cloning the latest release to { custom_dir } " )
@@ -247,7 +247,7 @@ def get_formatted_version():
247
247
literal_version = get_literal_version ("auto-cpufreq" )
248
248
splitted_version = literal_version .split ("+" )
249
249
formatted_version = splitted_version [0 ]
250
-
250
+
251
251
if len (splitted_version ) > 1 :
252
252
formatted_version += " (git: " + splitted_version [1 ] + ")"
253
253
@@ -571,7 +571,7 @@ def countdown(s):
571
571
os .environ ["TERM" ] = "xterm"
572
572
573
573
print ("\t \t \" auto-cpufreq\" is about to refresh " , end = "" )
574
-
574
+
575
575
# empty log file if size is larger then 10mb
576
576
if auto_cpufreq_stats_file is not None :
577
577
log_size = os .path .getsize (auto_cpufreq_stats_path )
@@ -942,8 +942,8 @@ def set_performance():
942
942
run (f"cpufreqctl.auto-cpufreq --epp --set={ epp } " , shell = True )
943
943
print (f'Setting to use: "{ epp } " EPP' )
944
944
else :
945
- run ("cpufreqctl.auto-cpufreq --epp --set=balance_performance " , shell = True )
946
- print ('Setting to use: "balance_performance " EPP' )
945
+ run ("cpufreqctl.auto-cpufreq --epp --set=performance " , shell = True )
946
+ print ('Setting to use: "performance " EPP' )
947
947
948
948
# set frequencies
949
949
set_frequencies ()
@@ -1382,4 +1382,3 @@ def not_running_daemon_check():
1382
1382
elif os .getenv ("PKG_MARKER" ) == "SNAP" and dcheck == "disabled" :
1383
1383
daemon_not_running_msg ()
1384
1384
exit (1 )
1385
-
0 commit comments