This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#11765 - Improve Battery Life on AMSv1 Sansa players
Attached to Project:
Rockbox
Opened by Fred Bauer (freddyb) - Friday, 19 November 2010, 17:51 GMT+2
Last edited by Fred Bauer (freddyb) - Thursday, 16 December 2010, 23:33 GMT+2
Opened by Fred Bauer (freddyb) - Friday, 19 November 2010, 17:51 GMT+2
Last edited by Fred Bauer (freddyb) - Thursday, 16 December 2010, 23:33 GMT+2
|
DetailsThis patch modifies the CPU and peripheral bus clocks to hopefully gain some battery life. With this patch the CPU frequency can be either 31 or 186Mhz and the pclk is boosted from 31 to 62 Mhz while the CPU is boosted. The power draw of the CPU is proportional to the clock frequency and setting the frequency at or below what is required for playback keeps the power usage to a minimum because boosting to a frequency below 200Mhz is inexpensive. (Keeping the boosted CPU frequency below 200Mhz eliminates the need to wait for a voltage rise.)
I would appreciate feedback on battery life if anyone has the patience to run a battery bench. |
This task depends upon
As well, does it negatively affect framerate in video playback, gameboy emulation, and other high-CPU areas?
Also, what about Rockboy? Can it play without frameskipping? How about while playing MP3s / other common formats?
Llorean, I cannot possibly guarantee 29.97 frames per second for every video, neither can SVN.
I'm not trying to twist your words. I said "if" SVN already has problems hitting it. I didn't say "since SVN already has problems hitting it." That suggests that I don't know, or I wouldn't have used the word "if." So please don't accuse me of twisting your words, as I most certainly did not.
I presented the position that I do not know what the current status is, but *if* the current status is that it already has difficulty hitting 30 consistently, then reducing it further would be a problem.
Why don't you just answer my questions about the real performance? With the Rockbox test video, what is the un-limited framerate before and after your patch? Rather than arguing about terminology and assumed slights you can just present the numbers clearly and be done with it.
1st 30 seconds of Elephant's Dream: 37.7 - 23.96
My video: 39.2 - 29.99
Futurama Intro: 36.2 - 29.99
FPS SVN:
1st 30 seconds of Elephant's Dream: 44.0 - 23.98
My video: 48.2 - 29.98
Futurama Intro: 45.0 - 29.98
All tests were done with dithering. Elephant's Dream video from here: http://download.rockbox.org/mpeg/elephantsdream-q6-224x176-469kbps.mpg. If anyone else tests this please note that Elephant's Dream was encoded at 24fps, not 30. I had trouble testing video with unlimited frame rates with or without the patch. The video starts fast but about a minute into "Elephant's Dream" there starts to be pauses. This problem goes away if unlimited frame rate is turned off.
It also sounds like there's still a bit of overhead even with the reduced speed, so mpegplayer probably isn't too much of a concern.
I did not test the lowered voltage version.
BTW, I wonder if its worth playing around with some of the other voltage regulators. Lowering voltages on the ipods resulted in a good bit of power savings.
---Begin Quote---
1st of all i am still running r28834.
This is what i did:
- Remove uSD Card
- Power on Fuze
- Insert uSD Card
- Connect to USB
- Transfer file(s) onto the uSD card (the same loooong M4B audiobook i mentioned earlier)
Also i kept pushing buttons to keep the display enabled, which means i got a Data abort screen that i could see. Yay, i guess! :)
Data abort
at 30052D08
FSR 0x8
(domain 0, fault 8)
address 0xEA00008B
I assume its the same problem. If i had to guess id say up to the crash the data transfer was faster, but that might just be the strange way the Windows copy files dialog sometimes calculates the transfer rate, or my messed up imagination. I double and tripple checked all adresses in the Data abort message, they should be accurate.
I repeated the actions above 3 times. After the third time it kind of messed up Windows 7's USB interface and now my system wont accept newly connected devices and any operation on USB devices obviously dont work. :) So i sum this up before i reboot. The data aborts when they happened were all identical.
Once Windows showed a mesage box that suggested no full USB 2.0 connect could be established and i guess in its place a slower fallback was used(1.1 ?). In this instance the file copy operation was completed successfully although at a snails pace (around 5mbit minus overhead; 620Kb/s)
---End Quote---
with r28833 copying 1 GB flac to the card completed sucessfully (i did it 3 times)
with r28834 copying the same files failed each time, (one freeze, one undefined instruction at 00001b3c, and two data aborts identical to the above post)
I reformatted the card between each try since the transfer failures corrupted the fs.
Adjusts uSD divider regardless of sd_enabled.
Give a little more delay in dbop.
Top CPU frequency is still 186MHz.
The clock.-target.h changes on their own fixed the crashing in the tests i made and any combination that included them but no combination in which they were not included.
FS#11823).The above patch does not improve the situation.
I tried this on e260v2 and still get:
*PANIC*
microSD init failed : -2
I am the one who sent the mail to freddyb that was quoted here on the 21st. I am still running r28834 without any patches so this info isnt up to date and maybe it doesnt occur anymore.
The problem doesnt seem to be limited to the Micro SD cards. I managed to get an identical data abort (like the one in my mail from the 21st) copying files to the internal flash drive (while a
Micro SD card was present) and i got my Fuze to reboot without a displayed data abort when no Micro SD card was present. After that the USB driver went byebye again and ill have to reboot to use it again.
Personally i can easily live with the USB issues. Its not like its hard to use the OF for data transfers.
Do I need an updated patch for the newes
The meyer crossfeed patch worked