Rockbox Technical Forums

Support and General Use => Plugins/Viewers => Topic started by: rhlee on November 25, 2010, 09:27:26 AM

Title: Run plugin on boot
Post by: rhlee on November 25, 2010, 09:27:26 AM
Hi rb forum,

My watch ran out of batteries, so I am now using my Sansa Fuze Rockbox as a pocket watch.

Is there any way I can get it to run the clock application/plugin on boot?

Thanks,

Richard
Title: Re: Run plugin on boot
Post by: gevaerts on November 25, 2010, 09:42:45 AM
Yes, but you'll have to compile your own build with one change:

Open apps/main.c, and look for the line saying:
Code: [Select]
/*#define AUTOROCK*/ /* define this to check for "autostart.rock" on boot */
Change that to
Code: [Select]
#define AUTOROCK
and build. After installing, copy the plugin you want to a file called "autostart.rock" in the .rockbox directory

Alternatively, maybe you could just use a theme that shows the time in a big font?
Title: Re: Run plugin on boot
Post by: rhlee on November 26, 2010, 12:08:18 PM
Thanks,

That worked.
Title: Re: Run plugin on boot
Post by: bill961 on October 26, 2019, 12:32:50 PM
 After installing, copy the plugin you want to a file called "autostart.rock" in the .rockbox directory


??????????????????????????????????????????????????????????????????????????????????????????????????????
what do you mean ?
Title: Re: Run plugin on boot
Post by: saratoga on October 26, 2019, 12:40:05 PM
Select the plugin you want, copy it from the plugins folder to your .rockbox folder and then rename it to autostart.rock. 
Title: Re: Run plugin on boot
Post by: bill961 on October 26, 2019, 12:53:09 PM
it does not work, i'm testin on ipod video       ANY ADVICE ??

Title: Re: Run plugin on boot
Post by: bill961 on October 26, 2019, 01:14:08 PM
I HAVE THE SAME OPTIONS FOR START SCREEN AS BEFORE
and beside that the plugins don't seem to work the ipod displays can't open / plugin..

                           ANY ADVICE ???
Title: Re: Run plugin on boot
Post by: bluebrother on October 26, 2019, 03:51:51 PM
                           ANY ADVICE ???

Don't scream.
Title: Re: Run plugin on boot
Post by: __builtin on October 26, 2019, 03:52:27 PM
It's actually /.rockbox/apps/autostart.rock.
Title: Re: Run plugin on boot
Post by: bill961 on October 26, 2019, 06:44:30 PM
It's actually /.rockbox/apps/autostart.rock.
    inted of #define AUTOROCK ???  I can rename clock.rock to autostart rock
and copy it to the apps folder  before compile. But that implies i take  clock.rock
From an already  compiled  os
Title: Re: Run plugin on boot
Post by: saratoga on October 26, 2019, 10:48:38 PM
It's actually /.rockbox/apps/autostart.rock.
    inted of #define AUTOROCK ???  I can rename clock.rock to autostart rock
and copy it to the apps folder  before compile. But that implies i take  clock.rock
From an already  compiled  os

.rockbox is not your source code directory, it is the folder on your MP3 player. 
Title: Re: Run plugin on boot
Post by: bill961 on October 27, 2019, 05:23:22 AM
thank you sir ! but the thing is that my rockbox folder has folder rocks that contains the rest of the folders apps/demos/games/viewers
So what is implied here ? Do i need to create a folder called apps in the rockbox folder and copy it there?
anyway i told you after i modify that line and compile it .the rest of the plugins stop working

Suggestions?
Title: Re: Run plugin on boot
Post by: saratoga on October 27, 2019, 10:26:50 AM
The existing apps folder.

If you didn't copy the file yet, then the changes shouldn't do anything and probably aren't related to your plugins problem. Are you sure you've built and installed rockbox correctly?
Title: Re: Run plugin on boot
Post by: bill961 on October 27, 2019, 01:34:03 PM
thanx for the reply . so what i did , installed linux mint ,followed >> https://www.rockbox.org/wiki/LinuxSimpleGuideToCompiling , and the advice above about modifying that line .
linux mint was missing libtool and something else but i managed to get them .

So i did just that . i didnt had to move clock.rock since it is already in the app folder just renamed it to autostart.rock /  and guess what ; same result , just like i said before plugins dont work after modifying that line
Title: Re: Run plugin on boot
Post by: saratoga on October 27, 2019, 02:04:38 PM
Can you build and run a normal rockbox install?
Title: Re: Run plugin on boot
Post by: bill961 on October 27, 2019, 02:17:42 PM
yes and it works flawless, but if i modify the line mentioned above renders my plugins useless , so there is no point in me renaming and moving it from folder to folder ... first i had it in the root folder , didnt work than renamed it in the app folder in wich it was and same result , anyway what does the above line modifications suppose to do ? run a plugin that has been renamed to autorun.rock right after boot ?
Title: Re: Run plugin on boot
Post by: bill961 on October 28, 2019, 10:48:29 AM
Can you build and run a normal rockbox install?

YES , is there anything else i can try?
Title: Re: Run plugin on boot
Post by: saratoga on October 28, 2019, 11:54:10 AM
yes and it works flawless, but if i modify the line mentioned above renders my plugins useless

That change has no effect on plugins, so I don't think it is related.

anyway what does the above line modifications suppose to do ? run a plugin that has been renamed to autorun.rock right after boot ?

That is what it does.  Take a look at the file you're editing if you want to know more.
Title: Re: Run plugin on boot
Post by: Bilgus on October 28, 2019, 12:12:32 PM
are you taking plugins from a different build and copying them to the new build?
Title: Re: Run plugin on boot
Post by: bill961 on October 30, 2019, 12:33:55 PM
no , i use the same apps from the original download from github , but i have to investigate into what is goning on because i changed the boot logo , and it doesnt show up on windows simulator but i compiled the linux one and it all sems to work fine , so i will try and redo the steps and see what result i get . thanx for the support !!
Title: Re: Run plugin on boot
Post by: bill961 on November 09, 2019, 04:04:38 PM
Thank you for all the help , i managed to change the boot logo and run clock right after boot . Now if somebody can help me edit the clock to act like a screensaver ........
What i did was compiled the simulator in linux and used the files from simdisk . It does NOT work in windows rockboxui simulator !  What i did i just deleted the .rockbox from the ipod and copied this one instead , just because windows wont let me replace it .
Title: Re: Run plugin on boot
Post by: saratoga on November 09, 2019, 05:28:53 PM
Plugins are not portable between devices or platforms. You need to recompile a windows aim and plugins.
Title: Re: Run plugin on boot
Post by: bill961 on November 09, 2019, 06:36:04 PM
how do i do that ? it finally works as i intended it start the plugin right after boot and the boot logo is changed ,  now i want the plugin to act like a screensaver .. any advice helps
funny thing like you said the pugins dont work in windows but do work on the device itself and in linux ./rockboxui , for it to work on windows i'd need to compile a new simulator i guess .... but that is not a big interest for me , as long as it works in linux and on the device itself i'm pleased ...