Okay... So, after several reboot with and without the laptop plugged in, finally everything is back to normal...
So for the future, if someone have this issue with this piece of code, just remove it and reboot your system with and without the battery plugged in.. You should also let the battery...