Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]Black screen on boot.
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
JustCauseWhyNot
Tux's lil' helper
Tux's lil' helper


Joined: 07 Dec 2021
Posts: 135

PostPosted: Thu Apr 07, 2022 5:17 am    Post subject: Reply with quote

Syslog-ng. Although I'm not entirely sure I've setup it up.
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2966
Location: Edge of marsh USA

PostPosted: Thu Apr 07, 2022 5:52 am    Post subject: Reply with quote

Is it running? Look at the output of rc-update. The configuration files are at /etc/syslog-ng/. I'm running metalog which is quite different, but I think more users are using syslog-ng which should give you the traditional /var/log/messages and /var/log/syslog.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4392
Location: Bavaria

PostPosted: Fri Apr 08, 2022 1:29 pm    Post subject: Reply with quote

JustCauseWhyNot,

can you try again with new 5.17.2 ?

(its a very huge update; very seldom; see: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/log/?h=linux-5.17.y )
Back to top
View user's profile Send private message
JustCauseWhyNot
Tux's lil' helper
Tux's lil' helper


Joined: 07 Dec 2021
Posts: 135

PostPosted: Fri Apr 08, 2022 4:01 pm    Post subject: Reply with quote

I will give it a shot with the new update.
Back to top
View user's profile Send private message
JustCauseWhyNot
Tux's lil' helper
Tux's lil' helper


Joined: 07 Dec 2021
Posts: 135

PostPosted: Fri Apr 08, 2022 6:49 pm    Post subject: Reply with quote

I've setup metalog, because I didn't have syslog-ng setup. Here's my 5.17.2 config. I can't find any log of kernel 5.17.2 when it fails to boot. When I try and boot it sticks on black screen. Not even a "warm boot" were I've got some input control.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54418
Location: 56N 3W

PostPosted: Fri Apr 08, 2022 7:29 pm    Post subject: Reply with quote

JustCauseWhyNot,

Code:
CONFIG_NET_SELFTESTS=y
CONFIG_DRM_DEBUG_SELFTEST=y


Do those seftests take minutes, hours, days or weeks to run?

Anything to do with debug or self tests should be off unless you know why you need it.

Code:
CONFIG_DRM_EXPORT_FOR_TESTS=y
CONFIG_PNP_DEBUG_MESSAGES=y
CONFIG_DEBUG_KERNEL=y
CONFIG_DEBUG_MISC=y
...


Debug always generates logspam and its allowed to interfere with normal operation too.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
JustCauseWhyNot
Tux's lil' helper
Tux's lil' helper


Joined: 07 Dec 2021
Posts: 135

PostPosted: Fri Apr 08, 2022 7:48 pm    Post subject: Reply with quote

I've disabled those selftests, except CONFIG_NET_SELFTEST as that required me disabling CONFIG_INET. I had CONFIG_DRM_DEBUG_SELFTEST enabled inorder to turn on CONFIG_DRM_KMS_HELPER, and I didn't need to enable simpledrm which is mutually exclusive with simplefb. And I need simplefb to boot. But I've disabled CONFIG_DRM_DEBUG_SELFTEST, and everything listed in second box.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4392
Location: Bavaria

PostPosted: Fri Apr 08, 2022 8:05 pm    Post subject: Reply with quote

JustCauseWhyNot,

I had an intensive look to your kernel config ... AND for me its ok (to boot). Yes, there are some options you dont need all, like these:
Code:
CONFIG_SND_HDA_CODEC_REALTEK=y
CONFIG_SND_HDA_CODEC_ANALOG=y
CONFIG_SND_HDA_CODEC_SIGMATEL=y
CONFIG_SND_HDA_CODEC_VIA=y
CONFIG_SND_HDA_CODEC_HDMI=y
CONFIG_SND_HDA_CODEC_CIRRUS=y
CONFIG_SND_HDA_CODEC_CS8409=y
CONFIG_SND_HDA_CODEC_CONEXANT=y
CONFIG_SND_HDA_CODEC_CA0110=y
CONFIG_SND_HDA_CODEC_CA0132=y
CONFIG_SND_HDA_CODEC_CA0132_DSP=y
CONFIG_SND_HDA_CODEC_CMEDIA=y
CONFIG_SND_HDA_CODEC_SI3054=y

and some options should be inverted (disable all enabled; enable all disabled), like these:
Code:
# CONFIG_CPU_ISOLATION is not set

# CONFIG_CHECKPOINT_RESTORE is not set

CONFIG_BLK_DEBUG_FS=y

# CONFIG_MSDOS_PARTITION is not set

CONFIG_DEVMEM=y

# CONFIG_USB_UAS is not set


... BUT ... these all do NOT cause your problem of a black screen. As I said before I believe its NVIDIA ... NOW we need your systemlog. Simpler than metalog is sysklogd:

https://wiki.gentoo.org/wiki/Sysklogd

(but its your choice).
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4392
Location: Bavaria

PostPosted: Fri Apr 08, 2022 8:05 pm    Post subject: Reply with quote

Neddy,

you are right with DEBUG options ... in most cases ... BUT some are needed, AND some will INCREASE Kernel Security, like these:
Code:
CONFIG_SLUB_DEBUG=y
CONFIG_PNP_DEBUG_MESSAGES=y
CONFIG_DEBUG_KERNEL=y
CONFIG_DEBUG_MISC=y
CONFIG_DEBUG_WX=y
CONFIG_SCHED_DEBUG=y
CONFIG_DEBUG_LIST=y
CONFIG_DEBUG_SG=y
CONFIG_DEBUG_NOTIFIERS=y
CONFIG_DEBUG_CREDENTIALS=y


See more here:

https://kernsec.org/wiki/index.php/Kernel_Self_Protection_Project/Recommended_Settings
Back to top
View user's profile Send private message
JustCauseWhyNot
Tux's lil' helper
Tux's lil' helper


Joined: 07 Dec 2021
Posts: 135

PostPosted: Fri Apr 08, 2022 8:22 pm    Post subject: Reply with quote

It's solved! I disbaled CONFIG_DRM_DEBUG_SELFTEST, and that seems to be the issue. I don't have CONFIG_DRM_KMS_HELPER=Y, but I can boot up to the tty in high resolution. I tested turning on simpledrm, but when the nvidia-drm module loaded I got a graphical error, and it freezes up. I'll share config within a short amount of time, but I need to take a break. Thank you pietinger, and NeddySeagoon.
Back to top
View user's profile Send private message
JustCauseWhyNot
Tux's lil' helper
Tux's lil' helper


Joined: 07 Dec 2021
Posts: 135

PostPosted: Sun Apr 10, 2022 5:22 pm    Post subject: Reply with quote

I'm able to boot using simplefb. If I try and use simpledrm though I get a graphical error, and the startup log freezes. Here's the kernel config I'm using. I need CONFIG_DRM_FBDEV_EMULATION=Y or I get a glitched black screen without startup log.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4392
Location: Bavaria

PostPosted: Sun Apr 10, 2022 6:00 pm    Post subject: Reply with quote

JustCauseWhyNot,

thank you very much for reporting back. Maybe this will help some others in the future.

Many Greetings,
Peter
Back to top
View user's profile Send private message
JustCauseWhyNot
Tux's lil' helper
Tux's lil' helper


Joined: 07 Dec 2021
Posts: 135

PostPosted: Sun Apr 10, 2022 6:15 pm    Post subject: Reply with quote

I do hope this helps anyone else. But I sent config also to get help. I still can't boot properly while having COMFIG_DRM_KMS_HELPER=Y.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4392
Location: Bavaria

PostPosted: Sun Apr 10, 2022 6:43 pm    Post subject: Reply with quote

Sorry for this misunderstanding (I thought it was solved). At the moment I have no ideas, but I know there is actual many changes in kernel for FrameBuffer (AFAIK its not finished right now).

So maybe it is best to boot your old kernel and wait for:
a) new kernel versions, and/or
b) new NVIDIA versions

