[Bug 859042] New: NO_KMS_IN_INITRD does not have full effect
https://bugzilla.novell.com/show_bug.cgi?id=859042 https://bugzilla.novell.com/show_bug.cgi?id=859042#c0 Summary: NO_KMS_IN_INITRD does not have full effect Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: x86-64 OS/Version: openSUSE 13.1 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: zhubr@mail.ru QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.1.4) Gecko/20091016 MRA 5.3 (build 02564) Firefox/3.5.4 Setting NO_KMS_IN_INITRD (and runlevel to 2 or 3) does not prevent kms loading automatically on boot. Reproducible: Always Steps to Reproduce: 1. Use yast -> Sysconfig editor, set NO_KMS_IN_INITRD to YES. 2. Use yast -> Runlevel editor to set default runlevel to 2. 3. Reboot. 4. Login at console as root, type "lsmod | grep kms" Actual Results: lsmod reports presence of i915, drm_kms_helper; console has much higher visual resolution than initially at boot. Expected Results: Supposedly no graphics drivers should be automatically loaded when booted to runlevel 2 or 3. Alternatively, if this option is no longer supported, maybe at least remove NO_KMS_IN_INITRD variable to avoid confusion. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=859042
https://bugzilla.novell.com/show_bug.cgi?id=859042#c
Xiyuan Liu
https://bugzilla.novell.com/show_bug.cgi?id=859042
https://bugzilla.novell.com/show_bug.cgi?id=859042#c1
Arvin Schnell
https://bugzilla.novell.com/show_bug.cgi?id=859042
https://bugzilla.novell.com/show_bug.cgi?id=859042#c2
--- Comment #2 from Nikolai Zhubr
Does YaST set the value correct in the config files?
Apparently it does. In fact, after some more experiments, I think this is neither yast problem nor initrd problem. I think it is rather that kernel and/or udev behaviour changed since opensuse 11.3, so that i915 gets loaded automatically anyway (just maybe later in boot sequence if NO_KMS_IN_INITRD is set) by means of standard device discovery and kernel module search (by vendor_id/device_id etc) and i915 in turn pulls in kms and everything. Now, my original reason for using NO_KMS_IN_INITRD was actually this: "Do not load any graphics drivers until _really_ required by some graphics subsystem (like X)". In 11.3 NO_KMS_IN_INITRD did the trick perfectly fine. In 13.1, it is essentially useless, although formally it does work. I'm now going to study udev a little bit more to try to make it skip autoloading graphics card module(s) if NO_KMS_IN_INITRD is set. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=859042
https://bugzilla.novell.com/show_bug.cgi?id=859042#c3
Arvin Schnell
https://bugzilla.novell.com/show_bug.cgi?id=859042
https://bugzilla.novell.com/show_bug.cgi?id=859042#c
Xiyuan Liu
https://bugzilla.novell.com/show_bug.cgi?id=859042
https://bugzilla.novell.com/show_bug.cgi?id=859042#c4
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=859042
https://bugzilla.novell.com/show_bug.cgi?id=859042#c5
--- Comment #5 from Nikolai Zhubr
Disable plymouth(8) ... from manual page
DESCRIPTION plymouth is a graphical boot system for Linux which takes advantage of the kernel-based mode setting (KMS) available for modern graphic cards to provide a seamless, flickerfree and attractive boot screen.
beside this you should also disable the graphical mode in grub2 that is to set
GRUB_GFXPAYLOAD_LINUX=text
in /etc/default/grub and run
grub2-mkconfig -o /boot/grub2/grub.cfg
afterwards. This bug does not belong to systemd nor udev.
No plymouth installed here, and graphics in Grub was disabled of course, I should have mentioned this, sorry. Now, I have finally "solved" the problem by adding blacklist i915 into /etc/modprobe.d/99-local.conf This still allows automatic loading of i915 by X and manual loading by modprobe i915, but initially after boot text mode is retained (and this is all I want). Obviously this is not a generic solution, but I'd suggest that some reminder in the description of NO_KMS_IN_INITRD (or elsewhere) mentioning grub, plymouth and autoloading by pci_id would not hurt at least. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=859042
https://bugzilla.novell.com/show_bug.cgi?id=859042#c6
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=859042
https://bugzilla.novell.com/show_bug.cgi?id=859042#c7
--- Comment #7 from Nikolai Zhubr
I'd like to know what the advantage is not using graphical mode if available? Speed can not be a reason to switch off graphical mode but use text mode only. In my experience the graphical mode systems do boot faster ... therefore I'd like to know what advantage do you have by switching off graphical mode.
Reasons are various, although admittedly, not all of them are critical, but still: * In case this box is (kind of) a server, not loading additional unnecessary (and quite complicated and possibly somewhat buggy) kernel-space code is good practice; * Unless I use some huge 28' monitor, modern graphics resolution is too high for my eyes to comfortably read default console font characters as they become tiny (Yes this can be adjusted, but no friendly fool-proof dialog is provided for that anyway); * Text-mode output is guaranteed to be usable (enough for urgent administration/repair) on ANY random monitor having vga connector, be it shiny new lcd from a shop today or 20 y.o. dusty crt dinosaur, and moreover, it does not matter if you have it connected at boot time or plug at some point later, it will unconditionally "just work"; * You can test/debug/update/tune i915.ko (or whatever appropriate) with comfort and no risk of suddenly being unable to even login; (This can also be achieved by using e.g. some backup kernel in bootloader, but that means more burden and implies some more expertise); * Linux distributions are still about freedom: if you don't want something, you probably prefer to remove/disable it (well, unless absolutely technically pointless). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=859042
https://bugzilla.novell.com/show_bug.cgi?id=859042#c8
--- Comment #8 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=859042
https://bugzilla.novell.com/show_bug.cgi?id=859042#c9
--- Comment #9 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=859042
https://bugzilla.novell.com/show_bug.cgi?id=859042#c10
--- Comment #10 from Nikolai Zhubr
Please show me the result of
sudo lsinitrd /boot/initrd | grep i915.ko
also
sudo journalctl --all | grep 'Inserted module'
clearly without the blacklist line
zhubr-wrk:~ # lsinitrd /boot/initrd | grep i915.ko zhubr-wrk:~ # journalctl --all | grep 'Inserted module' Jan 20 19:45:37 zhubr-wrk systemd[1]: Inserted module 'autofs4' Jan 20 19:45:37 zhubr-wrk systemd-modules-load[270]: Inserted module 'sg' zhubr-wrk:~ # lsmod | grep i915 i915 710199 1 drm_kms_helper 52710 1 i915 drm 313440 2 i915,drm_kms_helper i2c_algo_bit 13413 1 i915 video 19507 1 i915 button 13952 1 i915 zhubr-wrk:~ # dmesg | grep i915 [ 3.849528] i915 0000:00:02.0: setting latency timer to 64 [ 3.916394] i915 0000:00:02.0: irq 43 for MSI/MSI-X [ 4.157030] i915 0000:00:02.0: fb0: inteldrmfb frame buffer device [ 4.157058] i915 0000:00:02.0: registered panic notifier [ 4.161949] [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0 zhubr-wrk:~ # It feels like loading is initiated by either videocard's pci_id or maybe something like acpi:lnxvideo, but I've failed to find any traces of actual initiator. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=859042
https://bugzilla.novell.com/show_bug.cgi?id=859042#c11
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=859042
https://bugzilla.novell.com/show_bug.cgi?id=859042#c12
--- Comment #12 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=859042
https://bugzilla.novell.com/show_bug.cgi?id=859042#c13
--- Comment #13 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=859042
https://bugzilla.novell.com/show_bug.cgi?id=859042#c14
--- Comment #14 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=859042
https://bugzilla.novell.com/show_bug.cgi?id=859042#c15
--- Comment #15 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=859042
https://bugzilla.novell.com/show_bug.cgi?id=859042#c16
--- Comment #16 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=859042
https://bugzilla.novell.com/show_bug.cgi?id=859042#c17
--- Comment #17 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=859042
https://bugzilla.novell.com/show_bug.cgi?id=859042#c18
Nikolai Zhubr
on the kernels command line[1] but disabling kernel events by default due NO_KMS_IN_INITRD looks like no nogo for me.
Agreed. As no clean solution is possible, I'd suggest it is OK to dismiss the issue. Maybe just add a reminder warning somewhere (e.g. in Yast's description for NO_KMS_IN_INITRD, for the lack of a better place) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=859042
https://bugzilla.novell.com/show_bug.cgi?id=859042#c19
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=859042
https://bugzilla.novell.com/show_bug.cgi?id=859042#c20
--- Comment #20 from Nikolai Zhubr
Please give the kernel command line parameters from comment #17 a try ... which of them are working (without blacklisting the i915 module)
With both nomodeset modeset=0 and nomodeset only, visible result is the same: Initially in runlevel 3, i915 not loaded, text mode is retained, console is OK. After going init 5: Normal graphical login appeared. It is possible to login, but after closing graphical session (by either logout or by pressing Crtl+Alt+F1) the screen goes pure black forever. Using ssh login I can e.g. see: zhubr-wrk:~ # dmesg | grep i915 zhubr-wrk:~ # dmesg | grep drm [ 4.086340] [drm] Initialized drm 1.1.0 20060810 [ 4.107260] [drm:drm_pci_agp_init] *ERROR* Cannot initialize the agpgart module. So right now, specifying "nomodeset" on my box basically breaks things hard (as opposed to harmless blacklisting i915). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=859042
https://bugzilla.novell.com/show_bug.cgi?id=859042#c21
--- Comment #21 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=859042
https://bugzilla.novell.com/show_bug.cgi?id=859042#c22
Karl Eichwalder
https://bugzilla.novell.com/show_bug.cgi?id=859042
https://bugzilla.novell.com/show_bug.cgi?id=859042#c23
--- Comment #23 from Nikolai Zhubr
I'm wondering what this bug is about... Is it about a misleading yast help text?
Essentially yes, I suppose... Adding more up-to-date hints to the description text would be good. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=859042
https://bugzilla.novell.com/show_bug.cgi?id=859042#c24
Karl Eichwalder
(In reply to comment #22)
I'm wondering what this bug is about... Is it about a misleading yast help text?
Essentially yes, I suppose... Adding more up-to-date hints to the description text would be good.
Ok, thanks for confirming--thus, we are back to square 1. Please adjust the yast help text. Or does yast just display the text from /etc/sysconfig/kernel? ## Type: yesno ## Default: "" ## Command: /sbin/mkinitrd # # # This variable disables the initialization of KMS in the initrd # by not including the modules required for KMS even though KMS is # supported on the underlying hardware. # After changing run mkinitrd again. # NO_KMS_IN_INITRD="no" -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=859042
https://bugzilla.novell.com/show_bug.cgi?id=859042#c25
Arvin Schnell
https://bugzilla.novell.com/show_bug.cgi?id=859042
https://bugzilla.novell.com/show_bug.cgi?id=859042#c
Xiyuan Liu
https://bugzilla.novell.com/show_bug.cgi?id=859042
https://bugzilla.novell.com/show_bug.cgi?id=859042#c26
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=859042
https://bugzilla.novell.com/show_bug.cgi?id=859042#c27
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=859042
https://bugzilla.novell.com/show_bug.cgi?id=859042#c
Michal Filka
participants (1)
-
bugzilla_noreply@novell.com