Screen Off/Black issue

Post Reply
kafan1986
Posts: 100
Joined: Tue Feb 27, 2018 8:05 am
languages_spoken: english
Has thanked: 4 times
Been thanked: 4 times
Contact:

Screen Off/Black issue

Unread post by kafan1986 » Sat Sep 07, 2019 1:05 am

Update 6: I have tried everything from multiple HDMI cable, using different hdmi port on tv, etc. I have noticed one additional thing. Sometimes disconnecting and reconnecting the HDMI cable after being stranded on black screen returns the correct display but this behaviour is also random and most times replugging the HDMI does not help. Also, if one disconnects the HDMI cable 2-3 time with the HDMI CEC ON and even with suspend_hdmiphy "0", the N2 somehow manages to shut itself down. Below error block message when TV is switched and gives black display.

When Switched off:

Code: Select all

2019-09-06 13:39:42.646 3035-3035/? I/hdmicecd-client: notifyCallback event type:1
2019-09-06 13:39:42.647 3248-3248/system_process I/PowerManagerService: Going to sleep due to HDMI standby (uid 1000)...
2019-09-06 13:39:42.647 3402-3990/com.droidlogic D/HdmiCecExtend: onCecMessageRx intitiator = 0x00 opcode = 0x36
2019-09-06 13:39:43.296 3248-3248/system_process W/Binder: Outgoing transactions from this process must be FLAG_ONEWAY
    java.lang.Throwable
        at android.os.BinderProxy.transact(Binder.java:1114)
        at android.hardware.hdmi.IHdmiVendorCommandListener$Stub$Proxy.onControlStateChanged(IHdmiVendorCommandListener.java:125)
        at com.android.server.hdmi.HdmiControlService.invokeVendorCommandListenersOnControlStateChanged(HdmiControlService.java:2193)
        at com.android.server.hdmi.HdmiControlService.onStandby(HdmiControlService.java:2069)
        at com.android.server.hdmi.HdmiControlService.access$100(HdmiControlService.java:91)
        at com.android.server.hdmi.HdmiControlService$HdmiControlBroadcastReceiver.onReceive(HdmiControlService.java:149)
        at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0(LoadedApk.java:1391)
        at android.app.-$$Lambda$LoadedApk$ReceiverDispatcher$Args$_BumDX2UKsnxLVrE6UJsJZkotuA.run(Unknown Source:2)
        at android.os.Handler.handleCallback(Handler.java:873)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:193)
        at com.android.server.SystemServer.run(SystemServer.java:461)
        at com.android.server.SystemServer.main(SystemServer.java:297)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:838)
2019-09-06 13:39:43.296 3402-3435/com.droidlogic D/HdmiCecExtend: enabled = false, reason = 3
2019-09-06 13:39:43.297 3248-3248/system_process V/HdmiControlService: On standby-action cleared:4
2019-09-06 13:39:43.297 3248-3248/system_process V/HdmiControlService: onStandbyCompleted
2019-09-06 13:39:43.297 3014-3181/? I/hdmicecd: setOption key: 3, value:0
2019-09-06 13:39:43.297 3016-3148/? E/SystemControl: writeSysFs, open /sys/class/hdmirx/hdmirx0/cec fail.
2019-09-06 13:39:43.297 3016-3148/? I/SystemControl: write /sys/class/hdmirx/hdmirx0/cec, val:1 end
2019-09-06 13:39:43.297 3014-3181/? D/hdmicecd: [hcc] setOption, flag:0x3, value:0x0, ret:0, isCecControlled:0
Re-Switched ON:

Code: Select all

2019-09-06 13:42:24.117 3016-3093/? I/SystemControl: Matched uevent message with pattern: DEVPATH=/devices/virtual/amhdmitx/amhdmitx0/hdmi
2019-09-06 13:42:24.117 3016-3093/? I/SystemControl: HDCP TX switch_name: hdmi ,switch_state: 0
2019-09-06 13:42:24.117 3016-3093/? I/SystemControl: onTxEvent switchName:hdmi hpdstate:0 state: 1
2019-09-06 13:42:24.118 3016-3093/? I/SystemControl: getBootEnv key:ubootenv.var.hdmimode value:1080p60hz
2019-09-06 13:42:24.118 3016-3093/? I/SystemControl: getBootEnv key:ubootenv.var.hdmimode value:1080p60hz
2019-09-06 13:42:24.118 3016-3093/? I/SystemControl: getBootEnv(ubootenv.var.hdmimode, 1080p60hz)
2019-09-06 13:42:24.118 3016-3093/? I/SystemControl: write /sys/devices/virtual/amhdmitx/amhdmitx0/avmute, val:1 end
2019-09-06 13:42:24.118 3016-3093/? I/SystemControl: write /sys/class/amhdmitx/amhdmitx0/hdcp_pwr, val:1 end
2019-09-06 13:42:24.147 3248-3316/system_process W/ExtconUEventObserver: No match found for DEVPATH of {SUBSYSTEM=extcon, SEQNUM=2807, ACTION=change, DEVTYPE=hdmi_audio, STATE=HDMI=0, DEVPATH=/devices/virtual/amhdmitx/amhdmitx0/hdmi_audio, NAME=hdmitx_extcon_audio} in {/devices/virtual/amhdmitx/amhdmitx0/hdmi=com.android.server.ExtconUEventObserver$ExtconInfo@7b0162f}
2019-09-06 13:42:24.148 3402-3990/com.droidlogic W/System.err: java.lang.IllegalArgumentException: Sticky broadcast Intent { act=android.intent.action.HDMI_PLUGGED flg=0x10 (has extras) } for user 0 conflicts with existing global broadcast
2019-09-06 13:42:24.162 3016-3093/? I/SystemControl: write /sys/class/amhdmitx/amhdmitx0/hdcp_ctrl, val:stop14 end
2019-09-06 13:42:24.162 3016-3093/? I/SystemControl: write /sys/class/amhdmitx/amhdmitx0/hdcp_ctrl, val:stop22 end
2019-09-06 13:42:24.164 3016-3093/? I/SystemControl: get hdmi color attribute : [444,8bit], outputmode is: [1080p60hz] , and support color list is: [rgb,8bit]
2019-09-06 13:42:24.276 3014-3183/? D/hdmicecd: [hcc] port:0, connect status changed, now:0, prevStatus:1
2019-09-06 13:42:24.304 3016-3093/? I/SystemControl: write /sys/class/amhdmitx/amhdmitx0/phy, val:1 end
2019-09-06 13:42:24.324 3016-3093/? E/SystemControl: writeSysFs, open /sys/class/amhdmitx/amhdmitx0/aud_mute fail.
2019-09-06 13:42:24.324 3016-3093/? I/SystemControl: write /sys/class/amhdmitx/amhdmitx0/aud_mute, val:1 end
2019-09-06 13:42:24.324 3016-3093/? E/SystemControl: writeSysFs, open /sys/class/amhdmitx/amhdmitx0/aud_mute fail.
2019-09-06 13:42:24.324 3016-3093/? I/SystemControl: write /sys/class/amhdmitx/amhdmitx0/aud_mute, val:0 end
2019-09-06 13:42:24.324 3016-3093/? I/SystemControl: write /sys/devices/virtual/amhdmitx/amhdmitx0/avmute, val:-1 end
2019-09-06 13:42:24.329 3016-3093/? I/SystemControl: [ubootenv] update value [ubootenv.var.hdmimode : 1080p60hz] 
2019-09-06 13:42:24.330 3016-3093/? I/SystemControl: Matched uevent message with pattern: DEVPATH=/devices/virtual/amhdmitx/amhdmitx0/hdmi_audio
2019-09-06 13:42:24.330 3016-3093/? I/SystemControl: HDCP TX switch_name: hdmi_audio ,switch_state: 0
2019-09-06 13:42:24.330 3016-3093/? I/SystemControl: onTxEvent switchName:hdmi_audio hpdstate:0 state: 1
2019-09-06 13:42:26.160 3016-3093/? I/SystemControl: Matched uevent message with pattern: DEVPATH=/devices/virtual/amhdmitx/amhdmitx0/hdmi
2019-09-06 13:42:26.160 3016-3093/? I/SystemControl: HDCP TX switch_name: hdmi ,switch_state: 1
2019-09-06 13:42:26.160 3016-3093/? I/SystemControl: onTxEvent switchName:hdmi hpdstate:1 state: 1
2019-09-06 13:42:26.160 3016-3093/? I/SystemControl: General caps
    Rx Manufacturer Name: GSM
    Rx Product Code: 0001
    Rx Serial Number: 01010101
    Rx Product Name: LG
    Manufacture Week: 1
    Manufacture Year: 2014
    Physcial size(cm): 160 x 90
    EDID Version: 1.3
    EDID block number: 0x1
    blk0 chksum: 0x41
    Source Physical Address[a.b.c.d]: 1.0.0.0
    native Mode f1, VIC (native 31):
    ColorDeepSupport 80
    16 31 4 19 5 20 3 2 18 32 33 34 21 1 
    Audio {format, channel, freq, cce}
    {2, 5, 7, 0}
    {1, 1, 57, 7}
    Speaker Allocation: 0
    Vendor: 0xc03 ( HDMI device)
    MaxTMDSClock1 150 MHz
    vLatency:  Invalid/Unknown
    aLatency:  Invalid/Unknown
    i_vLatency:  Invalid/Unknown
    i_aLatency:  Invalid/Unknown
    SCDC: 0
    RR_Cap: 0
    LTE_340M_Scramble: 0
    
    checkvalue: 0x41250000
