I repaired an ipad 2 screen, but when I put it back together, the power button apparently broke. I then replaced the power button and daughter board to fix this issue.

Now the button still doesn't work to make the ipad go to sleep or wake up, but it does work to take screenshots, to turn it off if I hold the button, and to turn it off manually if I press it for a few seconds along with the home button.

Does anybody know what is causing this? because the button clearly works for everything except for making the ipad go to sleep or wake up.. Thanks in advance!