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 24th January 2010, 03:08 AM
Vansolrick's Avatar
Vansolrick Offline
Registered User
 
Join Date: Mar 2007
Location: Tucson, Arizona
Age: 24
Posts: 203
macosfirefox
Accidentally broke xorg - how to fix? Cannot use ctrl+alt+function1-6

It's been months since I've used a Linux based OS. I'm a long time Fedora user so I'm not new to how Linux works. However, I was shocked to see that xorg.conf, as well as ctrl+alt_bs and ctrl+alt+f1-7 are no longer keybinds.

I installed the proprietary nvidia driver from the nonfree repos. This is where I messed up: I should have checked to note that my mothers GF6 onboard video controller isn't supported. Now, I boot into a black screen with a flashing prompt in the upper left hand corner. Normally, I would jump to the console using ctrl+alt+F1 to fix the problem manually. But, since It wont let me, I'm left in the dark. Any help would be appreciated greatly.

EDIT: All I need to do is be able to access the terminal. Thanks
__________________
Previously known as 'WalmartSniperLX'

Please join me in the 'No thread left behind' Act, the quest to leave no thread left unanswered

Last edited by Vansolrick; 24th January 2010 at 03:13 AM.
Reply With Quote
  #2  
Old 24th January 2010, 03:34 AM
marko's Avatar
marko Online
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,488
linuxfedorafirefox
In the older days, ctrl+alt+F7 was the GUI, in Fedora 12 for some reason they moved it to F1, so try using
ctrl+alt+F2 , F3, F4 ... and so on for consoles.

