Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 4th December 2010, 11:53 PM
DoulbeG Offline
Registered User
 
Join Date: Jun 2009
Posts: 21
windows_vistafirefox
Unhappy 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.
Reply With Quote
  #2  
Old 5th December 2010, 12:08 AM
sonoran's Avatar
sonoran Offline
Registered User
 
Join Date: May 2005
Location: Sonoran Desert
Posts: 2,136
linuxfirefox
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.
Reply With Quote
  #3  
Old 5th December 2010, 01:58 AM
smr54 Online
Registered User
 
Join Date: Jan 2010
Posts: 5,018
linuxopera
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.)
Reply With Quote
  #4  
Old 5th December 2010, 02:39 AM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,146
linuxfedorafirefox
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?
Reply With Quote
  #5  
Old 5th December 2010, 03:05 AM
sidebrnz's Avatar
sidebrnz Online
Registered User
 
Join Date: Oct 2007
Location: Freedonia
Age: 63
Posts: 2,145
linuxfedorafirefox
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.
Reply With Quote
  #6  
Old 5th December 2010, 04:25 AM
smr54 Online
Registered User
 
Join Date: Jan 2010
Posts: 5,018
linuxopera
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.
Reply With Quote
  #7  
Old 5th December 2010, 05:39 AM
DoulbeG Offline
Registered User
 
Join Date: Jun 2009
Posts: 21
windows_vistafirefox
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.
Reply With Quote
  #8  
Old 5th December 2010, 07:11 AM
sonoran's Avatar
sonoran Offline
Registered User
 
Join Date: May 2005
Location: Sonoran Desert
Posts: 2,136
linuxfirefox
Re: Unable To Shut Down X Windows

Quote:
Originally Posted by smr54 View Post
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.
Reply With Quote
  #9  
Old 5th December 2010, 12:17 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,146
linuxfedorafirefox
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.
Reply With Quote
Reply

Tags
shut, unable, windows

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
windows is unable to install to the selected location windows 7 manish21 Wibble 8 27th September 2010 07:26 AM
unable to shut down my laptop tadasdht Hardware & Laptops 1 27th August 2008 04:37 AM
Unable to cut and paste to and from VM to windows XP stmas Using Fedora 2 8th April 2008 04:11 PM
Unable to shut down properly d347hm4n Using Fedora 2 3rd September 2007 11:50 AM


Current GMT-time: 04:41 (Tuesday, 18-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat