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




Rockbox Technical Forums


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

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  Sansа Clip Zip - Improve battery life
« previous next »
  • Print
Pages: 1 ... 10 11 [12] 13 14 ... 22

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

Offline rbert

  • Member
  • *
  • Posts: 10
Re: Sansа Clip Zip - Improve battery life
« Reply #165 on: February 07, 2015, 03:04:50 PM »
Quote from: saratoga on February 07, 2015, 02:35:09 PM
Does anyone want to try raising the voltages one by one and see which one was set too low?
OK, but it would be helpful, if I had your source code changes.
I tried setting CVDD2 and CVDD1 by changing two lines in system-as3525.c and I still had crashes.
Here's what I tried:
Code: [Select]
/* Set CVDD2 power supply for fuzev2 */
ascodec_write_pmu(0x17, 2, 0x80 | 116);
Code: [Select]
/* Set CVDD1 power supply for fuzev2 */
ascodec_write_pmu(0x17, 1, 0x80 | 47);
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8760
Re: Sansа Clip Zip - Improve battery life
« Reply #166 on: February 07, 2015, 04:22:20 PM »
All I did was comment out the voltage reduction on unboost.

Edit CPU voltage, cvdd1.
« Last Edit: February 07, 2015, 07:24:18 PM by saratoga »
Logged

Offline PagaN

  • Member
  • *
  • Posts: 3
Re: Sansа Clip Zip - Improve battery life
« Reply #167 on: February 08, 2015, 04:23:14 AM »
Quote from: Mihail Zenkov on February 07, 2015, 06:17:41 AM
Latest build with all patches for clip zip: http://gdurl.com/c_OQ/download

tested this (f65baf9M-150129) firmware on my 2 year used ClipZip 4gb 100% charged,
16gb MicroSD full of mp3 files on standard sansa headphones volume (-15dB),

I get best result 18:29h and no errors! very unstable (next day I walk on street 1:30h and it freeze and give error 5-6 times) reverted on last devbuild.
« Last Edit: February 10, 2015, 12:40:36 PM by PagaN »
Logged

Offline rbert

  • Member
  • *
  • Posts: 10
Re: Sansа Clip Zip - Improve battery life
« Reply #168 on: February 08, 2015, 10:00:54 AM »
Quote from: saratoga on February 07, 2015, 04:22:20 PM
All I did was comment out the voltage reduction on unboost.

Edit CPU voltage, cvdd1.
I can't set CVDD1 on unboost without crashing my fuzev2 in main menu.
But if I comment that line out, everything works fine.

I tried most voltages between
Code: [Select]
ascodec_write_pmu(0x17, 1, 0x80 | 20);and
Code: [Select]
ascodec_write_pmu(0x17, 1, 0x80 | 47);
Logged

Offline Mihail Zenkov

  • Developer
  • Member
  • *
  • Posts: 374
Re: Sansа Clip Zip - Improve battery life
« Reply #169 on: February 08, 2015, 11:08:41 AM »
Very strange. What clock setting you have in "system > debug >  view hw info" ?
Logged

Offline rbert

  • Member
  • *
  • Posts: 10
Re: Sansа Clip Zip - Improve battery life
« Reply #170 on: February 08, 2015, 11:57:03 AM »
Quote from: Mihail Zenkov on February 08, 2015, 11:08:41 AM
Very strange. What clock setting you have in "system > debug >  view hw info" ?

* dump 150208-172736.png (2.32 kB, 220x176 - viewed 245 times.)
Logged

Offline Mihail Zenkov

  • Developer
  • Member
  • *
  • Posts: 374
Re: Sansа Clip Zip - Improve battery life
« Reply #171 on: February 08, 2015, 12:44:28 PM »
rbert:
Can you try force normal (unboost) mode - replace  if(frequency == CPUFREQ_MAX) to if(0) and try find lower stable CVDD1?
Logged

Offline rbert

  • Member
  • *
  • Posts: 10
Re: Sansа Clip Zip - Improve battery life
« Reply #172 on: February 09, 2015, 08:09:31 AM »
still no luck, if I try to set CVDD1 during unboosted mode
Logged

