View previous topic :: View next topic |
Author |
Message |
JustCauseWhyNot Tux's lil' helper
Joined: 07 Dec 2021 Posts: 135
|
Posted: Thu Apr 07, 2022 5:17 am Post subject: |
|
|
Syslog-ng. Although I'm not entirely sure I've setup it up. |
|
Back to top |
|
|
figueroa Advocate
Joined: 14 Aug 2005 Posts: 2966 Location: Edge of marsh USA
|
Posted: Thu Apr 07, 2022 5:52 am Post subject: |
|
|
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 |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4392 Location: Bavaria
|
|
Back to top |
|
|
JustCauseWhyNot Tux's lil' helper
Joined: 07 Dec 2021 Posts: 135
|
Posted: Fri Apr 08, 2022 4:01 pm Post subject: |
|
|
I will give it a shot with the new update. |
|
Back to top |
|
|
JustCauseWhyNot Tux's lil' helper
Joined: 07 Dec 2021 Posts: 135
|
Posted: Fri Apr 08, 2022 6:49 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54418 Location: 56N 3W
|
Posted: Fri Apr 08, 2022 7:29 pm Post subject: |
|
|
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 |
|
|
JustCauseWhyNot Tux's lil' helper
Joined: 07 Dec 2021 Posts: 135
|
Posted: Fri Apr 08, 2022 7:48 pm Post subject: |
|
|
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 |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4392 Location: Bavaria
|
Posted: Fri Apr 08, 2022 8:05 pm Post subject: |
|
|
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 |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4392 Location: Bavaria
|
Posted: Fri Apr 08, 2022 8:05 pm Post subject: |
|
|
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 |
|
|
JustCauseWhyNot Tux's lil' helper
Joined: 07 Dec 2021 Posts: 135
|
Posted: Fri Apr 08, 2022 8:22 pm Post subject: |
|
|
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 |
|
|
JustCauseWhyNot Tux's lil' helper
Joined: 07 Dec 2021 Posts: 135
|
Posted: Sun Apr 10, 2022 5:22 pm Post subject: |
|
|
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 |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4392 Location: Bavaria
|
Posted: Sun Apr 10, 2022 6:00 pm Post subject: |
|
|
JustCauseWhyNot,
thank you very much for reporting back. Maybe this will help some others in the future.
Many Greetings,
Peter |
|
Back to top |
|
|
JustCauseWhyNot Tux's lil' helper
Joined: 07 Dec 2021 Posts: 135
|
Posted: Sun Apr 10, 2022 6:15 pm Post subject: |
|
|
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 |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4392 Location: Bavaria
|
Posted: Sun Apr 10, 2022 6:43 pm Post subject: |
|
|
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 |
|
|
JustCauseWhyNot Tux's lil' helper
Joined: 07 Dec 2021 Posts: 135
|
Posted: Sun Apr 10, 2022 6:47 pm Post subject: |
|
|
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 |
|
|
JustCauseWhyNot Tux's lil' helper
Joined: 07 Dec 2021 Posts: 135
|
Posted: Mon Apr 11, 2022 12:05 am Post subject: |
|
|
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 |
|
|
nxe9 n00b
Joined: 05 Jun 2021 Posts: 49
|
Posted: Mon May 20, 2024 10:58 pm Post subject: |
|
|
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 |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4392 Location: Bavaria
|
|
Back to top |
|
|
JustCauseWhyNot Tux's lil' helper
Joined: 07 Dec 2021 Posts: 135
|
Posted: Tue May 21, 2024 11:45 pm Post subject: |
|
|
How do I satisfy getting DRM_KMS_HELPER while following the wiki? |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4392 Location: Bavaria
|
Posted: Wed May 22, 2024 2:01 am Post subject: |
|
|
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 |
|
|
JustCauseWhyNot Tux's lil' helper
Joined: 07 Dec 2021 Posts: 135
|
Posted: Wed May 22, 2024 2:05 am Post subject: |
|
|
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 |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4392 Location: Bavaria
|
Posted: Wed May 22, 2024 2:11 am Post subject: |
|
|
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 |
|
|
JustCauseWhyNot Tux's lil' helper
Joined: 07 Dec 2021 Posts: 135
|
Posted: Wed May 22, 2024 2:13 am Post subject: |
|
|
Alrighty. I'll mess around with it. |
|
Back to top |
|
|
|