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? */
|
/* czy jesteśmy dłużej poza domem? */
|
||||||
Switch sHolidayVacancy "Jesteśmy poza domem"
|
Switch sHolidayVacancy "Jesteśmy poza domem"
|
||||||
|
|
||||||
/* przelaczanie karty graficznej w tryb performance jest tu przy okazji */
|
/* target przełączają bcache (writeback/writethrough), amdgpu (auto/low), cpu governor (schedutil, powersave) */
|
||||||
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]" }
|
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_expected.postUpdate(Mpd_quodlibet_StartStop.state)
|
||||||
Mpd_quodlibet_StartStop.sendCommand(OFF)
|
Mpd_quodlibet_StartStop.sendCommand(OFF)
|
||||||
|
|
||||||
sBCacheWriteback.sendCommand(ON)
|
sHighPerformance.sendCommand(ON)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
@@ -54,6 +54,6 @@ then
|
|||||||
sSONOFF09b.sendCommand(ON)
|
sSONOFF09b.sendCommand(ON)
|
||||||
}
|
}
|
||||||
|
|
||||||
sBCacheWriteback.sendCommand(OFF)
|
sHighPerformance.sendCommand(OFF)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ sitemap pbrk label="Szczegóły techniczne"
|
|||||||
Text item=dtSunset_Time
|
Text item=dtSunset_Time
|
||||||
Text item=wClouds
|
Text item=wClouds
|
||||||
Switch item=sHolidayVacancy
|
Switch item=sHolidayVacancy
|
||||||
Switch item=sBCacheWriteback
|
Switch item=sHighPerformance
|
||||||
}
|
}
|
||||||
|
|
||||||
Group label="Łączność" {
|
Group label="Łączność" {
|
||||||
|
|||||||
Reference in New Issue
Block a user