 |
 |
 |
 |
| Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum. |

4th December 2010, 11:53 PM
|
|
Registered User
|
|
Join Date: Jun 2009
Posts: 21

|
|
Unable To Shut Down X Windows
Hi, I am having trouble shutting down X windows in a command line I type telinit 3, nothing happens. Is their a command in GRUB without having X windows starting? I need it shut down so I can compile a nividia graphics card.
|

5th December 2010, 12:08 AM
|
 |
Registered User
|
|
Join Date: May 2005
Location: Sonoran Desert
Posts: 2,136

|
|
|
Re: Unable To Shut Down X Windows
Follow the grub menu directions for editing an entry and add 3 to the end of the kernel line, which will boot you into runlevel 3 without X. The change is temporary, 1 boot only.
|

5th December 2010, 01:58 AM
|
|
Registered User
|
|
Join Date: Jan 2010
Posts: 5,018

|
|
|
Re: Unable To Shut Down X Windows
If you want to make it permanent, you can edit /etc/inittab. You'll see a line id:5:initdefault
Change the 5 to a 3. Or, permanently add that 3 to the end of the kernel line. (I think Sonoran was referring to a one time addtion for editing grub at boot.)
Note that with Fedora, grub also has the line hidden and a default timeout of 0, so to edit it, you will have to try hitting the space key after the bios screen. (Or the escape key--I'm pretty sure any key will work, including F8, just like Windows.)
|

5th December 2010, 02:39 AM
|
|
Registered User
|
|
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,146

|
|
|
Re: Unable To Shut Down X Windows
Question - I keep seeing reports that telinit 3 doesn't work. This implies
that the system also cannot shutdown properly.
Is this Fedora 14?
|

5th December 2010, 03:05 AM
|
 |
Registered User
|
|
Join Date: Oct 2007
Location: Freedonia
Age: 63
Posts: 2,145

|
|
|
Re: Unable To Shut Down X Windows
Instead of rebuilding the proprietary nVidia driver every time there's a kernel update, just follow the guide here: http://forums.fedoraforum.org/showthread.php?t=204752 and install kmod-nvidia instead because that, generally, gets updated along with the kernel automagically.
__________________
Registered Linux user #470359 and permanently recovered BOFH.
Any advice in this post is worth exactly what you paid for it.
|

5th December 2010, 04:25 AM
|
|
Registered User
|
|
Join Date: Jan 2010
Posts: 5,018

|
|
|
Re: Unable To Shut Down X Windows
Some quick experimentation indicates that it also doesn't work in CentOS 5.5, #!Crunchbang and Arch. I've actually never used that to get out of X, using either ctl+alt+backspace, or commonly, a keyboard shortcut in my window manager. Not sure if I missed anything, but in all three, I logged in as normal user, then ran sudo telinit 3. It would go back to a command prompt, and nothing would happen.
|

5th December 2010, 05:39 AM
|
|
Registered User
|
|
Join Date: Jun 2009
Posts: 21

|
|
|
Re: Unable To Shut Down X Windows
Thanks everybody for your help!
I performed an upgrade from Fedora 13 to Fedora 14. I am using an Nvidia driver that must be recompiled every time a new kernel is installed. Once the kernel is updated, before rebooting I recompile the Nvidia driver in run level 3. If I do not do this first the system will hang during start up. Since I was upgrading to Fedora 14, I was not able update the Nvidia driver before a reboot. I was able to select from grub my old Fedora 13 kernel (the previous one before upgrade) and was able log into to it. I tried telinit 3 from command prompt, although I had no response. I realize sidebrnz that kmod-nvidia updates automatically, although I prefer the driver from Nvidia.
I changed the etc/inittab to 3 the other methods did not work for me. Once I updated the nVidia driver. I changed etc/inittab back to 5. The system came up successfully for 2.6.35.6-48.fc14.x86_64. The one exception telinit still has no response.
|

5th December 2010, 07:11 AM
|
 |
Registered User
|
|
Join Date: May 2005
Location: Sonoran Desert
Posts: 2,136

|
|
|
Re: Unable To Shut Down X Windows
Quote:
Originally Posted by smr54
Some quick experimentation indicates that it also doesn't work in CentOS 5.5, #!Crunchbang and Arch. I've actually never used that to get out of X, using either ctl+alt+backspace, or commonly, a keyboard shortcut in my window manager. Not sure if I missed anything, but in all three, I logged in as normal user, then ran sudo telinit 3. It would go back to a command prompt, and nothing would happen.
|
When I run telinit 3 from a vt in fedora 14 I get this:
Starting portreserve: [OK]
Starting system logger:
Starting irqbalance: [OK]
starting cups:
Retrigger failed udev events [OK]
Enabling Bluetooth devices:
_ (blinking cursor)
If I hit Enter I get the root prompt back. If I try to go anywhere from this vt by ctrl-alt-fN the system locks up. If I run telinit 5 I get back to a gnome desktop, where looking at system monitor or top or ps shows 2 of almost every process running - but only 1 init process. The system is not stable and locks up if I use ctrl-alt-fN.
Telinit 3 doesn't work for me in an openbox session in Arch, either - nothing happens at all.
|

5th December 2010, 12:17 PM
|
|
Registered User
|
|
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,146

|
|
|
Re: Unable To Shut Down X Windows
Quote:
|
If I hit Enter I get the root prompt back. If I try to go anywhere from this vt by ctrl-alt-fN the system locks up. If I run telinit 5 I get back to a gnome desktop, where looking at system monitor or top or ps shows 2 of almost every process running - but only 1 init process. The system is not stable and locks up if I use ctrl-alt-fN.
|
ctrl-alt-fN only works with the X server. It used to work from the console
terminals because the ctrl was ignored.
Try alt-fN to switch to the terminals. If all you get (except from the
terminal you logged in on, usually 2 - selected by alt-f2) then only one
terminal is active.
It is normal to have to hit return to get another prompt - telinit 3 only
signals the init process to switch to run level 3, so there is no waiting.
The prompt should come back immediately. Other output generated
by the run level change can come to that terminal that issued the
telinit 3 command, but doesn't have to. It should/must go to the console
which may be tty1 instead.
Last edited by jpollard; 5th December 2010 at 12:20 PM.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 04:41 (Tuesday, 18-06-2013)
|
|
 |
 |
 |
 |
|
|