[Galaxy S II Q&A, Help & Troubleshooting] Karpfenhai:
this is your last succesful sleep cycle:

<1>PM: SLEEP
<1>ARM_COREx_STATUS CORE1[0x00070000], CORE2[0x00000000], CORE3[0x00000000]
<6>WAKEUP_STAT: 0x80000001
<6>WAKEUP_INTx_PEND: 0x0, 0x0, 0x80, 0x0
<6>Resume caused by IRQ 375, gpio_keys
<7>[keys] in the sleep
<6>PM: noirq resume of devices complete after 1.364 msecs
<6>PM: early resume of devices complete after 0.657 msecs
<6>u1_enable_regulator_for_usb_mipi: enable LDOs
<3>calc_bus_utilization: 0 value is not permitted
<3>calc_bus_utilization: 0 value is not permitted
<6>exynos4_setup_mshci_set_power : internal MMC Card ON samsung-mshc.
<6>mmc0: FIFO WMARK FOR RX 0x20 WX 0x10. ###########
<6>sdhci_resume_host : MMC Card ON
<6>wakeup wake lock: event1-2621
<7>[keys]PWR 1
<7>[keys] in the sleep
<7>[keys] f PWR 1
<7>[keys]PWR 0
<4>bcmsdh_sdmmc_resume Enter
<4>bcmsdh_sdmmc_resume Enter
<6>wake disabled for irq 375
<7>[keys]PWR 0
<6>wake disabled for irq 381
<6>s3c-rtc exynos-rtc: rtc disabled, re-enabling
<6>audss_reg_restore: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(1): SRC[0x1], DIV[0xf11], GATE[0x1c7]
<6>sec_jack_resume: disable_irq_wake(0)
<6>wake disabled for irq 359
<7>mif: set_hsic_lpa_states: 279: called(s5p_usb_phy_init+0x128/0x564

after this the problems begin to appear:

Phone is trying to go back to sleep (kind of, syncing filesystems is missing here)

<6>mdnie mdnie: +mdnie_early_suspend
<6>mdnie mdnie: -mdnie_early_suspend
<6>lcd panel: +ld9040_early_suspend
<6>lcd panel: ld9040_power_off
<6>lcd panel: -ld9040_early_suspend
<6>+s3cfb_early_suspend
<7>s3cfb - disable power domain
<6>-s3cfb_early_suspend
<6>active wake lock PowerManagerService
<6>active wake lock wlan_rx_wake, time left 168
<6>active wake lock prx_wake_lock, time left 804
<6>sync_system +
<6>sync_system -
<3>[TouchKey] touchkey is not enabled. 433
<6>mif: usb_port_resume: 1283, 4
<3>init: untracked pid 31437 exited
<6>mif: usb_port_resume: 1283, 4
<6>mif: usb_port_resume: 1283, 4
<3>cm3663_irq_thread_fn: proximity value = 5, val = 1
<6>mif: usb_port_resume: 1283, 4
<3>cm3663_irq_thread_fn: proximity value = 17, val = 0
<6>mif: usb_port_resume: 1283, 4
<6>s5p-ehci s5p-ehci: host_phy_susp
<3>cm3663_irq_thread_fn: proximity value = 3, val = 1
<6>s3cfb s3cfb.0: +s3cfb_late_resume
<6>s3cfb s3cfb.0: fimd sclk rate 50000000, clkdiv 0x7000ff
<6>s3cfb s3cfb.0: parent clock: 50000000, vclk: 25067000, vclk div: 2
<6>mdnie mdnie: CAMERA
<6>s3cfb s3cfb.0: -s3cfb_late_resume
<6>lcd panel: +ld9040_late_resume
<6>lcd panel: ld9040_power_on
<6>lcd panel: id=2 brightness=0, bl=1, candela=40
<6>lcd panel: -ld9040_late_resume
<6>mdnie mdnie: +mdnie_late_resume
<6>mdnie mdnie: CAMERA
<6>mdnie mdnie: -mdnie_late_resume
<6>sii9234_late_resume()
<4>dhd_late_resume: enter
<4>dhd_set_suspend: Remove extra suspend setting
<6>lcd panel: id=2 brightness=70, bl=6, candela=120
<6>powersave_late_resume: set cpu0 freq in the 200000-1500000 KHz range
<7>[TouchKey] sec_touchkey_late_resume

Now you see a hell of errors:

<3>mc1n2 6-003a: -1: Error in mc1n2_setup_dai
<3>asoc: can't set codec mc1n2-da0i hw params
<6>audss_reg_save: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(0): SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_reg_restore: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(1): SRC[0x1], DIV[0xf11], GATE[0x1c7]
<3>mc1n2 6-003a: -1: Error in mc1n2_setup_dai
<3>asoc: can't set codec mc1n2-da0i hw params
<6>audss_reg_save: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(0): SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_reg_restore: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(1): SRC[0x1], DIV[0xf11], GATE[0x1c7]
<3>mc1n2 6-003a: -1: Error in mc1n2_setup_dai
<3>asoc: can't set codec mc1n2-da0i hw params
<6>audss_reg_save: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(0): SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_reg_restore: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(1): SRC[0x1], DIV[0xf11], GATE[0x1c7]
<3>mc1n2 6-003a: -1: Error in mc1n2_setup_dai
<3>asoc: can't set codec mc1n2-da0i hw params
<6>audss_reg_save: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(0): SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_reg_restore: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(1): SRC[0x1], DIV[0xf11], GATE[0x1c7]
<3>mc1n2 6-003a: -1: Error in mc1n2_setup_dai
<3>asoc: can't set codec mc1n2-da0i hw params
<6>audss_reg_save: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(0): SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_reg_restore: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(1): SRC[0x1], DIV[0xf11], GATE[0x1c7]
<3>mc1n2 6-003a: -1: Error in mc1n2_setup_dai
<3>asoc: can't set codec mc1n2-da0i hw params
<6>audss_reg_save: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(0): SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_reg_restore: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(1): SRC[0x1], DIV[0xf11], GATE[0x1c7]
<3>mc1n2 6-003a: -1: Error in mc1n2_setup_dai
<3>asoc: can't set codec mc1n2-da0i hw params
<6>audss_reg_save: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(0): SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_reg_restore: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(1): SRC[0x1], DIV[0xf11], GATE[0x1c7]
<3>mc1n2 6-003a: -1: Error in mc1n2_setup_dai
<3>asoc: can't set codec mc1n2-da0i hw params
<6>audss_reg_save: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(0): SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_reg_restore: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(1): SRC[0x1], DIV[0xf11], GATE[0x1c7]
<3>mc1n2 6-003a: -1: Error in mc1n2_setup_dai
<3>asoc: can't set codec mc1n2-da0i hw params
<6>audss_reg_save: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(0): SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_reg_restore: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(1): SRC[0x1], DIV[0xf11], GATE[0x1c7]
<3>mc1n2 6-003a: -1: Error in mc1n2_setup_dai
<3>asoc: can't set codec mc1n2-da0i hw params
<6>audss_reg_save: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(0): SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_reg_restore: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(1): SRC[0x1], DIV[0xf11], GATE[0x1c7]
<3>mc1n2 6-003a: -1: Error in mc1n2_setup_dai
<3>asoc: can't set codec mc1n2-da0i hw params
<6>audss_reg_save: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(0): SRC[0x1], DIV[0xf11], GATE[0x42]
<6>wake disabled for irq 354
<6>mif: usb_port_resume: 1283, 4
<6>lcd panel: id=2 brightness=79, bl=7, candela=130
<6>mif: usb_port_resume: 1283, 4

Another Attempt to sleep here :

<7>[TouchKey] sec_touchkey_early_suspend
<6>powersave_early_suspend: set cpu0 freq in the 200000-1500000 KHz range
<6>powersave_early_suspend: set cpu1 freq in the 200000-1500000 KHz range
<4>dhd_early_suspend: enter
<4>dhd_set_suspend: force extra Suspend setting
<4>Do not turn on ARP white list pkt filter:val 1, cnt 5, op_mode 0x5
<4>dhd_get_suspend_bcn_li_dtim bcn_li_dtim=0 DTIM=2 Listen=10
<6>sii9234_early_suspend()
<6>mdnie mdnie: +mdnie_early_suspend
<6>mdnie mdnie: -mdnie_early_suspend
<6>lcd panel: +ld9040_early_suspend
<6>lcd panel: ld9040_power_off
<6>lcd panel: -ld9040_early_suspend
<6>+s3cfb_early_suspend
<7>s3cfb - disable power domain
<6>-s3cfb_early_suspend
<6>active wake lock PowerManagerService
<6>active wake lock wlan_rx_wake, time left 181
<6>active wake lock prx_wake_lock, time left 809
<6>sync_system +
<6>sync_system -
<6>mif: usb_port_resume: 1283, 4
<3>init: untracked pid 31511 exited
<6>s5p-ehci s5p-ehci: host_phy_susp
<6>mif: usb_port_resume: 1283, 4
<3>cm3663_irq_thread_fn: proximity value = 2, val = 1
<3>[TouchKey] touchkey is not enabled. 433
<6>s5p-ehci s5p-ehci: host_phy_susp
<6>s3cfb s3cfb.0: +s3cfb_late_resume

But again, prevented by:

<6>s3cfb s3cfb.0: +s3cfb_late_resume
<6>s3cfb s3cfb.0: fimd sclk rate 50000000, clkdiv 0x7000ff
<6>s3cfb s3cfb.0: parent clock: 50000000, vclk: 25067000, vclk div: 2
[B]<6>mdnie mdnie: CAMERA[/B]
<6>s3cfb s3cfb.0: -s3cfb_late_resume
<6>lcd panel: +ld9040_late_resume
<6>lcd panel: ld9040_power_on
<6>lcd panel: id=2 brightness=0, bl=1, candela=40
<6>lcd panel: -ld9040_late_resume
<6>mdnie mdnie: +mdnie_late_resume
<6>mdnie mdnie: CAMERA
<6>mdnie mdnie: -mdnie_late_resume
<6>sii9234_late_resume()
<4>dhd_late_resume: enter
<4>dhd_set_suspend: Remove extra suspend setting
<6>lcd panel: id=2 brightness=101, bl=9, candela=150
<6>lcd panel: id=2 brightness=95, bl=8, candela=140
<6>powersave_late_resume: set cpu0 freq in the 200000-1500000 KHz range
<7>[TouchKey] sec_touchkey_late_resume
<6>s5p_gpioint_set_type irq:389 is at GPL0(5)
<7>LED returned on
<6>lcd panel: id=2 brightness=88, bl=7, candela=130
<6>mif: usb_port_resume: 1283, 4
<6>s5p-ehci s5p-ehci: host_phy_susp
<6>mif: usb_port_resume: 1283, 4
<6>s5p-ehci s5p-ehci: host_phy_susp
<6>mif: usb_port_resume: 1283, 4
<6>mif: link_pm_runtime_work: rpm_states=3
<6>mif: usb_port_resume: 1283, 4
<6>audss_reg_restore: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(1): SRC[0x1], DIV[0xf11], GATE[0x1c7]
<3>mc1n2 6-003a: -1: Error in mc1n2_setup_dai
<3>asoc: can't set codec mc1n2-da0i hw params
<6>audss_reg_save: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(0): SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_reg_restore: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(1): SRC[0x1], DIV[0xf11], GATE[0x1c7]
<3>mc1n2 6-003a: -1: Error in mc1n2_setup_dai
<3>asoc: can't set codec mc1n2-da0i hw params
<6>audss_reg_save: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(0): SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_reg_restore: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(1): SRC[0x1], DIV[0xf11], GATE[0x1c7]
<3>mc1n2 6-003a: -1: Error in mc1n2_setup_dai
<3>asoc: can't set codec mc1n2-da0i hw params
<6>audss_reg_save: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(0): SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_reg_restore: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(1): SRC[0x1], DIV[0xf11], GATE[0x1c7]
<3>mc1n2 6-003a: -1: Error in mc1n2_setup_dai
<3>asoc: can't set codec mc1n2-da0i hw params
<6>audss_reg_save: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(0): SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_reg_restore: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(1): SRC[0x1], DIV[0xf11], GATE[0x1c7]
<3>mc1n2 6-003a: -1: Error in mc1n2_setup_dai
<3>asoc: can't set codec mc1n2-da0i hw params
<6>audss_reg_save: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(0): SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_reg_restore: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(1): SRC[0x1], DIV[0xf11], GATE[0x1c7]
<3>mc1n2 6-003a: -1: Error in mc1n2_setup_dai
<3>asoc: can't set codec mc1n2-da0i hw params
<6>audss_reg_save: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(0): SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_reg_restore: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(1): SRC[0x1], DIV[0xf11], GATE[0x1c7]
<3>mc1n2 6-003a: -1: Error in mc1n2_setup_dai
<3>asoc: can't set codec mc1n2-da0i hw params
<6>audss_reg_save: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(0): SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_reg_restore: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(1): SRC[0x1], DIV[0xf11], GATE[0x1c7]
<3>mc1n2 6-003a: -1: Error in mc1n2_setup_dai
<3>asoc: can't set codec mc1n2-da0i hw params
<6>audss_reg_save: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(0): SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_reg_restore: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(1): SRC[0x1], DIV[0xf11], GATE[0x1c7]
<3>mc1n2 6-003a: -1: Error in mc1n2_setup_dai
<3>asoc: can't set codec mc1n2-da0i hw params
<6>audss_reg_save: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(0): SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_reg_restore: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(1): SRC[0x1], DIV[0xf11], GATE[0x1c7]
<3>mc1n2 6-003a: -1: Error in mc1n2_setup_dai
<3>asoc: can't set codec mc1n2-da0i hw params
<6>audss_reg_save: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(0): SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_reg_restore: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(1): SRC[0x1], DIV[0xf11], GATE[0x1c7]
<3>mc1n2 6-003a: -1: Error in mc1n2_setup_dai
<3>asoc: can't set codec mc1n2-da0i hw params
<6>audss_reg_save: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(0): SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_reg_restore: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(1): SRC[0x1], DIV[0xf11], GATE[0x1c7]
<3>mc1n2 6-003a: -1: Error in mc1n2_setup_dai
<3>asoc: can't set codec mc1n2-da0i hw params
<6>audss_reg_save: SRC[0x1], DIV[0xf11], GATE[0x42]
<6>audss_clk_enable(0): SRC[0x1], DIV[0xf11], GATE[0x42]

After that your Storage was gone somehow:

(right after you dissabled Wifi manually)

<6>mmc2: card inserted.
<6>mmc2: cmd 7 command timeout error
<6>mmc2: cmd 7 command timeout error
<6>mmc2: cmd 7 command timeout error
<6>mmc2: cmd 7 command timeout error
<6>mmc2: card 0001 removed
<6>mmc2: cmd 52 command timeout error
<6>mmc2: cmd 52 command timeout error
<6>mmc2: cmd 8 command timeout error
<6>mmc2: cmd 5 command timeout error
<6>mmc2: cmd 5 command timeout error
<6>mmc2: cmd 5 command timeout error
<6>mmc2: cmd 5 command timeout error
<6>mmc2: cmd 55 command timeout error
<6>mmc2: cmd 55 command timeout error
<6>mmc2: cmd 55 command timeout error
<6>mmc2: cmd 55 command timeout error
<6>mmc2: cmd 1 command timeout error
<6>mmc2: cmd 52 command timeout error
<6>mmc2: cmd 52 command timeout error
<6>mmc2: cmd 8 command timeout error
<6>mmc2: cmd 5 command timeout error
<6>mmc2: cmd 5 command timeout error
<6>mmc2: cmd 5 command timeout error
<6>mmc2: cmd 5 command timeout error
<6>mmc2: cmd 55 command timeout error
<6>mmc2: cmd 55 command timeout error
<6>mmc2: cmd 55 command timeout error
<6>mmc2: cmd 55 command timeout error
<6>mmc2: cmd 1 command timeout error

Then it seems you plugged the charger, no more tries to sleep afterwards.

reading your logcat now..

Youre right!

---------- Post added at 05:29 PM ---------- Previous post was at 05:23 PM ----------

Something is missing here :

04-08 16:02:05.907 2621 7845 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.asksven.betterbatterystats_xdaedition/com.asksven.betterbatterystats.StatsActivity bnds=[710,219][790,292]} from pid 7133

--------- beginning of /dev/log/main

04-08 16:02:07.420 2101 2565 D TinyALSA-Audio Output: audio_out_get_latency(0x41d00d58)

04-08 16:02:07.420 2101 2565 D TinyALSA-Audio Output: audio_out_get_latency(0x41d00d58)

04-08 16:02:07.420 2101 2565 D TinyALSA-Audio Output: audio_out_get_latency(0x41d00d58)

04-08 16:02:07.430 2101 2565 D TinyALSA-Audio Output: audio_out_get_latency(0x41d00d58)

04-08 16:02:07.430 2101 2565 D TinyALSA-Audio Output: audio_out_get_latency(0x41d00d58)

04-08 16:02:07.430 2101 2565 D TinyALSA-Audio Output: audio_out_get_latency(0x41d00d58)

04-08 16:02:07.444 2101 2565 D TinyALSA-Audio Output: audio_out_get_latency(0x41d00d58)

this does not end until you rebooted...

weird..what app have you started / what have you done at 16:02 o'clock?

Did you plug USB to pull the logcat?

There is a statement earlier USB out is not supported by kernel, maybe a useful hint?