LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-03-2011, 07:51 AM   #1
david08
LQ Newbie
 
Registered: Dec 2009
Distribution: Slackware 13.1
Posts: 12

Rep: Reputation: 0
Failed to startx, problem xorg with nvidia


Hello

Few days ago I've installed Slackware 13.0, after I've tried to install several linux distros like Ubuntu,Debian or Sabayon.Selecting LiveCD option,files are finishing loading then screen goes black.
I think the problem is with Xorg.Xorg doesn't detect my video card.I'm using a Nvidia GeForce 8400GS 256mb ddr2.
Tried to reconfigure xorg.conf, but I couldn't.
In the link below is a picture with errors

http://www.2shared.com/photo/QI_2UTCB/102_0222.html

Could anyone help me with any configuration or something?

Thanks in advance!

Last edited by david08; 01-03-2011 at 07:59 AM.
 
Old 01-03-2011, 08:09 AM   #2
unclejed613
Member
 
Registered: Mar 2009
Posts: 352

Rep: Reputation: 32
mine worked with the default VESA xorg.conf, and to use GLX, i had to install the nvidia driver available from their website. the VESA config file should be in /etc/X11/xorg-vesa.conf. rename it as /etc/X11/xorg.conf. that should get you running. then install the nvidia provided driver. you will need to have all of the kernel source, because the installer recompiles the kernel. then reinstall x and kde and it should work.... hope i'm not forgetting anything..

or just run the xconfig again, whichever works..

Last edited by unclejed613; 01-03-2011 at 08:56 AM.
 
Old 01-04-2011, 08:59 AM   #3
david08
LQ Newbie
 
Registered: Dec 2009
Distribution: Slackware 13.1
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by unclejed613 View Post
mine worked with the default VESA xorg.conf, and to use GLX, i had to install the nvidia driver available from their website. the VESA config file should be in /etc/X11/xorg-vesa.conf. rename it as /etc/X11/xorg.conf. that should get you running. then install the nvidia provided driver. you will need to have all of the kernel source, because the installer recompiles the kernel. then reinstall x and kde and it should work.... hope i'm not forgetting anything..

or just run the xconfig again, whichever works..
reconfigured xorg.conf bilions times, but doesn't work.If you could help me with bash commands about replacing files and installing driver, I'd be glad because I didn't used so much terminal because.I've used a lot deb packages.

Thanks in advance.
 
Old 01-04-2011, 09:46 AM   #4
alekow
Member
 
Registered: Sep 2009
Distribution: Slackware
Posts: 230

Rep: Reputation: 75
Quote:
If you could help me with bash commands about replacing files and installing driver, I'd be glad because I didn't used so much terminal because.I've used a lot deb packages.
If you have problems with command line try running midnight commander with "mc" command - wery intuitive file manager, clone of norton commander, known well in DOS world :-)
It's good to know bash basics though...
 
Old 01-04-2011, 09:57 AM   #5
Jack128
Member
 
Registered: Feb 2009
Location: Germany
Distribution: Slackware64 Current
Posts: 90

Rep: Reputation: 22
Hello david08,
try these steps to switch to plain vesa:

Code:
cd /etc/X11/
nano xorg.conf
There you search for 'Section "Device"'. After you find this
Section look for the line who got 'Driver "???"' in it. Then change
the ??? to "vesa". (Without "")

After finishing this, press Strg+X. And accept the save question,
pressing "Y" or "J".

Now your X is configured to use standard VESA drivers.
______________________________

If you want 3D acceleration, you should use on 13.0 the binary blob
from nVidia. You need installed gcc and kernel sources. These are in
a Full Slackware installation present. Here are the steps:

Code:
cd /
If your using Slackware64-13.0 (64Bit):
Code:
wget http://de.download.nvidia.com/XFree86/Linux-x86_64/260.19.29/NVIDIA-Linux-x86_64-260.19.29.run
If your using Slackware-13.0 (32Bit):
Code:
wget http://de.download.nvidia.com/XFree86/Linux-x86/260.19.29/NVIDIA-Linux-x86-260.19.29.run

Code:
chmod +x NVIDIA-Linux-x86-260.19.29.run
./NVIDIA-Linux-x86-260.19.29.run
Then the installer rolls out, and you have to accept the license
and in the end he asks if he should configure your X, accept this.
Then load the driver module with:

Code:
modprobe nvidia
And start X, with:
Code:
startx
______________________________

Hope this helps.
Regards, Jack.
Cheers

Last edited by Jack128; 01-04-2011 at 09:58 AM.
 
Old 01-04-2011, 10:16 AM   #6
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
Step by Step

Quote:
Originally Posted by david08 View Post
reconfigured xorg.conf bilions times, but doesn't work.If you could help me with bash commands about replacing files and installing driver, I'd be glad because I didn't used so much terminal because.I've used a lot deb packages.

