[Moto Maxx Android Development] fgl27:
that cmd resets after a reboot.

I can make a switch in ka, there is more then one mode "deep" and "light", deep is default, I can also make a option so we can enable just the light mode for testing

dumpsys deviceidle options

dumpsys deviceidle -h
Device idle controller (deviceidle) commands:
help
Print this help text.
step [light|deep]
Immediately step to next state, without waiting for alarm.
force-idle [light|deep]
Force directly into idle mode, regardless of other device state.
force-inactive
Force to be inactive, ready to freely step idle states.
unforce
Resume normal functioning after force-idle or force-inactive.
get [light|deep|force|screen|charging|network]
Retrieve the current given state.
disable [light|deep|all]
Completely disable device idle mode.
enable [light|deep|all]
Re-enable device idle mode after it had previously been disabled.
enabled [light|deep|all]
Print 1 if device idle mode is currently enabled, else 0.
whitelist
Print currently whitelisted apps.
whitelist [package ...]
Add (prefix with +) or remove (prefix with -) packages.
sys-whitelist [package ...|reset]
Prefix the package with '-' to remove it from the system whitelist or '+' to put it back in the system whitelist.
Note that only packages that were earlier removed from the system whitelist can be added back.
reset will reset the whitelist to the original state
Prints the system whitelist if no arguments are specified
except-idle-whitelist [package ...|reset]
Prefix the package with '+' to add it to whitelist or '=' to check if it is already whitelisted
[reset] will reset the whitelist to it's original state
Note that unlike <whitelist> cmd, changes made using this won't be persisted across boots
tempwhitelist
Print packages that are temporarily whitelisted.
tempwhitelist [-u USER] [-d DURATION] [-r] [package]
Temporarily place package in whitelist for DURATION milliseconds.
If no DURATION is specified, 10 seconds is used
If [-r] option is used, then the package is removed from temp whitelist and any [-d] is ignored
motion
Simulate a motion event to bring the device out of deep doze
:/ #

dumpsys deviceidle
Settings:
light_after_inactive_to=+3m0s0ms
light_pre_idle_to=+3m0s0ms
light_idle_to=+5m0s0ms
light_idle_factor=2.0
light_max_idle_to=+15m0s0ms
light_idle_maintenance_min_budget=+1m0s0ms
light_idle_maintenance_max_budget=+5m0s0ms
min_light_maintenance_time=+5s0ms
min_deep_maintenance_time=+30s0ms
inactive_to=+30m0s0ms
sensing_to=+4m0s0ms
locating_to=+30s0ms
location_accuracy=20.0m
motion_inactive_to=+10m0s0ms
idle_after_inactive_to=+30m0s0ms
idle_pending_to=+5m0s0ms
max_idle_pending_to=+10m0s0ms
idle_pending_factor=2.0
idle_to=+1h0m0s0ms
max_idle_to=+6h0m0s0ms
idle_factor=2.0
min_time_to_alarm=+1h0m0s0ms
max_temp_app_whitelist_duration=+5m0s0ms
mms_temp_app_whitelist_duration=+1m0s0ms
sms_temp_app_whitelist_duration=+20s0ms
notification_whitelist_duration=+30s0ms
wait_for_unlock=false
Whitelist (except idle) system apps:
com.android.providers.downloads
com.android.vending
com.google.android.gms
com.google.android.apps.turbo
com.android.shell
com.android.providers.contacts
Whitelist system apps:
com.android.providers.downloads
com.google.android.gms
com.android.shell
Whitelist (except idle) all app ids:
2000
10003
10006
10008
10019
10020
Whitelist all app ids:
2000
10008
10019
mLightEnabled=true mDeepEnabled=false
mForceIdle=false
mMotionSensor={Sensor name="Significant Motion sensor", vendor="Motorola", version=1, type=17, maxRange=1.0, resolution=1.0, power=3.0, minDelay=-1}
mScreenOn=false
mScreenLocked=true
mNetworkConnected=true
mCharging=true
mMotionActive=false
mNotMoving=false
mLocating=false mHasGps=false mHasNetwork=false mLocated=false
mState=ACTIVE mLightState=ACTIVE
mInactiveTimeout=+30m0s0ms