LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Gentoo (https://www.linuxquestions.org/questions/gentoo-87/)
-   -   Black screen after boot? (https://www.linuxquestions.org/questions/gentoo-87/black-screen-after-boot-4175654474/)

drillsar 05-23-2019 05:55 PM

Black screen after boot?
 
It seems to boot but goes right to black screen and nothing.
I have no idea what to try next

I did the following:

Kernel
built-in kernel command line
(root=PARTLABEL=rootfs)

made dir /boot/EFI/Gentoo

cp vmlinuz-4.19.44-gentoo to /boot/EFI/Gentoo/bootx64.efi

my /etc/fstab
Code:

# /dev/sda
UUID="286D-3BEE"        /boot          vfat  noauto,noatime  0 2
PARTLABEL="swap"        none            swap  sw              0 0
PARTLABEL="rootfs"      /              ext4  defaults        0 1
# /dev/sdb
PARTLABEL="home"        /home          xfs  defaults        0 2

Code:

efibootmgr --create --part 1 --disk /dev/sda --label "Gentoo" --loader '\EFI\Gentoo\bootx64.efi'

drillsar 05-24-2019 06:53 PM

I added nomodeset to grub and it boots ok. However, without nomodeset it goes black and I am guessing it's nvidia driver.

I followed this:

https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers

I enabled and disabled all the stuff mention on this page except direct rendering..

I don't know what else to do..

drillsar 05-26-2019 02:21 PM

I have somewhat fixed the black screen part. Using compat in USE flags it seems conflicts with X. Therefore, if you add -compat to use flags system boots after a few seconds of black screen you should see login.

drillsar 05-27-2019 11:52 AM

I fixed it and this is how I did it.

First thing is the wiki is wrong. It says to enable compat in USE tags don't do that. Static-libs not needed either every other USE tag should be enabled.

Kernel Configuration:
[*] Enable loadable module support --->

Processor type and features --->[*] MTRR (Memory Type Range Register) support

Bus options (PCI etc.) --->[*] Mark VGA/VBE/EFI FB as generic system framebuffer

Device Drivers --->
Character devices --->[*] IPMI top-level message handler

Device Drivers ---> (ONLY THINGS THAT SHOULD BE ENABLED UNLESS YOUR CARD IS AGP)
Graphics support --->
-*- VGA Arbitration
[*] Bootup logo

Frame buffer Devices ---> (ONLY THINGS THAT SHOULD BE ENABLED)
<*> Support for frame buffer devices --->
<*> Enable Video Mode Handling Helpers
<*> Enable Tile blitting support
<*> Simple frame buffer support

Of course after you build kernel you need to recompile nvidia-driver

Code:

emerge @module-rebuild


All times are GMT -5. The time now is 05:34 PM.