maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Brainstorm (https://talk.maemo.org/forumdisplay.php?f=47)
-   -   [Implemented] Set bootscreen video... Easier. (https://talk.maemo.org/showthread.php?t=33000)

VDVsx 2010-02-22 11:54

Re: [Under consideration] Set bootscreen video... Easier.
 
Quote:

Originally Posted by synplex (Post 540446)
Cant wait to try this out.... or should wait since I'm a bit of a "linux noob"?

Anything I should be worried of?
:confused:

As I said I made this app in a couple of hours, so expect bugs, but I made sure that the app doesn't harm the system at least.

VDVsx 2010-02-22 11:58

Re: [Under consideration] Set bootscreen video... Easier.
 
Quote:

Originally Posted by b666m (Post 540479)
nice work! :)

wish i could code GUIs too. ^^

as i can see you are using the current time as qrand()-seed... looks like we had the same idea xD

Well, do you have any better and faster seed :D

Quote:

Originally Posted by b666m (Post 540479)
i haven't the time to look at all your files... but is the random file only set when the user opens your app and clicks on the button or is it set automatically each time the phone starts up/ shuts down?
(if not that would be a suggestion worth implementing ^^)

There's a non-gui class that runs on boot and updates the file.

Quote:

Originally Posted by b666m (Post 540479)
also i don't know if your program shows the random selection to the user after clicking on the button but if it does so then the surprise wouldn't be there on startup (because the user already knows which video will show up... so i would like the "kinder surprise"-style more - not knowing what you'll get *g*)

It shows a selection but not the one that will be played, since the script is updated before the boot player starts(start on XSESSIONS_STARTING).

VDVsx 2010-02-22 12:01

Re: [Under consideration] Set bootscreen video... Easier.
 
Quote:

Originally Posted by rolan900d (Post 540714)
THanks for the bootscreen app.
Will test it VDVsx

Suggestion:

1. Add the option to look in /opt/media

For what ? It looks at /MyDocs that is the easier place to copy media, and then copy the files to /opt/bootscreen/media since /MyDocs can't be accessed on boot.

VDVsx 2010-02-22 12:05

Re: [Under consideration] Set bootscreen video... Easier.
 
Quote:

Originally Posted by rolan900d (Post 540796)
random option is confirmed to work..
haven't seen all of my 7 videos in there but they switch.
i notived a 0.conf file is being made every single boot.

Problem is that with random option you have 2 single select all the files.
Maybe add the option 'content of folder add'?

Humm ? Can you explain that better ?

It looks at /opt/bootscreen/media and choses a file from there.

Quote:

Originally Posted by rolan900d (Post 540796)
Multiple option isn't working 4 me at all.
If I select 2 videos and boot nothing happens??

Didn't noticed any issue with that, can you please check the files under /etc/hildon-welcome.d/ after close the bootscreen app.

VDVsx 2010-02-22 12:09

Re: [Under consideration] Set bootscreen video... Easier.
 
Quote:

Originally Posted by BlueVex (Post 540799)
i cant install bootscreen 0.1 it says im missing libqt4-maemo5-maemo5 where can i get it?

Extras-devel repository, you probably installed some libs via apt-get so now there's some conflict.

As root: "apt-get install libqt4-maemo5-maemo5".

VDVsx 2010-02-22 12:12

Re: [Under consideration] Set bootscreen video... Easier.
 
Quote:

Originally Posted by pillar (Post 540843)
My experience:

1) Downloaded a boot video to Downloads.
2) Added it in BootScreen
3) Selected only that video and moved it up as first
4) Closed BootScreen and booted
5) No bootvideo shown
6) Going to BootScreen and the selected video not shown on the list
7) Trying to add again gives error: "Error: the file already exists!"

Humm, did you had some custom files already ?
Can you check if the video is under /opt/bootscreen/media ?

No need to move the video to the top if there's only one selected.

pillar 2010-02-22 12:20

Re: [Under consideration] Set bootscreen video... Easier.
 
Quote:

Originally Posted by VDVsx (Post 540969)
Humm, did you had some custom files already ?
Can you check if the video is under /opt/bootscreen/media ?

No need to move the video to the top if there's only one selected.

Yes, I had one custom boot video already. The media can be found at /opt/bootscreen/media correctly.

VDVsx 2010-02-22 12:31

Re: [Under consideration] Set bootscreen video... Easier.
 
Quote:

Originally Posted by pillar (Post 540975)
Yes, I had one custom boot video already. The media can be found at /opt/bootscreen/media correctly.

Select the hands video, reboot and that should be fixed, unless there's some permissions mess in the system.

Persson 2010-02-22 12:47

Re: [Under consideration] Set bootscreen video... Easier.
 
i get this error when i try install

conflict whid program: libqt4-maemo5-svg(4.6.0-git20100119-1maemo1)

VDVsx 2010-02-22 13:16

Re: [Under consideration] Set bootscreen video... Easier.
 
Quote:

Originally Posted by Persson (Post 541004)
i get this error when i try install

conflict whid program: libqt4-maemo5-svg(4.6.0-git20100119-1maemo1)

Yeah, Qt 4.6 packages are a bit messy at the moment, but since PR1.2 is coming and Qt 4.6 will be installed by default I've to use these :).

As root: "apt-get install libqt4-maemo5-gui"

rolan900d 2010-02-22 13:30

Re: [Under consideration] Set bootscreen video... Easier.
 
Quote:

Originally Posted by VDVsx (Post 540948)
For what ? It looks at /MyDocs that is the easier place to copy media, and then copy the files to /opt/bootscreen/media since /MyDocs can't be accessed on boot.

I see now...
So I just put videos in MyDocs/Bootvideos (example)

And your app moves or copies them to /opt/bootscreen/media

???

rolan900d 2010-02-22 13:43

Re: [Under consideration] Set bootscreen video... Easier.
 
Quote:

Originally Posted by VDVsx (Post 540961)
Humm ? Can you explain that better ?

It looks at /opt/bootscreen/media and choses a file from there.



Didn't noticed any issue with that, can you please check the files under /etc/hildon-welcome.d/ after close the bootscreen app.

I just checked and only a o.conf file in there..
Which states the movie that was just played

VDVsx 2010-02-22 13:57

Re: [Under consideration] Set bootscreen video... Easier.
 
Quote:

Originally Posted by rolan900d (Post 541045)
I see now...
So I just put videos in MyDocs/Bootvideos (example)

And your app moves or copies them to /opt/bootscreen/media

???

Exactly, the app copies the movies.

VDVsx 2010-02-22 13:59

Re: [Under consideration] Set bootscreen video... Easier.
 
Quote:

Originally Posted by rolan900d (Post 541058)
I just checked and only a o.conf file in there..
Which states the movie that was just played

1 - Open bootscreen app;
2 - Select two or more videos;
3 - Close the app;
4 - Check /etc/hildon-welcome.d/

Thanks.

pillar 2010-02-22 14:07

Re: [Under consideration] Set bootscreen video... Easier.
 
Quote:

Originally Posted by VDVsx (Post 540987)
Select the hands video, reboot and that should be fixed, unless there's some permissions mess in the system.

This helped to get the video showing in bootscreen, but it was still not played during the bootup. I removed whitespaces from the filename and now it works.

VDVsx 2010-02-22 14:13

Re: [Under consideration] Set bootscreen video... Easier.
 
Quote:

Originally Posted by pillar (Post 541088)
This helped to get the video showing in bootscreen, but it was still not played during the bootup. I removed whitespaces from the filename and now it works.

Humm, interesting, so you had something like that: "my video.avi" ?
Probably some limitation of the boot player, have to check that.

Thanks for the diagnostic :).

Crude 2010-02-22 15:55

Re: [Under consideration] Set bootscreen video... Easier.
 
Quote:

Originally Posted by VDVsx (Post 540932)
You need last Qt packages, probably you installed them via apt-get so they aren't updating.

"apt-get install libqt4-maemo5-maemo5" as root should fix that.


Cheers mate it works.

rolan900d 2010-02-22 16:34

Re: [Under consideration] Set bootscreen video... Easier.
 
Quote:

Originally Posted by VDVsx (Post 541077)
1 - Open bootscreen app;
2 - Select two or more videos;
3 - Close the app;
4 - Check /etc/hildon-welcome.d/

Thanks.

