Page 1 of 1

reduce boot time

Posted: Sun Apr 22, 2012 8:49 pm
by gilles74
please can you give me the good way to reduce the boot time.

i boot from the flash usb with a fix ethernet adress but boot time is about 90 secondes (3s for kernel, 30 s for rootfs and the rest for minimyth)

with arch on ssd, i have about 20 s on the same machine ( shutlle XS35GT V2 with 8go ram)

Re: reduce boot time

Posted: Sun Apr 22, 2012 8:52 pm
by m_theredhead
For me, the key wasn't to reduce the boot time, but rather to get sleep/suspend working well.

Now minimyth is ready as soon the TV comes up.

I rarely reboot unless mythfrontend crashes or a new releas of minimyth is available.

Re: reduce boot time

Posted: Sun Apr 22, 2012 10:48 pm
by Pablo
The 30s needed to load rootfs sounds long. Both the kernel and rootfs load over the network in 6 seconds.

Also, MiniMyth's init is relatively long because I want to make sure that users have the best chance of identifying problems and that everything is correctly configured. In order to help users identify problems, MiniMyth does not init anything in parallel. In order to ensure everything is configured MiniMyth waits for things to be initialized (e.g. ntp) before continuing.

By the way, what hardware are you using? For me, it takes 45 seconds from motherboard post to MiniMyth ready to use.

Re: reduce boot time

Posted: Mon Apr 23, 2012 12:36 pm
by gilles74
m_theredhead : sure that better to use hibernate/suspend but i think my boot time very long.
I try to use the acpi parameter MM_ACPI_EVENT_BUTTON_POWER='sleep' and MM_ACPI_VIDEO_FLAGS='2' without succes. How do you use the hibernate mode ?

pablo : my hardware is this one
Atom D525/ion with 8Go ram

i can try to boot by netwoork

Re: reduce boot time

Posted: Mon Apr 23, 2012 3:35 pm
by m_theredhead
Luckily for me, suspend/resume just worked (mostly) out of the box for me. I have a 330 ION so we should be similar.

I think the key is having two things:

1) A button on your remote that is mapped to power. This in turn will call mm_sleep and put the computer to sleep. If you telnet into minimth now and run mm_sleep does your computer go to sleep successfully?
2) Waking up. On some older machines the bios had to be configured to wake from usb/serial/etc to work. On my newer machines they have just worked outside the box. I am using a MCE usb receiver that is capable of waking a machine up from the remote. What kind of IR receiver are you using?


Re: reduce boot time

Posted: Mon Apr 30, 2012 8:19 am
by gilles74
I make same test

1) works fine; telnet action turn on sleep mode; power button also on sleep mode, and power remote button same

2) i have a mce receiver (ir606 : formosa driver) thanks Pablo it's works fine :D
i don't make anything with lirc and the remote is working :D ( like a keaboard)
but i never wakeup the machine
the receiver has a light so i see it receive the order when i push on power remote button
i try wol and different value in MM without succes

i miss same think ?

Re: reduce boot time

Posted: Mon Apr 30, 2012 5:02 pm
by m_theredhead
Waking up is purely a hardware action and not really dependent on the software.

Look through your bios to see if you can configure which devices will wake the machine up. Typically they are USB, serial, PS/2, etc. You will want to make sure USB is enabled.


Re: reduce boot time

Posted: Thu Jun 14, 2012 9:09 pm
by bcromwell
Some motherboards have a jumper for USB that can determine if wake up works or not. I had the same issue, usb receiver was getting power but would never wakeup, moved jumper and it has worked ever since.