[LG Optimus 2x] Naadi900:
Just had another shutdown while charging on my desk.

Found in the hidden menu the Log service.

Here I enabled main log, system log and kernel log this morning.

Trying to find out where it saved the logs i used Root explorer to navigate to /data/logger

As I'm not a developer at all I lack the skills of reading those logs to see if there is any clue as to why it reboots.

What i did see in the system.log was a lot of same commands right before the reboot (note the change in time after 15.38)

03-21 15:36:16.547 D/StatusBarPolicy( 1108): getDoingTimer do_timerfalse
03-21 15:36:16.547 D/WifiService( 1108): BroadcastReceiver : android.intent.action.BATTERY_CHANGED
03-21 15:36:16.547 D/WifiService( 1108): ACTION_BATTERY_CHANGED pluggedType: 1
03-21 15:36:16.607 D/StatusBarPolicy( 1108): getDoingTimer do_timerfalse
03-21 15:36:16.607 D/WifiService( 1108): BroadcastReceiver : android.intent.action.BATTERY_CHANGED
03-21 15:36:16.607 D/WifiService( 1108): ACTION_BATTERY_CHANGED pluggedType: 1
03-21 15:37:33.587 D/StatusBarPolicy( 1108): getDoingTimer do_timerfalse
03-21 15:37:33.587 D/WifiService( 1108): BroadcastReceiver : android.intent.action.BATTERY_CHANGED
03-21 15:37:33.587 D/WifiService( 1108): ACTION_BATTERY_CHANGED pluggedType: 1
03-21 15:37:33.627 D/StatusBarPolicy( 1108): getDoingTimer do_timerfalse
03-21 15:37:33.627 D/WifiService( 1108): BroadcastReceiver : android.intent.action.BATTERY_CHANGED
03-21 15:37:33.627 D/WifiService( 1108): ACTION_BATTERY_CHANGED pluggedType: 1
03-21 15:37:44.537 D/StatusBarPolicy( 1108): getDoingTimer do_timerfalse
03-21 15:37:44.537 D/WifiService( 1108): BroadcastReceiver : android.intent.action.BATTERY_CHANGED
03-21 15:37:44.537 D/WifiService( 1108): ACTION_BATTERY_CHANGED pluggedType: 1
03-21 15:37:49.557 D/StatusBarPolicy( 1108): getDoingTimer do_timerfalse
03-21 15:37:49.557 D/WifiService( 1108): BroadcastReceiver : android.intent.action.BATTERY_CHANGED
03-21 15:37:49.557 D/WifiService( 1108): ACTION_BATTERY_CHANGED pluggedType: 1
03-21 15:37:50.917 D/WifiService( 1108): BroadcastReceiver : android.intent.action.SCREEN_ON
03-21 15:37:50.917 D/WifiService( 1108): ACTION_SCREEN_ON
03-21 15:37:55.387 W/InputManagerService( 1108): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@47175000
03-21 15:37:59.587 D/WifiService( 1108): acquireWifiLockLocked: WifiLock{Backup to Gmail: SMS type=1 binder=android.os.BinderProxy@470c17a8}
03-21 15:38:03.359 D/WifiService( 1108): releaseWifiLockLocked: WifiLock{Backup to Gmail: SMS type=1 binder=android.os.BinderProxy@470c17a8}
03-21 15:38:23.817 D/StatusBarPolicy( 1108): getDoingTimer do_timerfalse
03-21 15:38:23.817 D/WifiService( 1108): BroadcastReceiver : android.intent.action.BATTERY_CHANGED
03-21 15:38:23.817 D/WifiService( 1108): ACTION_BATTERY_CHANGED pluggedType: 1
03-21 15:38:31.047 D/StatusBarPolicy( 1108): getDoingTimer do_timerfalse
03-21 15:38:31.057 D/WifiService( 1108): BroadcastReceiver : android.intent.action.SCREEN_OFF
03-21 15:38:31.057 D/WifiService( 1108): ACTION_SCREEN_OFF
03-21 15:38:31.147 D/StatusBar( 1108): DISABLE_EXPAND: yes
03-21 15:44:56.337 I/Vold ( 1021): Vold 2.1 (the revenge) firing up
03-21 15:44:56.347 D/Vold ( 1021): Volume extsdcard state changing -1 (Initializing) -> 0 (No-Media)
03-21 15:44:56.347 D/Vold ( 1021): Volume sdcard state changing -1 (Initializing) -> 0 (No-Media)
03-21 15:44:56.347 D/Vold ( 1021): Volume extsdcard state changing 0 (No-Media) -> 1 (Idle-Unmounted)
03-21 15:44:56.347 W/Vold ( 1021): Duplicate state (1)
03-21 15:44:56.347 D/Vold ( 1021): Volume sdcard state changing 0 (No-Media) -> 1 (Idle-Unmounted)

