Skip to content

Commit

Permalink
config update
Browse files Browse the repository at this point in the history
  • Loading branch information
sulincix committed Jul 11, 2024
1 parent 84365e1 commit 26c0dec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
8 changes: 5 additions & 3 deletions data/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@
[power]
#scsi=true
#governor=true
#usb-suspend=true
#usb=true
#block=true
#pci-suspend=true
#i2c-suspend=true
#pci=true
#i2c=true
#audio=true
#turbo=true
#gpu=true
#bluetooth=true
#nvme=true
#network=true
#cpufreq=true
#freq-ratio=0.5
Expand Down
12 changes: 0 additions & 12 deletions src/service/backends/power.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,6 @@ def cpu_disable_event(cpus, min):
for dir in listdir(net_path):
writefile("{}/{}/power/control".format(net_path,dir),"auto")

if get("scsi",True,"power"):
# scsi
net_path="/sys/class/scsi_host"
for dir in listdir(net_path):
writefile("{}/{}/link_power_management_policy".format(net_path,dir),"med_power_with_dipm")


@asynchronous
def _performance():
if get("governor",True,"power"):
Expand Down Expand Up @@ -312,8 +305,3 @@ def _performance():
for dir in listdir(net_path):
writefile("{}/{}/power/control".format(net_path,dir),"on")

if get("scsi",True,"power"):
# scsi
net_path="/sys/class/scsi_host"
for dir in listdir(net_path):
writefile("{}/{}/link_power_management_policy".format(net_path,dir),"max_performance")

0 comments on commit 26c0dec

Please sign in to comment.