Cannot start X11 after modifying xorg.conf. System stops booting up.
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Cannot start X11 after modifying xorg.conf. System stops booting up.
Hello my friends!
I am facing a new problem. I am starting to take problems as a way of learning. Learning from your advices and tips!
This was what I made:
Yesterday, I modified my monitor settings through nVidia gui settings (I modified frequency to 1280x1024 and 60hz which are the recommeded settings for my display). Of course, before saving new settings I made a backup copy of my xorg.conf to avoid any problem.
I modified inittab to start directly into X (4 instead of 3).
Today, when I turned on my computer, it stopped booting at the following line:
"Starting up X11 session manager"
So, I can't start my system which is a full slackware 12.1 system. No dual boot, no win. Just Slackware.
How can I be able to go back to my old xorg.conf to restore my system? As I don't have access to command line, I don't know what to do.
Another thing I am noticing now is that booting into command line is better than directly into X. That way, you can enter commands if X doesn't start. Am I right?
Slackware works perfectly again. What I did was to press TAB for LILO prompt and then I entered "Slackware 1" (Slackware is the name I give to my boot option".
How could I add an option to LILO to be able to choose single user as a LILO menu option when computer starts?
With respect to your current issue, if you have the basic stock Slackware /etc/inittab, then console 6 should be available to you when you boot into runlevel 4. When X hangs because of the modifications you made to xorg.conf, as mentioned, press Ctrl-Alt-F6 to toggle to console 6.
For people who like booting mostly into runlevel 4, I like to recommend people create two bootloader options: one for runlevel 3 and one for runlevel 4. When problems arise with booting into runlevel 4, in addition to the console 6 option, the user then has the alternative to boot the system into runlevel 3 to perform some troubleshooting. Try the following:
The mini how-to applies to GRUB, but the principles are the same for Lilo.
For myself I prefer to boot into runlevel 3 for the reason you have discovered --- easier troubleshooting. However, if I there were multiple users on this box, I would use runlevel 4 as the default to provide a login manager because most users freak out with a command line login.
To avoid issues as you discovered, I create optional xorg.conf files. I use the proprietary nvidia drivers and I have a two backups for my xorg.conf: 1) xorg.conf.bak and 2) xorg.conf.nvidia. I also have configured the standard nv drivers too. Therefore I also have an xorg.conf.nv file in /etc/X11. If I should botch an xorg.conf modification attempt, I can copy the original xorg.conf.nvidia or xorg.conf.bak to xorg.conf and recover my system. Should I try to update the proprietary nvidia drivers and the install fails, I can temporarily copy xorg.conf.nv to xorg.conf and then I have a way to start X while I troubleshoot, which often includes using a web browser to surf the web.
Another nice trick to know is the stock Slackware 12.1 kernels are compiled with the kernal "magic" keys installed. In a hard lockup situation, a user can press and hold Alt-SysReq, while sequentially pressing the r, k, e, i, s, u, and b keys. This will provide a safe way to reboot the box when the usual normal recovery methods fail.
With respect to your current issue, if you have the basic stock Slackware /etc/inittab, then console 6 should be available to you when you boot into runlevel 4. When X hangs because of the modifications you made to xorg.conf, as mentioned, press Ctrl-Alt-F6 to toggle to console 6.
For people who like booting mostly into runlevel 4, I like to recommend people create two bootloader options: one for runlevel 3 and one for runlevel 4. When problems arise with booting into runlevel 4, in addition to the console 6 option, the user then has the alternative to boot the system into runlevel 3 to perform some troubleshooting. Try the following:
The mini how-to applies to GRUB, but the principles are the same for Lilo.
For myself I prefer to boot into runlevel 3 for the reason you have discovered --- easier troubleshooting. However, if I there were multiple users on this box, I would use runlevel 4 as the default to provide a login manager because most users freak out with a command line login.
To avoid issues as you discovered, I create optional xorg.conf files. I use the proprietary nvidia drivers and I have a two backups for my xorg.conf: 1) xorg.conf.bak and 2) xorg.conf.nvidia. I also have configured the standard nv drivers too. Therefore I also have an xorg.conf.nv file in /etc/X11. If I should botch an xorg.conf modification attempt, I can copy the original xorg.conf.nvidia or xorg.conf.bak to xorg.conf and recover my system. Should I try to update the proprietary nvidia drivers and the install fails, I can temporarily copy xorg.conf.nv to xorg.conf and then I have a way to start X while I troubleshoot, which often includes using a web browser to surf the web.
Another nice trick to know is the stock Slackware 12.1 kernels are compiled with the kernal "magic" keys installed. In a hard lockup situation, a user can press and hold Alt-SysReq, while sequentially pressing the r, k, e, i, s, u, and b keys. This will provide a safe way to reboot the box when the usual normal recovery methods fail.
Nice tip Woodsman but, What should I add to my lilo.conf to be able to boot with init 3?
What follows is showing the stanza I've started to add to lilo.conf but I don't know what to add to boot into level 3.
Because no runlevel is listed in your default lilo boot option (init 3), /etc/inittab then will determine the runlevel when lilo boots with your default boot option. Therefore to boot into runlevel 4 --- and override inittab without editing inittab, you need to add that option in lilo.conf. According to the lilo.conf man page, the append option should provide what you need.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.