[X Style (Pure) Q&A, Help & Troubleshooting] B.MANU:
Hello there,

been searching a solution for a while, but did not find anything that would help fix my issue.

My issue is that the screen turns black (not dimming, or fading to black but suddenly switching black), while the phone is still on.

This can occur under those conditions :

- Watching a twitch stream

- Watching youtube video

- Browsing a web page

- browsing the photo gallery

- playing some games

I know the phone is still on cause the audio is still running while watching video (stream and/or youtube), or playing a game.

What is really weir is that, for example when this occur in the photo-gallery, if I continue to scroll down (or up), the screen will re-appear as if nothing happens. Same when browsing some web page (mostly when this is a photo-gallery).

What is even more weird is that it will occur always on the same photos in the gallery. Let say I have a large number of photo (1000+), if I remove the photo that I identified as causing this issue , I can then browse the photo gallery without the screen going black (until i'll reach another photo that will cause the same issue). And it might as well occur only if in portrait mode, if I rotate the screen to be in landscape display, it would not occur...

So initially I had stock 5.1.1 (that was working quite well till this happened). I then decided to upgrade with OTA, but this issue remained. Other users complaining about similar behavior related to Moto attentive display being turned on/off would solve the issue for them... but that did not solve the issue. So that's why I decided to go for a custom rom.

I moved to CM13 yesterday with great hopes... but still the same issue occurs. (and during the CM13 installation process I did really clear all possible partition/cache/etc...). Even after the fresh install with stock apps, the issues occurred when browsing some web sites (always the same that I know for sure will cause this : TheChive, however other web site does also cause the issue) and after copying back my photos on the phone (photos taken with the internal cam) and browsing them with the gallery app.

Any clue what I should be checking ? Tried and adb logcat and captured the logs when I browse the gallery and got this black screen issue.

From the logs I see some weird things like "08-15 17:30:21.519 414 552 I qdhwcomposer: getPanelResetStatus: got change event in fb0 with PANEL_ALIVE=0

08-15 17:30:21.644 414 414 W qdhwcomposer: hwc_prepare: panel is in bad state. reset the panel"

08-15 17:30:20.538 5351 7327 D Paper : Rect(476, 36652 - 941, 37117)

08-15 17:30:20.540 5351 7327 D Paper : Rect(0, 36652 - 465, 37117)

08-15 17:30:20.540 5351 7327 D Paper : Rect(952, 36176 - 1417, 36641)

08-15 17:30:20.545 5351 7327 D Paper : Rect(476, 36176 - 941, 36641)

08-15 17:30:20.548 5351 7327 D Paper : Rect(0, 36176 - 465, 36641)

08-15 17:30:21.519 414 552 I qdhwcomposer: getPanelResetStatus: got change event in fb0 with PANEL_ALIVE=0

08-15 17:30:21.644 414 414 W qdhwcomposer: hwc_prepare: panel is in bad state. reset the panel

08-15 17:30:21.644 414 414 D qdhwcomposer: reset_panel: setting power mode off

08-15 17:30:21.644 414 414 D qdhwcomposer: hwc_setPowerMode: Setting mode 0 on display: 0

08-15 17:30:21.912 414 553 I qdhwcomposer: handle_blank_event: dpy:0 panel power state: 0

08-15 17:30:21.913 414 414 D qdhwcomposer: hwc_setPowerMode: Done setting mode 0 on display 0

08-15 17:30:21.913 414 414 D qdhwcomposer: reset_panel: setting power mode normal and enabling vsync

08-15 17:30:21.913 414 414 D qdhwcomposer: hwc_setPowerMode: Setting mode 2 on display: 0

08-15 17:30:22.116 414 553 I qdhwcomposer: handle_blank_event: dpy:0 panel power state: 1

08-15 17:30:22.119 414 414 D qdhwcomposer: hwc_setPowerMode: Done setting mode 2 on display 0

08-15 17:30:24.569 420 420 I MSM-irqbalance: Decided to move IRQ283 from CPU3 to CPU0

08-15 17:30:25.090 923 2718 D WifiStateMachine: starting scan for "BAS"-WPA_PSK with 2472

08-15 17:30:27.639 4473 5489 I ClearcutLoggerApiImpl: disconnect managed GoogleApiClient

Could it be some H/W gpu/ram issues ? still... got puzzled why this would happen always with the very same photos (which are readable with any other device or, if you rotate the screen for landscape mode...)

Really lost here.

Regards,

Manu

Edit :

I just noticed I had slightly different behavior if using the stock photo gallery 1.1.40030 (com.android.gallery3d) or the moto gallery 530032 (com.motorola.MotGallery2), in both case the screen will go black, but on different photos (but the result is consistent, always the same make the screen go black for each version of the gallery)....

Not specially focusing on "Gallery", but it's the easiest way to reproduce the issue.

Also had the issue while browsing some news web pages, on one part of the web page the screen will go (and stay) black, if I continue scrolling, the screen will then turn on again, and if I scroll up the page on the same place that caused this black screen, it will immediately go black again, etc etc... it's like if when a specific pattern is displayed, it will cause the screen to shutdown.... does not make really make sense... but 100% reproducible....

I recorded the display with a capture tool, to "see" what happens when the screen turns black. Nothing... on the capture the screen is always on, no glitch, screen garbage or display artefact whatsoever.

and since the question was asked, some more system details :

Cyanogenmod :CM 13.0-20160814-Nightly-clark

Kernel : 3.10.102-CM-g2396296 (13-august 2016)

Baseband : M8992_125531.29.01.88.02R