Maui Forums
Editing Boot Time.[SOLVED] - Printable Version

+- Maui Forums (https://forums.mauilinux.org)
+-- Forum: Maui Support (https://forums.mauilinux.org/forumdisplay.php?fid=74)
+--- Forum: Installation (https://forums.mauilinux.org/forumdisplay.php?fid=83)
+--- Thread: Editing Boot Time.[SOLVED] (/showthread.php?tid=24201)

Pages: 1 2


Editing Boot Time.[SOLVED] - karlheinrich - 3rd January 2017

solved]
I very recently upgraded my desktop computer and replaced the old motherboard and processor with Asus H110M-D & i5 core; 8GB RAM.

I re-installed Win7 and freshly installed Maui 2.1 "Blue Tang" (dual boot) and updated/upgraded Maui OS; Build Version:20161117.

KDE Plasma Version: 5.8.3
KDE Apps Version: 16.08.2
Framework Version: 5.27.0
Qt Version: 5.7.0
Kernel Version: 4.4.0-57 generic

According to '/etc/default/grub.ufc-dist' the GRUB_TIMEOUT is originally set to 10 seconds but booting already begins after 3 seconds. I edited my desired boot time to 90 seconds, updated grub, but the '3sec boot time' persists.  
Below is shown my most recent edit of grub.ucf-dist:

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=90
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

I can't find a suitable KDE package in Synaptic PM.
I request assistance to manually enable boot time to 90 seconds without installing additional software such as 'Grub Customizer'.


RE: Editing Boot Time. - AJSlye - 3rd January 2017

You need to edit the /etc/default/grub file and then run update-grub
The /etc/default/grub.ufc-dist file is used by ufc for preserving user changes to the config file.
https://packages.debian.org/stretch/ucf


RE: Editing Boot Time. - karlheinrich - 3rd January 2017

(3rd January 2017, 2:43)AJSlye Wrote: You need to edit the /etc/default/grub file and then run update-grub
The /etc/default/grub.ufc-dist file is used by ufc for preserving user changes to the config file.
https://packages.debian.org/stretch/ucf

Thanks for response and informative link.

I did try to edit the /etc/default/grub file before but because of "missing entries" decided to edit the The /etc/default/grub.ufc-dist file.

My /etc/default/grub file looks like this:

GRUB_THEME=/boot/grub/themes/maui/theme.txt
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=40fcaab4-82a8-4915-99e8-7d6f2e322d73"
GRUB_DISTRIBUTOR="Maui"

Could you please advise on how to edit this file to suit my requirement, thanks.


RE: Editing Boot Time. - AJSlye - 3rd January 2017

Just add in the entries that you need from the other file, or all of them if you like.
Then updte-grub afterwords.
But do not change the resume line, otherwise you may not be able to boot.


RE: Editing Boot Time. - karlheinrich - 3rd January 2017

(3rd January 2017, 3:15)AJSlye Wrote: Just add in the entries that you need from the other file, or all of them if you like.
Then updte-grub afterwords.
But do not change the resume line, otherwise you may not be able to boot.

Okay, I copied all entries from the /etc/default/grub.ufc-dist and pasted them to the /etc/default/grub file.

This is what the edited /etc/default/grub file looks like:

GRUB_THEME=/boot/grub/themes/maui/theme.txt
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=40fcaab4-82a8-4915-99e8-7d6f2e322d73"
GRUB_DISTRIBUTOR="Maui"

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=90
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

sudo update-grub produced this output:

Generating grub configuration file ...

Found theme: /boot/grub/themes/maui/theme.txt
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.4.0-57-generic
Found initrd image: /boot/initrd.img-4.4.0-57-generic
Found linux image: /boot/vmlinuz-4.4.0-47-generic
Found initrd image: /boot/initrd.img-4.4.0-47-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
done

I rebooted and noticed that the log-off time took longer than usual.
The system eventually rebooted but the boot-time changed to 7 seconds only instead of the desired 90 seconds.


RE: Editing Boot Time. - AJSlye - 3rd January 2017

Did you notice this line.
Quote:Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.

This is actually an old issue as GRUB_HIDDEN_TIMEOUT and GRUB_HIDDEN_TIMEOUT_QUIET have been deprecated in grub for some time now (approx. 2013). These have been replaced with GRUB_TIMEOUT_STYLE.

Type the following into a terminal to get grubs options:
Code:
info -f grub -n 'Simple configuration'
Quote:'GRUB_TIMEOUT'
Boot the default entry this many seconds after the menu is
displayed, unless a key is pressed. The default is '5'. Set to
'0' to boot immediately without displaying the menu, or to '-1' to
wait indefinitely.

If 'GRUB_TIMEOUT_STYLE' is set to 'countdown' or 'hidden', the
timeout is instead counted before the menu is displayed.

'GRUB_TIMEOUT_STYLE'
If this option is unset or set to 'menu', then GRUB will display
the menu and then wait for the timeout set by 'GRUB_TIMEOUT' to
expire before booting the default entry. Pressing a key interrupts
the timeout.

If this option is set to 'countdown' or 'hidden', then, before
displaying the menu, GRUB will wait for the timeout set by
'GRUB_TIMEOUT' to expire. If <ESC> is pressed during that time, it
will display the menu and wait for input. If a hotkey associated
with a menu entry is pressed, it will boot the associated menu
entry immediately. If the timeout expires before either of these
happens, it will boot the default entry. In the 'countdown' case,
it will show a one-line indication of the remaining time.

So basically this is what should be set to get your desired effect:
Code:
GRUB_THEME=/boot/grub/themes/maui/theme.txt
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=40fcaab4-82a8-4915-99e8-7d6f2e322d73"
GRUB_DISTRIBUTOR="Maui"

GRUB_DEFAULT=0
GRUB_TIMEOUT=90
GRUB_TIMEOUT_STYLE=hidden
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""



RE: Editing Boot Time. - AJSlye - 3rd January 2017

BTW, please use code and/or quote boxes whenever possible to not only make sure your posts easy to read, but also to keep the forum bot from marking your long posts as spam and suspending your account.


RE: Editing Boot Time. - karlheinrich - 3rd January 2017

(3rd January 2017, 5:52)AJSlye Wrote: Did you notice this line.


Quote:Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.

This is actually an old issue as GRUB_HIDDEN_TIMEOUT and GRUB_HIDDEN_TIMEOUT_QUIET have been deprecated in grub for some time now (approx. 2013). These have been replaced with GRUB_TIMEOUT_STYLE.

Type the following into a terminal to get grubs options:


Code:
info -f grub -n 'Simple configuration'
Quote:'GRUB_TIMEOUT'
    Boot the default entry this many seconds after the menu is
    displayed, unless a key is pressed.  The default is '5'.  Set to
    '0' to boot immediately without displaying the menu, or to '-1' to
    wait indefinitely.

    If 'GRUB_TIMEOUT_STYLE' is set to 'countdown' or 'hidden', the
    timeout is instead counted before the menu is displayed.

'GRUB_TIMEOUT_STYLE'
    If this option is unset or set to 'menu', then GRUB will display
    the menu and then wait for the timeout set by 'GRUB_TIMEOUT' to
    expire before booting the default entry.  Pressing a key interrupts
    the timeout.

    If this option is set to 'countdown' or 'hidden', then, before
    displaying the menu, GRUB will wait for the timeout set by
    'GRUB_TIMEOUT' to expire.  If <ESC> is pressed during that time, it
    will display the menu and wait for input.  If a hotkey associated
    with a menu entry is pressed, it will boot the associated menu
    entry immediately.  If the timeout expires before either of these
    happens, it will boot the default entry.  In the 'countdown' case,
    it will show a one-line indication of the remaining time.

So basically this is what should be set to get your desired effect:


Code:
GRUB_THEME=/boot/grub/themes/maui/theme.txt
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=40fcaab4-82a8-4915-99e8-7d6f2e322d73"
GRUB_DISTRIBUTOR="Maui"

GRUB_DEFAULT=0
GRUB_TIMEOUT=90
GRUB_TIMEOUT_STYLE=hidden
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
I did notice the Warning note but am having a hard time interpreting these type of notices correctly and act accordingly.

Your advice did indeed rectify the booting time; I'll mark this post as [SOLVED].

I am grateful for your expert support and prompt advice, my thanks!


RE: Editing Boot Time. [SOLVED] - karlheinrich - 3rd January 2017

(3rd January 2017, 2:30)karlheinrich Wrote: I very recently upgraded my desktop computer and replaced the old motherboard and processor with Asus H110M-D & i5 core; 8GB RAM.

I re-installed Win7 and freshly installed Maui 2.1 "Blue Tang" (dual boot) and updated/upgraded Maui OS; Build Version:20161117.

KDE Plasma Version: 5.8.3
KDE Apps Version: 16.08.2
Framework Version: 5.27.0
Qt Version: 5.7.0
Kernel Version: 4.4.0-57 generic

According to '/etc/default/grub.ufc-dist' the GRUB_TIMEOUT is originally set to 10 seconds but booting already begins after 3 seconds. I edited my desired boot time to 90 seconds, updated grub, but the '3sec boot time' persists.  
Below is shown my most recent edit of grub.ucf-dist:

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=90
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

I can't find a suitable KDE package in Synaptic PM.
I request assistance to manually enable boot time to 90 seconds without installing additional software such as 'Grub Customizer'.



RE: Editing Boot Time. - karlheinrich - 3rd January 2017

(3rd January 2017, 6:22)AJSlye Wrote: BTW, please use code and/or quote boxes whenever possible to not only make sure your posts easy to read, but also to keep the forum bot from marking your long posts as spam and suspending your account.

I'll be guided accordingly.