[Galaxy S III Mini Q&A, Help & Troubleshooting] mampfit:
Hello every one.

My S3's screen turns on automatically. While charging, while not charging, while off and charging (battery screen).

Things I did:

Factory Reset

Disabled all aps

Disassembled & Cleaned

Installed SlimRom 4.4

Removed Home as wakeup-key

This didn't help. The only thing I can imagine is that the usb port is kind of damaged, but why the hell does the log not say this?

Here's the log excerpt when putting to sleep mode from logcat.

08-11 21:41:41.179: I/libblt_hw(1660): Library opened (handle = 6, fd = 50)
08-11 21:41:41.199: I/libblt_hw(2097): Library opened (handle = 0, fd = 198)
08-11 21:41:41.890: D/LightsService(2097): Excessive delay setting light: 148ms
08-11 21:41:41.890: D/SurfaceFlinger(1660): Screen released, type=0 flinger=0x40746450
08-11 21:41:41.930: D/ALPS_COMPASS(2097): INV SENSOR ENABLE 0 -0
08-11 21:41:41.930: I/PowerManagerService(2097): Waking up from sleep...
08-11 21:41:41.960: I/sec_anm_ahi(1663): setParameters() - screen_state=off
08-11 21:41:41.960: D/tms_audio_hw/AudioTmsIpc(1663): adev_set_parameters : Enter
08-11 21:41:41.960: D/tms_audio_hw/AudioTmsIpc(1663): adev_set_parameters : Exit
08-11 21:41:42.080: I/libblt_hw(2097): Library closed (handle = 0, fd = 198)
08-11 21:41:42.270: D/PowerManagerService-JNI(2097): Excessive delay in autosuspend_enable() while turning screen off: 382ms
08-11 21:41:42.420: D/PowerManagerService-JNI(2097): Excessive delay in autosuspend_disable() while turning screen on: 152ms
08-11 21:41:42.420: D/SurfaceFlinger(1660): Screen acquired, type=0 flinger=0x40746450
08-11 21:41:42.450: W/View(2204): requestLayout() improperly called by android.widget.TextClock{423ab038 V.ED.... ......ID 0,0-229,129 #7f090008 app:id/large_time_component_1} during layout: running second layout pass
08-11 21:41:42.450: W/View(2204): requestLayout() improperly called by android.widget.TextClock{422e39b8 V.ED.... ......ID 0,0-37,29 #7f09000e app:id/date_component_1} during layout: running second layout pass
08-11 21:41:42.450: W/View(2204): requestLayout() improperly called by android.widget.TextClock{42588d88 V.ED.... ......ID 46,0-70,29 #7f09000f app:id/date_component_2} during layout: running second layout pass
08-11 21:41:42.450: W/View(2204): requestLayout() improperly called by android.widget.TextClock{421d8348 V.ED.... ......ID 79,0-125,29 #7f090010 app:id/date_component_3} during layout: running second layout pass
08-11 21:41:42.450: W/View(2204): requestLayout() improperly called by android.widget.TextView{426f5788 V.ED.... ......ID 51,6-81,39 #7f090035 app:id/collapsed_extension_text} during layout: running second layout pass
08-11 21:41:42.520: D/ALPS_COMPASS(2097): INV SENSOR ENABLE 0 -1
08-11 21:41:42.560: I/sec_anm_ahi(1663): setParameters() - screen_state=on
08-11 21:41:42.560: D/tms_audio_hw/AudioTmsIpc(1663): adev_set_parameters : Enter
08-11 21:41:42.560: D/tms_audio_hw/AudioTmsIpc(1663): adev_set_parameters : Exit
08-11 21:41:42.801: I/WindowManager(2097): Lock screen displayed!
08-11 21:41:42.801: D/DisplayPowerController(2097): Unblocked screen on after 802704 ms
08-11 21:41:42.821: I/libblt_hw(1660): Library closed (handle = 6, fd = 50)
08-11 21:41:46.774: I/healthd(1654): battery l=15 v=3 t=33.8 h=2 st=2 c=0 chg=u
08-11 21:41:56.804: I/healthd(1654): battery l=15 v=3 t=33.8 h=2 st=2 c=0 chg=u
08-11 21:42:06.856: I/healthd(1654): battery l=15 v=3 t=33.9 h=2 st=2 c=0 chg=u
08-11 21:42:11.920: I/libblt_hw(1660): Library opened (handle = 6, fd = 50)
08-11 21:42:11.920: I/PowerManagerService(2097): Going to sleep due to screen timeout...
08-11 21:42:11.950: I/libblt_hw(2097): Library opened (handle = 0, fd = 220)
08-11 21:42:12.641: D/LightsService(2097): Excessive delay setting light: 149ms
08-11 21:42:12.641: D/SurfaceFlinger(1660): Screen released, type=0 flinger=0x40746450
08-11 21:42:12.671: D/ALPS_COMPASS(2097): INV SENSOR ENABLE 0 -0
08-11 21:42:12.671: I/PowerManagerService(2097): Waking up from sleep...
08-11 21:42:12.701: I/sec_anm_ahi(1663): setParameters() - screen_state=off
08-11 21:42:12.701: D/tms_audio_hw/AudioTmsIpc(1663): adev_set_parameters : Enter
08-11 21:42:12.701: D/tms_audio_hw/AudioTmsIpc(1663): adev_set_parameters : Exit
08-11 21:42:13.022: D/PowerManagerService-JNI(2097): Excessive delay in autosuspend_enable() while turning screen off: 376ms
08-11 21:42:13.172: D/PowerManagerService-JNI(2097): Excessive delay in autosuspend_disable() while turning screen on: 154ms
08-11 21:42:13.172: D/SurfaceFlinger(1660): Screen acquired, type=0 flinger=0x40746450
08-11 21:42:13.342: I/libblt_hw(2097): Library closed (handle = 0, fd = 220)
08-11 21:42:13.362: I/Choreographer(2204): Skipped 37 frames! The application may be doing too much work on its main thread.
08-11 21:42:13.382: W/View(2204): requestLayout() improperly called by android.widget.TextClock{421c3888 V.ED.... ......ID 0,0-229,129 #7f090008 app:id/large_time_component_1} during layout: running second layout pass
08-11 21:42:13.382: W/View(2204): requestLayout() improperly called by android.widget.TextClock{42829518 V.ED.... ......ID 0,0-37,29 #7f09000e app:id/date_component_1} during layout: running second layout pass
08-11 21:42:13.382: W/View(2204): requestLayout() improperly called by android.widget.TextClock{42283310 V.ED.... ......ID 46,0-70,29 #7f09000f app:id/date_component_2} during layout: running second layout pass
08-11 21:42:13.382: W/View(2204): requestLayout() improperly called by android.widget.TextClock{422e1ff8 V.ED.... ......ID 79,0-125,29 #7f090010 app:id/date_component_3} during layout: running second layout pass
08-11 21:42:13.382: W/View(2204): requestLayout() improperly called by android.widget.TextView{421e3c20 V.ED.... ......ID 51,6-81,39 #7f090035 app:id/collapsed_extension_text} during layout: running second layout pass
08-11 21:42:13.442: I/InputDispatcher(2097): Dropped event because input dispatch is disabled.
08-11 21:42:13.462: D/ALPS_COMPASS(2097): INV SENSOR ENABLE 0 -1
08-11 21:42:13.502: I/sec_anm_ahi(1663): setParameters() - screen_state=on
08-11 21:42:13.502: D/tms_audio_hw/AudioTmsIpc(1663): adev_set_parameters : Enter
08-11 21:42:13.502: D/tms_audio_hw/AudioTmsIpc(1663): adev_set_parameters : Exit
08-11 21:42:13.652: I/WindowManager(2097): Lock screen displayed!
08-11 21:42:13.652: D/DisplayPowerController(2097): Unblocked screen on after 833550 ms
08-11 21:42:13.662: I/libblt_hw(1660): Library closed (handle = 6, fd = 50)
08-11 21:42:16.895: I/healthd(1654): battery l=15 v=3 t=33.9 h=2 st=2 c=0 chg=u
08-11 21:42:26.925: I/healthd(1654): battery l=15 v=3 t=33.8 h=2 st=2 c=0 chg=u
08-11 21:42:29.618: I/PowerManagerService(2097): Going to sleep by user request...
08-11 21:42:29.628: I/libblt_hw(1660): Library opened (handle = 6, fd = 50)
08-11 21:42:29.648: I/libblt_hw(2097): Library opened (handle = 0, fd = 198)
08-11 21:42:30.318: D/LightsService(2097): Excessive delay setting light: 146ms
08-11 21:42:30.318: D/SurfaceFlinger(1660): Screen released, type=0 flinger=0x40746450
08-11 21:42:30.358: D/ALPS_COMPASS(2097): INV SENSOR ENABLE 0 -0
08-11 21:42:30.358: I/PowerManagerService(2097): Waking up from sleep...
08-11 21:42:30.388: I/sec_anm_ahi(1663): setParameters() - screen_state=off
08-11 21:42:30.388: D/tms_audio_hw/AudioTmsIpc(1663): adev_set_parameters : Enter
08-11 21:42:30.388: D/tms_audio_hw/AudioTmsIpc(1663): adev_set_parameters : Exit
08-11 21:42:30.729: D/PowerManagerService-JNI(2097): Excessive delay in autosuspend_enable() while turning screen off: 405ms
08-11 21:42:30.789: I/libblt_hw(2097): Library closed (handle = 0, fd = 198)
08-11 21:42:30.899: D/PowerManagerService-JNI(2097): Excessive delay in autosuspend_disable() while turning screen on: 115ms
08-11 21:42:30.899: D/SurfaceFlinger(1660): Screen acquired, type=0 flinger=0x40746450
08-11 21:42:30.949: I/Choreographer(2204): Skipped 32 frames! The application may be doing too much work on its main thread.
08-11 21:42:30.969: W/View(2204): requestLayout() improperly called by android.widget.TextClock{426bc4a8 V.ED.... ......ID 0,0-229,129 #7f090008 app:id/large_time_component_1} during layout: running second layout pass
08-11 21:42:30.969: W/View(2204): requestLayout() improperly called by android.widget.TextClock{427a5bc0 V.ED.... ......ID 0,0-37,29 #7f09000e app:id/date_component_1} during layout: running second layout pass
08-11 21:42:30.969: W/View(2204): requestLayout() improperly called by android.widget.TextClock{427a61c0 V.ED.... ......ID 46,0-70,29 #7f09000f app:id/date_component_2} during layout: running second layout pass
08-11 21:42:30.969: W/View(2204): requestLayout() improperly called by android.widget.TextClock{427a67a8 V.ED.... ......ID 79,0-125,29 #7f090010 app:id/date_component_3} during layout: running second layout pass
08-11 21:42:30.969: W/View(2204): requestLayout() improperly called by android.widget.TextView{427a7e80 V.ED.... ......ID 51,6-81,39 #7f090035 app:id/collapsed_extension_text} during layout: running second layout pass
08-11 21:42:31.169: I/InputDispatcher(2097): Dropped event because input dispatch is disabled.
08-11 21:42:31.229: D/ALPS_COMPASS(2097): INV SENSOR ENABLE 0 -1
08-11 21:42:31.269: I/sec_anm_ahi(1663): setParameters() - screen_state=on
08-11 21:42:31.269: D/tms_audio_hw/AudioTmsIpc(1663): adev_set_parameters : Enter
08-11 21:42:31.269: D/tms_audio_hw/AudioTmsIpc(1663): adev_set_parameters : Exit
08-11 21:42:31.399: I/WindowManager(2097): Lock screen displayed!
08-11 21:42:31.399: D/DisplayPowerController(2097): Unblocked screen on after 851295 ms
08-11 21:42:31.419: I/libblt_hw(1660): Library closed (handle = 6, fd = 50)
08-11 21:42:32.791: I/libblt_hw(1660): Library opened (handle = 6, fd = 50)
08-11 21:42:32.791: I/PowerManagerService(2097): Going to sleep by user request...
08-11 21:42:32.831: I/libblt_hw(2097): Library opened (handle = 0, fd = 222)
08-11 21:42:33.502: D/LightsService(2097): Excessive delay setting light: 149ms
08-11 21:42:33.502: D/LightsService(2097): Excessive delay setting light: 149ms
08-11 21:42:33.502: D/SurfaceFlinger(1660): Screen released, type=0 flinger=0x40746450
08-11 21:42:33.532: D/ALPS_COMPASS(2097): INV SENSOR ENABLE 0 -0
08-11 21:42:33.532: I/PowerManagerService(2097): Waking up from sleep...
08-11 21:42:33.562: I/sec_anm_ahi(1663): setParameters() - screen_state=off
08-11 21:42:33.562: D/tms_audio_hw/AudioTmsIpc(1663): adev_set_parameters : Enter
08-11 21:42:33.562: D/tms_audio_hw/AudioTmsIpc(1663): adev_set_parameters : Exit
08-11 21:42:33.782: I/libblt_hw(2097): Library closed (handle = 0, fd = 222)
08-11 21:42:33.892: D/PowerManagerService-JNI(2097): Excessive delay in autosuspend_enable() while turning screen off: 383ms
08-11 21:42:34.052: D/PowerManagerService-JNI(2097): Excessive delay in autosuspend_disable() while turning screen on: 163ms
08-11 21:42:34.052: D/SurfaceFlinger(1660): Screen acquired, type=0 flinger=0x40746450
08-11 21:42:34.072: W/View(2204): requestLayout() improperly called by android.widget.TextClock{42941980 V.ED.... ......ID 0,0-229,129 #7f090008 app:id/large_time_component_1} during layout: running second layout pass
08-11 21:42:34.072: W/View(2204): requestLayout() improperly called by android.widget.TextClock{422e16f8 V.ED.... ......ID 0,0-37,29 #7f09000e app:id/date_component_1} during layout: running second layout pass
08-11 21:42:34.072: W/View(2204): requestLayout() improperly called by android.widget.TextClock{422e1cf8 V.ED.... ......ID 46,0-70,29 #7f09000f app:id/date_component_2} during layout: running second layout pass
08-11 21:42:34.072: W/View(2204): requestLayout() improperly called by android.widget.TextClock{422cd3a0 V.ED.... ......ID 79,0-125,29 #7f090010 app:id/date_component_3} during layout: running second layout pass
08-11 21:42:34.072: W/View(2204): requestLayout() improperly called by android.widget.TextView{422ce930 V.ED.... ......ID 51,6-81,39 #7f090035 app:id/collapsed_extension_text} during layout: running second layout pass
08-11 21:42:34.322: I/InputDispatcher(2097): Dropped event because input dispatch is disabled.
08-11 21:42:34.362: D/ALPS_COMPASS(2097): INV SENSOR ENABLE 0 -1
08-11 21:42:34.402: I/sec_anm_ahi(1663): setParameters() - screen_state=on
08-11 21:42:34.402: D/tms_audio_hw/AudioTmsIpc(1663): adev_set_parameters : Enter
08-11 21:42:34.402: D/tms_audio_hw/AudioTmsIpc(1663): adev_set_parameters : Exit
08-11 21:42:34.492: I/WindowManager(2097): Lock screen displayed!
08-11 21:42:34.492: D/DisplayPowerController(2097): Unblocked screen on after 854388 ms
08-11 21:42:34.512: I/libblt_hw(1660): Library closed (handle = 6, fd = 50)
08-11 21:42:36.975: I/healthd(1654): battery l=15 v=3 t=33.8 h=2 st=2 c=0 chg=u

Help appreciated. Thanks in advance!

//edit, more info

Kernel and Rom:

http://xdaforums.com/showthread.php?t=2557997

Recovery used:

http://xdaforums.com/showthread.php?t=2678274

Logcat done using bash$ android-sdk-linux/tools/monitor -> save as -> while running new rom.

GT-I8190

Android 4.4.4

Baseband I8190XXAMG4

Kernel 3.0.101-novafusion+

SELinux deactivated