I have Lenovo G50-45 and using Ubuntu 16.04.01 LTS but from the last 4-5 days I am facing some issue while charging sometime.
When I plug the charging cord into laptop for system crash/shutdown without showing any error message.
I have contacted Lenovo team but they told me that there is issue with driver and we don't support Linux. You need to install windows then we will help you with windows driver, past I was using windows 10 pro and it was working fine.
I am not sure but I have notice that after updating ubuntu this issue started. Also it stop beep sound when I plug and unplug the charger. If I plug the charger and start laptop then it work fine and charging is working fine. But if I plug charger while working sometime it shutdown.
Please help me to fix this issue.