Only charge if i enter windows

hi guys, here another lad with this minibook

so the problem is this, i bought this second hand, and the minibook only charges if i enter windows, also the light is turned off and wont charge if i wont power up the minibook

but… if i plug the power adapter and i shut down windows, it will charge with the pc off…

the battery seems ok, it charges to 99%, and seems to keep the % power fine

anyone have some help for me