Try these commands, after these commands my phone became too smooth
Code:
adb shell settings delete global device_idle_constants
Code:
adb shell dumpsys deviceidle enable
Code:
adb shell dumpsys deviceidle force-idle
Code:
adb shell settings put global device_idle_constants inactive_to=30000,sensing_to=0,locating_to=0,location_accuracy=20.0,motion_inactive_to=0,idle_after_inactive_to=0,idle_pending_to=300000,max_idle_pending_to=600000,idle_pending_factor=2.0,idle_to=3600000,max_idle_to=21600000,idle_factor=2.0,min_time_to_alarm=3600000,max_temp_app_whitelist_duration=300000,mms_temp_app_whitelist_duration=60000,sms_temp_app_whitelist_duration=20000