Laptop is running but soon as you plug in the AC adapter the laptop shuts down.  However, the laptop works fine and charging works too if you plug in the AC adapter before turning on the laptop. Check LM393 IC.