feat(high perf): uogólnienie high performance mode na poziomie systemd

Zużycie prądu przez obecny komputer:
- idle - ok 100W
- Kodi odtwarza, high performance - okolice 140W
This commit is contained in:
2022-09-10 15:21:40 +02:00
parent 622f58fe22
commit 9390d7803e
3 changed files with 5 additions and 5 deletions

View File

@@ -2,6 +2,6 @@
/* czy jesteśmy dłużej poza domem? */
Switch sHolidayVacancy "Jesteśmy poza domem"
/* przelaczanie karty graficznej w tryb performance jest tu przy okazji */
Switch sBCacheWriteback "Bcache w trybie writeback" { exec=">[ON:systemctl start toggle-bcache@writeback toggle-amdgpu@auto] >[OFF:systemctl start toggle-bcache@writearound toggle-amdgpu@low]" }
/* target przełączają bcache (writeback/writethrough), amdgpu (auto/low), cpu governor (schedutil, powersave) */
Switch sHighPerformance "Komputer w trybie wydajnym" { exec=">[ON:systemctl start power-balance.target] >[OFF:systemctl start power-conserve.target]" }

View File

@@ -13,7 +13,7 @@ then
Mpd_quodlibet_StartStop_expected.postUpdate(Mpd_quodlibet_StartStop.state)
Mpd_quodlibet_StartStop.sendCommand(OFF)
sBCacheWriteback.sendCommand(ON)
sHighPerformance.sendCommand(ON)
end
@@ -54,6 +54,6 @@ then
sSONOFF09b.sendCommand(ON)
}
sBCacheWriteback.sendCommand(OFF)
sHighPerformance.sendCommand(OFF)
end

View File

@@ -4,7 +4,7 @@ sitemap pbrk label="Szczegóły techniczne"
Text item=dtSunset_Time
Text item=wClouds
Switch item=sHolidayVacancy
Switch item=sBCacheWriteback
Switch item=sHighPerformance
}
Group label="Łączność" {