[Galaxy S 4 i9506 Android Development] beerot:
Hi,

nice ROM, much snappier than the last official stock (5.0.1).

However, compared to stock, the battery melts away. I turned off everything (Wifi, Bluetooth, NFC, weather service) and switched the mobile network to GSM only. The phone is clean, e.g. does not have any apps installed.

Attached is a BetterBatteryStats dump for approx. 2 hours of idling. The only suspicious thing I see is this one:

Additionally, TeMeFI says the CPU was never in the lowest state (300 MHz).

What kernel power management options are available with the ROM? What other info can I provide to help debug this?

===================
General Information
===================
BetterBatteryStats version: 2.3-248
Creation Date: 2020-07-25 02:31:00
Statistic Type: Screen Off to Screen On
Since 1 h 58 m 20 s
Note:
VERSION.RELEASE: 10
BRAND: samsung
DEVICE: ks01ltexx
MANUFACTURER: samsung
MODEL: GT-I9506
OS.VERSION: 3.4.113-Khalvat-MBA-g5dd7c1ca7
BOOTLOADER: I9506XXUDRB1
HARDWARE: qcom
FINGERPRINT: samsung/ks01ltexx/ks01lte:5.0.1/LRX22C/I9506XXUDRB1:user/release-keys
ID: QQ3A.200705.002
TAGS: release-keys
USER: khalvat
PRODUCT: ks01lte
RADIO: I9506XXUDRA1
Root perms: true
SELinux Policy:
BATTERY_STATS permission granted: true
XPosed BATTERY_STATS module enabled: false
============
Battery Info
============
Level lost [%]: Bat.: -12%(67% to 55%) [6.1%/h]
Voltage lost [mV]: (3712-3617) [48.2%/h]
===========
Other Usage
===========
Deep Sleep (): 1 h 57 m 41 s 99.4%
Awake (Screen Off) (): 34 s 0.5%
Screen On (): 5 s 0.1%
Doze Interactive Time (): 5 s 0.1%
Doze Idle Mode Time (): 1 h 55 m 9 s 97.3%
No Data Connection (): 1 h 58 m 20 s 100.0%
Moderate Signal (): 1 h 58 m 18 s 100.0%
Good Signal (): 2 s 0.0%
Screen dark (): 0.0%
Screen medium (): 5 s 0.1%
======================================================
Wakelocks (requires root / system app on Android 4.4+)
======================================================
deviceidle_maint (crDroid System): 10 s Count:8 0.1%
AnyMotionDetector (crDroid System): 7 s Count:16 0.1%
AudioMix (1041): 2 s Count:0 0.0%
================
Kernel Wakelocks
================
PowerManagerService.WakeLocks (*api*): 22 s Cnt:(c/wc/ec)30/0/0 0.3%
[timerfd] (*api*): 14 s Cnt:(c/wc/ec)124/0/0 0.2%
PowerManagerService.Display (*api*): 5 s Cnt:(c/wc/ec)1/0/0 0.1%
PowerManager.SuspendLockout (*api*): 5 s Cnt:(c/wc/ec)1/0/0 0.1%
resume_wakelock (*api*): 3 s Cnt:(c/wc/ec)34/0/0 0.0%
smdcntl0 (*api*): 2 s Cnt:(c/wc/ec)41/0/0 0.0%
radio-interface (*api*): 1 s Cnt:(c/wc/ec)7/0/0 0.0%
event18 (*api*): Cnt:(c/wc/ec)68/0/0 0.0%
PowerManagerService.Broadcasts (*api*): Cnt:(c/wc/ec)1/0/0 0.0%
event0 (*api*): Cnt:(c/wc/ec)68/0/0 0.0%
event3 (*api*): Cnt:(c/wc/ec)156/0/0 0.0%
ipc00000002_rmt_storage (*api*): Cnt:(c/wc/ec)13/0/0 0.0%
event19 (*api*): Cnt:(c/wc/ec)68/0/0 0.0%
sec-battery-monitor (*api*): Cnt:(c/wc/ec)34/0/0 0.0%
event18-800 (*api*): Cnt:(c/wc/ec)34/0/0 0.0%
KeyEvents (*api*): Cnt:(c/wc/ec)79/0/0 0.0%
event0-800 (*api*): Cnt:(c/wc/ec)34/0/0 0.0%
event3-800 (*api*): Cnt:(c/wc/ec)78/0/0 0.0%
event19-800 (*api*): Cnt:(c/wc/ec)34/0/0 0.0%
qcril (*api*): Cnt:(c/wc/ec)19/0/0 0.0%
rmt_storage_-1482706384 (*api*): Cnt:(c/wc/ec)1/0/0 0.0%
rmt_storage_-1481653712 (*api*): Cnt:(c/wc/ec)1/0/0 0.0%
NETLINK (*api*): Cnt:(c/wc/ec)24/0/0 0.0%
ApmOutput (*api*): Cnt:(c/wc/ec)6/0/0 0.0%
qpnp-iadc-19 (*api*): Cnt:(c/wc/ec)1/0/0 0.0%
qmuxd_port_wl_0 (*api*): Cnt:(c/wc/ec)44/0/0 0.0%
eventpoll (*api*): Cnt:(c/wc/ec)272/0/0 0.0%
battery (*api*): Cnt:(c/wc/ec)12/0/0 0.0%
ipc0000000f_time_daemon (*api*): Cnt:(c/wc/ec)2/0/0 0.0%
=========
Processes
=========
com.asksven.betterbatterystats_xdaedition (com.asksven.betterbatterystats_xdaedition.BBS): Uid: 10201 Sys: 10 s Us: 41 s Starts: 0
system (crDroid System): Uid: 1000 Sys: 11 s Us: 18 s Starts: 0
surfaceflinger (crDroid System): Uid: 1000 Sys: 7 s Us: 10 s Starts: 0
com.android.systemui (com.android.systemui.System UI): Uid: 10186 Sys: 1 s Us: 5 s Starts: 0
kworker/u:5 (0): Uid: 0 Sys: 5 s Us: Starts: 0
kworker/u:6 (0): Uid: 0 Sys: 4 s Us: Starts: 0
kworker/u:2 (0): Uid: 0 Sys: 4 s Us: Starts: 0
kworker/u:8 (0): Uid: 0 Sys: 4 s Us: Starts: 0
kworker/u:1 (0): Uid: 0 Sys: 4 s Us: Starts: 0
logd (1036): Uid: 1036 Sys: 1 s Us: 2 s Starts: 0
ksoftirqd/0 (0): Uid: 0 Sys: 3 s Us: Starts: 0
kworker/u:4 (0): Uid: 0 Sys: 3 s Us: Starts: 0
kworker/u:7 (0): Uid: 0 Sys: 2 s Us: Starts: 0
com.android.launcher3 (com.android.launcher3.crDroid Home): Uid: 10182 Sys: Us: 2 s Starts: 0
ueventd (0): Uid: 0 Sys: Us: 2 s Starts: 0
com.android.phone (Phone Services): Uid: 1001 Sys: Us: 1 s Starts: 0
mdss_fb0 (0): Uid: 0 Sys: 2 s Us: Starts: 0
irq/330-synapti (0): Uid: 0 Sys: 2 s Us: Starts: 0
audioserver (1041): Uid: 1041 Sys: Us: Starts: 0
android.hardware.sensors@1.0-service.samsung8974 (crDroid System): Uid: 1000 Sys: Us: Starts: 0
android.system.suspend@1.0-service (crDroid System): Uid: 1000 Sys: Us: Starts: 0
kworker/u:0H (0): Uid: 0 Sys: 1 s Us: Starts: 0
android.hardware.nfc@1.0-service (com.android.nfc.Nfc Service): Uid: 1027 Sys: Us: Starts: 0
irq/334-SSP_Int (0): Uid: 0 Sys: 1 s Us: Starts: 0
kworker/u:0 (0): Uid: 0 Sys: 1 s Us: Starts: 0
rmt_storage (9999): Uid: 9999 Sys: Us: Starts: 0
servicemanager (crDroid System): Uid: 1000 Sys: Us: Starts: 0
rild (Phone Services): Uid: 1001 Sys: Us: Starts: 0
statsd (1066): Uid: 1066 Sys: Us: Starts: 0
system (0): Uid: 0 Sys: Us: Starts: 0
mmcqd/1 (0): Uid: 0 Sys: Us: Starts: 0
migration/0 (0): Uid: 0 Sys: Us: Starts: 0
healthd (0): Uid: 0 Sys: Us: Starts: 0
kworker/u:3 (0): Uid: 0 Sys: Us: Starts: 0
irq/256-msm_sdc (0): Uid: 0 Sys: Us: Starts: 0
kworker/0:1 (0): Uid: 0 Sys: Us: Starts: 0
ip6tables-restore (0): Uid: 0 Sys: Us: Starts: 0
iptables-restore (0): Uid: 0 Sys: Us: Starts: 0
com.android.inputmethod.latin (com.android.inputmethod.latin.Android Keyboard (AOSP)): Uid: 10195 Sys: Us: Starts: 0
logcat (0): Uid: 0 Sys: Us: Starts: 0
lmkd (1069): Uid: 1069 Sys: Us: Starts: 0
netd (0): Uid: 0 Sys: Us: Starts: 0
kthreadd (0): Uid: 0 Sys: Us: Starts: 0
qmuxd (Phone Services): Uid: 1001 Sys: Us: Starts: 0
jbd2/mmcblk0p26 (0): Uid: 0 Sys: Us: Starts: 0
init (0): Uid: 0 Sys: Us: Starts: 0
thermal-engine (0): Uid: 0 Sys: Us: Starts: 0
android.hardware.graphics.allocator@2.0-service (crDroid System): Uid: 1000 Sys: Us: Starts: 0
android.hardware.power@1.2-service-qti (crDroid System): Uid: 1000 Sys: Us: Starts: 0
irq/195-ngd_sli (0): Uid: 0 Sys: Us: Starts: 0
flush-179:0 (0): Uid: 0 Sys: Us: Starts: 0
adbd (com.android.shell.Shell): Uid: 2000 Sys: Us: Starts: 0
time_daemon (crDroid System): Uid: 1000 Sys: Us: Starts: 0
com.android.cellbroadcastreceiver (com.android.cellbroadcastreceiver.Wireless emergency alerts): Uid: 10133 Sys: Us: Starts: 0
======================
Alarms
======================
android (): Wakeups: 10 (5.1 / h)
Alarms: 0, Intent: com.android.server.action.NETWORK_STATS_POLL
Alarms: 0, Intent: TIME_TICK
Alarms: 6, Intent: DeviceIdleController.light
Alarms: 3, Intent: DeviceIdleController.deep
Alarms: 0, Intent: GraphicsStatsService
Alarms: 1, Intent: JS idleness
Alarms: 0, Intent: *job.delay*
Alarms: 0, Intent: *job.deadline*