2019-09-06 13:42:26.161 3016-3093/? I/SystemControl: getBootEnv key:ubootenv.var.hdmimode value:1080p60hz
2019-09-06 13:42:26.161 3016-3093/? I/SystemControl: getBootEnv key:ubootenv.var.hdmimode value:1080p60hz
2019-09-06 13:42:26.161 3016-3093/? I/SystemControl: getBootEnv(ubootenv.var.hdmimode, 1080p60hz)
2019-09-06 13:42:26.161 3016-3093/? I/SystemControl: write /sys/devices/virtual/amhdmitx/amhdmitx0/avmute, val:1 end
2019-09-06 13:42:26.161 3016-3093/? I/SystemControl: write /sys/class/amhdmitx/amhdmitx0/hdcp_pwr, val:1 end
2019-09-06 13:42:26.170 3248-3316/system_process W/ExtconUEventObserver: No match found for DEVPATH of {SUBSYSTEM=extcon, SEQNUM=2809, ACTION=change, DEVTYPE=hdmi_audio, STATE=HDMI=1, DEVPATH=/devices/virtual/amhdmitx/amhdmitx0/hdmi_audio, NAME=hdmitx_extcon_audio} in {/devices/virtual/amhdmitx/amhdmitx0/hdmi=com.android.server.ExtconUEventObserver$ExtconInfo@7b0162f}
2019-09-06 13:42:26.173 3402-3990/com.droidlogic W/System.err: java.lang.IllegalArgumentException: Sticky broadcast Intent { act=android.intent.action.HDMI_PLUGGED flg=0x10 (has extras) } for user 0 conflicts with existing global broadcast
2019-09-06 13:42:26.202 3016-3093/? I/SystemControl: write /sys/class/amhdmitx/amhdmitx0/hdcp_ctrl, val:stop14 end
2019-09-06 13:42:26.202 3016-3093/? I/SystemControl: write /sys/class/amhdmitx/amhdmitx0/hdcp_ctrl, val:stop22 end
2019-09-06 13:42:26.205 3016-3093/? I/SystemControl: get hdmi color attribute : [444,8bit], outputmode is: [1080p60hz] , and support color list is: [444,8bit422,8bitrgb,8bit]
2019-09-06 13:42:26.342 3016-3093/? I/SystemControl: write /sys/class/amhdmitx/amhdmitx0/phy, val:1 end
2019-09-06 13:42:26.356 3014-3183/? D/hdmicecd: [hcc] port:0, connect status changed, now:1, prevStatus:0
2019-09-06 13:42:26.362 3016-3093/? E/SystemControl: writeSysFs, open /sys/class/amhdmitx/amhdmitx0/aud_mute fail.
2019-09-06 13:42:26.362 3016-3093/? I/SystemControl: write /sys/class/amhdmitx/amhdmitx0/aud_mute, val:1 end
2019-09-06 13:42:26.362 3016-3093/? E/SystemControl: writeSysFs, open /sys/class/amhdmitx/amhdmitx0/aud_mute fail.
2019-09-06 13:42:26.362 3016-3093/? I/SystemControl: write /sys/class/amhdmitx/amhdmitx0/aud_mute, val:0 end
2019-09-06 13:42:26.362 3016-3093/? I/SystemControl: write /sys/devices/virtual/amhdmitx/amhdmitx0/avmute, val:-1 end
2019-09-06 13:42:26.364 3016-3093/? I/SystemControl: [ubootenv] update value [ubootenv.var.hdmimode : 1080p60hz] 
2019-09-06 13:42:26.364 3016-3093/? I/SystemControl: Matched uevent message with pattern: DEVPATH=/devices/virtual/amhdmitx/amhdmitx0/hdmi_audio
2019-09-06 13:42:26.364 3016-3093/? I/SystemControl: HDCP TX switch_name: hdmi_audio ,switch_state: 1
2019-09-06 13:42:26.364 3016-3093/? I/SystemControl: onTxEvent switchName:hdmi_audio hpdstate:1 state: 1
2019-09-06 13:42:26.367 3019-3720/? I/audio_hw_primary: !!!get_sink_format() Sink devices 0 Source format 0x1 digital_format(hdmi_format) 0 Sink Capability 0x1
2019-09-06 13:42:26.369 3019-3720/? I/audio_hw_primary: !!!get_sink_format() Sink devices 0 Source format 0x9000000 digital_format(hdmi_format) 0 Sink Capability 0x1
2019-09-06 13:42:26.370 3019-3720/? D/audio_hw_profile: get_hdmi_sink_cap is running...
2019-09-06 13:42:26.370 3019-3720/? D/audio_hw_profile: query hdmi format...
2019-09-06 13:42:26.370 3019-3720/? D/audio_hw_profile: get_hdmi_sink_cap is running...
2019-09-06 13:42:26.370 3019-3720/? D/audio_hw_profile: query hdmi sample_rate...
2019-09-06 13:42:26.371 3019-3720/? D/audio_hw_profile: get_hdmi_sink_cap is running...
2019-09-06 13:42:26.371 3019-3720/? D/audio_hw_profile: query hdmi channels...
2019-09-06 13:42:26.371 3019-3720/? D/audio_hw_profile: get_hdmi_sink_cap is running...
2019-09-06 13:42:26.371 3019-3720/? D/audio_hw_profile: query hdmi sample_rate...
2019-09-06 13:42:26.371 3019-3720/? D/audio_hw_profile: get_hdmi_sink_cap is running...
2019-09-06 13:42:26.371 3019-3720/? D/audio_hw_profile: query hdmi channels...
2019-09-06 13:42:26.371 3019-3720/? D/audio_hw_profile: get_hdmi_sink_cap is running...
2019-09-06 13:42:26.372 3019-3720/? D/audio_hw_profile: query hdmi sample_rate...
2019-09-06 13:42:26.372 3019-3720/? D/audio_hw_profile: get_hdmi_sink_cap is running...
2019-09-06 13:42:26.372 3019-3720/? D/audio_hw_profile: query hdmi channels...
2019-09-06 13:42:26.377 3019-3178/? I/audio_hw_primary: !!!get_sink_format() Sink devices 0 Source format 0x9000000 digital_format(hdmi_format) 0 Sink Capability 0x1
2019-09-06 13:42:26.393 3393-3393/com.android.systemui V/MediaRouter: Audio routes updated: AudioRoutesInfo{ type=HDMI }, a2dp=false
2019-09-06 13:42:26.393 3248-3248/system_process V/MediaRouter: Audio routes updated: AudioRoutesInfo{ type=HDMI }, a2dp=false
2019-09-06 13:42:26.393 3393-3393/com.android.systemui V/MediaRouter: Selecting route: RouteInfo{ name=HDMI, description=null, status=null, category=RouteCategory{ name=System types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }
2019-09-06 13:42:26.393 3248-3248/system_process V/MediaRouter: Selecting route: RouteInfo{ name=HDMI, description=null, status=null, category=RouteCategory{ name=System types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }
Sometime reconnection hdmi brings display back, during such event the log is as below:

Code: Select all

2019-09-06 13:40:13.385 2886-3057/? I/hdmicecd: setOption key: 3, value:1
2019-09-06 13:40:13.385 2888-3047/? E/SystemControl: writeSysFs, open /sys/class/hdmirx/hdmirx0/cec fail.
2019-09-06 13:40:13.385 2888-3047/? I/SystemControl: write /sys/class/hdmirx/hdmirx0/cec, val:1 end
2019-09-06 13:40:13.385 2886-3057/? D/hdmicecd: [hcc] setOption, flag:0x3, value:0x1, ret:0, isCecControlled:1
2019-09-06 13:40:13.387 2886-3057/? I/hdmicecd: setOption key: 5, value:1
2019-09-06 13:40:13.387 2886-3057/? D/hdmicecd: [hcc] setOption, flag:0x5, value:0x1, ret:0, isCecControlled:1
2019-09-06 13:40:13.387 2886-3057/? I/hdmicecd: clearLogicalAddress
2019-09-06 13:40:13.388 2886-3057/? D/hdmicecd: bitmap:8000
2019-09-06 13:40:13.388 2886-3057/? I/hdmicecd: clearLogicalAddress
2019-09-06 13:40:13.388 2886-3057/? D/hdmicecd: bitmap:8000
2019-09-06 13:40:13.651 3736-3736/com.google.android.gms V/MediaRouter: Audio routes updated: AudioRoutesInfo{ type=HDMI }, a2dp=false
2019-09-06 13:40:13.652 3736-3736/com.google.android.gms V/MediaRouter: Selecting route: RouteInfo{ name=HDMI, description=null, status=null, category=RouteCategory{ name=System types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }
2019-09-06 13:40:13.657 3736-3736/com.google.android.gms I/MediaRouter: Found default route: MediaRouter.RouteInfo{ uniqueId=android/aod:DEFAULT_ROUTE, name=HDMI, description=null, iconUri=null, enabled=true, connectionState=0, canDisconnect=false, playbackType=0, playbackStream=3, deviceType=0, volumeHandling=1, volume=13, volumeMax=15, presentationDisplayId=-1, extras=null, settingsIntent=null, providerPackageName=android }
2019-09-06 13:40:13.666 3736-3736/com.google.android.gms V/MediaRouter: Selecting route: RouteInfo{ name=HDMI, description=null, status=null, category=RouteCategory{ name=System types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }
2019-09-06 13:40:13.701 2886-3057/? D/hdmicecd: [hcc] getPhysicalAddress, physical addr: 1000, ret = 0
2019-09-06 13:40:13.701 2886-3057/? D/hdmicecd: [hcc] getPhysicalAddress, physical addr: 1000, ret = 0
2019-09-06 13:40:13.702 2886-3053/? D/hdmicecd: [hcc] getVendorId, vendorId: 0, ret = 0
2019-09-06 13:40:13.702 2886-3053/? I/hdmicecd: getVendorId vendorId: 0
2019-09-06 13:40:13.702 2886-3057/? I/hdmicecd: addLogicalAddress addr: 4
2019-09-06 13:40:13.702 2886-3057/? D/hdmicecd: [hcc] addr:4, bitmap:8010
2019-09-06 13:40:13.703 3282-3873/com.droidlogic D/HdmiCecExtend: onAddressAllocated:0x04
2019-09-06 13:40:13.703 3282-3312/com.droidlogic D/HdmiCecExtend: enabled = true, reason = 2
2019-09-06 13:40:13.704 2908-2908/? I/hdmicecd-client: notifyCallback event type:4
2019-09-06 13:40:13.704 2886-3057/? D/hdmicecd: [hcc] getPhysicalAddress, physical addr: 1000, ret = 0
2019-09-06 13:40:13.704 2886-3057/? D/hdmicecd: [hcc] getVendorId, vendorId: 0, ret = 0
2019-09-06 13:40:13.704 2886-3057/? I/hdmicecd: getVendorId vendorId: 0
2019-09-06 13:40:13.804 3282-3282/com.droidlogic I/HdmiCecExtend: rebootmode: 
2019-09-06 13:40:13.805 3282-3282/com.droidlogic I/HdmiCecExtend: rebootmode noraml
2019-09-06 13:40:13.907 2886-3053/? D/hdmicecd: [hcc] isExtend = 1, mExtendControl = 3
2019-09-06 13:40:14.089 3282-4764/com.droidlogic D/HdmiCecExtend: sendCecMessage, dest: 0, body: 0D
2019-09-06 13:40:14.537 2908-2908/? I/hdmicecd-client: notifyCallback event type:1
2019-09-06 13:40:14.538 3282-3873/com.droidlogic D/HdmiCecExtend: onCecMessageRx intitiator = 0x00 opcode = 0x90
2019-09-06 13:40:14.539 3282-3312/com.droidlogic D/HdmiCecExtend: OneTouchPlayCallback, onComplete: 0
2019-09-06 13:40:21.502 2908-2908/? I/hdmicecd-client: notifyCallback event type:1
2019-09-06 13:40:21.503 3282-3873/com.droidlogic D/HdmiCecExtend: onCecMessageRx intitiator = 0x00 opcode = 0x89
2019-09-06 13:40:21.813 2908-2908/? I/hdmicecd-client: notifyCallback event type:1
2019-09-06 13:40:21.814 3282-3873/com.droidlogic D/HdmiCecExtend: onCecMessageRx intitiator = 0x00 opcode = 0x89
2019-09-06 13:40:21.907 3282-3873/com.droidlogic D/HdmiCecExtend: onCecMessageRx intitiator = 0x00 opcode = 0x1a
2019-09-06 13:40:22.011 3282-3873/com.droidlogic D/HdmiCecExtend: onCecMessageRx intitiator = 0x00 opcode = 0x1a
2019-09-06 13:40:22.087 3282-3873/com.droidlogic D/HdmiCecExtend: onCecMessageRx intitiator = 0x00 opcode = 0x8f
2019-09-06 13:40:22.226 2908-2908/? I/hdmicecd-client: notifyCallback event type:1
2019-09-06 13:40:22.226 2908-2908/? I/hdmicecd-client: notifyCallback event type:1
2019-09-06 13:40:22.226 2908-2908/? I/hdmicecd-client: notifyCallback event type:1
2019-09-06 13:40:22.227 3123-3123/system_process W/HDMI: [1]:No validation information for the message: <Give Deck Status> src: 0, dst: 4, params: 01
2019-09-06 13:40:22.227 3123-3123/system_process W/HDMI: [3]:No validation information for the message: <Deck Status> src: 4, dst: 0, params: 20
2019-09-06 13:40:22.227 3123-3123/system_process W/HDMI: [2]:No validation information for the message: <Give Deck Status> src: 0, dst: 4, params: 03
2019-09-06 13:40:22.686 2908-2908/? I/hdmicecd-client: notifyCallback event type:1
2019-09-06 13:40:22.687 3282-3873/com.droidlogic D/HdmiCecExtend: onCecMessageRx intitiator = 0x00 opcode = 0x83
2019-09-06 13:40:22.688 2886-3053/? D/hdmicecd: [hcc] getPhysicalAddress, physical addr: 1000, ret = 0
2019-09-06 13:40:32.105 2908-2908/? I/hdmicecd-client: notifyCallback event type:1
2019-09-06 13:40:32.105 3282-3873/com.droidlogic D/HdmiCecExtend: onCecMessageRx intitiator = 0x00 opcode = 0x87
2019-09-06 13:40:47.268 2908-2908/? I/hdmicecd-client: notifyCallback event type:1
2019-09-06 13:40:47.269 3282-3873/com.droidlogic D/HdmiCecExtend: onCecMessageRx intitiator = 0x00 opcode = 0x87
2019-09-06 13:41:02.431 2908-2908/? I/hdmicecd-client: notifyCallback event type:1
2019-09-06 13:41:02.432 3282-3873/com.droidlogic D/HdmiCecExtend: onCecMessageRx intitiator = 0x00 opcode = 0x87
Update 5: The problem I believe has nothing to do with HDMI CEC rather N2 itself (HDMI hardware or software and compatibility). Even when I disabled HDMI CEC and switched off the connected TV, the black screen came back upon switching On the TV.

Update 4: The N2 is not off, the screen is black. I took a screenshot through adb and it is proper. But the TV is not showing anything. Pasting below the error log during switching my TV on from off state.

Code: Select all

2019-09-06 20:36:04.956 3400-3989/com.droidlogic E/android_os_HwBinder: Uncaught exception!
2019-09-06 20:36:05.001 2996-3088/? E/SystemControl: [ubootenv] value - 444,8bit
2019-09-06 20:36:05.001 2996-3088/? E/SystemControl: [ubootenv] value - 444,8bit
2019-09-06 20:36:05.158 2996-3088/? E/SystemControl: writeSysFs, open /sys/class/amhdmitx/amhdmitx0/aud_mute fail.
2019-09-06 20:36:05.158 2996-3088/? E/SystemControl: writeSysFs, open /sys/class/amhdmitx/amhdmitx0/aud_mute fail.
2019-09-06 20:36:07.001 3400-3989/com.droidlogic E/android_os_HwBinder: Uncaught exception!
2019-09-06 20:36:07.035 2996-3088/? E/SystemControl: [ubootenv] value - 444,8bit
2019-09-06 20:36:07.035 2996-3088/? E/SystemControl: [ubootenv] value - 444,8bit
2019-09-06 20:36:07.190 2996-3088/? E/SystemControl: writeSysFs, open /sys/class/amhdmitx/amhdmitx0/aud_mute fail.
2019-09-06 20:36:07.190 2996-3088/? E/SystemControl: writeSysFs, open /sys/class/amhdmitx/amhdmitx0/aud_mute fail.
2019-09-06 20:36:07.215 2999-3154/? E/audio_hw_primary: Amlogic_HAL - out_set_parameters: parameter is NULL, change ret value to 0 in order to pass VTS test.
2019-09-06 20:36:07.215 2999-3154/? E/audio_hw_primary: Amlogic_HAL - out_set_parameters: parameter is NULL, change ret value to 0 in order to pass VTS test.
2019-09-06 20:36:07.220 2999-3154/? E/audio_hw_primary: Amlogic_HAL - out_set_parameters: parameter is NULL, change ret value to 0 in order to pass VTS test.
2019-09-06 20:36:07.220 2999-3154/? E/audio_hw_primary: Amlogic_HAL - out_set_parameters: parameter is NULL, change ret value to 0 in order to pass VTS test.
2019-09-06 20:36:07.221 2999-3173/? E/audio_hw_primary: Amlogic_HAL - out_set_parameters: parameter is NULL, change ret value to 0 in order to pass VTS test.
2019-09-06 20:36:07.222 2999-3173/? E/audio_hw_primary: Amlogic_HAL - out_set_parameters: parameter is NULL, change ret value to 0 in order to pass VTS test.
2019-09-06 20:36:10.640 3234-3317/system_process E/WifiStateMachine: getWifiLinkLayerStats called without an interface
2019-09-06 20:36:10.651 2996-3166/? E/SystemControl: writeSysFs, open /sys/class/hdmirx/hdmirx0/cec fail.
2019-09-06 20:36:10.665 3008-3183/? E/gralloc: ioctl c0144900 failed with code -1: Operation not permitted
2019-09-06 20:36:10.679 3008-3183/? E/gralloc: ioctl c0144900 failed with code -1: Operation not permitted
2019-09-06 20:36:10.686 3008-3183/? E/gralloc: ioctl c0144900 failed with code -1: Operation not permitted
2019-09-06 20:36:10.709 3234-3341/system_process E/LightsService: Unknown error setting light.
2019-09-06 20:36:10.849 3234-3317/system_process E/WifiScanRequestProxy: Scan failure received. reason: -1,description: not available
Update 3: Tried setenv display_autodetect "false"/"true" nothing helped. Switching off the HDMI CEC is the only thing that prevents screen going to black, but I need to switch off/on TV from my N2.

Update 2: I have tried reconnecting the HDMI cable, making mouse clicks, running commands from terminal, while the N2 was in black state and it did not do anything. Although, once I had kept the TV off for 15 mins and switched it on and display returned. But soon after another switch off, the display went black. I can not reproduce this behaviour.

Update 1: With suspend_hdmiphy "0" the shutdown is prevented (I can run commands in adb), but the tv screen becomes black (I am using LG LED TV). And from the looks of it, the screen is not becoming black/dark, when the TV is first switched off, rather when the TV is switched on first time after switch off period, for a second while the TV is initializing and searching for signal the N2 screen is displayed and then everything goes black. Till now only reboot seems to have brought back the display and unlike the earlier case of shutdown, where TV outputs, no hdmi signal found, no such message is displayed. Look like the N2 is itself sending black screen signal via HDMI. I am running screen at 1080p 60Hz settings.

First post:
I just started testing odroid N2 after months, hoping for the best but found a simple problem that has not been solved yet, regarding HDMI CEC and tv on/off. I am using 20190820 latest image.

1) With HDMI CEC ON from Odroid Settings, setenv suspend_hdmiphy "0" does not prevent odroid n2 from going to sleep, when TVs power is switched off (not sure it is sleeping or not, both red and blue leds are glowing but there is no more display even after switching on the TV)
2) With HDMI CEC OFF, N2 does not sleep immediately atleast during power on/off of connected TV. But according to another thread both TV and Odroid go to sleep after few hours (not tested this one personally).

Also, I have a android device through which I want to run turn off and on the connected TV. What are the commands for that? Do these commands require "su" to run properly? If su is indeed required would a regular app run command as below, with "su" without getting error or magisk will be required? I have tried some commands on terminal without success for e.g.
(for turning off tv)

Code: Select all

su ; echo d > /sys/class/amhdmitx/amhdmitx0/cec
(for turning on tv)

Code: Select all

su ; echo d > /sys/class/amhdmitx/amhdmitx0/cec
My Java code inside my app will be using this code block:

Code: Select all

 Process ipProcess = runtime.exec("<whatever command>");
 ipProcess.waitFor();
 ipProcess.destroy();
Last edited by kafan1986 on Tue Sep 10, 2019 6:04 pm, edited 8 times in total.
These users thanked the author kafan1986 for the post:
linuxo (Tue Oct 01, 2019 12:25 am)

kafan1986
Posts: 100
Joined: Tue Feb 27, 2018 8:05 am
languages_spoken: english
Has thanked: 4 times
Been thanked: 4 times
Contact:

Re: Screen Off issue

Unread post by kafan1986 » Sun Sep 08, 2019 6:57 pm

@tobetter
1) Can I get the HDMI CEC commands for: a) Switching ON b) Switching OFF c) Knowing Powered status of TV
2) With suspend_hdmiphy "0" and HDMI CEC ON, although my N2 is not switching Off but the screen becomes black after switching on/off my LG LED TV. With HDMI CEC OFF no such problem is there during switching ON/OFF the TV, what different settings can I try?

