Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  Sansа Clip Zip - Improve battery life
« previous next »
  • Print
Pages: 1 2 3 [4] 5 6 ... 22

Author Topic: Sansа Clip Zip - Improve battery life  (Read 90021 times)

Offline Mihail Zenkov

  • Developer
  • Member
  • *
  • Posts: 374
Re: Sansа Clip Zip - Improve battery life
« Reply #45 on: October 05, 2014, 04:14:59 PM »
Code in master branch do this. But when we switch FCLK to normal we have very low PCLK then we try set good PCLK, but sometimes we have memory corruption.
So in latest version FLCK and PCLK switching step by step. It work much better, but not totally stable.

EDIT: for AMSv2 PLCK always based on FLCK - this root of problem with switching frequency.
« Last Edit: October 05, 2014, 04:18:10 PM by Mihail Zenkov »
Logged

Offline oid_maps

  • Artist
  • Member
  • *
  • Posts: 31
Re: Sansа Clip Zip - Improve battery life
« Reply #46 on: October 07, 2014, 04:26:26 AM »
A maybe stupid question -- when I try to compile with patch V3 or patch V4, I get an error "‘CVDD1_BOOST’ undeclared" and "‘CVDD1_NORMAL’ undeclared" in "firmware/target/arm/as3525/system-as3525.c":

Code: [Select]
/tmp/rockbox/source/rockbox/firmware/target/arm/as3525/system-as3525.c: In function ‘set_cpu_frequency’:
/tmp/rockbox/source/rockbox/firmware/target/arm/as3525/system-as3525.c:526: error: ‘CVDD1_BOOST’ undeclared (first use in this function)
/tmp/rockbox/source/rockbox/firmware/target/arm/as3525/system-as3525.c:526: error: (Each undeclared identifier is reported only once
/tmp/rockbox/source/rockbox/firmware/target/arm/as3525/system-as3525.c:526: error: for each function it appears in.)
/tmp/rockbox/source/rockbox/firmware/target/arm/as3525/system-as3525.c:565: error: ‘CVDD1_NORMAL’ undeclared (first use in this function)
/tmp/rockbox/source/rockbox/tools/root.make:414: recipe for target '/tmp/rockbox/source/build-FuzeV2-firmware/firmware/target/arm/as3525/system-as3525.o' failed
make: *** [/tmp/rockbox/source/build-FuzeV2-firmware/firmware/target/arm/as3525/system-as3525.o] Error 1

.. Do you operate with another patch in the background?

I use the actual git checkout.
Logged
My audio players:
* Olympus WS-811 (no rockbox )-:)
* Sansa Fuze v2 (rockbox (git build) (-:)

Offline Mihail Zenkov

  • Developer
  • Member
  • *
  • Posts: 374
Re: Sansа Clip Zip - Improve battery life
« Reply #47 on: October 07, 2014, 05:53:18 AM »
This patch for Sansa Clip Zip only. You should add CVDD1_BOOST / CVDD1_NORMAL / PVDD1_DAC / PVDD1_ADC in config for your player. Also you should fix #ifdef SANSA_CLIPZIP in patch.
Logged

Offline Mihail Zenkov

  • Developer
  • Member
  • *
  • Posts: 374
Re: Sansа Clip Zip - Improve battery life
« Reply #48 on: December 06, 2014, 12:03:42 PM »
Changes in V5:
  • set PLLA=192mHz, disable PLLB
  • set FCLK=192mHz and PCLK=96mHz at boost
  • set FCLK=38.4mHz and PCLK=19.2mHz at normal
  • minimize pop-click noise
  • fix boot firmware though rolo
  • disable mixer and connect DAC directly to output when volume -40dB or louder

WARNING: this patch may improve battery life and sound quality :)

Sound quality checked with RMAA and emu-0204.

Load 22 om, -6dB.
Without patch      With patch
Dynamic range, dBA:   92.193.6
THD, %:0.0460.037
IMD, %:0.0610.041


No load, 0dB.
Without patch      With patch
Dynamic range, dBA:   93.395.0
THD, %:0.0160.0037
IMD, %:0.0190.0065


Original firmware show same result as rockbox without patch.
* rockbox-improve_battery_life_v5.patch.txt (9.73 kB - downloaded 238 times.)
« Last Edit: December 06, 2014, 04:54:26 PM by Mihail Zenkov »
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8966
Re: Sansа Clip Zip - Improve battery life
« Reply #49 on: December 06, 2014, 04:32:05 PM »
I'm testing this now.  One note though, with typical VBR MP3, it won't even boost (38MHz is fast enough), so to test stability I recommend either a slower format or turning on the EQ just to make sure the CPU actually changes. 
Logged

Offline Mihail Zenkov

  • Developer
  • Member
  • *
  • Posts: 374
Re: Sansа Clip Zip - Improve battery life
« Reply #50 on: December 06, 2014, 04:59:43 PM »
Yes, for testing stability frequency scaling better use APE - in this case CPU switch to boost and back to normal each second.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8966
Re: Sansа Clip Zip - Improve battery life
« Reply #51 on: December 06, 2014, 05:31:25 PM »
http://mit.edu/mgg6/www/rockbox-clipzip.zip
http://mit.edu/mgg6/www/rockbox-clip+.zip

If anyone wants to try the above patch (I enabled it for the clip+ as well).  Tested and working on my devices, but I'm curious if they're good for everyone else.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8966
Re: Sansа Clip Zip - Improve battery life
« Reply #52 on: December 07, 2014, 03:03:28 PM »
Quote from: saratoga on September 29, 2014, 01:38:52 PM
I tested battery life on some builds:

Last spring: 10h 14min
Current git: 13h 35min
Current git + 1.1v CPU (no change to other clocks): 15h 0min

Testing the frequency scaling patch on the Zip gave me 12h 45min, which is less than I would expect.  I will retest to be sure that nothing went wrong.  Have you done a battery test?

On the other hand, frequency scaling seems stable.  I put probably 36 hours on a pair of AMSv2 devices with zero crashes. 
Logged

Offline Mihail Zenkov

  • Developer
  • Member
  • *
  • Posts: 374
Re: Sansа Clip Zip - Improve battery life
« Reply #53 on: December 07, 2014, 03:54:57 PM »
Quote from: saratoga on December 07, 2014, 03:03:28 PM
I tested battery life on some builds:

Last spring: 10h 14min
Current git: 13h 35min
Current git + 1.1v CPU (no change to other clocks): 15h 0min

Testing the frequency scaling patch on the Zip gave me 12h 45min, which is less than I would expect.  I will retest to be sure that nothing went wrong.

Probably you force boost mode. Check frequency.

Quote
Have you done a battery test?

No. But I measure power consumption. Subjectively player work two times longer. Not sure if it have sense - in system menu I have top ruining time 23h 11m.

Quote
On the other hand, frequency scaling seems stable.  I put probably 36 hours on a pair of AMSv2 devices with zero crashes.

Good!

EDIT: Have you added cpu_boost(0) to usb-as3525.c?
« Last Edit: December 07, 2014, 04:00:56 PM by Mihail Zenkov »
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8966
Re: Sansа Clip Zip - Improve battery life
« Reply #54 on: December 07, 2014, 07:19:02 PM »
I started a new test, and this time confirmed after 30 minutes that the system was not stuck in a boosted state.  Will report the results in the morning.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8966
Re: Sansа Clip Zip - Improve battery life
« Reply #55 on: December 08, 2014, 04:46:58 PM »
21 hours 29 minutes.

Not bad. 

Logged

Offline Mihail Zenkov

  • Developer
  • Member
  • *
  • Posts: 374
Re: Sansа Clip Zip - Improve battery life
« Reply #56 on: December 08, 2014, 04:59:43 PM »
You can get slightly better result by accurate tuning CVDD1. Other voltage better leave as in my last patch - it show best result with RMAA.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8966
Re: Sansа Clip Zip - Improve battery life
« Reply #57 on: December 08, 2014, 05:16:54 PM »
I am slightly concerned about the lower cpu voltage when unboosted.  I think we would need to get a fair amount of people to test that before we are sure its safe.  I'm tempted to commit the frequency scaling first, and then follow up with voltage once we are sure its stable.  I tend to think theres probably a wide distribution of voltages that are safe between devices.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8966
Re: Sansа Clip Zip - Improve battery life
« Reply #58 on: December 08, 2014, 05:33:06 PM »
http://pastebin.com/tTXpLSsj

Patch with cleaned up USB.

One question though, is the voltage reset in rolo.c even needed?  The header for that function isn't included, so I'm not even sure if its linked. 
Logged

Offline Mihail Zenkov

  • Developer
  • Member
  • *
  • Posts: 374
Re: Sansа Clip Zip - Improve battery life
« Reply #59 on: December 08, 2014, 05:40:26 PM »
Quote from: saratoga on December 08, 2014, 05:16:54 PM
I am slightly concerned about the lower cpu voltage when unboosted.  I think we would need to get a fair amount of people to test that before we are sure its safe.  I'm tempted to commit the frequency scaling first, and then follow up with voltage once we are sure its stable.  I tend to think theres probably a wide distribution of voltages that are safe between devices.

Yes, you right. I mean for you personal record :) My two devices can stable work on slightly less voltages.

Quote
One question though, is the voltage reset in rolo.c even needed?  The header for that function isn't included, so I'm not even sure if its linked.
Yes, it linked and work. I just was lazy fix warning. Without it player freeze on booting another firmware though rolo. Also I think better disable frequency scaling if we build bootloader.


In my researches I see two strange behavior:
1. playing wav (16/44.1) consume  mostly same power as low bitrate mp3 - is it expected?
2. in test_mem I have read speed much lower than write speed - is it normal?
« Last Edit: December 08, 2014, 05:47:55 PM by Mihail Zenkov »
Logged

  • Print
Pages: 1 2 3 [4] 5 6 ... 22
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  Sansа Clip Zip - Improve battery life
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.191 seconds with 21 queries.