Offline Mihail Zenkov

  • Developer
  • Member
  • *
  • Posts: 374
Re: Sansа Clip Zip - Improve battery life
« Reply #173 on: February 09, 2015, 10:50:37 AM »
Even if you set ascodec_write_pmu(0x17, 1, 0x80 | 47); ?
Logged

Offline rbert

  • Member
  • *
  • Posts: 10
Re: Sansа Clip Zip - Improve battery life
« Reply #174 on: February 09, 2015, 11:03:42 AM »
Quote from: Mihail Zenkov on February 09, 2015, 10:50:37 AM
Even if you set ascodec_write_pmu(0x17, 1, 0x80 | 47); ?
yes, exactly
something's strange
Logged

Offline Mihail Zenkov

  • Developer
  • Member
  • *
  • Posts: 374
Re: Sansа Clip Zip - Improve battery life
« Reply #175 on: February 09, 2015, 11:17:38 AM »
Yes, very strange. Can you try  0x80 | 47 + attached patch?

EDIT: wrong patch, reattached.
* rockbox-restore_irq.patch.txt (0.69 kB - downloaded 117 times.)
« Last Edit: February 09, 2015, 11:23:30 AM by Mihail Zenkov »
Logged

Offline rbert

  • Member
  • *
  • Posts: 10
Re: Sansа Clip Zip - Improve battery life
« Reply #176 on: February 09, 2015, 11:39:23 AM »
Quote from: Mihail Zenkov on February 09, 2015, 11:17:38 AM
Yes, very strange. Can you try  0x80 | 47 + attached patch?
Thank you very much, it works.
Now I can test lower voltages.

EDIT:
no problems with 0x80 | 20
I can now confirm, that my fuzev2 variant0 works like a charm with
- Patch Set 7 471ced2d0f1df1f6e53824197c93e52563fdac3a
- rockbox-restore_irq.patch.txt
- the same changes in firmware/export/config/sansafuzev2.h as in the other config files

EDIT2:
for anyone else to test:
http://gregory.bplaced.net/rockbox/rockbox-fuzev2-1.7z
« Last Edit: February 09, 2015, 12:59:50 PM by rbert »
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8760
Re: Sansа Clip Zip - Improve battery life
« Reply #177 on: February 13, 2015, 06:20:06 PM »
Quote from: Mihail Zenkov on February 09, 2015, 11:17:38 AM
Yes, very strange. Can you try  0x80 | 47 + attached patch?

EDIT: wrong patch, reattached.

That looks like an interesting race condition indeed. 

Edit:  Does it make sense to also protect the ascodec_read_pmu call from an IRQ?  Seems like both could be corrupted.

« Last Edit: February 13, 2015, 06:47:37 PM by saratoga »
Logged

Offline Mihail Zenkov

  • Developer
  • Member
  • *
  • Posts: 374
Re: Sansа Clip Zip - Improve battery life
« Reply #178 on: February 14, 2015, 09:47:15 AM »
I read IRC and I agree with jhMikeS - we should try fix it deeper.  But it to hard for me :(

Zip also have problem with ascodec_write_pmu - I do this changes in patch V4, but I could not reproduce this behavior again and revert in V5.
Logged

Offline jhMikeS

  • Developer
  • Member
  • *
  • Posts: 242
Re: Sansа Clip Zip - Improve battery life
« Reply #179 on: February 14, 2015, 04:33:15 PM »
Okiedokie: http://gerrit.rockbox.org/1145/

Whatever the case if it's hard to reproduce, the driver has a problem that this fixes.
« Last Edit: February 14, 2015, 04:35:02 PM by jhMikeS »
Logged

  • Print
Pages: 1 ... 10 11 [12] 13 14 ... 22
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  Sansа Clip Zip - Improve battery life
 

  • SMF 2.0.6 | SMF © 2013, Simple Machines
  • XHTML
  • RSS
  • WAP2

Page created in 0.111 seconds with 63 queries.