Default Power/Lock button doesn't work on AOSP roms

Hey guys so i tried many different aosp roms such as aokp, cm11, slim, resurecction remix, etc..

All of them have a problem with the lock button on the top of the phone.

I can't lock the screen and the button is unresponsive, if the screen locks on its own i have to force a restart

I really want to use aosp roms, but this issue is down right ridiculous.

Sense based roms work just fine i am running viper one atm, but would really like to go AOSP