They (dell service station people) told me to change motherboard worth 10000 INR. And it cannot be covered in warranty so I gave my laptop to local non dell merchant and he repaired it in 500 INR. So what was the problem ? Problem was that due to high power consumption during gaming or other activities some parts on power system got burnt out and because of that the system got freeze every time it starts taking more power.   I suggest if it's in warranty change motherboard otherwise contact local.
Same problem is happening  My laptop is just 10 months old and this problem is happening. So what happening is laptop works perfectly normal without ac adapter plugged in . The moment I plugged in ac adapter and start charging problem starts 1) after some movements there is some sort of lag happening mouse is lagging little bit everything else is seems normal 2) after little lag I can see my charging symbol ( at down right corner )suddenly stuck moving but actual charging is happening only symbol is stuck . 3) than in some seconds complete laptop freezes. I cannot do anything caps lock key also doesn't work so system is fully freezed.  I have to force shut down by Pressing power button. ( This whole thing happens within 2 minutes and all the time ) So basically I can't use my laptop with charging on which just frustrating. I HAVE SEEN SO MANY PEOPLE HAVE THIS KIND OF ISSUE AND IT HAS NO SOLUTION. SO I TRIED SO MANY THINGS I WILL MENTION HERE. 1) I start with basics checked if there is any BIOS update or any other necessary updates available . Which wan not the case. 2) Completed hardware diagnosis given by Dell to check if there are some issues but I don't found any. 3) I tried sfc /scannow  And  DISM.exe /Online /Cleanup-image /Restorehealth In cmd to check for any corrupt file and I actually found some so I tried replace them with good files which is very hard to do so I give up YOU CAN TRY BUT I BET YOU IT IS VERY VERY HARD TO DO. 4) To fix the corrupt file only other option is soft or hard reset. So I already had back-up so first tried Disk image reset to fix corrupt file by reinstalling windows and it was successful.  After that I checked sfc / scannow  And boom I had 0 corrupted files so my 1 issue is solved. 5) After that I plugged in the adapter and turn the power on  Sadly it freezes again so the problem is still there  So I tried hard reset by delete everything and Install windows again and start laptop from beginning. But it didn't worked either. Laptop still freezes when adapter plugged in 6) After reset I installed necessary updates and updated the laptop to latest BIOS and system. And restarted the laptop  Then plugged in the power adaptor and Guess what It didn't worked either.    SO. What I found is something happens during I was using my laptop that demage the power control system in laptop  My power cord is perfect it is working fine but laptops power management system has some issue. Resetting or updating BIOS should have resolve the problem but in most of cases it didn't so this is very bad experience as a DELL user. This laptops are worth 1050 USD And this kind of problem happens which has basically no solution. I don't want you to get upset but it is really not curable. Technical support team have no Idea either.  I have other laptops of hp and asus they work really fine no such issue is ever came.  Better help and service is expected from Dell. Find a solution and please convey it here. If anyone has find any solution please forward it here.
Dell g5 15 5590 freezing