I cleaned the 7 files I had added in there.
Choose 2 ones, closed app and checked etc/hildon-welcome.d/

Nothing was in there...

VDVsx 2010-02-22 17:01

Re: [Under consideration] Set bootscreen video... Easier.
 
Quote:

Originally Posted by rolan900d (Post 541319)
I cleaned the 7 files I had added in there.
Choose 2 ones, closed app and checked etc/hildon-welcome.d/

Nothing was in there...

Probably you changed the folder permissions and now the app can't write there, please run the app as root (/usr/bin/bootscreen) following the steps above and pastebin the output here.

rolan900d 2010-02-22 18:20

Re: [Under consideration] Set bootscreen video... Easier.
 
Ran it through root...
App started, choose 2 files , closed app and checked///.
Nothing in there...

VDVsx 2010-02-22 18:31

Re: [Under consideration] Set bootscreen video... Easier.
 
Quote:

Originally Posted by rolan900d (Post 541461)
Ran it through root...
App started, choose 2 files , closed app and checked///.
Nothing in there...

Yes, same thing as expected, but without the app output I can't help you.

rolan900d 2010-02-22 19:26

Re: [Under consideration] Set bootscreen video... Easier.
 
What do you mean with output?

Sorry 4 not understanding

rolan900d 2010-02-22 19:34

Re: [Under consideration] Set bootscreen video... Easier.
 
After closing it I see this in root Xterminal:

"/opt/bootscreen/media/Matrix.avi"
"/opt/bootscreen/media/Matrix2.avi"

VDVsx 2010-02-22 19:36

Re: [Under consideration] Set bootscreen video... Easier.
 
Quote:

Originally Posted by rolan900d (Post 541555)
What do you mean with output?

Sorry 4 not understanding

When you run an application in a terminal, the application usually prints some messages to the terminal, that's the application output/debug, I need these messages in order to debug your problem, since I can't reproduce it in my device(works as expected).

rolan900d 2010-02-22 19:37

Re: [Under consideration] Set bootscreen video... Easier.
 
That it is was is stated above

VDVsx 2010-02-22 19:42

Re: [Under consideration] Set bootscreen video... Easier.
 
Quote:

Originally Posted by rolan900d (Post 541576)
After closing it I see this in root Xterminal:

"/opt/bootscreen/media/Matrix.avi"
"/opt/bootscreen/media/Matrix2.avi"

After that the app should print something like this:

Code:

"true  : "0.conf"
"true  : "1.conf"

"/etc/hildon-welcome.d/0.conf"

"/etc/hildon-welcome.d/1.conf""

depending in the number of videos that you had there.

rolan900d 2010-02-22 19:43

Re: [Under consideration] Set bootscreen video... Easier.
 
Nothing like that...

Just the 2 videos are stated which I choose...

Can't I reset the folders in MC ?
maybe it is because I have symlink folder with the manual version of multiple videos or random play?

These conf are written when I choose random play.
0.conf that is..

BUt nothing happens on multiple...
Should I try to uninstall, boot and reinstall?

VDVsx 2010-02-22 19:55

Re: [Under consideration] Set bootscreen video... Easier.
 
Quote:

Originally Posted by rolan900d (Post 541593)
Nothing like that...

Just the 2 videos are stated which I choose...

Can't I reset the folders in MC ?
maybe it is because I have symlink folder with the manual version of multiple videos or random play?

You can delete the symlinks, but careful with that, you probably changed the folder permissions as well, that's far from a good practice, can even brick your device, luckily this folder is not crucial for the system.

I've these permissions:

Code:

Nokia-N900-51-1:/etc# ls -la hildon-welcome.d/
drwxr-xr-x    2 root    root          224 Feb 22 19:43 .
drwxr-xr-x  77 root    root        8192 Feb 22 19:35 ..
-rw-r--r--    1 root    root          77 Feb 22 19:43 0.conf

If you don't feel confident in change these things, send me a pm that I'll send you a binary of the app with all debug symbols in order to easily find the problem.

VDVsx 2010-02-22 19:57

Re: [Under consideration] Set bootscreen video... Easier.
 
Quote:

Originally Posted by rolan900d (Post 541593)
Nothing like that...

Just the 2 videos are stated which I choose...

