Sistemare il boot [Risolto]

Tutto ciò che è pertinente a Sabayon Linux, indipendentemente dall'architettura e dall'ambiente grafico

Moderator: Moderators

Sistemare il boot [Risolto]

Postby elvis » Sat Sep 08, 2012 23:08

Salve a tutti. Premetto che il sistema è funzionante e il boot riesce perfettamente, nonostante sia un pò lento (ma devo ancora togliere roba tipo LVM e altro).
Quello che mi piacerebbe ora sistemare è l'aspetto, quando parte il boot da grub:

-lo schermo diventa nero per un paio di secondi
-poi compare lo splash nella fase "Initializing kernel"
-poi di nuovo schermo nero per 5-6 secondi
-di nuovo lo splash, stavolta fino al caricamento di X.

Ho provato a far partire (temporaneamente, dai parametri di grub) il boot in verbose mode, ma il problema rimane
Qualche idea?

Intanto posto alcune conf sperando siano utili:

/etc/default/grub
Code: Select all
#GRUB_DEFAULT=saved
GRUB_DEFAULT=3
GRUB_DISTRIBUTOR="Sabayon"

GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=2
GRUB_DISABLE_LINUX_UUID=true

GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_CMDLINE_LINUX=""

# 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=1024x600

# Path to theme spec txt file.
# The starfield is by default provided with use truetype.
# NOTE: when enabling custom theme, ensure you have required font/etc.
#GRUB_THEME="/boot/grub2/themes/starfield/theme.txt"

# Background image used on graphical terminal.
# Can be in various bitmap formats.
GRUB_BACKGROUND="/boot/grub/default-splash.png"

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to kernel
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY=true

# Boot menu option normal color
GRUB_COLOR_NORMAL="white/black"

# Boot menu option "highlight" color
GRUB_COLOR_HIGHLIGHT="magenta/black"

if [ -f "/etc/default/sabayon-grub" ]; then
   # this file is placed by the Sabayon Installer and contains
   # custom GRUB_CMDLINE_LINUX parameters created at install
   # time.
   . /etc/default/sabayon-grub
fi


/boot/grub/grub.cfg
Code: Select all
#
### BEGIN /etc/grub.d/00_fonts ###
### END /etc/grub.d/00_fonts ###

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="3"

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

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 load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos6'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 --hint='hd0,msdos6'  1edbe77e-bb2d-4aa8-a332-091ec4fa6208
else
  search --no-floppy --fs-uuid --set=root 1edbe77e-bb2d-4aa8-a332-091ec4fa6208
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=1024x600
  load_video
  # vga= is deprecated, grub2 handles this just fine
  # making grub2 res == linux fb res
  set gfxpayload=keep
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=it_IT
  insmod gettext
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='hd0,msdos6'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 --hint='hd0,msdos6'  1edbe77e-bb2d-4aa8-a332-091ec4fa6208
else
  search --no-floppy --fs-uuid --set=root 1edbe77e-bb2d-4aa8-a332-091ec4fa6208
