[OnePlus 9] thethiny:
Hi,

Recently my screen started turning on and off suddenly (like this video). However the blinking does not happen in Recovery Mode or Bootloader. Also doesn't happen in Ambient mode. So I opened logcat and I see this:

03-10 12:06:34.915 1044 1191 I SDM : HWEventsDRM::HandlePanelDead: Received panel dead event
03-10 12:06:34.915 1044 1191 D IRIS_LOG_SERV: SetPowerMode-0,1
03-10 12:06:34.915 1044 1191 D IRIS_LOG_SERV: SetPowerMode-0,mIrisServiceMode:0
03-10 12:06:34.915 1044 1191 I SDM : HWCSession::DisplayPowerReset: Powering off display = 0
03-10 12:06:34.915 1044 1191 I SDM : DisplayBase::SetDisplayState: Set state = 0, display 56-0, teardown = 1
03-10 12:06:34.916 1500 1939 D [GF_HAL][CustomizedDevice]: [handleNetlinkMessage] GF netlink thread received msg SCREEN_OFF(2)
03-10 12:06:34.916 1500 1939 D [GF_HAL][EventCenter]: [postEvent] enqueue event<-998>
03-10 12:06:34.916 1500 2293 D [GF_HAL][EventCenter]: [threadLoop] Get event -998 end
03-10 12:06:34.917 1500 2293 D [GF_HAL][ShenzhenSensor]: msg : 16
03-10 12:06:34.917 1500 2293 D [GF_HAL][CaEntry]: [sendCommand] request token: 76, target: 1000, cmd id: 11
03-10 12:06:34.917 1500 2293 D [GF_HAL][CaEntry]: [sendCommand] carveout_ion_handle_fd = 0,carveout_ion_handle_len = 0
03-10 12:06:34.929 1500 2293 D [GF_HAL][HalContext]: [invokeCommand] err = 0, errno = GF_SUCCESS
03-10 12:06:34.929 1500 2293 D [GF_HAL][EventCenter]: [threadLoop] Wait get event
03-10 12:06:34.947 1044 1191 I SDM : DisplayBase::SetDisplayState: active 0-0 state 0-0 pending_power_state_ 0
03-10 12:06:34.947 1044 1191 I SDM : HWCSession::DisplayPowerReset: Setting display 0 to mode = 2
03-10 12:06:34.947 1044 1191 I SDM : DisplayBase::SetDisplayState: Set state = 1, display 56-0, teardown = 0
03-10 12:06:34.949 1500 1939 D [GF_HAL][CustomizedDevice]: [handleNetlinkMessage] GF netlink thread received msg SCREEN_ON(3)
03-10 12:06:34.949 1500 1939 D [GF_HAL][EventCenter]: [postEvent] enqueue event<-999>
03-10 12:06:34.949 1500 2293 D [GF_HAL][EventCenter]: [threadLoop] Get event -999 end
03-10 12:06:34.949 1500 2293 D [GF_HAL][ShenzhenSensor]: msg : 16
03-10 12:06:34.949 1500 2293 D [GF_HAL][CaEntry]: [sendCommand] request token: 77, target: 1000, cmd id: 11
03-10 12:06:34.949 1500 2293 D [GF_HAL][CaEntry]: [sendCommand] carveout_ion_handle_fd = 0,carveout_ion_handle_len = 0
03-10 12:06:34.960 1500 2293 D [GF_HAL][HalContext]: [invokeCommand] err = 0, errno = GF_SUCCESS
03-10 12:06:34.960 1500 2293 D [GF_HAL][EventCenter]: [threadLoop] Wait get event
03-10 12:06:35.072 1044 1191 I SDM : StrategyImpl::SetIdleTimeoutMs: Idle timeout set to zero for command mode panels
03-10 12:06:35.072 1044 1191 I SDM : DisplayBase::SetDisplayState: active 1-1 state 1-1 pending_power_state_ 0
03-10 12:06:35.072 1044 1191 I IRIS_LOG_SERV: SetColorModeRI(7, 0)
03-10 12:06:35.080 1044 1210 I SDM : HWCColorModeStc::ApplyCurrentColorModeWithRenderIntent: Applying Stc mode (gamut 1 gamma 1 intent 1), curr mode 7, render intent 0, hdr present 0

It happens exactly every 5 seconds. I tried different solutions, tried flashing new rom, tried factory reset, but the problem remains. Also whenever the screen blinks it turns yellow. If I open a full screen app the screen is back to normal colors then turns yellow again after it blinks. Screen is not yellow in recovery so I'm not sure what the problem is. Anyone has any advice?