Xorg "upstream" disabled the default of allowing "X zapping" with the ctrl+alt+bspace because some
emacs users complained (why those 20 people couldn't opt out of C+A+BS with option DontZap 'true'
instead of all the thousands of other users having to opt into zapping I don't know)

So what you can do is put /etc/X11/xorg.conf:

Section "ServerFlags"
Option "DontZap" "false"
EndSection

you might not even have a xorg.conf but you can just make one with just those three lines, it won't hurt X.
Then go into keyboard layout and turn on "key sequence to kill the X server" in the Advanced section of the
Keyboard layout.
Reply With Quote
  #3  
Old 24th January 2010, 03:39 AM
Vansolrick's Avatar
Vansolrick Offline
Registered User
 
Join Date: Mar 2007
Location: Tucson, Arizona
Age: 24
Posts: 203
macosfirefox
Thanks for the reply. Unfortunately, none of the binds to get to the CLI are working. When I use them I just get a weird character on the screen where the flashing prompt is. Is there any other way to access it during boot? Or can I use a liveCD to tap into my shell? Or anything as such so I can then add the lines to xorg?

Thanks again.
__________________
Previously known as 'WalmartSniperLX'

Please join me in the 'No thread left behind' Act, the quest to leave no thread left unanswered
Reply With Quote
  #4  
Old 24th January 2010, 03:45 AM
marko's Avatar
marko Online
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,488
linuxfedorafirefox
I more carefully read your 1st post, I was thinking you were saying just F1 wasn't going to a console.
Actually F2-F6 ARE key bound to show the text consoles. So there's something in particular wrong with
your setup.

if you go to a terminal and do this

ps -ef | grep mingetty

you should see:
Quote:

$> ps -ef | grep mingetty

root 1377 1 0 21:44 tty4 00:00:00 /sbin/mingetty tty4
root 1378 1 0 21:44 tty5 00:00:00 /sbin/mingetty tty5
root 1379 1 0 21:44 tty2 00:00:00 /sbin/mingetty tty2
root 1380 1 0 21:44 tty3 00:00:00 /sbin/mingetty tty3
root 1381 1 0 21:44 tty6 00:00:00 /sbin/mingetty tty6
(time codes and pids different for you of course)
are your mingetty processes running?
Reply With Quote
  #5  
Old 24th January 2010, 03:50 AM
GoinEasy9's Avatar
GoinEasy9 Offline
Registered User
 
Join Date: May 2009
Location: Manorville, New York, USA
Posts: 1,583
linuxfedorafirefox
If I am reading this right....Why don't you just add a 3 to the kernel line when grub screen comes up and boot into init 3?
__________________
Registered Linux User #348347
Have you been seduced by siduction? http://siduction.org/index.php
Running Fedora 17/18, siduction and openSUSE Tumbleweed with KDE
Reply With Quote
  #6  
Old 24th January 2010, 03:58 AM
tashirosgt Offline
Registered User
 
Join Date: Aug 2004
Posts: 3,857
linuxfedorafirefox
As GoingEasy9 suggests, boot into the single user mode: http://docs.fedoraproject.org/instal...ng-single.html

You may have to press the key fast to interrupt grub. I suppose the "vi" editor will be only one handy - or does Fedora ship with an easier to use terminal editor now? It used to have "joe".

I think you could also use a rescue disk to boot and edit your files. You merely have to figure out the directions for mounting your filesystem once the rescue boots.
__________________
"Never let the task you are trying to accomplish distract you from the study of computers."
Reply With Quote
  #7  
Old 24th January 2010, 04:16 AM
GoinEasy9's Avatar
GoinEasy9 Offline
Registered User
 
Join Date: May 2009
Location: Manorville, New York, USA
Posts: 1,583
linuxfedorafirefox
I use nano as a terminal editor, it seems the one constant that appears on all distros. BTW, I keep joe on all my installs, even though I don't use it much, it's nice having a clone of Wordstar to fall back on.
__________________
Registered Linux User #348347
Have you been seduced by siduction? http://siduction.org/index.php
Running Fedora 17/18, siduction and openSUSE Tumbleweed with KDE
Reply With Quote
  #8  
Old 24th January 2010, 04:21 AM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,149
linuxfedorafirefox
Even older systems did not necessarily use F7 for X displays - X will use the first
unused terminal F1-F7 identified.

My system (F11) is using F7, F8 is unused. During system boot, it appears that F1
may be in use at the moment X is started, hence it starts on F7. If I log out (causing
X to restart) then it will be using F1.

After the system is up, F2 through F6 are in use by mingetty. An unused terminal
will have a blinking cursor at the top left. <alt>Fn will switch from one terminal to
another, and this is now separated from X.

If no terminals have the login (and it is difficult when nothing is shown when switching
terminals) then none of them are enabled.

Enabling a terminal requires a file in /etc/event.d/tty<n> where n is 1/2/3/4/5/6

My /etc/event.d/tty1 has:
Quote:
# tty1 - getty
#
# This service maintains a getty on tty1 from the point the system is
# started until it is shut down again.

start on stopped rc2
start on stopped rc3
start on stopped rc4

stop on runlevel 0
stop on runlevel 1
stop on runlevel 6

respawn
exec /sbin/mingetty tty1
Where my /etc/event.d/tty2 has:
Quote:
# tty2 - getty
#
# This service maintains a getty on tty2 from the point the system is
# started until it is shut down again.

start on stopped rc2
start on stopped rc3
start on stopped rc4
start on started prefdm

stop on runlevel 0
stop on runlevel 1
stop on runlevel 6

respawn
exec /sbin/mingetty tty2
The significant difference is the "start on started prefdm".

If you go to run level 3, then tty1 is started with a login prompt. If you go to run
level 4 (prefdm) then it is stopped. In both cases, tty2 is started.

The files should exist by default.
Reply With Quote
  #9  
Old 25th January 2010, 12:51 AM
Vansolrick's Avatar
Vansolrick Offline
Registered User
 
Join Date: Mar 2007
Location: Tucson, Arizona
Age: 24
Posts: 203
macosfirefox
Sorry I may have been confusing.

I am unable to get to any CLI, period. Nothing responds. The black blinking prompt isn't really a prompt as it does not display my shell username. This is the confusing part.

So, I managed to get into one using the single user mode, removed the driver, however I'm guessing I need to reconfigure the X server to the open source nvidia driver. I'm hoping that this is all I need to do now.

I'm not sure how to do it without a premade xorg.conf file and I don't know if adding the device driver section would fix the problem. Is there an automated x configuration tool that I can use?

Again, thanks everyone! I appreciate it.

EDIT: Nvm thanks a lot guys. I just edited the xorg anyway and it seemed to do the trick. Thank you for your help!

---------- Post added at 05:51 PM CST ---------- Previous post was at 05:32 PM CST ----------

I spoke too soon. I have to remove the nvidia proprietary module but don't remember how to do that :S Once again, thanks everyone.
__________________
Previously known as 'WalmartSniperLX'

Please join me in the 'No thread left behind' Act, the quest to leave no thread left unanswered

Last edited by Vansolrick; 25th January 2010 at 12:38 AM.
Reply With Quote
  #10  
Old 25th January 2010, 01:09 AM
GoinEasy9's Avatar
GoinEasy9 Offline
Registered User
 
Join Date: May 2009
Location: Manorville, New York, USA
Posts: 1,583
linuxfedorafirefox
You might have to remove /etc/modprobe.d/blacklist-nouveau.conf.
I would also consider removing xorg.conf. When using nouveau, unless you have a double monitor or some special setup, you don't need it. When I have had to restore nouveau to my machines, I remove it and let the system rebuild it if need be. If there is an xorg.*-backup, I remove that too. If you removed the kmod-nvidia driver and the above it should boot back into nouveau.
Any questions please feel free to post back.
__________________
Registered Linux User #348347
Have you been seduced by siduction? http://siduction.org/index.php
Running Fedora 17/18, siduction and openSUSE Tumbleweed with KDE
Reply With Quote
  #11  
Old 25th January 2010, 02:10 AM
Vansolrick's Avatar
Vansolrick Offline
Registered User
 
Join Date: Mar 2007
Location: Tucson, Arizona
Age: 24
Posts: 203
linuxfedorafirefox
Quote:
Originally Posted by GoinEasy9 View Post
You might have to remove /etc/modprobe.d/blacklist-nouveau.conf.
I would also consider removing xorg.conf. When using nouveau, unless you have a double monitor or some special setup, you don't need it. When I have had to restore nouveau to my machines, I remove it and let the system rebuild it if need be. If there is an xorg.*-backup, I remove that too. If you removed the kmod-nvidia driver and the above it should boot back into nouveau.
Any questions please feel free to post back.
Thank you. Walked thru removing the blacklist-noveau.conf file and removing xorg.conf, I was able to get back into X.
__________________
Previously known as 'WalmartSniperLX'

Please join me in the 'No thread left behind' Act, the quest to leave no thread left unanswered
Reply With Quote
Reply

Tags
accidentally, alt, broke, ctrl, fix, function16, xorg

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
xorg-x11-server-Xorg - 1.3.0.0-42.fc8.i386 broke my compiz-fusion (borders gone) Tine Using Fedora 16 22nd December 2008 06:35 PM
F10 upgrade broke CTRL-key mapping spacelogic Mac Chat 0 18th December 2008 01:33 AM
2001 tibook 667 xorg update broke my xorg.conf! hank_le Mac Chat 2 19th April 2008 01:02 PM
i broke xorg jbob286 Using Fedora 4 3rd February 2007 12:57 AM


Current GMT-time: 06:48 (Wednesday, 19-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