LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 06-24-2018, 01:51 PM   #1
austinramsay
Member
 
Registered: Jul 2007
Posts: 277

Rep: Reputation: 31
Black screen after GRUB


Just finished my Gentoo install. Successfully boots to GRUB:2, but once the kernel begins to load I just get a black screen and am unable to see anything.

System background:
Dell XPS 9370
Using UEFI
Intel I7-8550U
Followed Handbook for Systemd, X, Gnome, and Intel graphics


There were a few things I did not see that matched my system that the handbook said was necessary such as enabling framebuffer console support in the kernel.

I know that the X server shouldnt be causing this issue..but im referencing this guide because i changed my kernel options accordingly since I've installed X, Gnome, and followed the Intel graphics guide.
From the Xorg Gentoo guide:
Quote:
Kernel modesetting

Modern open source video drivers rely on kernel mode setting (KMS). KMS provides an improved graphical boot with less flickering, faster user switching, a built-in framebuffer console, seamless switching from the console to Xorg, and other features.
Important
KMS conflicts with legacy framebuffer drivers, which must remain disabled in the kernel configuration.

First prepare the kernel for KMS. This step regardless of which Xorg video driver will be used:
KERNEL Disable legacy framebuffer support and enable basic console FB support

Device Drivers --->
Graphics support --->
Frame Buffer Devices --->
<*> Support for frame buffer devices --->
## (Disable all drivers, including VGA, Intel, nVidia, and ATI, except EFI-based Framebuffer Support, only if you are using UEFI)

## (Further down, enable basic console support. KMS uses this.)
Console display driver support ---> (NOT SEEING THIS OPTION)
<*> Framebuffer Console Support (NOT SEEING THIS OPTION)


Next configure the kernel to use the proper KMS driver for the video card. Intel, nVidia, and AMD/ATI are the most common cards, so follow code listing for each card below.

For Intel cards see the kernel section of the Intel article.
EFI based framebuffer support IS enabled.
It has been stated in a few different places that CONFIG_FRAMEBUFFER_CONSOLE must be set to Y. However, using / in the menuconfig leads me to enable the "Console display driver support -> <*> Framebuffer console support" option that I do not have in my menuconfig?
Picture of my "Graphics Support" in Menuconfig here: Menuconfig image

In the Intel graphics guide "Troubleshooting" section:
Quote:
Black screen

According to this Debian wiki, CONFIG_FRAMEBUFFER_CONSOLE must be set to y (aka built-in to the kernel). Otherwise, it is possible to always have a black screen unless nomodeset is passed to the kernel, thus disabling kernel mode setting (KMS). acpi_osi="Linux" can be passed to the kernel command line to try to solve this kind of issue. This is usually done through the bootloader.
Kernel with version 4.2 or newer is needed with some 8th generation chipsets[7].
This also seems weird because "nomodeset" did not seem to do anything for me unless I didn't do this correctly somehow (I'm confident I did, not really too technical)
At the GRUB menu, I used 'e' to edit the boot command and appended "nomodeset" after my "init=/lib/systemd/systemd", then used CTRL+X to boot with no success/change.
I also tried removing the necessary systemd command from my grub line just for testing purposes but that changed nothing.



For reference, this is the only thing I've manually done to GRUB according to the Systemd guide:
Quote:
FILE /etc/default/grub Configure GRUB2 for systemd

# Append parameters to the linux kernel command line
GRUB_CMDLINE_LINUX="init=/lib/systemd/systemd"

What is the next step here exactly to find out what is happening? Are there any logs I can view after mounting my root filesystem on the live cd to help point me in the right direction?

Last edited by austinramsay; 06-24-2018 at 05:07 PM.
 
Old 06-24-2018, 06:21 PM   #2
austinramsay
Member
 
Registered: Jul 2007
Posts: 277

Original Poster
Rep: Reputation: 31
For others referencing this post in the future this was my solution:
The console framebuffer option was hidden because it depended on HAS_IOMEM (which was already set to =Y) and VT (Virtual Terminal) which was set to =N
I located Virtual Terminal by searching "VT" through the "/" option, and following the tree in the resulting window.
After building the virtual terminal into the kernel, "Console Display Driver Support ->" was then accessible through the "Graphics Support" menu.
I then followed the handbook and enabled "Framebuffer console support" as needed.
Did "make && make modules_install" , "make install" and then updated grub2 with "grub-mkconfig -o /boot/grub/grub.cfg"
Rebooted.




But the fun never end, this has now led me to find more issues occuring during boot. My XPS has a 4k display, and it seems like the console is set to 4k which makes the text extremely small and hard to work with (but at least its there now!)..

Looked like boot was going well for a while until I eventually ran into "Timed out waiting for device dev-nvme0n1p2.device" after a 1 minute and 30 second timer attempting to do something... (nvme0n1p2 is my /boot partition)
This was followed by a couple "Depend" errors along with the same message for my swap partition: "Timed out waiting for device dev-nvme0n1p3.device"

I'll do some research and create a new thread if I need to since this thread's specific issue has been solved
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Black screen after grub menu eco_bach Linux - Newbie 7 01-03-2017 06:29 AM
Black screen following grub memilanuk Linux - Laptop and Netbook 5 04-10-2013 08:34 AM
[SOLVED] After Loading Grub, Black Screen!!! NetRock Linux - Desktop 6 11-02-2010 07:47 PM
GRUB : just write grub in black screen. (Urgent) dezeque Linux - Newbie 11 05-27-2005 12:47 PM
GRUB black screen mbatalla82 Linux - Software 4 03-17-2003 02:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 02:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration