Page 24 of 34 FirstFirst ... 142223242526 ... LastLast
Results 231 to 240 of 336

Thread: HOWTO: Grub Customizer

  1. #231
    Join Date
    Dec 2006
    Location
    Alsace
    Beans
    967
    Distro
    Ubuntu 17.04 Zesty Zapus

    Re: HOWTO: Grub Customizer

    Quote Originally Posted by Jimmy_r View Post
    So as far as i can tell, the only config file it should touch when it comes to grub2 is /etc/default/grub.

    when it comes to resolution, the only lines it should mess with are GRUB_CMDLINE_LINUX_DEFAULT and GRUB_GFXMODE

    So if you change those lines to what you want and run update-grub, anything SUM did change should be taken care of.
    Thanks very much for jumping in, Jimmy_r!

    This morning, since your post:
    I reinstalled SUM & reset the resolution to 640x480 which is what I really want to have.
    That put 640x480 into grub.cfg & gives me big text for the Grub screen.
    I then used Synapt to completely remove SUM.

    For a test, I used GC to set the resolution to 1280x1024 & saved.
    /etc/default/grub now has 1280x1024.
    After running update-grub, /boot/grub/grub.cfg still shows 640x480 & Grub screen still has big text.

    I manually changed grub.cfg (as root) & saved it with 1280x1024.
    After update-grub, it is back to 640x480.

    So SUM can control grub.cfg which controls the Grub screen.
    GC can control /etc/default/grub but information from there never gets to grub.cfg, even after update-grub.

    The history is messy.
    I originally had partitions with 11.04 & 10.04, both with grub1.
    Then I wiped 11.04 & did a clean install of 11.10 with grub2, keeping grub1 in 10.04.
    Later I wiped 10.04 & did a clean install of 10.04 again, but with grub2.
    The output of boot_info_script with yesterday's values is in post #224, with some shady areas...

    What could I check next?
    Visit Ubuntu GUI Fan Club . . . . Visit Disconnected Jottings from Alsace
    Acer Aspire TC-100-007: Multi boot W10 / 17.04 Unity / 14.04LTS: Canon iP7250: Epson V200: also Asus 1015PED: W7 / 14.04.1LTS Unity

  2. #232

    Re: HOWTO: Grub Customizer

    Really strange.. I have no clue whats happening then

  3. #233
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: HOWTO: Grub Customizer

    One way we haven't tried to update the grub.cfg file which might make a difference: Rather than run "sudo update-grub" try:
    Code:
    sudo grub-mkconfig -o /boot/grub/grub.cfg
    This is a less user-friendly but more direct way of running update-grub and specifically targets the grub.cfg file. It should import the resolution setting in /etc/default/grub.
    New to Wayland.

    Retired.

  4. #234
    Join Date
    Dec 2006
    Location
    Alsace
    Beans
    967
    Distro
    Ubuntu 17.04 Zesty Zapus

    Re: HOWTO: Grub Customizer

    Code:
    sudo grub-mkconfig -o /boot/grub/grub.cfg
    That should transfer the /etc/default/grub setting (1280x1024x8) into grub.cfg, right?

    Well - no, it doesn't.
    grub.cfg still says 640x480.

    /etc/grub.d/00_header still includes:
    Code:
    if [ "x$gfxterm" = x1 ]; then
        # Make the font accessible
        prepare_grub_to_access_device `${grub_probe} --target=device "${GRUB_FONT_PATH}"`
    
        cat << EOF
    if loadfont `make_system_path_relative_to_its_root "${GRUB_FONT_PATH}"` ; then
    set gfxmode=640x480
      load_video
      insmod gfxterm
    EOF
    in case that is significant.

    Is there any way I can "trace" the action of update-grub, or grub_mkconfig, to see where it is looking?

    If I am the only one with this problem, then I am sorry to be wasting your time.
    If others have it too, then maybe it's not a waste...
    Visit Ubuntu GUI Fan Club . . . . Visit Disconnected Jottings from Alsace
    Acer Aspire TC-100-007: Multi boot W10 / 17.04 Unity / 14.04LTS: Canon iP7250: Epson V200: also Asus 1015PED: W7 / 14.04.1LTS Unity

  5. #235
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: HOWTO: Grub Customizer

    Quote Originally Posted by 2CV67 View Post
    Is there any way I can "trace" the action of update-grub, or grub_mkconfig, to see where it is looking?

    If I am the only one with this problem, then I am sorry to be wasting your time.
    If others have it too, then maybe it's not a waste...
    I don't know if anyone else is having this problem but I don't mind continuing this investigation (although when it's finally resolved, if ever, as a moderator I may break this off into its own thread). It's become a puzzle. Normally in situations such as this someone pops into the thread and sees something obvious and solves it with a single post. Until that happens....

    The first thing I'd confirm after running the grub-mkconfig command is the time/date stamp of grub.cfg to see if it was changed. If it was, then please post your /etc/grub.d/00_header and /etc/default/grub files. And your previous experiments (typos, etc) have confirmed this is the file it is using on boot.

    If it's updating the grub.cfg file but not using the resolution, there is something in the settings and script which tells Grub not to import the resolution into grub.cfg. That instruction should be buried in the 00_header script and based on input from the /etc/default/grub settings as far as I know.

    I believe SUM is still in control of the resolution? If so, you could also change the SUM resolution setting and then do a search using 'find' to see what file(s) changed after running it. Looking through / might take a while, so you might start with /boot first and expand it to / if no results are found:
    Code:
    sudo find /boot -type f -cmin 3
    sudo find / -type f -cmin 3
    I'm off on a business trip but will check back as I can.
    New to Wayland.

    Retired.

  6. #236
    Join Date
    Dec 2006
    Location
    Alsace
    Beans
    967
    Distro
    Ubuntu 17.04 Zesty Zapus

    Re: HOWTO: Grub Customizer

    I ran update-grub & the time/date stamp of grub.cfg WAS updated.

    Here are the /etc/grub.d/header_00 & etc/default/grub files after that update-grub:

    Code:
    #! /bin/sh
    set -e
    
    # grub-mkconfig helper script.
    # Copyright (C) 2006,2007,2008,2009,2010  Free Software Foundation, Inc.
    #
    # GRUB is free software: you can redistribute it and/or modify
    # it under the terms of the GNU General Public License as published by
    # the Free Software Foundation, either version 3 of the License, or
    # (at your option) any later version.
    #
    # GRUB is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    # GNU General Public License for more details.
    #
    # You should have received a copy of the GNU General Public License
    # along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
    
    transform="s,x,x,"
    
    prefix=/usr
    exec_prefix=${prefix}
    libdir=${exec_prefix}/lib
    locale_dir=`echo ${GRUB_PREFIX}/locale | sed ${transform}`
    grub_lang=`echo $LANG | cut -d . -f 1`
    
    . ${libdir}/grub/grub-mkconfig_lib
    
    # Do this as early as possible, since other commands might depend on it.
    # (e.g. the `loadfont' command might need lvm or raid modules)
    for i in ${GRUB_PRELOAD_MODULES} ; do
      echo "insmod $i"
    done
    
    if [ "x${GRUB_DEFAULT}" = "x" ] ; then GRUB_DEFAULT=0 ; fi
    if [ "x${GRUB_DEFAULT}" = "xsaved" ] ; then GRUB_DEFAULT='${saved_entry}' ; fi
    if [ "x${GRUB_TIMEOUT}" = "x" ] ; then GRUB_TIMEOUT=5 ; fi
    if [ "x${GRUB_GFXMODE}" = "x" ] ; then GRUB_GFXMODE=auto ; fi
    
    if [ "x${GRUB_DEFAULT_BUTTON}" = "x" ] ; then GRUB_DEFAULT_BUTTON="$GRUB_DEFAULT" ; fi
    if [ "x${GRUB_DEFAULT_BUTTON}" = "xsaved" ] ; then GRUB_DEFAULT_BUTTON='${saved_entry}' ; fi
    if [ "x${GRUB_TIMEOUT_BUTTON}" = "x" ] ; then GRUB_TIMEOUT_BUTTON="$GRUB_TIMEOUT" ; fi
    
    cat << EOF
    if [ -s \$prefix/grubenv ]; then
      set have_grubenv=true
      load_env
    fi
    EOF
    if [ "x$GRUB_BUTTON_CMOS_ADDRESS" != "x" ]; then
        cat <<EOF
    if cmostest $GRUB_BUTTON_CMOS_ADDRESS ; then
       set default="${GRUB_DEFAULT_BUTTON}"
    else
       set default="${GRUB_DEFAULT}"
    fi
    EOF
    else
        cat <<EOF
    set default="${GRUB_DEFAULT}"
    EOF
    fi
    cat <<EOF
    if [ "\${prev_saved_entry}" ]; then
      set saved_entry="\${prev_saved_entry}"
      save_env saved_entry
      set prev_saved_entry=
      save_env prev_saved_entry
      set boot_once=true
    fi
    
    function savedefault {
      if [ -z "\${boot_once}" ]; then
        saved_entry="\${chosen}"
        save_env saved_entry
      fi
    }
    
    function recordfail {
      set recordfail=1
      if [ -n "\${have_grubenv}" ]; then if [ -z "\${boot_once}" ]; then save_env recordfail; fi; fi
    }
    
    function load_video {
    EOF
    if [ -n "${GRUB_VIDEO_BACKEND}" ]; then
        cat <<EOF
      insmod ${GRUB_VIDEO_BACKEND}
    EOF
    else
        # Insert all available backends; GRUB will use the most appropriate.
        have_video=0;
        for backend in $(cat "${GRUB_PREFIX}/video.lst"); do
    	have_video=1;
    	cat <<EOF
      insmod ${backend}
    EOF
        done
        if [ x$have_video = x0 ]; then
    	echo "true"
        fi
    fi
    cat <<EOF
    }
    
    EOF
    
    serial=0;
    gfxterm=0;
    for x in ${GRUB_TERMINAL_INPUT} ${GRUB_TERMINAL_OUTPUT}; do
        if [ xserial = "x$x" ]; then
    	serial=1;
        fi
        if [ xgfxterm = "x$x" ]; then
    	gfxterm=1;
        fi
    done
    
    if [ "x$serial" = x1 ]; then
        if ! test -e ${GRUB_PREFIX}/serial.mod ; then
    	echo "Serial terminal not available on this platform." >&2 ; exit 1
        fi
    
        if [ "x${GRUB_SERIAL_COMMAND}" = "x" ] ; then
    	grub_warn "Requested serial terminal but GRUB_SERIAL_COMMAND is unspecified. Default parameters will be used."
    	GRUB_SERIAL_COMMAND=serial
        fi
        echo "${GRUB_SERIAL_COMMAND}"
    fi
    
    if [ "x$gfxterm" = x1 ]; then
        # Make the font accessible
        prepare_grub_to_access_device `${grub_probe} --target=device "${GRUB_FONT_PATH}"`
    
        cat << EOF
    if loadfont `make_system_path_relative_to_its_root "${GRUB_FONT_PATH}"` ; then
    set gfxmode=640x480
      load_video
      insmod gfxterm
    EOF
    
    # Gettext variables and module
    if [ "x${LANG}" != "xC" ] && [ -d "${locale_dir}" ] ; then
        prepare_grub_to_access_device $(${grub_probe} --target=device ${locale_dir}) | sed -e "s/^/  /"
      cat << EOF
      set locale_dir=(\$root)$(make_system_path_relative_to_its_root ${locale_dir})
      set lang=${grub_lang}
      insmod gettext
    EOF
    fi
    
    cat <<EOF
    fi
    EOF
    fi
    
    case x${GRUB_TERMINAL_INPUT} in
      x)
        # Just use the native terminal
      ;;
      x*)
        cat << EOF
    terminal_input ${GRUB_TERMINAL_INPUT}
    EOF
      ;;
    esac
    
    case x${GRUB_TERMINAL_OUTPUT} in
      x)
        # Just use the native terminal
      ;;
      x*)
        cat << EOF
    terminal_output ${GRUB_TERMINAL_OUTPUT}
    EOF
      ;;
    esac
    
    if [ "x$gfxterm" = x1 ]; then
        if [ "x$GRUB_THEME" != x ] && [ -f "$GRUB_THEME" ] \
    	&& is_path_readable_by_grub "$GRUB_THEME"; then
    	echo "Found theme: $GRUB_THEME" >&2
    	prepare_grub_to_access_device `${grub_probe} --target=device "$GRUB_THEME"`
    	cat << EOF
    insmod gfxmenu
    EOF
    	themedir="`dirname "$GRUB_THEME"`"
    	for x in "$themedir"/*.pf2 "$themedir"/f/*.pf2; do
    	    if [ -f "$x" ]; then
    		cat << EOF
    loadfont (\$root)`make_system_path_relative_to_its_root $x`
    EOF
    	    fi
    	done
    	if [ x"`echo "$themedir"/*.jpg`" != x"$themedir/*.jpg" ] || [ x"`echo "$themedir"/*.jpeg`" != x"$themedir/*.jpeg" ]; then
    	    cat << EOF
    insmod jpeg
    EOF
    	fi
    	if [ x"`echo "$themedir"/*.png`" != x"$themedir/*.png" ]; then
    	    cat << EOF
    insmod png
    EOF
    	fi
    	if [ x"`echo "$themedir"/*.tga`" != x"$themedir/*.tga" ]; then
    	    cat << EOF
    insmod tga
    EOF
    	fi
    	    
    	cat << EOF
    set theme=(\$root)`make_system_path_relative_to_its_root $GRUB_THEME`
    EOF
        elif [ "x$GRUB_BACKGROUND" != x ] && [ -f "$GRUB_BACKGROUND" ] \
    	    && is_path_readable_by_grub "$GRUB_BACKGROUND"; then
    	echo "Found background: $GRUB_BACKGROUND" >&2
    	case "$GRUB_BACKGROUND" in 
    	    *.png)         reader=png ;;
    	    *.tga)         reader=tga ;;
    	    *.jpg|*.jpeg)  reader=jpeg ;;
    	    *)             echo "Unsupported image format" >&2; exit 1 ;;
    	esac
    	prepare_grub_to_access_device `${grub_probe} --target=device "$GRUB_BACKGROUND"`
    	cat << EOF
    insmod $reader
    background_image -m stretch `make_system_path_relative_to_its_root "$GRUB_BACKGROUND"`
    EOF
        fi
    fi
    
    make_timeout ()
    {
        cat << EOF
    if [ "\${recordfail}" = 1 ]; then
      set timeout=-1
    else
      set timeout=${2}
    fi
    EOF
    }
    
    if [ "x$GRUB_BUTTON_CMOS_ADDRESS" != "x" ]; then
        cat <<EOF
    if cmostest $GRUB_BUTTON_CMOS_ADDRESS ; then
    EOF
    make_timeout "${GRUB_HIDDEN_TIMEOUT_BUTTON}" "${GRUB_TIMEOUT_BUTTON}"
    echo else
    make_timeout "${GRUB_HIDDEN_TIMEOUT}" "${GRUB_TIMEOUT}"
    echo fi
    else
    make_timeout "${GRUB_HIDDEN_TIMEOUT}" "${GRUB_TIMEOUT}"
    fi
    
    if [ "x$GRUB_BUTTON_CMOS_ADDRESS" != "x" ] && [ "x$GRUB_BUTTON_CMOS_CLEAN" = "xyes" ]; then
        cat <<EOF
    cmosclean $GRUB_BUTTON_CMOS_ADDRESS
    EOF
    fi
    
    # Play an initial tune
    if [ "x${GRUB_INIT_TUNE}" != "x" ] ; then
      echo "play ${GRUB_INIT_TUNE}"
    fi
    
    if [ "x${GRUB_BADRAM}" != "x" ] ; then
      echo "badram ${GRUB_BADRAM}"
    fi
    Code:
    # If you change this file, run 'update-grub' afterwards to update
    # /boot/grub/grub.cfg.
    # For full documentation of the options in this file, see:
    #   info -f grub -n 'Simple configuration'
    
    GRUB_DEFAULT="0"
    #GRUB_HIDDEN_TIMEOUT="0"
    GRUB_HIDDEN_TIMEOUT_QUIET="true"
    GRUB_TIMEOUT="3"
    GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`"
    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
    GRUB_CMDLINE_LINUX="vga=775 splash"
    
    # Uncomment to enable BadRAM filtering, modify to suit your needs
    # This works with Linux (no patch required) and with any kernel that obtains
    # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
    #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
    
    # Uncomment to disable graphical terminal (grub-pc only)
    #GRUB_TERMINAL="console"
    
    # The resolution used on graphical terminal
    # note that you can use only modes which your graphic card supports via VBE
    # you can see them in real GRUB with the command `vbeinfo'
    GRUB_GFXMODE="1280x1024x8"
    
    # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
    #GRUB_DISABLE_LINUX_UUID="true"
    
    # Uncomment to disable generation of recovery mode menu entries
    #GRUB_DISABLE_RECOVERY="true"
    
    # Uncomment to get a beep at grub start
    #GRUB_INIT_TUNE="480 440 1"
    
    GRUB_SAVEDEFAULT="false"
    I reinstalled SUM (again!) & changed the resolution there, then ran the 2 searches you suggested.
    The results don't show anything I can recognise as useful.
    What is surprising is they don't find grub.cfg even though it IS updated by SUM to the latest setting.
    Confirmed twice more.

    Terminal output for searches:

    Code:
    chris@Acer-desk:~$ sudo find /boot -type f -cmin 3
    [sudo] password for chris: 
    chris@Acer-desk:~$ sudo find / -type f -cmin 3
    find: ‘/proc/7474/task/7474/fd/5’: No such file or directory
    find: ‘/proc/7474/task/7474/fdinfo/5’: No such file or directory
    find: ‘/proc/7474/fd/5’: No such file or directory
    find: ‘/proc/7474/fdinfo/5’: No such file or directory
    find: ‘/home/chris/.gvfs’: Permission denied
    chris@Acer-desk:~$
    Visit Ubuntu GUI Fan Club . . . . Visit Disconnected Jottings from Alsace
    Acer Aspire TC-100-007: Multi boot W10 / 17.04 Unity / 14.04LTS: Canon iP7250: Epson V200: also Asus 1015PED: W7 / 14.04.1LTS Unity

  7. #237

    Re: HOWTO: Grub Customizer

    Aha. Seems the version of sum in repositories does not have the same version of code as on the launchpad page i was referring to.

    A few versions ago, ubuntu did not have support for setting gfxmode through the config file, it was done directly in the 00_header file. The startupmanager that is in ubuntu repositories does still live by that rule and edits that file directly.

    This is how to solve your problem:
    Edit /etc/grub.d/00_header

    Change the line that looks like this
    Code:
    set gfxmode=640x480
    to instead look like this
    Code:
      set gfxmode=${GRUB_GFXMODE}
    Save the file, run update-grub and dont use SUM again.. gonna see if i can have it removed from ubuntu repositories ^^

  8. #238
    Join Date
    Dec 2006
    Location
    Alsace
    Beans
    967
    Distro
    Ubuntu 17.04 Zesty Zapus

    Re: HOWTO: Grub Customizer

    Quote Originally Posted by Jimmy_r View Post
    This is how to solve your problem:
    Edit /etc/grub.d/00_header

    Change the line that looks like this
    Code:
    set gfxmode=640x480
    to instead look like this
    Code:
      set gfxmode=${GRUB_GFXMODE}


    Very grateful thanks for all the help on this thread!
    Visit Ubuntu GUI Fan Club . . . . Visit Disconnected Jottings from Alsace
    Acer Aspire TC-100-007: Multi boot W10 / 17.04 Unity / 14.04LTS: Canon iP7250: Epson V200: also Asus 1015PED: W7 / 14.04.1LTS Unity

  9. #239
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: HOWTO: Grub Customizer

    I have an old guide on StartUp-Manager and will add a note about this when I return home from my business trip. SUM was good in it's day but as we see it hasn't kept up with the times.

    Thanks Jimmy_r

    EDIT:
    I have updated the official community documentation on https://help.ubuntu.com/community/StartUpManager as well as the Ubuntu Forum StartUp Manager thread.
    Last edited by drs305; February 12th, 2012 at 10:21 PM.
    New to Wayland.

    Retired.

  10. #240
    Join Date
    Mar 2012
    Beans
    49

    Re: HOWTO: Grub Customizer

    hi !
    i want to know something:

    1) when i start and stop the pc how can i see the therminal with all the list of the operation that the pc is doing ?
    now when i start i have a black screen for 20 seconds then i'm on my desktop.
    when i stop the pc now i have the quiet splash...

    2) how can i set correctly the quiet splash when i start the pc ?

    i need to do this with the correct relolution (in my case is 1366x768 )

    thankyou

Page 24 of 34 FirstFirst ... 142223242526 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •