[AT&T, Rogers HTC One X, Telstra One XL] thelonewolf_pav:
Hey jrior001 man,

Can I waste a couple of minutes more of your time? :)

So, I'm trying to get your ROM to have ambient display. I installed xposed and added a module that enables it in settings (effectively, it does the same thing as recompiling SystemUI and framework-res and changing flags like doze_display_state_supported and config_dozeAfterScreenOff. I guess you know what I'm talking about. I looked at the original java code, and all it seems to do is enter the daydream state with some special mode enabled.

So, everything seems to be working great, but instead of getting the dimmed black-and-white display, I get nothing, the display stays blank. Doze is working though, because the moment I touch the screen, it comes up in full color just as it should. So, it does wake up and enter daydream, but just doesn't show anything.

Now, looking at logcats at that time, here's what I see:

E/qdoverlay( 160): Failed to call ioctl MSMFB_DISPLAY_COMMIT err=Operation not permitted
E/qdoverlay( 160): static bool overlay::eek:verlay::displayCommit(const int&, uint32_t): commit failed
E/qdhwcomposer( 160): hwc_set_primary: display commit fail for 0 dpy!
E/qdoverlay( 160): Failed to call ioctl MSMFB_OVERLAY_SET err=Operation not permitted
E/qdoverlay( 160): MdpCtrl failed to setOverlay, restoring last known good ov info
E/qdoverlay( 160): == Bad OVInfo is: mdp_overlay z=0 fg=1 alpha=255 mask=-1 flags=0x40000 id=-1
E/qdoverlay( 160): src msmfb_img w=736 h=1280 format=0 MDP_RGB_565
E/qdoverlay( 160): src_rect mdp_rect x=0 y=0 w=720 h=1280
E/qdoverlay( 160): dst_rect mdp_rect x=0 y=0 w=720 h=1280
E/qdoverlay( 160): == Last good known OVInfo is: mdp_overlay z=0 fg=0 alpha=0 mask=0 flags=0x0 id=-1
E/qdoverlay( 160): src msmfb_img w=0 h=0 format=0 MDP_RGB_565
E/qdoverlay( 160): src_rect mdp_rect x=0 y=0 w=0 h=0
E/qdoverlay( 160): dst_rect mdp_rect x=0 y=0 w=0 h=0
E/qdoverlay( 160): MdpCtrl Lkgo ov has id -1, will not restore
E/qdoverlay( 160): Ctrl commit failed set overlay
E/qdhwcomposer( 160): configureLowRes: commit failed for low res panel
E/qdoverlay( 160): Failed to call ioctl MSMFB_OVERLAY_SET err=Operation not permitted
E/qdoverlay( 160): MdpCtrl failed to setOverlay, restoring last known good ov info
E/qdoverlay( 160): == Bad OVInfo is: mdp_overlay z=0 fg=0 alpha=255 mask=-1 flags=0x20000 id=-1
E/qdoverlay( 160): src msmfb_img w=736 h=1280 format=13 MDP_RGBA_8888
E/qdoverlay( 160): src_rect mdp_rect x=0 y=0 w=720 h=1280
E/qdoverlay( 160): dst_rect mdp_rect x=0 y=0 w=720 h=1280
E/qdoverlay( 160): == Last good known OVInfo is: mdp_overlay z=0 fg=0 alpha=0 mask=0 flags=0x0 id=-1
E/qdoverlay( 160): src msmfb_img w=0 h=0 format=0 MDP_RGB_565
E/qdoverlay( 160): src_rect mdp_rect x=0 y=0 w=0 h=0
E/qdoverlay( 160): dst_rect mdp_rect x=0 y=0 w=0 h=0
E/qdoverlay( 160): MdpCtrl Lkgo ov has id -1, will not restore
E/qdoverlay( 160): Ctrl commit failed set overlay
E/qdhwcomposer( 160): configure: configMdp failed for dpy 0
E/qdhwcomposer( 160): hwc_sync: ioctl MSMFB_BUFFER_SYNC failed, err=Operation not permitted
E/qdhwcomposer( 160): hwc_sync: acq_fen_fd_cnt=1 flags=0 fd=15 dpy=0 numHwLayers=3

This repeats many times until the phone goes back to sleep or until I touch the screen and wake it up.

Strangely enough, regular daydreams do work, and clock, for example, displays fine on a dimmed black-and-white screen.

Any ideas where to look?

Thanks in advance!