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:
@@ -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]" }
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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ść" {
|
||||
|
||||
Reference in New Issue
Block a user