HTC One Charging Problems.
I have had my HTC One for over 6 months now and have very few complaints.
Around 3 months ago (completely stock phone) the phone stopped charging all together, except for occasionally charging when powered off, and even then on a cycle (strong orange light, weak orange light, no light). At the same time USB stopped working, the phone had dents in it so I didn't want to risk my warranty and decided to fix it myself. I pushed a custom recovery(fastboot was working occasionally) and purchased a USB-OTG cable which my phone recognized.
So at this stage the phone detected AC and USB in fastboot, AC when powered OFF and USB-OTG in recovery.
I installed a ViperOne ROM(I think one of the first releases at that stage), yet the problem persisted.
I went through over 10 combinations of ROMs, Recoveries and Kernels until finally, through sheer luck, the problem was solved.
I did a NANDROID back-up and soon forgot the problem ever occurred. Now 3 or more months later the problem has mysteriously reappeared after no further modifications of any sort. I have unfortunately lost the NANDROID back-up and cannot rediscover the solution to my problem. I have now downloaded every major ROM and Kernel on XDA, tried them all, in different orders, with different recoveries. NO LUCK.
I have read every result I can find through searches related to my problem, all suggest returning it for a motherboard replacement. I would rather find a solution which doesn't leave me without my phone. My current situation is a phone that charges in fastboot through AC, not ideal.
Any help or advice would be much appreciated, Caleb.
EDIT: I believe the solution ROM was insertcoin-m7-6.0-4 and an elementalx or bulletproof kernel.