fi
insmod png
background_image -m stretch /boot/grub/default-splash.png
if sleep --interruptible 0 ; then
  set timeout=2
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Sabayon GNU/Linux' --class sabayon --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-1edbe77e-bb2d-4aa8-a332-091ec4fa6208' {
   load_video
   insmod gzio
   insmod part_msdos
   insmod ext2
   set root='hd0,msdos6'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 --hint='hd0,msdos6'  1edbe77e-bb2d-4aa8-a332-091ec4fa6208
   else
     search --no-floppy --fs-uuid --set=root 1edbe77e-bb2d-4aa8-a332-091ec4fa6208
   fi
   echo   'Caricamento Linux x86-3.5.0-sabayon...'
   linux   /boot/kernel-genkernel-x86-3.5.0-sabayon ro  init=/linuxrc splash=silent,theme:sabayon video=vesafb:ywrap,mtrr:3 vga=791 console=tty1 quiet dokeymap keymap=it domdadm resume=swap:UUID=d8fe1132-c893-47b1-bc03-2be5b63b75d0 real_resume=UUID=d8fe1132-c893-47b1-bc03-2be5b63b75d0 root=UUID=1edbe77e-bb2d-4aa8-a332-091ec4fa6208 docrypt
   echo   'Caricamento ramdisk iniziale...'
   initrd   /boot/initramfs-genkernel-x86-3.5.0-sabayon
}
submenu 'Opzioni avanzate per Sabayon GNU/Linux' $menuentry_id_option 'gnulinux-advanced-1edbe77e-bb2d-4aa8-a332-091ec4fa6208' {
   menuentry 'Sabayon GNU/Linux, con Linux x86-3.5.0-sabayon' --class sabayon --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86-3.5.0-sabayon-advanced-1edbe77e-bb2d-4aa8-a332-091ec4fa6208' {
      load_video
      insmod gzio
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos6'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 --hint='hd0,msdos6'  1edbe77e-bb2d-4aa8-a332-091ec4fa6208
      else
        search --no-floppy --fs-uuid --set=root 1edbe77e-bb2d-4aa8-a332-091ec4fa6208
      fi
      echo   'Caricamento Linux x86-3.5.0-sabayon...'
      linux   /boot/kernel-genkernel-x86-3.5.0-sabayon ro  init=/linuxrc splash=silent,theme:sabayon video=vesafb:ywrap,mtrr:3 vga=791 console=tty1 quiet dokeymap keymap=it domdadm resume=swap:UUID=d8fe1132-c893-47b1-bc03-2be5b63b75d0 real_resume=UUID=d8fe1132-c893-47b1-bc03-2be5b63b75d0 root=UUID=1edbe77e-bb2d-4aa8-a332-091ec4fa6208 docrypt
      echo   'Caricamento ramdisk iniziale...'
      initrd   /boot/initramfs-genkernel-x86-3.5.0-sabayon
   }
   menuentry 'Sabayon GNU/Linux, con Linux x86-3.5.0-sabayon (modalità ripristino)' --class sabayon --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86-3.5.0-sabayon-recovery-1edbe77e-bb2d-4aa8-a332-091ec4fa6208' {
      load_video
      insmod gzio
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos6'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 --hint='hd0,msdos6'  1edbe77e-bb2d-4aa8-a332-091ec4fa6208
      else
        search --no-floppy --fs-uuid --set=root 1edbe77e-bb2d-4aa8-a332-091ec4fa6208
      fi
      echo   'Caricamento Linux x86-3.5.0-sabayon...'
      linux   /boot/kernel-genkernel-x86-3.5.0-sabayon ro single init_opts=single  init=/linuxrc splash=verbose,theme:sabayon video=vesafb:ywrap,mtrr:3 vga=791 console=tty1 quiet dokeymap keymap=it domdadm resume=swap:UUID=d8fe1132-c893-47b1-bc03-2be5b63b75d0 real_resume=UUID=d8fe1132-c893-47b1-bc03-2be5b63b75d0 root=UUID=1edbe77e-bb2d-4aa8-a332-091ec4fa6208 docrypt
      echo   'Caricamento ramdisk iniziale...'
      initrd   /boot/initramfs-genkernel-x86-3.5.0-sabayon
   }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Recovery Environment (loader) (su /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-B4AA5713AA56D20A' {
   insmod part_msdos
   insmod ntfs
   set root='hd0,msdos1'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  B4AA5713AA56D20A
   else
     search --no-floppy --fs-uuid --set=root B4AA5713AA56D20A
   fi
   drivemap -s (hd0) ${root}
   chainloader +1
}
menuentry 'Windows 7 (loader) (su /dev/sda3)' --class windows --class os $menuentry_id_option 'osprober-chain-A25C582E5C57FB8B' {
   insmod part_msdos
   insmod ntfs
   set root='hd0,msdos3'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 --hint='hd0,msdos3'  A25C582E5C57FB8B
   else
     search --no-floppy --fs-uuid --set=root A25C582E5C57FB8B
   fi
   chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###


Dimenticavo: la scheda video è un'integrata Intel
Last edited by elvis on Sat Oct 13, 2012 9:09, edited 1 time in total.
Sabayon Linux LXDE 64 bit @ Lenovo ThinkPad Edge E130
elvis
Simple Hen
 
Posts: 68
Joined: Sun Aug 26, 2012 22:34
Location: Italy

Re: Sistemare il boot

Postby elvis » Sun Sep 09, 2012 12:08

Ho trovato questa discussione: http://forums.gentoo.org/viewtopic-p-6797468.html

Questo post sembrerebbe confermare che sulla mia GMA 3150 si verifica un sottoproblema minore, mentre su altre GMA c'è un blank screen più grave:

The problem is less serious with my Intel GMA3150 -- with KMS, I get a few (5-10?) seconds of a completely blank/disabled screen, then it suddently turns on, with my login prompt -- but I miss all the boot messages. None of the numerous workarounds floating around on the net so far have any effect.

I'm convinced it's something with the kernel (currently 3.0.4). If I interrupt openrc's boot sequence ('I'), and do nothing, it still goes blank, and then turns on after a few seconds -- some kind of latent kernel activity.


In particolare ho trovato questo wiki: http://en.gentoo-wiki.com/wiki/Intel_GM ... t_on_4500M

e da grub ho provato ad aggiungere al kernel il parametro acpi_osi=Linux, ma ancora niente

Neanche disabilitare il KMS (aggiungendo il parametro nomodeset) risolve qualcosa.
Sabayon Linux LXDE 64 bit @ Lenovo ThinkPad Edge E130
elvis
Simple Hen
 
Posts: 68
Joined: Sun Aug 26, 2012 22:34
Location: Italy

Re: Sistemare il boot

Postby elvis » Wed Sep 12, 2012 15:05

Perdonatemi se uppo, ma ancora non sono riuscito a venirne fuori da solo, mi serve qualche dritta XD
Sabayon Linux LXDE 64 bit @ Lenovo ThinkPad Edge E130
elvis
Simple Hen
 
Posts: 68
Joined: Sun Aug 26, 2012 22:34
Location: Italy

Re: Sistemare il boot

Postby sabayonino » Wed Sep 12, 2012 18:25

una domanda : quale scheda video hai ?
User avatar
sabayonino
Sagely Hen
 
Posts: 1577
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: Sistemare il boot

Postby elvis » Wed Sep 12, 2012 23:02

La mia è una Intel GMA 3150. Da quel che ho capito leggendo il topic linkato in precedenza, il problema "principale" riguarda le GMA 4500 (che hanno lo schermo completamente nero durante il boot), mentre con la 3150 il problema si presenta solo a tratti.
Sabayon Linux LXDE 64 bit @ Lenovo ThinkPad Edge E130
elvis
Simple Hen
 
Posts: 68
Joined: Sun Aug 26, 2012 22:34
Location: Italy

Re: Sistemare il boot

Postby elvis » Tue Sep 25, 2012 23:23

Risolto!
Bastava passare al kernel il parametro acpi_osi= (senza nulla dopo l'uguale).

Visto che ci sono e che è una cosa in tema (senza che apro un altro topic), mi piacerebbe che lo spash di Sabayon parta automaticamente in modalità verbose (quella che si ottiene premendo F2), sia al boot che allo shutdown. Ho provato a cambiare il parametro del kernel splash=silent,theme:sabayon in splash=verbose,theme:sabayon. All'avvio sembra funzionare e lo splash è verbose. Allo shutdown però c'è solo una trattino lampeggiante in alto a sinistra (tipo quando non parte Xorg) e nessuno splash, sebbene il pc si spenga correttamente.

C'è qualche altro modo per ottenere questa cosa?

EDIT: niente, segnalo come risolto e apro un topic apposito.
Sabayon Linux LXDE 64 bit @ Lenovo ThinkPad Edge E130
elvis
Simple Hen
 
Posts: 68
Joined: Sun Aug 26, 2012 22:34
Location: Italy


Return to Sabayon Linux Discussioni Generali

Who is online

Users browsing this forum: No registered users and 2 guests