@odroid Is the HK team on leave or vacation? I am not getting any help here. Is there something do to help debug this issue?

kafan1986
Posts: 100
Joined: Tue Feb 27, 2018 8:05 am
languages_spoken: english
Has thanked: 4 times
Been thanked: 4 times
Contact:

Re: Screen Off/Black issue

Unread post by kafan1986 » Thu Sep 19, 2019 11:43 pm

@tobetter

Can you help me debug the issue with TV screen going to black and also, letting me know the HDMI CEC terminal commands to switch on/off the TV.

User avatar
tobetter
Posts: 4123
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 48 times
Been thanked: 213 times
Contact:

Re: Screen Off/Black issue

Unread post by tobetter » Fri Sep 20, 2019 1:23 pm

kafan1986 wrote:
Thu Sep 19, 2019 11:43 pm
@tobetter

Can you help me debug the issue with TV screen going to black and also, letting me know the HDMI CEC terminal commands to switch on/off the TV.
@kafan1986, sorry...for some reason, I have not noticed the update of this thread. Please let me have a couple of days to look into it and get back you whatever I have for CEC issue.

kafan1986
Posts: 100
Joined: Tue Feb 27, 2018 8:05 am
languages_spoken: english
Has thanked: 4 times
Been thanked: 4 times
Contact:

