What do you mean by " when i go AFK for quite sometime, my display gets black." ?
What operating system and avast version are you using ?
I'm using the latest regular release version of avast free and a windows 10 64bit laptop and I don't experience anything different from my windows power settings, see attached image.
That said for the most part when leaving the laptop for a while I close the lid anyway.