This might be just normal, as I don't have a clue.

Maybe someone with knowledge can have a look at the logs, mine are too big to post here (kernel log is 10mb, it includes all the touch inputs hehe).

EDIT:

Right after posting this another freeze while charging!

As I knew that this freeze was the last thing that happened in the logs I managed to copy the kernel log from the aforementioned location.

This is about the last 10 seconds before the freeze.

[ BATT] : star_capacity_from_voltage_via_calculate : [CBC] : With Charger : CAL_CBC(59)
<4>[ 1980.324778] [ BATT] : star_battery_data_poll_period_change : [bat_sysfs] polling_interval: Critical(90, 100), Vol(390, 2090), Tem(390, 2090), Gauge(390, 2090)
<4>[ 1980.324797] [ BATT] : star_battery_data_poll_period_change : [bat_sysfs] polling_interval Change : data(9000), wake(100)
<4>[ 1980.324825] [ BATT] : star_debug_show_battery_status :
<4>[ 1980.324845]
<4>[ 1980.324847] BAT : SOC(78), Vol(4051), Temp(362), present(1),
<4>[ 1980.324851] CV(59), CBC(78, 73, 1), Boot_TA(0)
<4>[ 1980.324855] StateMachine(2), AT_Boot_ELT(0, 0, 0), poll/wake(90, 100)
<4>[ 1980.324859] CHG : AcLine(1), src(2), en(1),
<4>[ 1980.324862] past(4) full_set(1) now(1)
<4>[ 1980.324866] TIME : Last_CBC(3640617085) GaugeFollow(919)
<4>[ 1980.324869]
<4>[ 1980.332908] [ CHGR] : star_determine_charger_state : [chg_state] CHARGE/ON_ON/CHARGE
<4>[ 1980.332930] [ BATT] : tegra_battery_gpio_read_timer_func : [FULLBAT]: charger_is_state old(2) & new(1) & now(2)
<4>[ 1980.332948] [ BATT] : tegra_battery_gpio_read_timer_func : [FULLBAT]: State change Result : machine(2) & now(2)
<4>[ 1986.392677] [BL] Power Off
<6>[ 1986.394377] request_suspend_state: sleep (0->3) at 2193871552030 (2011-03-21 15:22:23.751093334 UTC)
<4>[ 1986.394781] [LED] touchLED_early_suspend
<4>[ 1986.398796] dhd_set_suspend:584 wl_dtim_val = 3
<4>[ 1986.399139] [TOUCH] tegra_touch_early_suspend
<4>[ 1986.399152] [TOUCH] Synaptics_InterruptMask by 1
<4>[ 1986.452878] [TOUCH] Synaptics_PowerControl
<4>[ 1986.453169] Synaptics Device Control Read Success
<4>[ 1986.453296] Synaptics Device Control Write Success
<4>[ 1986.514646] tegra_display_off: start notify daemon for STRING_PM_DISPLAY_OFF
<6>[ 1986.514669] notify_daemon: wait for nvrm_daemon
<6>[ 1986.514687] nvrm_notifier_show: returning with 'PM_DISPLAY_OFF'
<4>[ 1986.517652] tegra_display_off: end notify daemon for STRING_PM_DISPLAY_OFF
<6>[ 1986.518212] nvrm_notifier_show: blocking
<6>[ 1987.995685] suspend: enter suspend
<6>[ 1987.995701] PM: Syncing filesystems ... done.
<6>[ 1988.245572] tegra_pm_notifier: start processing event=3
<6>[ 1988.245592] notify_daemon: wait for nvrm_daemon
<6>[ 1988.245610] nvrm_notifier_show: returning with 'PM_SUSPEND_PREPARE'
<6>[ 1988.257828] nvrm_notifier_show: blocking
<6>[ 1988.257848] tegra_pm_notifier: finished processing event=3
<4>[ 1988.257859] Freezing user space processes ...
<6>[ 1988.265065] nvrm_notifier_show: false wakeup, returning with '\n'
<6>[ 1988.265108] active wake lock mmc_delayed_work
<4>[ 1988.265116]
<3>[ 1988.265124] Freezing of tasks aborted after 0.00 seconds (633 tasks refusing to freeze):
<4>[ 1988.265624]
<4>[ 1988.265628] Restarting tasks ...
<6>[ 1988.266344] nvrm_notifier_show: blocking
<4>[ 1988.274049] done.
<6>[ 1988.274070] tegra_pm_notifier: start processing event=4
<6>[ 1988.274087] notify_daemon: wait for nvrm_daemon
<6>[ 1988.274097] nvrm_notifier_show: returning with 'PM_POST_SUSPEND'
<4>[ 1988.338554] [AUDIO] :
<3>[ 1988.338564] @@(Headset_det.c)@@ headset_det_work(), headset_status = 0
<6>[ 1988.338697] tegra_pm_notifier: finished processing event=4
<6>[ 1988.338714] suspend: exit suspend, ret = -16 (2011-03-21 15:22:25.695437528 UTC)
<6>[ 1988.338934] nvrm_notifier_show: blocking
<4>[ 1988.402878] [AUDIO] :
<3>[ 1988.402889] @@(Headset_det.c)@@ type_det_work(), HOOKVALUE 0 headset_type = 0
<6>[ 1988.573112] suspend: enter suspend
<6>[ 1988.573128] PM: Syncing filesystems ... done.
<6>[ 1988.843130] tegra_pm_notifier: start processing event=3
<6>[ 1988.843157] notify_daemon: wait for nvrm_daemon
<6>[ 1988.843325] nvrm_notifier_show: returning with 'PM_SUSPEND_PREPARE'
<6>[ 1988.846815] tegra_pm_notifier: finished processing event=3
<4>[ 1988.846828] Freezing user space processes ...
<6>[ 1988.846849] nvrm_notifier_show: blocking
<6>[ 1988.848238] nvrm_notifier_show: false wakeup, returning with '\n'
<4>[ 1988.853293] (elapsed 0.00 seconds) done.
<4>[ 1988.853303] Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.
<4>[ 1988.853600] Suspending console(s) (use no_console_suspend to debug)
<4>[ 1988.854853] tegra_rtc_set_alarm(): wkalrm->enabled=1
<6>[ 1988.857697] tegra_grhost tegra_grhost: suspending
<6>[ 1988.857725] tegra_grhost tegra_grhost: suspended
<3>[ 1988.858103] tegra_uart tegra_uart.3: tegra_uart_suspend called
<3>[ 1988.858121] tegra_uart tegra_uart.2: tegra_uart_suspend called
<3>[ 1988.858134] tegra_uart tegra_uart.1: tegra_uart_suspend called
<3>[ 1988.858145] tegra_uart tegra_uart.0: tegra_uart_suspend called
<4>[ 1988.858182] [AUDIO] :
<3>[ 1988.858186] ##(Headset_det.c)## headset_suspend()!! disable hook int
<4>[ 1988.858211] [ MUIC] : muic_suspend
<4>[ 1988.858351] [ MUIC] : muic_suspend Interrupt Disable
<4>[ 1988.859818] [CHG_RTC] alarm_sec=0x4d877085, now_sec=0x4d876d31
<4>[ 1988.859825] [CHG_RTC] old_alarm_sec=0x4d876887, checkbat_sec=0x4d876d95
<4>[ 1988.860314] [CHG_RTC : final] next_alarm_sec=0x4d876d95, old_alarm_sec=0x4d877085
<4>[ 1988.860325] [CHG_SLEEP] tegra_battery_suspend() end !!!
<6>[ 1988.861450] power_suspend_late return 0
<4>[ 1988.873448] RM power state before suspend: Idle (4)
<4>[ 1988.877900] Disabling non-boot CPUs ...
<7>[ 1988.877933] CPU0 attaching NULL sched-domain.
<7>[ 1988.877943] CPU1 attaching NULL sched-domain.
<7>[ 1989.022838] CPU0 attaching NULL sched-domain.
<5>[ 1989.023101] CPU1: clean shutdown
<6>[ 1989.024945]
<6>[ 1989.024948] [POWER] <<< Suspend GPIO Setting value (before) [END] >>>
<4>[ 0.022996] Enabling non-boot CPUs ...
<4>[ 0.051329] CPU1: Booted secondary processor
<7>[ 0.051389] CPU0 attaching NULL sched-domain.
<7>[ 0.131063] CPU0 attaching sched-domain:
<7>[ 0.131072] domain 0: span 0-1 level CPU