Re: Screen Off/Black issue

Unread post by kafan1986 » Mon Sep 30, 2019 7:46 am

tobetter wrote:
Fri Sep 20, 2019 1:23 pm
kafan1986 wrote:
Thu Sep 19, 2019 11:43 pm
@tobetter

Can you help me debug the issue with TV screen going to black and also, letting me know the HDMI CEC terminal commands to switch on/off the TV.
@kafan1986, sorry...for some reason, I have not noticed the update of this thread. Please let me have a couple of days to look into it and get back you whatever I have for CEC issue.
@tobetter Can you take a look at this issue? I would like to close this issue once for all. There are too many separate threads reporting the same issue for many months, without any solution.

kafan1986
Posts: 100
Joined: Tue Feb 27, 2018 8:05 am
languages_spoken: english
Has thanked: 4 times
Been thanked: 4 times
Contact:

Re: Screen Off/Black issue

Unread post by kafan1986 » Sat Oct 05, 2019 3:44 pm

kafan1986 wrote:
Mon Sep 30, 2019 7:46 am
tobetter wrote:
Fri Sep 20, 2019 1:23 pm
kafan1986 wrote:
Thu Sep 19, 2019 11:43 pm
@tobetter

Can you help me debug the issue with TV screen going to black and also, letting me know the HDMI CEC terminal commands to switch on/off the TV.
@kafan1986, sorry...for some reason, I have not noticed the update of this thread. Please let me have a couple of days to look into it and get back you whatever I have for CEC issue.
@tobetter Can you take a look at this issue? I would like to close this issue once for all. There are too many separate threads reporting the same issue for many months, without any solution.
@tobetter
I will have physical access to HDMI CEC enabled LG tv for another week, before I move out for 2 weeks. Can we try to debug the issue now?