Sorry for no better service ... :-(
Back to top
View user's profile Send private message
JustCauseWhyNot
Tux's lil' helper
Tux's lil' helper


Joined: 07 Dec 2021
Posts: 135

PostPosted: Sun Apr 10, 2022 6:47 pm    Post subject: Reply with quote

The core problem is solved. I wasn't able to boot with anything I tried , but I've got a configuration that works properly now. I didn't clarify well enough. The problem was I get an error about CONFIG_DRM_KMS_HELPER not being set when I rebuild nvidia. It's not a huge deal though. For now I'm just going to use simplefb, and hopefully the drivers will get better support in future. Thank you for your help.
Back to top
View user's profile Send private message
JustCauseWhyNot
Tux's lil' helper
Tux's lil' helper


Joined: 07 Dec 2021
Posts: 135

PostPosted: Mon Apr 11, 2022 12:05 am    Post subject: Reply with quote

Last post. Here's a 5.17.2 kernel config that doesn't have any issues. I've solved all the issues I've had.
Back to top
View user's profile Send private message
nxe9
n00b
n00b


Joined: 05 Jun 2021
Posts: 49

PostPosted: Mon May 20, 2024 10:58 pm    Post subject: Reply with quote

JustCauseWhyNot wrote:
when I boot up its just a black screen.

I had the same problem recently. In my case the following setting was not set.
Code:
CONFIG_FRAMEBUFFER_CONSOLE

Code:
-> Device Drivers
   -> Graphics support
      -> Console display driver support
         -> Framebuffer Console support

I leave this information for others who might have a similar problem.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4392
Location: Bavaria

PostPosted: Mon May 20, 2024 11:27 pm    Post subject: Reply with quote

nxe9 wrote:
I leave this information for others who might have a similar problem.

Thank you very much - passing on information is the best way to help others. :D

Because I have also learned a lot in the last 2 years, I have written a few articles in the wiki; in one of them I have already written this information. That's why I want to add a link to your information:
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_Configuring_Kernel_Version_6.6#Part_3_-_Must_Haves
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
JustCauseWhyNot
Tux's lil' helper
Tux's lil' helper


Joined: 07 Dec 2021
Posts: 135

PostPosted: Tue May 21, 2024 11:45 pm    Post subject: Reply with quote

How do I satisfy getting DRM_KMS_HELPER while following the wiki?
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4392
Location: Bavaria

PostPosted: Wed May 22, 2024 2:01 am    Post subject: Reply with quote

JustCauseWhyNot wrote:
How do I satisfy getting DRM_KMS_HELPER while following the wiki?

Enable:
Code:
[*] Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)  --->

or any of the graphics modules: AMD GPU, Nouveau (NVIDIA) cards, Intel 8xx/9xx/G3x/G4x/HD Graphics, Intel Xe Graphics, ..., Simple framebuffer driver

To get a complete list, search with / in "make menuconfig" for "DRM_KMS_HELPER" and you will get a long list after: "Selected by"
_________________
https://wiki.gentoo.org/wiki/User:Pietinger


Last edited by pietinger on Wed May 22, 2024 2:06 am; edited 1 time in total
Back to top
View user's profile Send private message
JustCauseWhyNot
Tux's lil' helper
Tux's lil' helper


Joined: 07 Dec 2021
Posts: 135

PostPosted: Wed May 22, 2024 2:05 am    Post subject: Reply with quote

Thank youl. I'll change my config. So I should be able to use this
Code:
options nvidia-drm modeset=1
in /etc/modprobe.d/nvidia.conf without issue right?
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4392
Location: Bavaria

PostPosted: Wed May 22, 2024 2:11 am    Post subject: Reply with quote

JustCauseWhyNot wrote:
[...] So I should be able to use [...] /etc/modprobe.d/nvidia.conf without issue right?

I can't confirm that because i have nothing to do with the external - proprietary - nvidia modules ... all i know is that there were versions that didn't want DRM_KMS_HELPER at all, and other versions did. I don't even know the current status.
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
JustCauseWhyNot
Tux's lil' helper
Tux's lil' helper


Joined: 07 Dec 2021
Posts: 135

PostPosted: Wed May 22, 2024 2:13 am    Post subject: Reply with quote

Alrighty. I'll mess around with it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
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