View previous topic :: View next topic |
Author |
Message |
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1607
|
Posted: Wed Apr 10, 2024 11:43 am Post subject: debugging boot pause |
|
|
I'm running gentoo on one of my laptops with a broken screen, the boot procees is paused on reboot/power on unless I press the 'enter' button.
the tricky part is that I cannot see what the error is, connecting the laptop to an external screen does not work until after I press enter.
I'm using EFI grub to boot the system, so I assume the problem might be there., i checked the efi boot sequence but it seems fine:
Code: | samsung ~ # efibootmgr
BootCurrent: 000B
Timeout: 0 seconds
BootOrder: 000B
Boot0000 Setup FvFile(721c8b66-426c-4e86-8e99-3457c46ab0b9)
Boot0001 Boot Menu FvFile(86488440-41bb-42c7-93ac-450fbf7766bf)
Boot0002 Recovery FvFile(ab4579c4-3bc5-4489-a88e-0f21e6cebf85)
Boot0003* SATA HDD: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f600)
Boot0004* SATA CD: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,aea2090adfde214e8b3a5e471856a354)
Boot0005* CD-ROM: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,be9d0102e211f3489efa0b983c96839b)
Boot0006* USB CD: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,86701296aa5a7848b66cd49dd3ba6a55)
Boot0007* USB FDD: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,6ff015a28830b543a8b8641009461e49)
Boot0008* USB HDD: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,33e821aaaf33bc4789bd419f88c50803)
Boot0009* NETWORK: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,78a84aaf2b2afc4ea79cf5cc8f3d3803)
Boot000B* gentoo HD(1,GPT,171c22f0-5ce2-274b-a9d3-88b51e9b25e8,0x800,0x11000)/File(\EFI\gentoo\grubx64.efi)
samsung ~ # ls -lh /boot/EFI/gentoo/grubx64.efi
-rwxr-xr-x 1 root root 132K Jun 16 2023 /boot/EFI/gentoo/grubx64.efi
|
the grub config file also seems fine:
Code: | #
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="0"
#set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
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 loadfont unicode ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=C
insmod gettext
fi
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-941d65db-24a0-4d17-8541-06bf95a18b38' {
load_video
insmod gzio
insmod part_gpt
insmod fat
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 3063-A62C
else
search --no-floppy --fs-uuid --set=root 3063-A62C
fi
echo -e '\n \n \n \n \n \n \n \n \n \n \n Loading Linux 6.1.31-gentoo ...\n \n \n \n \n \n \n \n \n \n howdyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy\n'
#linux /vmlinuz root=/dev/sda2 ro rootfstype=btrfs init=/lib/systemd/systemd module_blacklist=nouveau
linux /vmlinuz root=/dev/sda2 ro rootfstype=btrfs init=/lib/systemd/systemd
}
submenu 'Advanced options for Gentoo GNU/Linux' $menuentry_id_option 'gnulinux-advanced-941d65db-24a0-4d17-8541-06bf95a18b38' {
menuentry 'Gentoo GNU/Linux, with Linux 6.1.31-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.31-gentoo-advanced-941d65db-24a0-4d17-8541-06bf95a18b38' {
load_video
insmod gzio
insmod part_gpt
insmod fat
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 3063-A62C
else
search --no-floppy --fs-uuid --set=root 3063-A62C
fi
echo 'Loading Linux 6.1.31-gentoo ...'
linux /vmlinuz-6.1.31-gentoo root=UUID=941d65db-24a0-4d17-8541-06bf95a18b38 ro
}
menuentry 'Gentoo GNU/Linux, with Linux 6.1.31-gentoo (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.31-gentoo-recovery-941d65db-24a0-4d17-8541-06bf95a18b38' {
load_video
insmod gzio
insmod part_gpt
insmod fat
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 3063-A62C
else
search --no-floppy --fs-uuid --set=root 3063-A62C
fi
echo 'Loading Linux 6.1.31-gentoo ...'
linux /vmlinuz-6.1.31-gentoo root=PARTUUID=771a7127-51c4-b442-98db-2e81f07e3306 ro single
}
}
### 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 ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
### END /etc/grub.d/30_uefi-firmware ###
### 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 ### |
where mighrt the problem be and how can i go about troubleshooting this.
thanks |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1607
|
Posted: Wed Apr 10, 2024 1:22 pm Post subject: |
|
|
update, If I turn off the laptop lid as soon as I press the power on button, gentoo boots just fine. |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2690
|
Posted: Wed Apr 10, 2024 1:56 pm Post subject: |
|
|
Adel Ahmed wrote: | update, If I turn off the laptop lid as soon as I press the power on button, Gentoo boots just fine. |
Maybe it's the EFI firmware reporting an error related to your broken display.
Like the one "Keyboard not detected, press F1 to continue".
It might be possible to disconnect the integrated display, but you should investigate how to do that, if possible for your particular model.
I would also suggest increasing GRUB timeout so that you can see after you press enter, if grub menu gets loaded. If it does, then there's something at the EFI firmware level. Also have you external monitor switched on a few seconds before the laptop, so it's on and actively searching for signal, ready to display anything that's available immediately, rather than waiting for it to wake up.
Best Regards,
Georgi |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|