[General Questions and Answers] groumfi:
Auto shutdown when undocked

Hi there,

I'm trying to understand why my 2 x Slatebook X2 are draining battery during the night so fast when they are docked.

I started my troubleshoot by leaving the Slatebook undocked. And it appears that battery drain much slower.

However, I have noticed that the Slatebook shutdown itself after few hours. I've captured logcat :

[...]
D/SQLiteConnection( 1292): Enabled WAL + NORMAL mode
V/Sensors ( 934): HAL:enable - sensor Accelerometer (handle 1) dis -> en
V/Sensors ( 934): HAL:Accelerometer sensor state change what=1
I/MPL-storeload( 934): /data/inv_cal_data.bin size = 4336
I/MPL-storeload( 934): Bytes read = 4336
V/Sensors ( 934): HAL:handle = 1
V/Sensors ( 934): HAL:flags = 1
V/Sensors ( 934): HAL:enable : mEnabled = 2
V/Sensors ( 934): HAL:sen_mask= 0x70
V/Sensors ( 934): HAL:enableSensors - sensors: 0x70
V/Sensors ( 934): HAL:enableSensors - disable gyro
V/Sensors ( 934): HAL:enableSensors - enable accel
V/Sensors ( 934): HAL:enableSensors - disable compass
V/Sensors ( 934): setDelay : 200000000 ns, (5.00 Hz)
V/Sensors ( 934): HAL:wanted rate for all sensors : 200000000 ns, mpl rate: 200000 us, (5.00 Hz)
V/Sensors ( 934): HAL:MPL gyro sample rate: 200000
V/Sensors ( 934): HAL:MPL accel sample rate: 200000
V/Sensors ( 934): HAL:MPL compass sample rate: 200000
V/Sensors ( 934): setDelay : 20000000 ns, (50.00 Hz)
V/Sensors ( 934): HAL:wanted rate for all sensors : 20000000 ns, mpl rate: 20000 us, (50.00 Hz)
V/Sensors ( 934): HAL:MPL gyro sample rate: 20000
V/Sensors ( 934): HAL:MPL accel sample rate: 20000
V/Sensors ( 934): HAL:MPL compass sample rate: 20000
[COLOR="Red"]I/ActivityManager( 934): START u0 {act=android.intent.action.ACTION_REQUEST_SHUTDOWN flg=0x10000000 cmp=android/com.android.server.ShutdownActivity (has extras)} from pid 934
W/PowerServiceClient-JNI( 934): Invalid data
I/ShutdownActivity( 934): onCreate(): confirm=false
D/ShutdownThread( 934): Notifying thread to start shutdown longPressBehavior=1[/COLOR]
V/Sensors ( 934): HAL:enable - sensor Accelerometer (handle 1) en -> dis
V/Sensors ( 934): HAL:Accelerometer sensor state change what=1
V/Sensors ( 934): HAL:handle = 1
V/Sensors ( 934): HAL:flags = 0
V/Sensors ( 934): HAL:enable : mEnabled = 0
V/Sensors ( 934): HAL:sen_mask= 0x0
V/Sensors ( 934): HAL:enableSensors - sensors: 0x0
V/Sensors ( 934): HAL:enableSensors - disable gyro
V/Sensors ( 934): HAL:enableSensors - disable accel
E/BatteryWidgetReceiver(32489): ====================== BatteryWidgetReceiver onReceive = android.intent.action.BATTERY_CHANGED
E/BatteryWidgetReceiver(32489): ====================== BatteryWidgetReceiver in battery changed
D/dalvikvm( 934): GC_FOR_ALLOC freed 1170K, 28% free 12727K/17480K, paused 57ms, total 60ms
I/dalvikvm-heap( 934): Grow heap (frag case) to 13.158MB for 635812-byte allocation
V/Sensors ( 934): HAL:enableSensors - disable compass
I/MPL-storeload( 934): mpl state size = 4336
E/MPL-storeload( 934): calData from inv_save_mpl_states, size=2
I/MPL-storeload( 934): cal data size to write = 4336
I/MPL-storeload( 934): Bytes written = 4336
I/Sensors ( 934): HAL:Cal file updated
V/Sensors ( 934): setDelay : 20000000 ns, (50.00 Hz)
D/dalvikvm(32051): GC_CONCURRENT freed 400K, 20% free 2731K/3396K, paused 0ms+3ms, total 99ms
D/dalvikvm( 934): GC_FOR_ALLOC freed 10K, 27% free 13337K/18104K, paused 43ms, total 43ms
W/PowerServiceClient-JNI( 934): Invalid data
I/ShutdownThread( 934): Sending shutdown broadcast...
W/SyncManager( 934): Writing sync state before shutdown...

Any idea ?

Thx

S.