View previous topic :: View next topic |
Author |
Message |
JuszR Tux's lil' helper
Joined: 03 Nov 2010 Posts: 134 Location: Tlv
|
Posted: Sun Aug 04, 2013 7:32 pm Post subject: [SOLVED] rEFInd hangs and black screen - UEFI |
|
|
I installed gentoo following this guide
https://wiki.gentoo.org/wiki/UEFI_Dual_boot_with_Windows_7/8
Now I see the option in the rEFInd boot manager, start andt I only see a few lines at the boot process and then a black screen.
If I start Gentoo through a System rescue cd I am able to log in (console).
Any ideas how to fix it?
Last edited by JuszR on Wed Sep 11, 2013 7:04 pm; edited 2 times in total |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Mon Aug 05, 2013 5:33 am Post subject: |
|
|
sounds like a video configuration problem -- does disk activity continue after the black screen?
from the chroot:
Code: | emerge wgetpaste pciutils
wgetpaste /usr/src/linux/.config |
or
from sysresccd or minimal install cd with gentoo partitions mounted:
Code: | wgetpaste /mnt/gentoo/usr/src/linux/.config
lspci -k |
_________________ Defund the FCC. |
|
Back to top |
|
|
JuszR Tux's lil' helper
Joined: 03 Nov 2010 Posts: 134 Location: Tlv
|
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Mon Aug 05, 2013 6:38 am Post subject: |
|
|
kms and efi framebuffer are incompatible
if using kms, radeon firmware should be builtin, graphics support should be builtin not modules
recommend because it works for me: Code: | emerge linux-firmware |
edit /etc/portage/make.conf:
Quote: | VIDEO_CARDS="fglrx"
INPUT_DEVICES="evdev" |
edit menuconfig:
Quote: | Device Drivers --->
Graphics support --->
<M> /dev/agpgart (AGP Support) --->
--- /dev/agpgart (AGP Support)
<M> AMD Opteron/Athlon64 on-CPU GART support
< > Intel 440LX/BX/GX, I8xx and E7x05 chipset support
< > SiS chipset support
< > VIA chipset support
-*- VGA Arbitration
(2) Maximum number of GPUs
[ ] Laptop Hybrid Graphics - GPU switching support
< > Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
<*> Lowlevel video output switch controls
<*> Support for frame buffer devices --->
--- Support for frame buffer devices
[*] Enable firmware EDID
[ ] Framebuffer foreign endianness support --->
[*] Enable Video Mode Handling Helpers
[*] Enable Tile Blitting Support
*** Frame buffer hardware drivers ***
< > Cirrus Logic support
< > Permedia2 support
< > CyberPro 2000/2010/5000 support
< > Arc Monochrome LCD board support
[ ] Asiliant (Chips) 69000 display support
[ ] IMS Twin Turbo display support
< > VGA 16-color graphics support
< > Userspace VESA VGA graphics support
[*] VESA VGA graphics support
[*] EFI-based Framebuffer Support
< > N411 Apollo/Hecuba devkit support
< > Hercules mono graphics support
< > Epson S1D13XXX framebuffer support
< > nVidia Framebuffer Support
< > nVidia Riva support
< > Intel740 support
< > Intel LE80578 (Vermilion) support
< > Matrox acceleration
< > ATI Radeon display support
< > ATI Rage128 display support
< > ATI Mach64 display support
< > S3 Trio/Virge support
< > S3 Savage support
< > SiS/XGI display support
< > VIA UniChrome (Pro) and Chrome9 display support
< > NeoMagic display support
< > IMG Kyro support
< > 3Dfx Banshee/Voodoo3/Voodoo5 display support
< > 3Dfx Voodoo Graphics (sst1) support
< > VIA VT8623 support
< > Trident/CyberXXX/CyberBlade support
< > ARK 2000PV support
< > Permedia3 support
< > Fujitsu carmine frame buffer support
[ ] AMD Geode family framebuffer support
< > SMSC UFX6000/7000 USB Framebuffer support
< > Displaylink USB Framebuffer support
< > Goldfish Framebuffer
< > Virtual Frame Buffer support (ONLY FOR TESTING!)
< > E-Ink Metronome/8track controller support
< > Fujitsu MB862xx GDC support
< > E-Ink Broadsheet/Epson S1D13521 controller support
< > AUO-K190X EPD controller support
[ ] Exynos Video driver support --->
[*] Backlight & LCD device support --->
--- Backlight & LCD device support
<*> Lowlevel LCD controls
< > Platform LCD controls
<*> Lowlevel Backlight controls
< > Generic (aka Sharp Corgi) Backlight Driver
< > Apple Backlight Driver
< > Tabletkiosk Sahara Touch-iT Backlight Driver
< > Backlight Driver for ADP8860/ADP8861/ADP8863 using WLED
< > Backlight Driver for ADP8870 using WLED
< > Backlight Driver for LM3630
< > Backlight Driver for LM3639
< > Backlight driver for TI LP855X
Console display driver support --->
-*- VGA text console
[*] Enable Scrollback Buffer in System RAM
(256) Scrollback Buffer Size (in KB)
<*> Framebuffer Console support
[ ] Map the console to the primary display device
[ ] Framebuffer Console Rotation
[ ] Select compiled-in fonts
[*] Bootup logo --->
--- Bootup logo
[ ] Standard black and white Linux logo
[ ] Standard 16-color Linux logo
[*] Standard 224-color Linux logo |
OR
edit menuconfig to disable both instances of kms
after one choice or the other recompile the kernel Code: | make && make modules_install && make install |
if using the recommended config Code: | emerge xorg-server ati-drivers xf86-input-evdev
aticonfig --initial |
_________________ Defund the FCC. |
|
Back to top |
|
|
JuszR Tux's lil' helper
Joined: 03 Nov 2010 Posts: 134 Location: Tlv
|
Posted: Mon Aug 05, 2013 8:18 pm Post subject: |
|
|
Thanks. I did what you recommend and now it hangs right after i press on the new entry at the rEFInd menu.
And the same thing as above, if i start through a sysreccd everything seems to be ok (besides some modules that failed to be loaded).
[This new efi feature is getting me sick even with window$ i had troubles] |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Mon Aug 05, 2013 8:28 pm Post subject: |
|
|
is windows booting from the refind menu? _________________ Defund the FCC. |
|
Back to top |
|
|
JuszR Tux's lil' helper
Joined: 03 Nov 2010 Posts: 134 Location: Tlv
|
Posted: Mon Aug 05, 2013 8:43 pm Post subject: |
|
|
Yes |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Wed Aug 07, 2013 3:43 am Post subject: |
|
|
I had problems similar to yours after upgrading windows 8 to windows 8.1. repeating the rEFInd install from windows corrected the problem. Recommend try reinstalling rEFInd.
I would like to check the new kernel configuration and the rEFInd install. Please boot the sysresccd to the desktop and a network connection.
mount the ESP (efi partition), nominally: Code: | mount /dev/sda2 /mnt/gentoo
tree /mnt/gentoo | wgetpaste
wgetpaste /mnt/gentoo/EFI/refind/refind.conf
umount /mnt/gentoo |
mount the root partition, nominally: Code: | mount /dev/sda2 /mnt/gentoo
wgetpaste /mnt/gentoo/usr/src/linux/.config | post url's.
when you click gentoo icon in refind do you get just black screen or black screen with cursor or black screen with something like Quote: | Starting vmlinuz-3.4.10-gentoo
Using boot options "ro root=/dev/sda7" |
googling "refind hangs"; there are discussions of this type of problem being caused by kernel source code, bug being corrected, bug recurring. https://forums.gentoo.org/viewtopic-p-7342962.html is one such _________________ Defund the FCC.
Last edited by DONAHUE on Wed Aug 07, 2013 4:15 am; edited 1 time in total |
|
Back to top |
|
|
JuszR Tux's lil' helper
Joined: 03 Nov 2010 Posts: 134 Location: Tlv
|
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Wed Aug 07, 2013 7:00 pm Post subject: |
|
|
the pastebin ate the config file, please try again.
as rEFInd also looks for traditional bootloaders please try installing legacy grub
either with gentoo booted via sysresccd or from the chroot (/boot mounted in either case):
Code: | wgetpaste /usr/src/linux/.config
emerge grub
grub
find /boot/grub/stage1
# return will be in format (hdx,y)
# substitute returned values below:
root (hdx,y)
setup (hdx,y)
quit
nano /boot/grub/grub.conf |
edit grub.conf to nominal: Quote: | default 0
timeout 5
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Gentoo 3.8.13-gentoo
root (hdx,y)
kernel /boot/vmlinuz-3.8.13-gentoo root=PARTUUID=90058e9f-408c-41db-9c66-02f543b8624c ro rootfstype=ext4 |
Hopefully on reboot, rEFInd will have another entry you can try.
suggest editing title to "REFInd hangs" in hopes srs5964 will see it and help out. _________________ Defund the FCC. |
|
Back to top |
|
|
JuszR Tux's lil' helper
Joined: 03 Nov 2010 Posts: 134 Location: Tlv
|
Posted: Wed Aug 07, 2013 7:29 pm Post subject: |
|
|
I'm sorry the correct link is: http://bpaste.net/show/120817
So there is no way that rEFInd will work without grub as you wrote in the article? |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Wed Aug 07, 2013 8:00 pm Post subject: |
|
|
I got the config this time.
rEFInd works for me without grub or lilo or syslinux or any bootloader other than efi stub kernel. Had dealings with one other who entirely succeeded and another who gave up on stub kernel and used refind to legacy grub.
It might be good to post the make model of your laptop and the bios name and version and the uefi name and version.
Have you checked lately that secure boot remains disabled? _________________ Defund the FCC. |
|
Back to top |
|
|
windz Tux's lil' helper
Joined: 07 May 2006 Posts: 89
|
Posted: Fri Aug 09, 2013 1:31 am Post subject: |
|
|
Hello.
I had the same problem as yours: I see a few lines after the Gentoo kernel has been booted and after that a black screen. It was a problem with the backlight in my case.
I have a Lenovo g400s preinstalled with Windows 8. Integrated Intel graphics with Nvidia GT720M. I installed Ubuntu 12.04 alongside Windows 8 with rEFind as bootloader. No problems there.
With Gentoo, if I enable KMS for Intel together with EFI framebuffer, I'll get the black screen problem. All I needed to do was just to press the hotkey to increase the brightness of the backlight. (/sys/class/backlight/acpi_video0/brightness is somehow always set to zero) It doesn't solve the problem of the issue completely, but at least you can see the screen now. If I disable KMS for Intel, no problems with backlight, but I am not able to start the X-server without KMS. |
|
Back to top |
|
|
srs5694 Guru
Joined: 08 Mar 2004 Posts: 434 Location: Woonsocket, RI
|
Posted: Fri Aug 09, 2013 3:04 am Post subject: |
|
|
Unfortunately, there have been a lot of video problems recently with new computers, particularly when booting in EFI mode (but sometimes even in BIOS mode). It looks like Linux driver issues, possibly interacting with the way that EFI-based systems initialize the video hardware. Possible solutions (none of them sure-fire) include:
- Adding kernel options to the kernel command line (in /boot/refind_linux.conf if using rEFInd's auto-detection; elsewhere if booting through another boot loader). The "nomodeset" option is most generically helpful, but if often has negative side effects, like an inability to use a desired video mode. Other options are highly chipset-specific, and I haven't been keeping track of them, so I'm afraid I can't be more specific.
- Reconfiguring X. Sometimes the system boots to a point in text mode and then X starting up causes problems. (I'm having problems with this myself with a Minnowboard.) One possible solution is to boot in text mode and use that to create a custom /etc/X11/xorg.conf file. Thereafter a boot straight into X can help.
- Fiddling with the video drivers or video driver options in the kernel. Again, I don't have any specific recommendations on what to modify, since I haven't kept notes on this, and the details are likely to be highly system-specific.
- Booting in BIOS mode. For a single-boot installation or if you're willing to re-install your other OS(es), you can reconfigure the computer to use BIOS/CSM/legacy-mode booting with an MBR. On a dual-boot configuration, you can use rEFInd to boot Linux (via BIOS-mode GRUB) in BIOS mode and Windows in EFI mode; however, you'll need to uncomment the "scanfor" item in refind.conf and be sure that "hdbios" is among the options. (On UEFI-mode PCs, rEFInd's BIOS-mode boot option is disabled by default.)
Sorry I can't give a simple step-by-step solution to your problem. (Although using rEFInd to do a BIOS-mode boot is relatively straightforward and debug-free.) |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
|
Back to top |
|
|
windz Tux's lil' helper
Joined: 07 May 2006 Posts: 89
|
Posted: Tue Aug 27, 2013 2:08 pm Post subject: |
|
|
Just to report, I tried the two methods: they are still not completely bug-free or maybe there's still something wrong with my configuration.
1. If I boot the kernel with the option i915.invert_brightness=1, the backlight doesn't switch off. But everything is inverted. If I press the key to increase brightness, the display dims and vice versa. Same thing happens if I change the value in /sys/class/backlight/acpi_video0/brightness. If I increase the value, the display dims. If I decrease it, the display brightens.
2. If I boot the kernel with the option acpi_backlight=vendor, the backlight also doesn't switch off. But brightness is at maximum and I am unable to change it at all. |
|
Back to top |
|
|
JuszR Tux's lil' helper
Joined: 03 Nov 2010 Posts: 134 Location: Tlv
|
Posted: Tue Sep 03, 2013 8:55 pm Post subject: |
|
|
DONAHUE wrote: | I got the config this time.
rEFInd works for me without grub or lilo or syslinux or any bootloader other than efi stub kernel. Had dealings with one other who entirely succeeded and another who gave up on stub kernel and used refind to legacy grub.
It might be good to post the make model of your laptop and the bios name and version and the uefi name and version.
Have you checked lately that secure boot remains disabled? |
(I'm sorry for answering late.. i was on vacation )
http://img109.imageshack.us/img109/3342/rb2q.png
I don't even have Secure boot.
I have to remind you that i had before installed Gentoo on this machines, just that i was using an MBR parted disk (with UEFI), and now i switched to GPT. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Tue Sep 03, 2013 11:06 pm Post subject: |
|
|
@jusz you may have a similar but not i915 problem
when the screen goes black see if fn + f2 or fn + up down arrows has any effect. _________________ Defund the FCC. |
|
Back to top |
|
|
srs5694 Guru
Joined: 08 Mar 2004 Posts: 434 Location: Woonsocket, RI
|
Posted: Wed Sep 04, 2013 1:22 am Post subject: |
|
|
Your screen shot suggests you've got a Lenovo. Some Lenovos have problems with the EFI stub loader in kernels 3.6 and later. There's a very long thread on this problem on the Arch Linux forums, so you may want to read that. Some people find that various workarounds can be effective. Since you're using rEFInd, the easiest of these may be to switch from a rEFInd binary built with Tianocore to one built with GNU-EFI (or vice-versa). I provide both types of binaries on my rEFInd downloads page. This type of workaround isn't guaranteed to be effective, though; and be aware that any kernel update might break your ability to boot. Thus, you should be sure to not overwrite a working kernel, just add a new one, at least until you know you can boot it. For that matter, upgrading your kernel to a newer one might also fix the problem, so this sword can swing both ways.
If you have really serious problems with the EFI stub loader, you might want to consider using another boot loader. Personally, I'd recommend ELILO or Fedora's patched GRUB Legacy. GRUB 2 is a popular choice, but it's bloatware and is very hard to configure. SYSLINUX looks promising, but its EFI support is very new, so I'm still a bit cautious about recommending it. See my Web page on EFI boot loaders for more information on your options. |
|
Back to top |
|
|
djdunn l33t
Joined: 26 Dec 2004 Posts: 810
|
Posted: Wed Sep 04, 2013 2:39 am Post subject: |
|
|
I've been using syslinux:6
6.02_pre16 currently, been working wonderfully, I also use genkernel-next to build an initramfs
srs5694 wrote: | If you have really serious problems with the EFI stub loader, you might want to consider using another boot loader. Personally, I'd recommend ELILO or Fedora's patched GRUB Legacy. GRUB 2 is a popular choice, but it's bloatware and is very hard to configure. SYSLINUX looks promising, but its EFI support is very new, so I'm still a bit cautious about recommending it. See my Web page on EFI boot loaders for more information on your options. |
and dude I could not have done it without your website, it was instrumental in my success with EFI _________________ “Music is a moral law. It gives a soul to the Universe, wings to the mind, flight to the imagination, a charm to sadness, gaiety and life to everything. It is the essence of order, and leads to all that is good and just and beautiful.”
― Plato |
|
Back to top |
|
|
JuszR Tux's lil' helper
Joined: 03 Nov 2010 Posts: 134 Location: Tlv
|
Posted: Wed Sep 04, 2013 2:03 pm Post subject: |
|
|
@DONAHUE
I don't think it's a graphics problem, it just hangs right when it says "Starting vmlinuz..... Using boot options "ro root=/dev/sda6". I tried with the old kernel and it's the same.
@srs5694
Trying that GNU Efi.
[EDIT]
IT WORKED! Thanks everyone for helping! |
|
Back to top |
|
|
srs5694 Guru
Joined: 08 Mar 2004 Posts: 434 Location: Woonsocket, RI
|
Posted: Wed Sep 04, 2013 5:15 pm Post subject: |
|
|
JuszR wrote: | @srs5694
Trying that GNU Efi.
[EDIT]
IT WORKED! Thanks everyone for helping! |
In that case, you're almost certainly seeing that hard-to-pin-down EFI stub loader bug. You should be very careful in handling kernel upgrades; always keep at least one known-good kernel, adding to your set of kernels rather than replacing your last known-good kernel. You may need to skip some kernel upgrades if they don't work for you. |
|
Back to top |
|
|
JuszR Tux's lil' helper
Joined: 03 Nov 2010 Posts: 134 Location: Tlv
|
Posted: Wed Sep 11, 2013 7:25 pm Post subject: |
|
|
Ok, thank you so much!
(i'm just wondering now why do i need sysrec cd to boot in EFI mode and gentoo doesn't provide that option). |
|
Back to top |
|
|
djdunn l33t
Joined: 26 Dec 2004 Posts: 810
|
Posted: Sat Sep 28, 2013 9:22 am Post subject: |
|
|
you need a CD that boots in UEFI mode because you may need efibootmgr to update the location of your *efi file so you can boot, and you can only use efibootmgr if you have efivars which come from being booted in uefi mode _________________ “Music is a moral law. It gives a soul to the Universe, wings to the mind, flight to the imagination, a charm to sadness, gaiety and life to everything. It is the essence of order, and leads to all that is good and just and beautiful.”
― Plato |
|
Back to top |
|
|
JuszR Tux's lil' helper
Joined: 03 Nov 2010 Posts: 134 Location: Tlv
|
Posted: Sat Dec 21, 2013 8:48 pm Post subject: |
|
|
I'm getting the same problem on another machine. I tried already both refind versions and still hangs after POST.
Booting through sysreccd works fine.
Any suggestions? |
|
Back to top |
|
|
|