i still think something is off with these hooks  the way it is now  if you shutdown  go to s and then boot the ap  s then the sensors will still have the same odr  range  and res as they had last boot  this does not make sense  i think the goals here should be every time the ap boots  we should have the same default sensor settings if the ap goes to suspend  s and wakes back up  s the settings shall not have changed in s and in s only sample specific sensors that are needed  the last two goals are currently met  but not the first  i think you can fix it by changing clock chipset shutdown above to for  i i motion sensor count  i sensor  motion sensors i sensor  active sensor active s  sensor  state sensor not initialized sensor  odr sensor  default odr if sensor  state sensor initialized sensor  active mask sensor  active sensor  drv  set data rate sensor 