LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Help me error "Configuring The X Window System" (https://www.linuxquestions.org/questions/linux-from-scratch-13/help-me-error-configuring-the-x-window-system-875972/)

druuna 04-20-2011 01:03 PM

Quote:

Originally Posted by jens (Post 4330726)
Nothing against B/LFS, but that wouldn't be their first mistake (i don't see anything for that in their already difficult to understand code base).
If you create it as a normal user, you wouldn't have the the permissions to write in /etc/X11 anyway.

How is this a(nother?) mistake? I am talking about root's home directory (thus executed as user root) and not /.

I still think these are logical steps (seen from BLFS and executed as root user):
Code:

cd ~
Xorg -configure
X -retro -config ~/xorg.conf.new
# test and possibly edit/retry, then
install -v -m644 ~/xorg.conf.new /etc/X11/xorg.conf


poisoning 04-21-2011 06:33 PM

Quote:

Originally Posted by druuna (Post 4330647)
Hi,

What does your xorg.conf look like and what is in the Xorg.0.log file?

Have you tried a bare/minimal xorg.conf file, something like this:
Code:

Section "Device"
        Identifier      "Video Device"
        Driver          "fglrx"
        Driver      "nv"
EndSection

Section "Monitor"
        Identifier      "Monitor"
EndSection

Section "Screen"
        Identifier      "Screen"
        Monitor        "Monitor"
        Device          "Video Device"
EndSection"


Hi.

This is my /etc/X11/xorg.conf:
--------------------------------------------------------------------------------------------
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option "ShadowFB" # [<bool>]
#Option "DefaultRefresh" # [<bool>]
#Option "ModeSetClearScreen" # [<bool>]
Identifier "Card0"
#Driver "vesa" <-------- Before
Driver "nv"
<-------- After
VendorName "nVidia Corporation"
BoardName "Unknown Board"
BusID "PCI:1:0:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
-------------------------------------------------------------------------------------------

Change the option:
- Driver "vesa"with Driver "nv"

Type: startx

(EE) No devices detected
Fatal error found
no screens found
giving up.

Xinit: connection reset by peer (errno104) unable to Connect to X server
Xinit: No such process (errno 3): Server error
Xauth: (argv): 1: bad display name "defcon: 0".. "remove" comand


Sorry I'm using LFS 6.3 and BLFS 6.3

druuna 04-22-2011 12:33 AM

Hi,

Did you try the minimal xorg.conf I suggested?

You did not post enough information about the errors. I need the full output of the Xorg.0.log file and not just the small part posted by you. There's a lot more info present that could be helpful.

Is the nv driver present in: /usr/lib/X11/modules/drivers?

What is the output of lspci?

You just now mention building (B)LFS version 6.3 (kinda important....): Do you have new hardware? If so: You might need to build a newer version.

Hope this helps.

Andrew Benton 04-22-2011 03:30 AM

The nv driver is obsolete. It doesn't work with current Nvidia cards. Nouveau is tricky to set up because it's a work in progress, it keeps changing. You have to get versions of Mesa, libdrm and the nouveau driver that agree with each other. I used it for about a year but at the moment I have enough ATI cards for all our computers. Good luck.

poisoning 04-23-2011 05:46 PM

Thank you very much to all the X reinstall on another PC with an integrated motherboard and a larger monitor, and finally got up the X Windows Basic. I only need to install GNOME and create another LFS 6.7.


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