-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x11failsafe - deprecated? #554
Comments
Let's ask the X experts I'll drop Stefan Dirsch a note |
Just verified, that YaST2 still writes /etc/X11/xorg.conf.install (the assumably working X configuration during install) during installation of our currently developed enterprise product (i.e. sle15), based on Tumbleweed. So "x11failsafe" still makes sense on regular installations (at least if you still use xdm; seems to be ignored by gdm e.g.). Of course this may not apply to image installations not using YaST for installation at all. 'nomodeset' still disables KMS support, so X falls back to fbdev X driver, which should be even more safe to use than 'modeset' X driver on top of KMS. |
@magist3r I need to know, why X fails to start with these options. Could you attach /var/log/Xorg.0.log, please when using xdm as display manager? |
I can run X using startx command btw after login to console. |
Ok, looks like I found the root of the problem: ● display-manager.service - X Display Manager Dec 01 22:23:03 linux display-manager[6293]: KEYTABLE: us nomodeset option works as expected. |
That's exactly the behaviour as designed. Bailout in failsafe mode, if no safe X configuration exists. |
Ok. Where this file comes from? It is created during installation process? |
Yes, the file is created during a regular YaST2 installation process, but this may not apply to your image installation. Yes, you can copy it from your Leap 42.3 system. I noticed, that the error message is no longer correct. There is no xorg.conf any longer (completely replaced by xorg.conf.d snippets). I will adjust this. |
Ok. |
@magist3r /etc/X11/xorg.conf.install is not owned by any package and created from the YaST startup code afaik. So there is no reliable source for this file and we could only go and add a static overlay file which will probably be out of sync with what yast creates very soon. I'm more open to delete the use of x11failsafe by kiwi and leave it up to the author of the image description to add that option in its image description when needed which also implies that a file /etc/X11/xorg.conf.install needs to be provided along with the image description. In a suse specific documentation section it would also be possible to document the use and requirements of x11failsafe nomodeset seems to be used by the kernel, thus I expect this to be generically valid and could stay as part of kiwi's standard failsafe boot Thoughts ? |
Correct, xorg.conf.install is being created on-the-fly by YaST2 during installation, so kiwi repackaging it won't fly. And, if it's not being used during installation, we simply cannot assume it is safe anyway! So there's no point in providing it. |
And yes, nomodeset definitely still makes sense, since KMS can break Linux console from the beginning, not only X/Wayland. |
This is the best option I think. |
Then what's still left in "failsafe_kernel_options"? |
This is the current list:
If we agree on the solution I would delete x11failsafe from the list Does the rest still makes sense from your point of view ? Keep in mind this list is rather old and has been inherited from the former kiwi version Thanks for your feedback |
Well, I disagree. I would replace "x11failsafe" with "3" (i.e. runlevel 3 without X). Reason I've given before. I guess many of the other options are meanwhile outdated/irrelevant/ignored or even should no longer been used. I suggest to ask on our internal 'research' or 'kernel' ML or external opensuse-factory list for help. Or you can try to figure out yourself by investing hours of research ... |
Hmm, why do you think "failsafe kernel options" == "No X11" I think that's not what a customer would expect. I think failsafe boot means "less performance but failsafe". Correct me when I'm wrong but switching off kernel modesetting still means I can have X or is that wrong ? The setup of the runlevel is in the hand of the one who designs the image, I think forcing a runlevel would be the wrong way to go unless the other kernel options really cause that
I'll check our official product iso and see which options are used here |
Well, with no xorg.conf.install available we don't have a failsafe X configuration. So if the graphics driver is the issue, and my guess is that in most cases this is the reason to boot into failsafe, we gain exactly nothing with this failsafe kernel boot entry. Of course you can tell then the customer to add "3" in addition. OTOH with nomodeset we disable KMS and most drivers meanwhile require KMS, so we see as fallback driver either fbdev or vesa (if framebuffer has been disabled as well). And these drivers hopefully will just work. |
ok so failsafe in fact means no X. Thanks I'll adapt the list and also set the runlevel as you suggested |
Thanks! |
Delete obsolete parameters and make sure a failsafe boot does boot into runlevel 3. This Fixes #554
@sndirsch could you take a short look on the pull request ? Thanks |
I see 'x11failsafe' and 'nomodeset' in failsafe_kernel_options. By the way I can't boot my image with any of these options (X doesn't start at all). I think these options are deprecated and need to be removed. Thoughts?
The text was updated successfully, but these errors were encountered: