Fix battery drain sources across suspend, CPUfreq, radios, and daemons

This commit is contained in:
Luxferre committed 2026-11-23 20:00:17 +02:00
1 parent 4b36aa0726
commit 7f3b3c2c0c
24 files changed
+487 -64

No files matched your search

@@ -19,5 +19,12 @@ case "$ACTION" in
pkill -USR1 geminux-statusd 2>/dev/null || true
) >/dev/null 2>&1 &
;;
down|vpn-down)
(
if ! ip route show default 2>/dev/null | grep -q '^default '; then
chronyc offline >/dev/null 2>&1 || true
fi
) >/dev/null 2>&1 &
;;
esac
exit 0
+2 -2
View File
@@ -1,11 +1,11 @@
[General]
Name = Geminux-GeminiPDA
ControllerMode = dual
FastConnectable = true
FastConnectable = false
Experimental = true
KernelExperimental = true
JustWorksRepairing = always
[Policy]
AutoEnable = true
AutoEnable = false
ReconnectAttempts = 7
@@ -1,2 +1,2 @@
pool pool.ntp.org iburst maxpoll 10
pool time.cloudflare.com iburst maxpoll 10
pool pool.ntp.org iburst maxsources 2 minpoll 10 maxpoll 14
pool time.cloudflare.com iburst maxsources 2 minpoll 10 maxpoll 14
+3
View File
@@ -5,4 +5,7 @@ GEMINUX_ENABLE_CONSYS="yes"
GEMINUX_ENABLE_CAMERA="yes"
GEMINUX_ENABLE_CCCI="yes"
GEMINUX_ENABLE_MEDIATEK_DRM="yes"
GEMINUX_ENABLE_CPUFREQ="yes"
GEMINUX_ENABLE_SENSORS="no"
GEMINUX_GATE_UNUSED_CLOCKS="yes"
GEMINUX_ENABLE_A72="no"
+21 -2
View File
@@ -46,7 +46,11 @@ start() {
load_group mediatek_drm clk-mt6797-mm mtk-mmsys mtk-mutex phy-mtk-mipi-dsi-drv panel-novatek-nt36672e mediatek-drm
fi
load_group input_leds leds-aw9120 gemini-lid regulator-haptic stk3310 novatek-nt36xxx
load_group input_leds leds-aw9120 gemini-lid regulator-haptic novatek-nt36xxx
if [ "${GEMINUX_ENABLE_SENSORS:-no}" = "yes" ]; then
load_group sensors stk3310
fi
if [ "${GEMINUX_ENABLE_AUDIO:-yes}" = "yes" ]; then
load_group audio snd-soc-mt6797-afe snd-soc-mt6351 snd-soc-aw8738 mt6797-mt6351 mtk-btcvsd mt6797-btcvsd
@@ -79,6 +83,9 @@ start() {
log_msg " consys wlan0: not present after wait"
fi
load_group consys_bt algif_rng algif_aead uhid uinput rfcomm bnep hidp btmt6797
if command -v rfkill >/dev/null 2>&1; then
rfkill block bluetooth >> "$LOG_FILE" 2>&1 || true
fi
fi
if [ "${GEMINUX_ENABLE_CCCI:-yes}" = "yes" ]; then
@@ -90,7 +97,19 @@ start() {
fi
if [ "${GEMINUX_ENABLE_A72:-no}" = "yes" ]; then
load_group a72 mt6797-a72 clk-mt6797-mcusys cpufreq-dt mtk-cci-devfreq
load_group a72 mt6797-a72
fi
if [ "${GEMINUX_ENABLE_CPUFREQ:-yes}" = "yes" ]; then
load_group cpufreq clk-mt6797-mcusys cpufreq-dt
fi
if [ "${GEMINUX_ENABLE_A72:-no}" = "yes" ]; then
load_group cci_devfreq mtk-cci-devfreq
fi
if [ "${GEMINUX_GATE_UNUSED_CLOCKS:-yes}" = "yes" ]; then
load_group gate_unused mt6797-gate-unused
fi
eend 0
+2 -2
View File
@@ -1,6 +1,5 @@
# Enforce MT6797X safe hardware initialization order
softdep clk_mt6797_mcusys pre: mt6797_a72
softdep cpufreq_dt pre: mt6797_a72 clk_mt6797_mcusys
softdep cpufreq_dt pre: clk_mt6797_mcusys
softdep mtk_cci_devfreq pre: clk_mt6797_mcusys
softdep mediatek_drm pre: clk_mt6797_mm mtk_mmsys mtk_mutex phy_mtk_mipi_dsi_drv panel_novatek_nt36672e
softdep panfrost pre: clk_mt6797_mfg rt5735_regulator
@@ -47,3 +46,4 @@ blacklist clk_mt6797_vdec
blacklist mt6797_vdec_probe
blacklist mt6797_vdec_replay
blacklist bmi160_i2c
blacklist stk3310
@@ -1,7 +1,7 @@
# Larger PipeWire quantum buffers reduce audio DSP/CPU wakeups for battery life.
context.properties = {
default.clock.rate = 48000
default.clock.min-quantum = 128
default.clock.min-quantum = 1024
default.clock.quantum = 2048
default.clock.max-quantum = 4096
}
@@ -32,3 +32,4 @@ export GDK_DPI_SCALE=0.94
export QT_AUTO_SCREEN_SCALE_FACTOR=0
export QT_SCALE_FACTOR=1.85
export QT_FONT_DPI=96
export NO_AT_BRIDGE=1