I had the same problem with Dell XPS 12, it was powering the laptop but not charging the battery, "Connected but not charging" and a message showing that the laptop could not identify the adapter. I thought it was Bios or the battery has run out of life, tried most of the searched solutions on...