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:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Why is autorun disabled?
« previous next »
  • Print
Pages: [1]

Author Topic: Why is autorun disabled?  (Read 1556 times)

Offline grums

  • Member
  • *
  • Posts: 45
Why is autorun disabled?
« on: March 22, 2011, 05:41:30 PM »
A few weeks ago I made a build (based on 3.7.1) with a
#define AUTOROCK
line included, enabling me to run a plugin at startup.
Why isn't this brilliant feature enabled by default - it doesn't seem to hurt if you don't have a properly named plugin in place?
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Why is autorun disabled?
« Reply #1 on: March 22, 2011, 05:48:50 PM »
My guess is that its probably to save time on boot up checking to see if a file exists that 99% of people will never use.  Might be worth searching the IRC and SVN logs though to see if any other rationale is given.
Logged

Offline gbl08ma

  • Member
  • *
  • Posts: 249
    • My blog
Re: Why is autorun disabled?
« Reply #2 on: March 22, 2011, 06:06:12 PM »
Talking about boot up time savings, it's not specifically directed to this question but, why doesn't Rockbox check for the files in background, leaving users in the main menu and fully operational.

The menu would show up for a second or so, and then if the background code verified the existence of a plugin to be autorun, the plugin would be launched.

What I'm saying is kind of a concept, it doesn't have much technical basement behind it, but anyways I leave here the idea (as this is on the Feature Ideas section... it's on the right place).
Logged
http://gbl08ma.com | http://i.tny.im

Offline torne

  • Developer
  • Member
  • *
  • Posts: 994
  • arf arf
Re: Why is autorun disabled?
« Reply #3 on: March 22, 2011, 06:41:19 PM »
The time at boot is virtually zero, even with dircache off. Several things at boot check for the existence of a single file.

It was discussed here: http://www.rockbox.org/irc/log-20100427
The conclusion was that it should probably become a setting similar to the backdrop/etc: i.e. rather than renaming a plugin you would just select the plugin from the menu, go into the context menu, and choose it to run on startup. If someone wrote a patch to do this, it would be much better than the current autorock feature.
Logged
some kind of ARM guy. ipodvideo/gigabeat-s/h120/clipv2. to save time let's assume i know everything.

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Why is autorun disabled?
« Reply #4 on: March 22, 2011, 11:01:02 PM »
of course it is mostly irelevant.. really the only plugin you would want to start on boot is pictureflow, and you can already do that
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline grums

  • Member
  • *
  • Posts: 45
Re: Why is autorun disabled?
« Reply #5 on: March 23, 2011, 04:34:15 AM »
Thanks all - I agree that it would be more elegant to configure autorun from the menu system, you could also enable several plugins to run...
Still, from your answers I can't see why the simple version shouldn't be enabled by default - I use it (until the RB USB works) for cleaning up the Sansa ##MUSIC# etc. garbage directories.
BTW: will a plugin compiled for one RB release run on another (maybe a stupid question, I'm not a developer)? If the autorun feature was enabled by default, one could just copy the autorun plugin between releases without recompiling, that would be helpful.
Logged

Offline nls

  • Developer
  • Member
  • *
  • Posts: 460
Re: Why is autorun disabled?
« Reply #6 on: March 23, 2011, 05:03:13 AM »
Well we prefer things Done Right, making this configurable shouldn't be hard and the hardcoded mechanism is a bit awkward. If a plugin will run on a new release depends on if some incompatible change was made to the plugin api, usually such changes are made between major releases so a plugin for x.y will probably not work on x.y+1
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Why is autorun disabled?
 

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

Page created in 0.099 seconds with 15 queries.