LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-27-2010, 07:32 AM   #1
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
Problems with Nvidia and Xorg 1.7.5


OK

I have for like 4 days now been doing a SourceMage 10.0 install
on my K7 PC.
I cant get X to start and cant get the nvidia driver installed

1) which Nvidia driver to use?
Heres my PC's specs
http://multidistro.com/K7

Also, I have made a .xinitrc for LXDE in /home,etc
and have it all set up; but X wont run

I am trtying to use driver legacy 96xx
or the one from Nvidia site
GeForce4 MX 4000 0x0185
http://us.download.nvidia.com/XFree8...ppendix-a.html

http://www.nvidia.com/object/linux_d..._96.43.16.html

So, what should I do?

I can-

1) install a kernel and source from say Debian,slackware,arch,gentoo,etc
debian has a nvidia-kernel pkg

2) go with reg 2.6.33 kernel and compile myself and then do driver?

or what?

I also need this info for my slack 12.2/13/current, archbang, sabayon
and Debian installs
 
Old 03-27-2010, 07:41 AM   #2
djsmiley2k
Member
 
Registered: Feb 2005
Location: Coventry, UK
Distribution: Home: Gentoo x86/amd64, Debian ppc. Work: Ubuntu, SuSe, CentOS
Posts: 343
Blog Entries: 1

Rep: Reputation: 72
Needs more infomation

What errors do you get when trying to start X?

I personallly disabled all Nvidia stuff in kernel and used Nvidia driver from the Nvidia-drivers package in gentoo (which loads from the site as far as im aware).

With the offical Nvidia driver for that card I believe it needs to be below a certain version, but I'm not sure which version unfortunately (Not at home to check for you), I have an FX (5500?) card and I had to drop back to a specific version as the new updates stopped working on a selection of old cards. It appears your card is listed on the site so I presume thats not your problem.

It did give this infomation in the /etc/X11/xorg.log (not sure this is the exact name of the log file either, sorry!) amd displayed on screen advising to downgrade the driver - this then fixed my issues.

Last edited by djsmiley2k; 03-27-2010 at 07:41 AM. Reason: spelling
 
Old 03-27-2010, 08:04 AM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,079

Rep: Reputation: 401Reputation: 401Reputation: 401Reputation: 401Reputation: 401
The version you've chosen is the right one to use with your video card.

Quote:
Originally Posted by linus72 View Post
I can-

1) install a kernel and source from say Debian,slackware,arch,gentoo,etc
debian has a nvidia-kernel pkg

2) go with reg 2.6.33 kernel and compile myself and then do driver?
You could use whatever you want, however I'd compile it myself. First, the kernel, then the driver. I think that the nvidia driver installer looks into /usr/src/linux. That's usually a symlink to the directory containing your kernel sources. You must make sure it points to the correct tree, otherwise the driver will be compiled for a different version of the kernel (if there's any other).

But, don't quote me on that, and read the nVidia docs, I am sure they will know far better than I do.

Note also that this old driver might require a specific kernel version, and even an specific X.org version. In my experience nVidia have been pretty good in this regard: they usually maintain actively the legacy drivers so you can continue to use them in modern systems. At least, they used to. It's been a long time since I used an nVidia card myself though, so that might have changed. You'll have to check yourself.
 
Old 03-27-2010, 08:40 AM   #4
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Original Poster
Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
Ok thanks guys
it seems I must first recompile my kernel?

the Nvidia installer from site says that rivafb or nvidiafb is causing it to Not install
and that I must remove rivafb,etc from kernel,etc

I am using my slackware 2.6.33 kernle and source,modules,etc in SourceMage install
both are using Xorg 1.7.5 and so I am gonna recompile my slack kernel; again try to install nvidia driver
and see what happens

When booting my current 13 install; the fb switches at mid-boot
and says its using "nouveaufb" and its at vga 791

heres lsmod

Code:
bash-4.1# lsmod
Module                  Size  Used by
snd_seq_dummy           1107  0 
snd_seq_oss            24800  0 
snd_seq_midi_event      4524  1 snd_seq_oss
snd_seq                39676  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device          4543  3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss            34488  0 
snd_mixer_oss          13427  1 snd_pcm_oss
ipv6                  224509  18 
lp                      7033  0 
pcspkr                  1355  0 
video                  15945  0 
output                  1444  1 video
fuse                   50947  1 
nouveau               400275  1 
ttm                    36544  1 nouveau
drm_kms_helper         23847  1 nouveau
drm                   131568  3 nouveau,ttm,drm_kms_helper
i2c_algo_bit            4355  1 nouveau
ohci_hcd               20897  0 
i2c_nforce2             4788  0 
snd_intel8x0           22489  1 
ssb                    40588  1 ohci_hcd
i2c_core               15040  5 nouveau,drm_kms_helper,drm,i2c_algo_bit,i2c_nforce2
snd_ac97_codec         89335  1 snd_intel8x0
mmc_core               46724  1 ssb
ehci_hcd               31558  0 
ac97_bus                 822  1 snd_ac97_codec
snd_pcm                56420  3 snd_pcm_oss,snd_intel8x0,snd_ac97_codec
ppdev                   4879  0 
pcmcia                 26166  1 ssb
nvidia_agp              4172  1 
snd_timer              15081  2 snd_seq,snd_pcm
snd                    42511  11 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
psmouse                40494  0 
agpgart                23320  3 ttm,drm,nvidia_agp
pcmcia_core            26100  1 pcmcia
forcedeth              44766  0 
processor              23455  0 
shpchp                 27016  0 
fan                     2702  0 
soundcore               4559  1 snd
snd_page_alloc          5849  2 snd_intel8x0,snd_pcm
rtc_cmos                7517  0 
thermal                10251  0 
thermal_sys            12012  4 video,processor,fan,thermal
parport_pc             18103  1 
rtc_core               11534  1 rtc_cmos
serio_raw               3594  0 
parport                25707  3 lp,ppdev,parport_pc
rtc_lib                 1522  1 rtc_core
evdev                   6928  8 
hwmon                   1013  1 thermal_sys
button                  3929  1 nouveau
sg                     20695  0

heres /var/log/Xorg.0.log from SourceMage

http://multidistro.com/Xorg.0.log-srcmage

heres log from my current 13 setup I am in now with no nvidia driver
(yet); I am getting ready to recompile kernel I guess

http://multidistro.com/Xorg.0.log-current

mmmmm....after successfully redoing kernel and installing driver
and get X working in my 13-current setup
I'm gonna transfer everything to my sourcemage setup

any ideas or suggesstions??
 
Old 03-27-2010, 08:46 AM   #5
djsmiley2k
Member
 
Registered: Feb 2005
Location: Coventry, UK
Distribution: Home: Gentoo x86/amd64, Debian ppc. Work: Ubuntu, SuSe, CentOS
Posts: 343
Blog Entries: 1

Rep: Reputation: 72
Is X now working correctly?

If so, and your now looking at moving everything to a different system (I can't tell exactly what you want to do now) then I'll drop out of this as I don't know much about what your trying to do.

You need to state concisely exactly what you want to do, its very difficult to know what your "thinking" of doing, if that makes sense.

If it helps, make a list such as :

1. How do i install a kernel
2. How do i transfer over a network
3. How do i get 3D graphics on my desktop.

This allows us to easily assist you as we then know exactly what your asking for.

 
Old 03-27-2010, 08:55 AM   #6
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Original Poster
Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
OK

1) I have over 20 distinct systems installed on this PC
theses include ArchBang, buntu 9.04/9.10, slack 12.2/13/and current, Source Mage, Debian Squeeze
and today Sabayon 5.2 Gnome

2) Only the 9.04 buntu install actually has a Nvidia driver installed via Synaptic
as I use this when playing Glest
All the other installs use a "nv" driver or vesa or something; most are "auto-setup"
as I didnt need to do anything with xorg.conf

3) Wanting to expand my knowledge of Linux; I took the Deep Water and installed SourceMage Linux
a "build-it-yourself" similar to Gentoo

The sourcemage setup is OK, but Xorg wont start with vesa or any other driver?!

I installed my Slackware current 2.6.33-K7 kernel,modules,etc that I have already compiled previously,
into thwe SourceMage install.

So, the slack current install and the sourcemage install will be running EXACT same kernel,modules,etc

Thats my intent;

First; get my slackware current and Sourcemage X working and configured with Nvidia driver
then
Install Nvidia driver System-Wide(lots of different distros)
 
Old 03-27-2010, 09:01 AM   #7
djsmiley2k
Member
 
Registered: Feb 2005
Location: Coventry, UK
Distribution: Home: Gentoo x86/amd64, Debian ppc. Work: Ubuntu, SuSe, CentOS
Posts: 343
Blog Entries: 1

Rep: Reputation: 72
Thank you for the concise reply! That makes more sense now.

Firstly - WOW thats alot of distros - I've only ever stuck with gentoo as Debian failed me as a noobie and I never felt the need to experiment outside of gentoo (If you find my first post on these forums its rather amusing to see how "green" I was).


Ok I think the next steps are

1. Recompile the kernel without any drives as such, turn off vesa and nv.
2. Install nVidia driver; compile (it links into your kernel, so make sure your kernel is in the correct place - check the documentation). Also keep the driver safe, you'll need to recompile it each time you change kernels.
3. Figure out how to tell X to load the nVidia driver instead of NV or vesa (I can't recall how to do this, its a setting via the Xorg.conf but I dont have acess to mine atm - once again documentation should show this
4. Good luck!
 
Old 03-27-2010, 09:22 AM   #8
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Original Poster
Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
Ah

well, it seems that you must have same gcc for compiling nvidia driver and kernel
sourcemage and slack current gcc are different versions....

oh, well I will be doing lots of compiling of various kernels i guess....
 
Old 03-27-2010, 11:28 AM   #9
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Original Poster
Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
Success!

with slackware current 2.6.33 kernel and "NVIDIA-Linux-x86-96.43.16-pkg1.run" from Nvidia site

I did make menuconfig in /usr/src/linux
and knocked out rivafb, nouveaufb, nvidiafb,etc
anything that wasn't needed also

I also made VESA a M as it was not chosen before

I then ran "make -j3 all"
is that right?

anyway; after the kernel was done compiling I installed it all
and blacklisted the "nouveau" module as Didier Spaier suggested
I also made sure rivafb and nvidiafb,etc were blacklisted

I then rebooted into new kernel; and installed nvidia driver via .run
file above at runlevel3(no X)

the driver installed successfully this time and asked if I wanted nvidia-xconfig to make a xorg.conf

I said "hell yeah dude!"
and "bink" it made one

holding my breath I cast "startx"
LOL

and it started!

Heres xorg.conf it made

Code:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder63)  Thu Jan 28 16:14:36 PST 2010

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
    FontPath        "/usr/lib/X11/fonts/misc/:unscaled"
    FontPath        "/usr/lib/X11/fonts/100dpi/:unscaled"
    FontPath        "/usr/lib/X11/fonts/75dpi/:unscaled"
    FontPath        "/usr/lib/X11/fonts/misc/"
    FontPath        "/usr/lib/X11/fonts/Type1/"
    FontPath        "/usr/lib/X11/fonts/Speedo/"
    FontPath        "/usr/lib/X11/fonts/100dpi/"
    FontPath        "/usr/lib/X11/fonts/75dpi/"
    FontPath        "/usr/lib/X11/fonts/cyrillic/"
    FontPath        "/usr/lib/X11/fonts/TTF/"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       30.0 - 110.0
    VertRefresh     50.0 - 150.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
        Modes      "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
    EndSubSection
EndSection
So, now I will move my /usr/src/linux-2.6.33 folder to my SourceMage
install and agin make the kernel and again install nvidia driver

Hope it works
 
Old 03-27-2010, 11:34 AM   #10
djsmiley2k
Member
 
Registered: Feb 2005
Location: Coventry, UK
Distribution: Home: Gentoo x86/amd64, Debian ppc. Work: Ubuntu, SuSe, CentOS
Posts: 343
Blog Entries: 1

Rep: Reputation: 72
Rock on! You mean.... I actually fixed something?!

Awesome (Also, if you moved over your kernel AND nvidia driver, they should both work.... but im not sure if your sourcemage kernel has patches which they applied themselves.)
 
Old 03-27-2010, 11:43 AM   #11
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Original Poster
Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
yeah; the issue is gcc

slack current uses a different version of gcc than sourcemage
Thus, the nvidia driver complains at install
Meaning
I will have to recompile kernel on sourcemage and then redo this

I am cheating by copying working xorg.conf over and some other stuff

Slackware is like Ubuntu compared to Sourcemage
Hold my hand Slackware...!?
 
Old 03-27-2010, 04:12 PM   #12
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Original Poster
Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
Well
Still no dice with sourcemage gettin X to start in any way at all

this is what the /var/log/Xorg.0.log says now
Code:
(**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(**) NVIDIA(0): Enabling RENDER acceleration
(II) NVIDIA(0): Support for GLX with the Damage and Composite X extensions is
(II) NVIDIA(0):     enabled.
(II) NVIDIA(0): NVIDIA GPU GeForce4 MX 4000 at PCI:2:0:0 (GPU-0)
(--) NVIDIA(0): Memory: 65536 kBytes
(--) NVIDIA(0): VideoBIOS: 04.18.20.39.02
(II) NVIDIA(0): Detected AGP rate: 8X
(--) NVIDIA(0): Interlaced video modes are supported on this GPU
(--) NVIDIA(0): Connected display device(s) on GeForce4 MX 4000 at PCI:2:0:0:
(--) NVIDIA(0):     DCLCD  DCL9C (CRT-0)
(--) NVIDIA(0): DCLCD  DCL9C (CRT-0): 350.0 MHz maximum pixel clock
(II) NVIDIA(0): Assigned Display Device: CRT-0
(WW) NVIDIA(0): No valid modes for "1600x1200"; removing.
(II) NVIDIA(0): Validated modes:
(II) NVIDIA(0):     "1280x1024"
(II) NVIDIA(0):     "1024x768"
(II) NVIDIA(0):     "800x600"
(II) NVIDIA(0):     "640x480"
(II) NVIDIA(0): Virtual screen size determined to be 1280 x 1024
(--) NVIDIA(0): DPI set to (90, 89); computed from "UseEdidDpi" X config
(--) NVIDIA(0):     option
(--) Depth 24 pixmap format is 32 bpp
(II) NVIDIA(0): Initialized GART.
(II) NVIDIA(0): Setting mode "1280x1024"
(II) Loading extension NV-GLX
(II) NVIDIA(0): NVIDIA 3D Acceleration Architecture Initialized
(II) NVIDIA(0): Using the NVIDIA 2D acceleration architecture
(==) NVIDIA(0): Backing store disabled
(==) NVIDIA(0): Silken mouse enabled
(**) NVIDIA(0): DPMS enabled
(II) Loading extension NV-CONTROL
(==) RandR enabled
(II) Initializing built-in extension Generic Event Extension
(II) Initializing built-in extension SHAPE
(II) Initializing built-in extension MIT-SHM
(II) Initializing built-in extension XInputExtension
(II) Initializing built-in extension XTEST
(II) Initializing built-in extension BIG-REQUESTS
(II) Initializing built-in extension SYNC
(II) Initializing built-in extension XKEYBOARD
(II) Initializing built-in extension XC-MISC
(II) Initializing built-in extension SECURITY
(II) Initializing built-in extension XINERAMA
(II) Initializing built-in extension XFIXES
(II) Initializing built-in extension RENDER
(II) Initializing built-in extension RANDR
(II) Initializing built-in extension COMPOSITE
(II) Initializing built-in extension DAMAGE
(II) Initializing extension GLX

Backtrace:
0: /usr/bin/X (xorg_backtrace+0x3b) [0x80a638b]
1: /usr/bin/X (0x8048000+0x5e905) [0x80a6905]
2: (vdso) (__kernel_rt_sigreturn+0x0) [0xffffe40c]
3: /usr/bin/X (CreateNewResourceType+0x6f) [0x8097b9f]
4: /usr/lib/xorg/modules/libglx.so (0xb7208000+0xf5aa4) [0xb72fdaa4]
5: /usr/bin/X (0x8048000+0x1b584) [0x8063584]
6: /lib/libc.so.6 (__libc_start_main+0xe5) [0xb73bdb85]
7: /usr/bin/X (0x8048000+0x1b2e1) [0x80632e1]
Segmentation fault at address (nil)

Fatal server error:
Caught signal 11 (Segmentation fault). Server aborting
any ideas?

Shuld I rebuild Xorg-server now that nvidia driver is installed or what do I do?

why is it freaking out?
I just get frozen black screen issuing "startx"


help!
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
nv Vs. nvidia in xorg.conf -- Resolution Problems treth Linux - Laptop and Netbook 2 03-30-2010 03:42 AM
Problems with Xorg: Nvidia screen and then hard freeze! (Missing dri modules) CheatCat Linux - General 4 12-04-2009 03:35 PM
Xinerama, nVidia, Triple-head xorg problems livewire98801 Linux - Desktop 6 07-16-2008 06:36 PM
Problems getting DVI port working with Dell D630 with docking xorg nvidia ubuntu kcorupe Linux - Desktop 0 03-27-2008 06:27 PM
Xorg.conf Problems with Nvidia video card Ubuntu kickerkeeper Linux - General 3 03-16-2007 10:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:07 PM.

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