I have been making custom roms device source for my motorola g40 fusion since android 13. The display had no issues in android 13. But since android 14, the powerbutton wouldnt work to turn on display after it turn off in system. It can used to force reboot or go to fastboot but the display wont turn on in system. I can hear notification and other stuff from the device tho i am not sure if the touch works or no. The only hack i have found for now is to disable dynamic refresh rate in the kernel source and force a single refresh rate. I could not find any fix in any similar devices or devices with same chipset. So any help would be appreciated.
Device sources:
I have tried to use stock hwcomposer, tried giving permissions to some brightness nodes. Reverting some commits related to secondary displays in frameworks/native which i thought may have been the cause.