![]() |
Multiple boot videos?
Is there a way to chain boot videos so one plays after the other? (I tried searching, but couldn't find any info for a yes or a no). Such as in the boot video config just writing:
filename=xx.avi filename=yy.avi? Or is it not possible? |
Re: Multiple boot videos?
yes you can. just do what you did above. it will work.
|
Re: Multiple boot videos?
Lol but why? Like do you really want to wait for those videos to load? idk.. just curious.. :o
|
Re: Multiple boot videos?
Maybe he wants to have defferent videos on each reboot?
i mean he loads up his phone and have xx.avi boot video, and next time he will reboot N900 he'll have yy.avi boot video. sry for poor eng. |
Re: Multiple boot videos?
Oh.. so when having multiple entries then it will play one each time? I thought it plays them one after another in one boot.
|
Re: Multiple boot videos?
No, if you have multiple entries it will always play all of them in order you wrote them in your conf file.
|
Re: Multiple boot videos?
Not working for me...
I did this setup: [hildon-welcome] filename=maemo_flyby_xvid_lame_r3.avi filename=short.avi But it just plays short.avi All the names are right of the videos! |
Re: Multiple boot videos?
I found it...
I need to make 2 config files like this: default.conf default2.conf |
Re: Multiple boot videos?
oh so it can be done
ignore my PM rolan900d But....why?!!! |
Re: Multiple boot videos?
Why, I like to be weird!
:p |
Re: Multiple boot videos?
ok... so you make a bunch a config files, and every time you boot, it plays a diferent movie??? wright??? O_o
|
Re: Multiple boot videos?
Quote:
Dries |
Re: Multiple boot videos?
Quote:
you could store all of those files in an additional folder ../dconfs (for example). then write a script which deletes the current defaultX.conf in the hildon/welcome folder and randomly copies any of the configs in /dconfs back when shutting the system down. this script could be stored in /etc/init.d/. then you have to symlink it to the correct rcX.d folder, i guess it would be rc0.d (http://en.wikipedia.org/wiki/Runlevel). ehm yeah... the script should then be executed when your system goes into halt?! o.O and you'll always have a random video at (re)boot. ^^ edit: maybe it would be the best to change it on bootup with a rc2.d script :) EDIT: THAT'S MY FINAL SOLUTION FOR HAVING RANDOM BOOTVIDEOS ON STARTUP AUTOMATICALLY -> http://talk.maemo.org/showpost.php?p...5&postcount=35 |
Re: Multiple boot videos?
On my end it could only play 2 videos on boot!
The 3rd and 4rd worked but only for sound.. |
Re: Multiple boot videos?
that would be a quick&dirty script for replacing the default.conf
you have: /etc/hildon-welcome.d/default.conf and /etc/hildon-welcome.d/dconfs/ <- new folder where the configs are named "1.conf", "2.conf", "3.conf" and so on. the script determines the number of conf-files in the dconfs-folder and replaces the default.conf randomly with one of them :) Code:
#!/bin/bash |
Re: Multiple boot videos?
mightm as well put on a whole movie ;p
|
Re: Multiple boot videos?
Hey Rolan900d,
I tried creating 2 default files. default.conf [hildon-welcome] filename= (Hand boot screen) And default2.conf [hildon-welcome] filename=short.avi But It didn't work. Still shows only the Hands as intro and thats it. |
Re: Multiple boot videos?
you could also make desktop-shortcut which executes the script or only the code (as one-liner) when you want to have a another/random bootvideo next time. xD
|
Re: Multiple boot videos?
Quote:
Learning a lot over here, but you are out of my league mate! @b66m: That would be great; but I got lost on that script... |
Re: Multiple boot videos?
outsch... too bad... $RANDOM doesn't deliver anything... this command isn't recognized at the n900 :/
|
Re: Multiple boot videos?
1 Attachment(s)
wuhaha :D
got it ^^ Code:
#!/bin/bash (i only have 2 confs in the dconfs-folder ^^) maybe i'll try to get it in rc2.d :) a shortcut on the desktop (for doing it manually) to this script is done very fast (: |
Re: Multiple boot videos?
if anybody is interested in this random bootvideo shortcut on the desktop. i could write a short how-to :)
|
Re: Multiple boot videos?
Hi b666m
Can you write please the "how-to" for a noob in Linux.... 1) How-to random video automaticly 2) How-to random bootvideo shortcut on the desktop Thanks |
Re: Multiple boot videos?
Quote:
Than I will get smarter in this |
Re: Multiple boot videos?
1 Attachment(s)
omg... the shortcut wasn't as easy as i thought it would be... but finally it's working...
instructions: 1. download the zip-file and unpack the two files anywhere in a new folder in your MyDocs. for example: ~/MyDocs/randomvid/ (unplug usb cable) 2. open xterm and type "sudo gainroot" 3. type "mkdir /etc/hildon-welcome.d/dconfs" 4. in this folder you have to store your default.conf files named 1.conf, 2.conf, 3.conf and so on (you have to start with 1 and then incremental count up (2, 3, 4, 5,...)) 5. type "cd MyDocs/randomvid/" 6. type "cp rvid.sh /etc/hildon-welcome.d/" 7. type "chmod a+x /etc/hildon-welcome.d/rvid.sh" 8. type "cp rvid.desktop /usr/share/applications/hildon/" 9. close xterm, go to your desktop and add the shortcut named "rvid". it uses the terminal-icon. if you want your own icon do following: 1. place a .png with 48 * 48 px in /usr/share/icons/hicolor/48x48/hildon/ (for example: rvid.png) 2. open the rvid.desktop with a editor and change the icon-line to: "Icon=rvid". save it. 3. you may have to reboot your device. thanks go to: fatalsaint for pointing me in the right direction with the desktop file. (http://talk.maemo.org/showpost.php?p...7&postcount=66) subcore for hack-around changing xterm to busybox. (http://talk.maemo.org/showpost.php?p...9&postcount=11) archebyte for changing the desktop-icon and some other neat work. (http://talk.maemo.org/showpost.php?p...0&postcount=26) edit: it's normal that the terminal opens up, stays black and closes after a few seconds. it's also normal that it may replaces the current default.conf with the same config - so your video may not change everytime you click on it. but hey... that's randomness ;D EDIT: updated the rvid.sh with new code with generates random number out of date and checks which default.conf is used at the moment so the video is changed every time you click it :) (code is available on page 4 where the instructions are given on how to do this random vid change automatically ^) |
Re: Multiple boot videos?
script:
Code:
#!/bin/bash (edit: for some reason there was 5:1 chance of 2.conf to 1.conf... so i added some more randomness by creating two random numbers and substract the smaller number from the greater one.) (edit2: i could add some lines which force the bootvideo to change. in the current version the default could be replaced by the same file and the bootvideo would still be the same. good idea? bad idea?!) desktop: Code:
[Desktop Entry] |
Re: Multiple boot videos?
where I need put the video files ? to /MyDocs/randomvid/ ?
or in default folder /media ? |
Re: Multiple boot videos?
Quote:
(get root-terminal) 1. cp -r /usr/share/hildon-welcome/media /opt/ (this should make /opt/media with the nokia hands video as content) 2. rm -r /usr/share/hildon-welcome/media (this should remove the media folder from there) 3. cd /usr/share/hildon-welcome (change the directory ^^) 4. ln -s /opt/media media (symlinking /opt/media to /usr/share/hildon-welcome/media) then you can put all of your videos into /opt/media/ ;) |
Re: Multiple boot videos?
I get this ! Thank you very much !
Another question, can we get this process automatically, without pressing on the button on desktop before reboot ? I mean on all reboot it the load another video ? (sorry for my ugly english :-) ) |
Re: Multiple boot videos?
Quote:
haven't done this before... but i could take a look... (better said: google could have a look ^^) CAN ANYONE PROVIDE AN INIT SCRIPT WHICH LAUNCHES A SHELL SCRIPT? :D |
Re: Multiple boot videos?
EDIT: FORGET USING INIT.D ON MAEMO! FOR STARTING YOUR OWN SCRIPTS RUN IT VIA EVENT.D! LOOK DOWN THIS SITE FOR AN EXAMPLE! ;D
QUESTION: ^^ Code:
#! /bin/sh then doing: Code:
chmod 755 /etc/init.d/rvid |
Re: Multiple boot videos?
mkay... doesn't work... i can't get it work...
so you have to stick to the shortcut-method until someone points me the direction to launch my script on startup. ^^ the only thing i could do in addition would be checking which bootvideo is currently used so that another default.conf gets loaded. (in my current version the same bootvideo can be played several times because maybe the default.conf gets overwritten by the same default.conf) so... if you want to have a new bootvideo each time you click the shortcut... leave a comment here... ^^ (or program it by yourself ;D) |
Re: Multiple boot videos?
1 Attachment(s)
omg.... i've done so much... just look at my friggin' battery drainage xD
(see this straight drop of about 30%??? this is how multiple reboots (about mhm... 5?!) look like :D) |
Re: Multiple boot videos?
1 Attachment(s)
first things first ^^
new script which will check the currently used video so that it's always another video on bootup :) (ok... if you run it for the first time it may be not changing the video because my check-file doesn't exist in this moment but it will be created then ^^) Code:
blablabla... same as in the code under this code.. blablabla Code:
start on starting shutdown |
Re: Multiple boot videos?
1 Attachment(s)
and...
YEAH BABY!!! :D got it replaced automatically... even before the video is loaded ^^ *hrhr* instructions: 1. download the zip-file and place file "rvid" in ~/MyDocs/ranvid/ (for example) 2. open xterm 3. type "sudo gainroot" 4. type "cp MyDocs/ranvid/rvid /etc/event.d/" 5. type "chmod 777 /etc/event.d/rvid" if you haven't done it yet: 8. type "mkdir /etc/hildon-welcome.d/dconfs" 9. place your default.conf files there BUT rename them in 1.conf, 2.conf, 3.conf and so on. so the contents should be: /etc/hildon-welcome.d/default.conf and /etc/hildon-welcome.d/dconfs/1.conf /etc/hildon-welcome.d/dconfs/2.conf /etc/hildon-welcome.d/dconfs/3.conf ... and so on. ehm yeah... have fun ;) edit: forgot to mention... this one is the code which will always replace the current bootvideo with any other bootvideo out of the x.conf files (: EDIT: UPDATED TO FINAL VERSION. ^^ |
Re: Multiple boot videos?
You are my member of the month in here..
Always there, always helpfull and in here for others as well.. Bravo! Will test and try later ================================================== ========= Did it all but not working for me. So I guess I made a mistake... To verify: I kept the default.conf file in etc/hildon-welcome.d With your tweak exicuted it keeps on booting with hands... I think it is because of that default.conf in there. I will try to delete that one so it will use the hildon-welcome.d/donfs Midleading as you stated how the contents must look |
Re: Multiple boot videos?
Now I left default.conf in /etc/hildon-welcome.d.
with also 6 others (named the default1.conf until default6.conf) These 7 default conf files I copied and renamed them 1.conf until 7.conf and placed them in /etc/hildon-welcome.d./dconfs This gave me a lot of videos in a continious loop! It showed 5 of the 7 and 2 I could hear but didn't see So I did something wrong I guess In your described progress I cam acroos on error on my end.. 1. download the zip-file and place the two files "rvid" and "rvide" (for example) in ~/MyDocs/ranvid/ 2. open xterm 3. type "sudo gainroot" 4. type "cp ranvid/rvid /usr/bin/" 5. type "chmod 777 /usr/bin/rvid" 6. type "cp ranvid/rvide /etc/event.d/" At 4 and 6 in needed to put this between cp and ranvid due to errors /home/user/MyDocs/ |
Re: Multiple boot videos?
ONLY have ONE default.conf in /etc/hildon-welcome.d/
(delete all other defaultx.conf files!) just let the x.conf files in /etc/hildon-welcome.d/dconfs/ to make it clear. it must look like: /etc/hildon-welcome.d/default.conf and /etc/hildon-welcome.d/dconfs/1.conf /etc/hildon-welcome.d/dconfs/2.conf /etc/hildon-welcome.d/dconfs/3.conf ... and so on. |
Re: Multiple boot videos?
I did that but than only the hands animation runs.
My default.conf is the hands one |
Re: Multiple boot videos?
Quote:
Just booted on hands |
All times are GMT. The time now is 15:47. |
vBulletin® Version 3.8.8