Can't I reset the folders in MC ?
maybe it is because I have symlink folder with the manual version of multiple videos or random play?

These conf are written when I choose random play.
0.conf that is..

BUt nothing happens on multiple...
Should I try to uninstall, boot and reinstall?

Ah, so is not a permissions problem, since the code is the same, are you sure that two or more videos are selected ?

rolan900d 2010-02-22 20:00

Re: [Under consideration] Set bootscreen video... Easier.
 
I am a stupid ***!
Sorry, I thought that selecting was adding them in the list...
BUt now I saw selecting is making them blue!

All is good now...

Excuse me again

mr_bridger 2010-02-23 11:54

Re: [Under consideration] Set bootscreen video... Easier.
 
Hi, looks a great app, out of interest, is it optified?.

thanx

VDVsx 2010-02-23 11:58

Re: [Under consideration] Set bootscreen video... Easier.
 
Quote:

Originally Posted by mr_bridger (Post 542505)
Hi, looks a great app, out of interest, is it optified?.

thanx

Yes, installs directly into /opt, anyway is ~80k :D

mr_bridger 2010-02-23 12:21

Re: [Under consideration] Set bootscreen video... Easier.
 
oh, ok.
download is 7mb
just fired up the installation and it says in the problems tab:-

unable to install 'BootScreen'
conflict with application packages libqt4-maemo5-network (4.6.2git~20100203-0maemo1)

VDVsx 2010-02-23 12:28

Re: [Under consideration] Set bootscreen video... Easier.
 
Quote:

Originally Posted by mr_bridger (Post 542541)
oh, ok.
download is 7mb
just fired up the installation and it says in the problems tab:-

unable to install 'BootScreen'
conflict with application packages libqt4-maemo5-network (4.6.2git~20100203-0maemo1)

These are the Qt libs, but are also optified.

You've a previous version of Qt 4.6 that has a bug, you can wait for PR1.2 or update the lib via terminal, in order to fix that. (remember SW in extras-devel can be unstable and buggy)

As root: apt-get install libqt4-maemo5-gui

tangs 2010-02-23 13:21

Re: [Under consideration] Set bootscreen video... Easier.
 
Hey, i installed the application, without any problems :)
When i run it i can see that their is the nokia's hand video, if i click on it (deselect) and reboot the device, the video is playing...
if i add a video and i choose the new video their is no video playing at all...

VDVsx 2010-02-23 14:09

Re: [Under consideration] Set bootscreen video... Easier.
 
Quote:

Originally Posted by tangs (Post 542607)
Hey, i installed the application, without any problems :)
When i run it i can see that their is the nokia's hand video, if i click on it (deselect) and reboot the device, the video is playing...
if i add a video and i choose the new video their is no video playing at all...

Are you using the "multiple" option ?
Does your video has spaces in the name ? (like video 1.avi)
Can you please paste the output of the app here ?

As root: /usr/bin/bootscreen and copy the lines printed in the terminal.

I'll redesign the UI a bit, seems that most of the problems(all ?) aren't in the app itself but in the way the users interact with it, so expect a update around next weekend :).

tangs 2010-02-23 14:25

Re: [Under consideration] Set bootscreen video... Easier.
 
So,
- yes, i'm using "multiple" option
- there is no space in the name : n900extremelyshort.avi
- the line is : /opt/bootscreen/media/n900extremelyshort.avi

something wrong doctor ?

:)

VDVsx 2010-02-23 14:31

Re: [Under consideration] Set bootscreen video... Easier.
 
Quote:

Originally Posted by tangs (Post 542704)
So,
- yes, i'm using "multiple" option
- there is no space in the name : n900extremelyshort.avi
- the line is : /opt/bootscreen/media/n900extremelyshort.avi

something wrong doctor ?

:)

So far no, app output please.

VDVsx 2010-02-23 14:32

Re: [Under consideration] Set bootscreen video... Easier.
 
UI suggestion/graphics help: http://talk.maemo.org/showthread.php?p=542711

tangs 2010-02-23 14:46

Re: [Under consideration] Set bootscreen video... Easier.
 
how do i do to have "app output" ?


All times are GMT. The time now is 18:08.

vBulletin® Version 3.8.8