Thanks in advance.
There are numerous ways to replace files
Remove - "rm -f /path/to/file"

Move - "mv /source/file /destination/file"
or "cat /source/file > /destination/file"

Copy (over) "cp /source/file /destination/file"
Note: if source and destination file have same name, source will overwrite destination

Also and perhaps of more value is the Text Editor. In Slackware the default text editor is "vi" or "vim". This is an extremely powerful tool but it is made for programming and is NOT a word processor. There are hundreds of commands and options associated with vim. To get you started here are the most basic ones, say for editing "/etc/X11/xorg.conf". First to get into the file (or create it if it doesn't yet exist) type

"vim /etc/X11/xorg.conf"

It defaults to Read Mode and you can scroll down and across and at the bottom it will report the line and column. With vim (which stands for vi improved) you can delete characters with the Delete key but to add characters or lines you must enter Insert mode by striking the "I" key. If you just want to read and make no changes first strike the "Esc" key and you'll get a beep and a blinking cursor at the bottom. Here you type "Q" to Quit and then Carriage Return AKA the "Enter" key. If you have made changes you want to keep you hit "Esc" then "W" (Write) as well as "Q" (Quit) and then "Enter".

Some people consider it an annoyance but the Console login default of Slack is a massively cool feature, especially for the kinds of problem you are experiencing. When X fails to load it keeps a log of what happened in "/var/log/Xorg.0.log" and you can read it anytime with "vim /var/log/Xorg.0.log". Errors are marked with [E] and Warnings with [W]. While we're on this subject an important aside - to avoid typing errors and speed up command line entries all you need to type is enough letters so the system can rule out all others and hit the "Tab" key and the line will autocomplete. For example if you type "vim /v" and hit the "Tab" key it will add the "ar" since there is no other directory beginning with "v". When you get to Xorg.0.log just the "X" is likely enough since it is the only file in that directory beginning with capital "X". This is extremely usefull.

To sum up what we started in the previous paragraph, check the Xorg log for error messages so you know what to fix. It is far more common that X will have problems with monitors than video cards because so many have EDIDs that suck. If you see that this is the problem you may have to research your monitor's specs and declare them in "/etc/X11/xorg.conf". This monitor upon which I am writing requires "Option 'UseEDIDdpi' 'False'" or the fonts are ginormous.

Installing the proprietary nVidia driver

You need to have the kernel source matching your booting kernel version exactly unpacked in "/usr/src/" where it will create a new directory "/usr/src/linux-version". This needs to be configured and made as well as modules made and installed. I cannot remember if installing the kernel-source package and kernel-modules package does all this for you. I always build my own so I'll have to get back to you on that or hope someone else is more familiar with the package aspect.

Download the nVidia driver for your card and system architecture and copy it to the "/root" directory and make sure it is tagged "executable". Upon booting and logging in as root you will be in that directory. Verify the file is present with the "ls" command and then type "sh ./NVI" and hot the Tab key and then "Enter". Follow the prompts and it will build the "nvidia" kernel module, search out any conflicting files, and offer to alter your "xorg.conf" for you and that has always worked fine for me.

To get to X I prefer running "kdm" as opposed to "startx" but that's possibly more habit than anything else by now but I also don't like "xdm" or "gdm" and prefer declaring what I want... besides it's 3 less letters.

VESA or the "nv" driver should work so before getting too deep, look at Xorg.0.log. It will narrow the field faster.
 
Old 01-04-2011, 01:30 PM   #7
david08
LQ Newbie
 
Registered: Dec 2009
Distribution: Slackware 13.1
Posts: 12

Original Poster
Rep: Reputation: 0
Jack128 thank you very much.Work perfectly.
enorbet thnak you also for this lesson, I leant somethin knew today.
Seem that Slackware is an OS where you learn a lot of things.
 
Old 01-04-2011, 04:16 PM   #8
unclejed613
Member
 
Registered: Mar 2009
Posts: 352

Rep: Reputation: 32
that's what i get for typing a reply early in the morning and hitting save late in the day... you already solved it

Last edited by unclejed613; 01-04-2011 at 04:19 PM.
 
  


Reply



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
(EE) Failed to initialize the NVIDIA graphics device on startx with Slackware 13.1 0++ Slackware 31 09-04-2010 11:11 AM
no display: Xorg, Nvidia driver broken after Etch update; Failed to load module "glx" forgox Debian 19 07-12-2010 12:26 PM
Gentoo Xorg problem with startx. David2010 Linux - Newbie 9 07-09-2010 11:43 PM
Nvidia problems with Xorg: X Error of failed request: BadWindow (invalid Window para s1l3ntbob Debian 2 11-05-2005 05:36 PM
fedora 3 startx xorg problem Gregster Fedora 3 01-03-2005 07:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:13 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
Open Source Consulting | Domain Registration