======================
Network
======================
==========
CPU States
==========
2.27 GHz (): 39 s 0.6%
Deep Sleep (): 1 h 57 m 41 s 99.4%
==========
Sensors
==========
(crDroid System): Sensor: K330 3-axis Accelerometer(1), wakeup=false, Time: 6 s
Sensor: SAMSUNG Significant Motion Sensor(10), wakeup=true, Time: 41 m 1 s
Sensor: Linear Acceleration Sensor(1600940398), wakeup=false, Time: 0 s

========
Services
========
Active since: The time when the service was first made active, either by someone starting or binding to it.
Last activity: The time when there was last activity in the service (either explicit requests to start it or clients binding to it)
com.asksven.betterbatterystats_xdaedition (com.asksven.betterbatterystats.services.EventWatcherService)
Active since: 1 m 2 s
Last activity: 5 m 18 s
Crash count:0
==================
Reference overview
==================
ref_boot: Reference ref_boot created 1 m 4 s (Wl: 2 elements; KWl: 53elements; NetS: 0 elements; Alrm: 0 elements; Proc: 119 elements; Oth: 13 elements; CPU: 2 elements; Sensors: 1 elements)
ref_screen_off: Reference ref_screen_off created 4 m 55 s (Wl: 4 elements; KWl: 70elements; NetS: 0 elements; Alrm: 2 elements; Proc: 127 elements; Oth: 15 elements; CPU: 3 elements; Sensors: 1 elements)
ref_screen_on: Reference ref_screen_on created 2 h 3 m 16 s (Wl: 5 elements; KWl: 72elements; NetS: 0 elements; Alrm: 2 elements; Proc: 128 elements; Oth: 15 elements; CPU: 3 elements; Sensors: 1 elements)
ref_current: Reference ref_current created 2 h 3 m 17 s (Wl: 5 elements; KWl: 72elements; NetS: 0 elements; Alrm: 2 elements; Proc: 128 elements; Oth: 15 elements; CPU: 3 elements; Sensors: 1 elements)
------ human readable part end here