Improve tuned detection (#788)
This commit is contained in:
parent
41081a5bdf
commit
d45a31853c
auto_cpufreq
|
@ -110,7 +110,8 @@ def gnome_power_start_live():
|
||||||
if systemctl_exists: call(["systemctl", "start", "power-profiles-daemon"])
|
if systemctl_exists: call(["systemctl", "start", "power-profiles-daemon"])
|
||||||
|
|
||||||
def tuned_start_live():
|
def tuned_start_live():
|
||||||
if systemctl_exists: call(["systemctl", "start", "tuned"])
|
if systemctl_exists and tuned_stat_exists:
|
||||||
|
call(["systemctl", "start", "tuned"])
|
||||||
|
|
||||||
# enable gnome >= 40 power profiles (uninstall)
|
# enable gnome >= 40 power profiles (uninstall)
|
||||||
def gnome_power_svc_enable():
|
def gnome_power_svc_enable():
|
||||||
|
@ -127,13 +128,13 @@ def gnome_power_svc_enable():
|
||||||
print(GITHUB+"/issues")
|
print(GITHUB+"/issues")
|
||||||
|
|
||||||
def tuned_svc_enable():
|
def tuned_svc_enable():
|
||||||
if systemctl_exists:
|
if systemctl_exists and tuned_stat_exists:
|
||||||
try:
|
try:
|
||||||
print("* Enabling TuneD\n")
|
print("* Enabling TuneD\n")
|
||||||
call(["systemctl", "unmask", "tuned"])
|
call(["systemctl", "unmask", "tuned"])
|
||||||
call(["systemctl", "enable", "--now", "tuned"])
|
call(["systemctl", "enable", "--now", "tuned"])
|
||||||
except:
|
except:
|
||||||
print("\nUnable to enable GNOME power profiles")
|
print("\nUnable to enable TuneD daemon")
|
||||||
print("If this causes any problems, please submit an issue:")
|
print("If this causes any problems, please submit an issue:")
|
||||||
print(GITHUB+"/issues")
|
print(GITHUB+"/issues")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue