Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
I did it again! Last year I downloaded the nvidia program to build my own driver and it worked fine. Last week I installed a new monitor and it would only come up in text mode (init 3). After several hours of messing around with it I reloaded the OS (Mandriva 2006). I downloaded the latest nvidia program, installed the kernel source code and built a new nvidia 3D driver. When I typed 'init 5' nothing happened. Rebooting brought me up in text mode again. I removed the nvidia driver and downloaded the old version and tried building a driver with it, same problem. I have 'nvidia' in the modprobe.preload and xorg.conf files, also Load = dri & GLCore are not in the xorg.conf file, but glx is there. My new monitor is also listed in the conf files. This all worked for a year until I reloaded the OS. Anybody have and idea of how to get the driver to work? Stephen
The question is if it's nvidia driver of the monitor settings (which are closely connected, but different things). Please use your current nvidia driver, then (after failed reboot, in text mode) look into /etc/Xorg.0.log, search for errors. If you don't understand them fully, please post the lines you think may be important. Or, if the file is not too long, just post the whole file.
Mara;
Here are the lines from my /etc/var/log/Xorg.0.log that didn't look right to me.
First in the beginning it states;
BUILD OPERATING SYSTEM: Linux 2.6.3-35mdk-i686-up-4GB i686 [ELF]
CURRENT OPERATING SYSTEM: Linux localhost 2.6.12.12mdk #1 Fri Sep 9 18:15:22 CEST 2005 i686
BUILD DATE 07 SEPTEMBER 2006
I don't know if that means anything but I don't know were the linux 2.6.3-35mdk came from.
The next lines are what I think the problem is from;
(WW) NVIDIA(0): No modes were requested; the default mode
(WW) NVIDIA(0): "nvidia-auto-select" will be used as the
(WW) NVIDIA(0): requested mode.
(WW) NVIDIA(0): Mode "nvidia-auto-select" is larger then virtual
(WW) NVIDIA(0): size 1280 x 960; discarding mode.
(EE) NVIDIA(0): Failure to construct a valid mode list: no modes
(EE) NVIDIA(0): remaining.
(EE) NVIDIA(0): ***Aborting***
(EE) Screen(s) found, but none have a usable configuration.
Fatal server error
no screen found
That's the warnings and errors in the log. What they mean to me is something isn't right, but I don't know what it is. Does this help you to understand the problem? How do I fix it?
Stephen
(II) LoadModule: "nvivia"
(WW) Warning, couldn't open module nvivia
(II) UnloadModule: "nvivia"
(EE) Failed to load module "nvivia" (module does not exist, 0)
(EE) No devices detected.
Fatal server error:
no screens found
I cannot find anywhere that nvidia is misspelled. All the logs up to now spelled it correct. There are still no graphics, but with this problem I can see why.
Sorry to say that I don't know where Mandriva or xorg store this configuration option; the only idea I have is to add "nvidia" to the /etc/modules file and see if it does something.
Mara;
That was the first thing I checked, it was spelled correct. I re-installed Mandriva and made sure I told the install to put the monitor info in the conf file. This time when I looked at my xorg.conf all the data that Serafean told me to put in was there. I tried selecting a generic monitor and that didn't help either. At least the re-install got rid of the misspelling problem. I have everything re-installed and still have the same problem.
Stephen
I would like to share some tweak to get X on madriva 2006.
since i have seen a lots of posts relating to X crash on nvidia using mandriva.
in /etc/X11/xorg.conf , change "Virtual 800 600" line 'screen' section to
Modes 800x600. Thats all. if u have nvidia drivers installed, also change from 'nv' to 'nvidia'.
I replaced all the Virtual "xxxx" with Mode "xxxx" in the /etc/X11/xorg.conf. It looks like this is the closest I've come to getting Nvidia to work. Now I can get the Nvidia splashscreen then it goes black and I come up in text mode. I also noticed that the /etc/X11/xorg.conf had 4 SubSections with a Virtual level and a depth level in each before I changed the virtual to mode. After I changed it there was only 1 SubSection and no depth. After changing the Mode back to Virtual the nvidia back to nv it would not come up in graphic mode. I had to replace the xorg.conf file with an old backup copy to get back into graphic mode. But I think we're on the right track.
nice to hear that u r close to success. Iam listing my xorg.conf . Hope this may help further. Observe the Modes .. line at end clearly.
************
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder3) Mon May 15 13:23:42 PDT 2006
# File generated by XFdrake.
# **********************************************************************
# Refer to the XF86Config man page for details about the format of
# this file.
# **********************************************************************
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Mandrake 6.0 and later now use a font server independent of
# the X server to render fonts.
FontPath "unix/:-1"
EndSection
Section "Module"
Load "dbe" # Double-Buffering Extension
Load "v4l" # Video for Linux
Load "extmod"
Load "type1"
Load "freetype"
Load "glx" # 3D layer
EndSection
Section "ServerFlags"
#DontZap # disable <Crtl><Alt><BS> (server abort)
# allows the server to start up even if the mouse does not work
#DontZoom # disable <Crtl><Alt><KP_+>/<KP_-> (resolution switching)
Option "allowmouseopenfail"
EndSection
It's very small range, so it couldn't find proper modes inside. The correct values depend on the monitor, they're different for LCD and CRT. It looks you have CRT. In such case, you should have much broader ranges. For example, I have
Code:
HorizSync 30-96
VertRefresh 50-160
You should be able to find the corrct values in your monitor's manual. If you can't find them (or the manual, but modes are googlable with monitor model), you can just guess, with monitor produced no more than 5 years ago it shouldn't result in problems.
I'd like to thank you all for trying to help me with my nvidia problem. I would also like to let you all, and any one else that has this problem, know what to do. By accident when I removed the kernal-source file it said that it would remove the dkms file also. I checked and found that there are several dkms files and in order to build a nvidia driver module you have to have the dkms-nvidia file. By default the basic dkms is installed with the kernal-source file. This causes an error in the nvidia driver and it will not work. If you load the dkmw-nvidia file the urpmi program asks you which kernal-source file you what. Select the right source file and install. Problem solved.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.