zohar
Posts: 11
Joined: Mon Jul 29, 2019 6:15 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Screen Off/Black issue

Unread post by zohar » Tue Oct 08, 2019 4:03 am

I think I have some similar issue:

I just installed the new 64 bit version (on a new blank SD), and all seams good, but if I switch my TV to another HDMI port, when I come back to the N2 the display is black.
The blue led still flash on the board.

I have an old Toshiba display without CEC.
I never had this problem with my 32 bit version.

Any idea what I can test to fix this?

kafan1986
Posts: 100
Joined: Tue Feb 27, 2018 8:05 am
languages_spoken: english
Has thanked: 4 times
Been thanked: 4 times
Contact:

Re: Screen Off/Black issue

Unread post by kafan1986 » Tue Oct 08, 2019 7:35 am

zohar wrote:
Tue Oct 08, 2019 4:03 am
I think I have some similar issue:

I just installed the new 64 bit version (on a new blank SD), and all seams good, but if I switch my TV to another HDMI port, when I come back to the N2 the display is black.
The blue led still flash on the board.

I have an old Toshiba display without CEC.
I never had this problem with my 32 bit version.

Any idea what I can test to fix this?
If you don't need HDMI CEC function then disable it in odroid settings or you can edit /odm/boot.ini and change the following to setenv suspend_hdmiphy "0"

User avatar
tobetter
Posts: 4123
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 48 times
Been thanked: 213 times
Contact:

Re: Screen Off/Black issue

Unread post by tobetter » Tue Oct 08, 2019 8:25 am

@kafan1986, for the issue of black screen, I am thinking of that this is HDMI driver is not managing the display connection in certain condition and one of my workmate is tied to resolve this. Hope to have some clue sometime soon.

"Tapatalk wishes you to have fun with ODROID"

These users thanked the author tobetter for the post (total 2):
kafan1986 (Tue Oct 08, 2019 1:20 pm) • linuxo (Sat Oct 19, 2019 8:10 am)

zohar
Posts: 11
Joined: Mon Jul 29, 2019 6:15 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Screen Off/Black issue

Unread post by zohar » Wed Oct 09, 2019 11:48 pm

kafan1986 wrote:
Tue Oct 08, 2019 7:35 am
If you don't need HDMI CEC function then disable it in odroid settings or you can edit /odm/boot.ini and change the following to setenv suspend_hdmiphy "0"
In Odroid the CEC is all grayed out.
Changing boot.int -> setenv suspend_hdmiphy "0" did not help. even plugging the HDMI cable out and in don't help.
My display is Toshiba 42CV500

kafan1986
Posts: 100
Joined: Tue Feb 27, 2018 8:05 am
languages_spoken: english
Has thanked: 4 times
Been thanked: 4 times
Contact:

