Rockbox

  • Status Closed
  • Percent Complete
    0%
  • Task Type Patches
  • Category
  • Assigned To No-one
  • Operating System
  • Severity Low
  • Priority Very Low
  • Reported Version
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Rockbox
Opened by ivoburkart - 2004-03-25
Last edited by linusnielsen - 2004-07-14

FS#2105 - Power-On-Boot in car_adapter_mode

As requested:

Rockbox powers on and starts to play, if external power
is connected.

WARNING: Rockbox looses ability to save Flip-Display-
Setting, if this patch is applied.

Closed by  linusnielsen
2004-07-14 10:44
Reason for closing:  Accepted
Additional comments about closing:   Warning: Undefined array key "typography" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 371 Warning: Undefined array key "camelcase" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 407

Logged In: YES
user_id=259137

Thanks, this is now implemented in CVS.

Project Manager
zagor commented on 2004-03-26 08:42

You are loading the settings before initializing the disk,
which works due to blind luck! (fat_startsector() returns 0
since it's not yet initialized)

You should make this more controlled, for instance by adding
a bool parameter to settings_load() which controls if it
tries to load settings from disk or only from rtc ram.

Yor right. This is only a short-time-solution (it kills flip-display
too), until this feature is implemented into cvs (which i can't
do)
We should store the car-adapter-bool in RTC additional to
flip-display. My problem: I didn't really understand the storage
of setting in RTC nor the amount of Memory available, so i
can't determine, if there is room for another bool/bit.

I did look into the patch and did a total redesign…

The car_adapter_mode is now stored on a free place in the
RTC. When initializing I only load the car_adapter_mode-
setting from RTC and only if RTC is present. So no RTC, no
automaticly power-on on plugging in the dc connector.

This code must be flashed in the device to work, as it is
initialized in a very early state which - on non rockbox-flashed
devices - is taken over by the original Archos Firmware.

You need to have a device with an RTC, but as I remember
only Studio-Devices doesn't have an RTC, but the also can't
be flashed…so this is a way we can go…

I'll checkout the problem with a totaly empty battery. Maybe
we have to request the battery-status and stay in charging-
mode for a while until automaticly boot…

I would love to hear feedback….

Well, I don't know how to attach a file here, so I put the diff
on my webserver:

http://www.tschach.de/car_power_on.patch

Project Manager

Thanks, this is now implemented in CVS.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing