I flashed a custom ROM and didn't liked it some reverted to a recovery using TWRP. Now the screen is always on, even after long periods of inactivity. Even if I press the power button it doesn't turn off (or go to sleep or whatever it is called). Any ideas how I can fix this? Obviously if the device is power off the screen is off.
Check ROM-Settings -> "Active Display" -> then disable or Settings -> Display -> "Active Display" -> then disable
I think good chances AOSP handles it in either one of these ways.