Re: Screen Off/Black issue

Unread post by kafan1986 » Thu Oct 10, 2019 2:09 am

zohar wrote:
Wed Oct 09, 2019 11:48 pm
kafan1986 wrote:
Tue Oct 08, 2019 7:35 am
If you don't need HDMI CEC function then disable it in odroid settings or you can edit /odm/boot.ini and change the following to setenv suspend_hdmiphy "0"
In Odroid the CEC is all grayed out.
Changing boot.int -> setenv suspend_hdmiphy "0" did not help. even plugging the HDMI cable out and in don't help.
My display is Toshiba 42CV500
I suspect this has little to do with HDMI CEC but rather HDMI driver as a whole. You can confirm this by disabling HDMI CEC from Toshiba TV's settings. If the error exists then I believe there is little that can be done right now. @tobetter already mentioned that HK is working on different HDMI driver, given problems reported by many users.

zohar
Posts: 11
Joined: Mon Jul 29, 2019 6:15 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Screen Off/Black issue

Unread post by zohar » Thu Oct 10, 2019 2:58 am

Thanks,
This is an old TV set, it does not have CEC, so nothing to disable.
I will keep waiting for this update and use the 32bit system for now.

dewen
Posts: 1
Joined: Sun Apr 29, 2018 12:02 pm
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: Screen Off/Black issue

Unread post by dewen » Fri Nov 01, 2019 12:27 pm

Odroid N2 with Android Pie 64 bit update to newest version.
have the same problem when turn off HDMI monitor or switch from HDMI 1 to HDMI 2 ( not Odroid use )
when turn on or switch back, I got black screen.
Has it been fixed ? thank you !

IrishHayZeus
Posts: 18
Joined: Tue Oct 22, 2019 4:18 am
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 9 times
Contact:

Re: Screen Off/Black issue

Unread post by IrishHayZeus » Tue Nov 05, 2019 7:14 am

Also, confirming this issue with my head-worn display, on Android 9.0/64-bit, which does not support CEC.

ryan_repairs
Posts: 1
Joined: Wed May 15, 2019 10:15 pm
languages_spoken: english
ODROIDs: HC1, HC2, Go, N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Screen Off/Black issue

Unread post by ryan_repairs » Wed Nov 13, 2019 3:07 pm

I recently upgraded the provided Linux Mate distribution and I think I am having the same issue. On boot up, HDMI works OK, but if I turn off the Samsung TV and turn it back on, the HDMI does not reconnect (the TV says there is no connection). Unplugging and re-plugging the HDMI does not work. The only thing that seems to work is power cycling the N2. HDMI was working fine until I did an update which was recommended by the GUI. Let me know if I can provide more details. Thanks!

kafan1986
Posts: 100
Joined: Tue Feb 27, 2018 8:05 am
languages_spoken: english
Has thanked: 4 times
Been thanked: 4 times
Contact:

Re: Screen Off/Black issue

Unread post by kafan1986 » Sat Nov 16, 2019 8:15 am

tobetter wrote:
Tue Oct 08, 2019 8:25 am
@kafan1986, for the issue of black screen, I am thinking of that this is HDMI driver is not managing the display connection in certain condition and one of my workmate is tied to resolve this. Hope to have some clue sometime soon.

"Tapatalk wishes you to have fun with ODROID"
@tobetter
Any progress made on this issue? I think this is the last problem that prevents N2's android platform from becoming truly awesome. HDMI driver has critical issue with Auto resolution detection with many displays, which happens during reconnection of hdmi, either done physically or just via TV through switching source, thus giving black screen. In such cases only reboot seems to work. Also, HDMI CEC does not work properly as being described on multiple separate threads on this forum.
These users thanked the author kafan1986 for the post:
santiagax99 (Sat Nov 16, 2019 8:39 am)

User avatar
tobetter
Posts: 4123
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 48 times
Been thanked: 213 times
Contact:

Re: Screen Off/Black issue

Unread post by tobetter » Sat Nov 16, 2019 12:45 pm

@kafan1986, we are preparing the next update in a couple of days hopefully early next week. The screen issue when HDMI is reconnected looks like resolved but still needs to be verified by users. Let us update you when the new release is up.
These users thanked the author tobetter for the post:
kafan1986 (Sun Nov 17, 2019 6:47 am)

Post Reply

Return to “Android”

Who is online

Users browsing this forum: memeka and 4 guests