LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 10-06-2009, 03:41 PM   #16
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443

Original Poster
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723

I made a xorg.conf file, and set it up the way I would think it would work, but still only the primary monitor is working. I am using a single video card (Nvidia GeForce 9800GT) with 2 DVI ports on the back.

When I change driver to "nv", X immediately gives a fatal error and returns to the command line.

I had to append .txt to the filename because the forum software wold not let it through.

Last edited by MTK358; 03-26-2010 at 04:17 PM.
 
Old 10-06-2009, 03:57 PM   #17
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
This are the lines I would change, in case you have never seen a diff, the lines starting with '-' are the ones I would delete, and the ones starting with '+' are the ones I'd add (most times it's just a trivial change from one to another).

Code:
--- xorg.conf.txt.orig  2009-10-06 22:48:43.531551626 +0200
+++ xorg.conf.txt       2009-10-06 22:51:33.155552792 +0200
@@ -2,7 +2,7 @@
 
 Section "ServerFlags"
        Option          "DefaultServerLayout"   "Layout 0"
-       Option          "Xinerama"
+       Option          "Xinerama" "true"
 EndSection
 
 Section "ServerLayout"
@@ -27,13 +27,13 @@
 
 Section "Device"
        Identifier      "Device 0"
-       Driver          "vesa"
-       Screen          0
+       Driver          "nv"
+#      Screen          0
 EndSection
 
 Section "Device"
        Identifier      "Device 1"
-       Driver          "vesa"
+       Driver          "nv"
        Screen          1
 EndSection
 
@@ -53,8 +53,10 @@
        Identifier      "Screen 0"
        Device          "Device 0"
        Monitor         "Monitor 0"
+  DefaultDepth     24
        SubSection "Display"
                Depth           24
+    Modes "1680x1050"
        EndSubSection
 EndSection
 
@@ -62,8 +64,13 @@
        Identifier      "Screen 1"
        Device          "Device 1"
        Monitor         "Monitor 1"
+  DefaultDepth     24
        SubSection "Display"
                Depth           24
+    Modes "1680x1050"
        EndSubSection
 EndSection
 
+Section "Extensions"
+    Option "RandR" "Disable"
+EndSection
However as said my experience with nv is quite limited. I am not sure if that's the right way to disable xrandr with nv. I don't even know if nv has a working support for xrandr. In any case randr only gave me problems in the past. Maybe it's my brain from the paleolithic the real problem, who knows.

The resolutions are of course mine, you should set yours instead.
 
Old 10-06-2009, 05:18 PM   #18
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443

Original Poster
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
I did your changes to xorg.conf. It showed a fatal error, I changed drivers to vesa, now X works again, but still 1 monitor.
 
Old 10-06-2009, 05:53 PM   #19
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Well, let's see that error, duh?

And if possible, attach the log as well, usually it's at /var/log/Xorg.0.log, depending on the display you use.

Last edited by i92guboj; 10-06-2009 at 05:55 PM. Reason: typo
 
Old 10-06-2009, 07:04 PM   #20
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443

Original Poster
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
I don't know how to do that because it happens in command-line mode (so I can't copy/paste), and using tee woundn't work because it goes to stderr. Is there a way to use tee to capture stderr along with stdout?
 
Old 10-06-2009, 07:42 PM   #21
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Yes, there are ways, you can redirect file descriptors at your wish, for example:

Code:
startx >$HOME/mylogfile.txt 2>&1
This works for bash, it might be slightly different for each shell. However, the file descriptor 1 is always stdout, and the second is stderr. That sentence redirects stdout to a file, and then stderr to stdout. You can read more about that here. Note that the order in which you redirect the streams matters.

Also, if you have gpm running you can just select the text with the mouse (yes, even in the console), then open an editor and paste it with middle click. This way is a pain and it won't work for anything bigger than the scroll buffer of your console, so I advice the other method.

The easiest way would probably be to just attach the log file: /var/log/Xorg.0.log, that file will likely contain more detail about the real problem than the startx output, most times.

Last edited by i92guboj; 10-06-2009 at 07:43 PM.
 
Old 10-06-2009, 07:55 PM   #22
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443

Original Poster
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Here it is:

Last edited by MTK358; 03-26-2010 at 04:17 PM.
 
Old 10-06-2009, 08:23 PM   #23
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
The driver is failing to load in a nasty way. This kind of thing happens sometimes when the server and the driver are not in sync (different versions, or from different repositories, or compiled against different header versions). So check that everything is sane in that regard, if you used any external (as in non-official) repository try reinstalling the xorg server and all the drivers using the official packages.

If that doesn't work, then please attach the full log file so we can see if there's anything else that I can see. However this kind of error is not usually due to a bogus xorg.conf file, but, as said, I am no master when it comes to "nv".
 
Old 10-07-2009, 06:22 AM   #24
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443

Original Poster
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
All I did is:

Code:
su
apt-get install x-window-system
apt-get install fvwm
exit
startx
And it opened an FVWM desktop.
 
  


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
[PB] nVidia 6106 driver on Debian Creak Linux - Hardware 3 07-10-2004 01:38 PM
Debian and X? Nvidia driver woes as well. oudent Debian 3 05-10-2004 05:54 PM
NVIDIA Driver Help - Debian Sid philwozza Debian 3 02-07-2004 03:25 PM
X configuration for xinerama using NVIDIA acceleted driver and an ati card JHuizingh Linux - General 2 07-17-2002 06:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 09:18 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