Dear all, just want to share the simple solution in case this would bother you.
Recently I noticed that during my train commute with the Tab (3 8) in the backpack that after reaching office, the battery got more drained than expected. Checking with "Better Battery Stats" I found that "grip_wake_lock" has kept my device active for no reason - so no deep sleep as it should be. If you want to check on the sensor, call the dialer and enter *#0*# to get the test application. You find the grip sensor at the bottom of the screen. It may miss on wifi only devices (like the vibrate was on my GTab 2 7 wifi).
I have not found any application actually using this sensor, though I am not sure about the TouchWiz to increase ring volume when in a bag - but I don't care about this anyway. This function is also on phones that do NOT have a grip sensor, so it is unlikely.
So now how to switch off the sensor and get rid of the grip_wake_lock:
in a root shell enter
echo 0 > /sys/class/sensors/grip_sensor/onoff
This was also found for another device having a grip sensor with other problems as described here:
http://forum.xda-developers.com/showthread.php?t=2237946
You can put the same in an init.d script, but as the stock kernel does not support it, you need to find another way to execute that automatically at boot. There are many tools doing this, I picked "Universal Init.d"
Recently I noticed that during my train commute with the Tab (3 8) in the backpack that after reaching office, the battery got more drained than expected. Checking with "Better Battery Stats" I found that "grip_wake_lock" has kept my device active for no reason - so no deep sleep as it should be. If you want to check on the sensor, call the dialer and enter *#0*# to get the test application. You find the grip sensor at the bottom of the screen. It may miss on wifi only devices (like the vibrate was on my GTab 2 7 wifi).
I have not found any application actually using this sensor, though I am not sure about the TouchWiz to increase ring volume when in a bag - but I don't care about this anyway. This function is also on phones that do NOT have a grip sensor, so it is unlikely.
So now how to switch off the sensor and get rid of the grip_wake_lock:
in a root shell enter
echo 0 > /sys/class/sensors/grip_sensor/onoff
This was also found for another device having a grip sensor with other problems as described here:
http://forum.xda-developers.com/showthread.php?t=2237946
You can put the same in an init.d script, but as the stock kernel does not support it, you need to find another way to execute that automatically at boot. There are many tools doing this, I picked "Universal Init.d"