Rockbox General > Rockbox General Discussion
Change rockbox battery reading
Jimbone:
Hi there, sorry for late reply. I've finally got back into making them again and have been trying to figure out how to change that one line on the firmware to say 10 or 20 seconds longer for battery checking and I use battery's with a circuit board for safety anyway.
Is there anyway to change in the debug?
I am running windows and trying to see about getting virtual box up and running but Im not very good with software.
What file in the .rockbox folder would I need to edit for the power management? Thanks for the help.
[Saint]:
--- Quote from: Jimbone on October 09, 2016, 05:08:18 PM ---What file in the .rockbox folder would I need to edit for the power management? Thanks for the help.
--- End quote ---
None.
saratoga linked you to the points of interest in the source tree, these are not files that exist on the device itself. While it technically is possible to do a binary edit, it is impractical for a number of reasons. The simplest approach is to just wait until we get a valid response from power_thread(), this could be achieved easily by editing line 684 in firmware/powermanagement.c to:
--- Code: --- #elif defined(DX50) || defined(DX90) || defined(IPOD_6G)
--- End code ---
We already have a couple of targets that will misreport the battery reading initially, the above change simply adds ipod6g to that list.
Personally, I find it very difficult to believe that your MSATA is any less efficient or draws any more volts during 'spinup' than the original disk did, so I would think it is infinitely more likely that your battery is of sub-par quality.
[Saint]
Navigation
[0] Message Index
[*] Previous page
Go to full version