LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-12-2003, 11:02 AM   #1
asktoby
Member
 
Registered: Jul 2003
Location: Cardiff, England ;)
Distribution: Mandrake 9.1
Posts: 94

Rep: Reputation: 15
Whoops - yanc mistake and can't load X


Whoopsie! I was doing so well - got sound working, got dual screens working, watched a film on it last night, really starting to enjoy mandrake&me. Should've kept my hands in my pockets!

As root, I altered my resolutions using yanc, but must've made a typo and chosen a dud resolution or something, because now I just boot to the command line. If I log in and type X <return> it tells me that
"no modes remaining for display device TV-0
Aborting
Screens found but none have a usable configuration."

Now, I'm making good progress with linux mandy9.0 but I'm not 133t enough to work without the GUI yet! How should I go about putting it back in a working setup?
 
Old 07-12-2003, 11:11 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Try loggin in as root and run:
XFdrake
(I think that is the correct case)
 
Old 07-12-2003, 11:28 AM   #3
asktoby
Member
 
Registered: Jul 2003
Location: Cardiff, England ;)
Distribution: Mandrake 9.1
Posts: 94

Original Poster
Rep: Reputation: 15
Thanks for the quick reply.
I ran XFDrake and set the display to 800x600 16bit plug&play monitor, and upon going "test" the program said:
"Nvidia(0): No modes remaining for display advice TV-0
Aborting
Try to change some parameters."

To further explain what I did to break it:
I had used Yanc to set up one monitor and one television to both be on 800x600. I had tweaked the resolution successfully a few times, and each time I'd verified all the other settings at the same time (e.g. TV0:CRT/LCD/TV? TV1:CRT/LCD/TV? Refresh rates etc)

This time I just changed the resolution (called Metamodes? Can't quite remember) without verifying the other settings. I guess they went back to defaults, and got saved to my, ohh, what's that file called, /etc/X11-4 or something! I think perhaps I need to edit that file to put it correct, but I don't know a command line editor (like MSDOS's "edit.exe") that I can use.
 
Old 07-12-2003, 11:43 AM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Use any of:
vi
pico
emacs
 
Old 07-12-2003, 12:41 PM   #5
asktoby
Member
 
Registered: Jul 2003
Location: Cardiff, England ;)
Distribution: Mandrake 9.1
Posts: 94

Original Poster
Rep: Reputation: 15
I'm in the south of england today and it's roasting hot! I'm useless when I'm hot - no tolerance or patience: I had a look at "man vi" but rather than tackle it today I decided instead to stick my mandy9.0 CD in and chose "upgrade". That fixed it in about 20 minutes, rather than working for 2 hours. Lazy, I didn't learn anything, I feel guilty, but it worked so hey.

Thankyou for your help though
 
Old 07-29-2003, 05:31 PM   #6
asktoby
Member
 
Registered: Jul 2003
Location: Cardiff, England ;)
Distribution: Mandrake 9.1
Posts: 94

Original Poster
Rep: Reputation: 15
Damn, well I managed to get in the same pickle again, but this time I feel strong enough to tackle it properly

I've got vi going, and have managed to create, edit and save documents, so I'm ready to start fiddling with my /etc/X11/XF86Config file.

I've opened XF86Config in vi, and found the section about monitors. Does anyone have advice as to how I should edit it? Should I comment out (looks like I use "#") everything to do with TV-0?
 
Old 07-30-2003, 03:48 AM   #7
asktoby
Member
 
Registered: Jul 2003
Location: Cardiff, England ;)
Distribution: Mandrake 9.1
Posts: 94

Original Poster
Rep: Reputation: 15
After a little more study I've got some new ideas...

The way I got the error this time was as follows:
Everything was working fine using Mandrake9.0 but I decided to upgrade to Mandrake9.1. I put the CD in, rebooted, followed the instructions, and installed 9.1. For some reason, when it finished installing, I got the "no screens found" error.

Reading this thread:
http://www.linuxquestions.org/questions/history/55754

has given me a clue. When I get home tonight I intend to log in as root, rename XF86Config-4 to something else using the command

mv XF86Config-4 wasXF86Config-4

and reboot. Hopefully this will fix the issue. I can't wait till 17:00h to try this now!
 
Old 07-30-2003, 06:32 AM   #8
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
Yanc normally makes a backup cpoy of your original settings at /etc/X11/XF86Config.yanc
Just open that file with nano or pico or the likes:

nano -w /etc/X11/XF86Config.yanc

and save it as XF86Config
 
Old 07-30-2003, 03:04 PM   #9
asktoby
Member
 
Registered: Jul 2003
Location: Cardiff, England ;)
Distribution: Mandrake 9.1
Posts: 94

Original Poster
Rep: Reputation: 15
Well, I tried:
removing XF86Config-4 completely (to use XF86Config)
removing both XF86Config and XF86Config-4 completely (who knows? Maybe it would be rebuilt!)
reverting to XF86Config-4.yanc (by renaming)
reverting to XF86Config-4.old (by renaming)
reverting to XF86Config-4.old.test (by renaming)

And none of them were a working configuration. I can't copy paste my XF86Config files here because I am on my XP machine (the Mandrake one isn't working, natch!)

I guess I need to start hacking away at editing XF86Config-4 then... where to start?

Last edited by asktoby; 07-30-2003 at 03:05 PM.
 
Old 07-30-2003, 04:04 PM   #10
asktoby
Member
 
Registered: Jul 2003
Location: Cardiff, England ;)
Distribution: Mandrake 9.1
Posts: 94

Original Poster
Rep: Reputation: 15
lol, well, here I am in lynx on my dead mandrake box. I'd heard of lynx but never seen it - just typed "lynx" as an experiment and here I am. I wonder if it's possible to somehow copy the contents of XF86Config-4 and paste it here using lynx?
 
Old 07-31-2003, 05:27 AM   #11
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
Send me a mail.I'll send you my config file.
 
Old 07-31-2003, 01:49 PM   #12
asktoby
Member
 
Registered: Jul 2003
Location: Cardiff, England ;)
Distribution: Mandrake 9.1
Posts: 94

Original Poster
Rep: Reputation: 15
PROBLEM SOLVED!

As root, I renamed my XF86Config and XF86Config-4 to wasXF86Config and wasXF86Config-4. I then ran xf86config (note lowercase, this is an app not a textfile)

I found that text kept scrolling off the top of the screen, so switched to a fullscreen terminal window using ctrl-alt-f2, and running xf86config from there.
I followed the instructions, using the default values for most of the time, and saved a new XF86Config file. As it happens, when I tried opening kde using the:
startx
command, I got a mouse error. Turns out I'd incorrectly guessed the value for my mouse port setting, but the correct value was still inside wasXF86Config-4, so I corrected that.

And here I am, using Konqueror, in KDE, on Mandy9.1

Thankyou all for your helpful advise and support

Toby
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Whoops! acey99 Linux - General 5 11-13-2005 03:55 PM
yanc error :/ agrix Linux - Software 1 07-03-2005 07:38 PM
Problems running yaNc capkanada Linux - Software 1 10-10-2004 03:53 PM
whoops! mistake using parted dee999 Linux - Software 3 05-08-2004 08:22 PM
Whoops! megaspaz General 3 10-31-2003 10:58 AM


All times are GMT -5. The time now is 06:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration