Send plymouth mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.freedesktop.org/mailman/listinfo/plymouth
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of plymouth digest..."


Today's Topics:

   1. Progress Bar in Ubuntu 10.04 and Math.Random()
      (Bruno Moreira Alves)
   2. Re: Progress Bar in Ubuntu 10.04 and Math.Random() (Charlie Brej)
   3. Re: Progress Bar in Ubuntu 10.04 and Math.Random()
      (Bruno Moreira Alves)
   4. Re: Progress Bar in Ubuntu 10.04 and Math.Random() (Charlie Brej)


----------------------------------------------------------------------

Message: 1
Date: Wed, 28 Jul 2010 11:32:34 -0300
From: Bruno Moreira Alves <[email protected]>
Subject: Progress Bar in Ubuntu 10.04 and Math.Random()
To: [email protected]
Message-ID: <1280327554.1787.16.ca...@bruno-desktop>
Content-Type: text/plain; charset="UTF-8"

Hi everyone, been having some realy hard time with plymouth customizing
here...

I'm using Ubuntu 10.04 Lucid Lynx... I was trying out some themes, but
realized that every theme that shows a progress bar doesn't properly
work... the boot process finishes and the progress bar is still around
15%.... even the ubuntu-studio theme installed from ubuntu repositories
show the same thing....

why?

and another thing.... 

since i wasn't getting a proper progress bar, I started playing around
with other themes, so I got the MIB-Ubuntu theme, and created seven
different backgrounds, named bg1.png, bg2.png... , my idea is that every
boot up/down one of these backgrounds would be randomly selected, so I
have added the following lines to the script:

randombg = Math.Int(Math.Random()* 6.9) + 1 ;

and 

background.original_image = ImageNew("bg"+ randombg +".png");

it works, but everytime is the same background, the random function, is
using alway the same seed I suppose?

I've tried loading all images, and randomly selecting one of them, but
that only made de plymouth take a longer time to load, but still showed
always the same bg....


------------------------------

Message: 2
Date: Wed, 28 Jul 2010 16:31:18 +0100
From: Charlie Brej <[email protected]>
Subject: Re: Progress Bar in Ubuntu 10.04 and Math.Random()
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 28/07/10 15:32, Bruno Moreira Alves wrote:
> Hi everyone, been having some realy hard time with plymouth customizing
> here...
>
> I'm using Ubuntu 10.04 Lucid Lynx... I was trying out some themes, but
> realized that every theme that shows a progress bar doesn't properly
> work... the boot process finishes and the progress bar is still around
> 15%.... even the ubuntu-studio theme installed from ubuntu repositories
> show the same thing....
>
> why?

I'm not sure. You're not the first person to report this in Ubuntu and I 
suspect the the boot progress file is not being saved correctly. 
Remember, when you test a theme, this overwrites the progress file and 
the next boot will not know what the progress is. So you will need to 
reboot twice before the progress is displayed correctly.

Do you have "/var/lib/plymouth/boot-duration". What is in it?

> it works, but everytime is the same background, the random function, is
> using alway the same seed I suppose?

Thats right, you need to seed it. I was going to add a seed function, 
but then I would also needed to add a time function to make a seed. I'll 
fix this soon.

 > randombg = Math.Int(Math.Random()* 6.9) + 1 ;

Random gives a number 0<=X<1 so it will never be 1, so you don't need 
the 6.9 instead of 7. Also, counting from zero rules!


------------------------------

Message: 3
Date: Wed, 28 Jul 2010 13:26:15 -0300
From: Bruno Moreira Alves <[email protected]>
Subject: Re: Progress Bar in Ubuntu 10.04 and Math.Random()
To: [email protected]
Message-ID: <1280334375.1751.0.ca...@bruno-desktop>
Content-Type: text/plain; charset="UTF-8"

Em Qua, 2010-07-28 ?s 16:31 +0100, Charlie Brej escreveu:
> On 28/07/10 15:32, Bruno Moreira Alves wrote:
> > Hi everyone, been having some realy hard time with plymouth customizing
> > here...
> >
> > I'm using Ubuntu 10.04 Lucid Lynx... I was trying out some themes, but
> > realized that every theme that shows a progress bar doesn't properly
> > work... the boot process finishes and the progress bar is still around
> > 15%.... even the ubuntu-studio theme installed from ubuntu repositories
> > show the same thing....
> >
> > why?
> 
> I'm not sure. You're not the first person to report this in Ubuntu and I 
> suspect the the boot progress file is not being saved correctly. 
> Remember, when you test a theme, this overwrites the progress file and 
> the next boot will not know what the progress is. So you will need to 
> reboot twice before the progress is displayed correctly.
> 
> Do you have "/var/lib/plymouth/boot-duration". What is in it?
> 

It's an empty file....



------------------------------

Message: 4
Date: Wed, 28 Jul 2010 18:14:12 +0100
From: Charlie Brej <[email protected]>
Subject: Re: Progress Bar in Ubuntu 10.04 and Math.Random()
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8; format=flowed

On 07/28/2010 05:26 PM, Bruno Moreira Alves wrote:
> Em Qua, 2010-07-28 ?s 16:31 +0100, Charlie Brej escreveu:
>> Do you have "/var/lib/plymouth/boot-duration". What is in it?
>>
>
> It's an empty file....
Even directly after a reboot?


------------------------------

_______________________________________________
plymouth mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/plymouth


End of plymouth Digest, Vol 21, Issue 5
***************************************

Reply via email to