Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
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'm trying to get X to work, but I get errors:
startx error:
Code:
[ 34.005]
X.Org X Server 1.19.1
Release Date: 2017-01-11
[ 34.005] X Protocol Version 11, Revision 0
[ 34.005] Build Operating System: Linux 4.12.0 x86_64
[ 34.006] Current Operating System: Linux Leho-LFS 4.12.0 #1 SMP Sun Jul 23 19:17:07 EEST 2017 x86_64
[ 34.006] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.12-lfs-8.0 root=/dev/sda2
[ 34.006] Build Date: 23 July 2017 12:12:54AM
[ 34.006]
[ 34.006] Current version of pixman: 0.34.0
[ 34.007] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 34.007] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 34.008] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Jul 24 18:49:04 2017
[ 34.045] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 34.045] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 34.066] (==) No Layout section. Using the first Screen section.
[ 34.066] (==) No screen section available. Using defaults.
[ 34.066] (**) |-->Screen "Default Screen Section" (0)
[ 34.066] (**) | |-->Monitor "<default monitor>"
[ 34.066] (==) No device specified for screen "Default Screen Section".
Using the first device section listed.
[ 34.066] (**) | |-->Device "nvidia"
[ 34.066] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 34.066] (==) Automatically adding devices
[ 34.066] (==) Automatically enabling devices
[ 34.066] (==) Automatically adding GPU devices
[ 34.066] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 34.067] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/X11/misc/".
[ 34.067] Entry deleted from font path.
[ 34.067] (Run 'mkfontdir' on "/usr/share/fonts/X11/misc/").
[ 34.068] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/X11/100dpi/".
[ 34.068] Entry deleted from font path.
[ 34.068] (Run 'mkfontdir' on "/usr/share/fonts/X11/100dpi/").
[ 34.068] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/X11/75dpi/".
[ 34.068] Entry deleted from font path.
[ 34.068] (Run 'mkfontdir' on "/usr/share/fonts/X11/75dpi/").
[ 34.068] (==) FontPath set to:
/usr/share/fonts/X11/TTF/,
/usr/share/fonts/X11/OTF/,
/usr/share/fonts/X11/Type1/
[ 34.068] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 34.068] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 34.068] (II) Loader magic: 0x810c40
[ 34.068] (II) Module ABI versions:
[ 34.068] X.Org ANSI C Emulation: 0.4
[ 34.068] X.Org Video Driver: 23.0
[ 34.068] X.Org XInput driver : 24.1
[ 34.068] X.Org Server Extension : 10.0
[ 34.069] (--) PCI:*(0:1:0:0) 10de:1402:1462:8c92 rev 161, Mem @ 0xde000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/131072
[ 34.069] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 34.069] (II) LoadModule: "glx"
[ 34.070] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 34.144] (II) Module glx: vendor="X.Org Foundation"
[ 34.144] compiled for 1.19.1, module version = 1.0.0
[ 34.144] ABI class: X.Org Server Extension, version 10.0
[ 34.144] (II) LoadModule: "nouveau"
[ 34.144] (II) Loading /usr/lib/xorg/modules/drivers/nouveau_drv.so
[ 34.154] (II) Module nouveau: vendor="X.Org Foundation"
[ 34.154] compiled for 1.19.1, module version = 1.0.13
[ 34.154] Module class: X.Org Video Driver
[ 34.154] ABI class: X.Org Video Driver, version 23.0
[ 34.154] (II) NOUVEAU driver
[ 34.154] (II) NOUVEAU driver for NVIDIA chipset families :
[ 34.154] RIVA TNT (NV04)
[ 34.154] RIVA TNT2 (NV05)
[ 34.154] GeForce 256 (NV10)
[ 34.154] GeForce 2 (NV11, NV15)
[ 34.154] GeForce 4MX (NV17, NV18)
[ 34.154] GeForce 3 (NV20)
[ 34.154] GeForce 4Ti (NV25, NV28)
[ 34.154] GeForce FX (NV3x)
[ 34.154] GeForce 6 (NV4x)
[ 34.154] GeForce 7 (G7x)
[ 34.154] GeForce 8 (G8x)
[ 34.154] GeForce GTX 200 (NVA0)
[ 34.154] GeForce GTX 400 (NVC0)
[ 34.154] (--) using VT number 7
[ 34.280] (EE) [drm] Failed to open DRM device for pci:0000:01:00.0: -19
[ 34.280] (EE) No devices detected.
[ 34.280] (EE)
Fatal server error:
[ 34.280] (EE) no screens found(EE)
[ 34.280] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 34.280] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 34.280] (EE)
[ 34.284] (EE) Server terminated with error (1). Closing log file.
dmesg nouveau error:
Code:
[ 0.608554] serial8250: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a 16550A
[ 0.610805] lp: driver loaded but no devices found
[ 0.611151] ppdev: user-space parallel port driver
[ 0.611221] Linux agpgart interface v0.103
[ 0.611344] MXM: GUID detected in BIOS
[ 0.611533] nouveau 0000:01:00.0: NVIDIA GM206 (126020a1)
[ 0.702943] nouveau 0000:01:00.0: bios: version 84.06.5e.00.77
[ 0.703189] nouveau 0000:01:00.0: disp: dcb 15 type 8 unknown
[ 0.703273] nouveau 0000:01:00.0: Direct firmware load for nvidia/gm206/gr/sw_nonctx.bin failed with error -2
[ 0.703353] nouveau 0000:01:00.0: gr: failed to load gr/sw_nonctx
[ 0.703433] nouveau 0000:01:00.0: gr ctor failed, -2
[ 0.703504] nouveau: probe of 0000:01:00.0 failed with error -2
[ 0.703731] parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE,EPP]
[ 0.704442] parport0: irq 7 detected
[ 0.798036] lp0: using parport0 (polling).
[ 0.800540] loop: module loaded
[ 0.800627] mei_me 0000:00:16.0: enabling device (0000 -> 0002)
The card looks healthy. If you leave out the |grep -A12 and put in |less, you can read that to the end. The last line on each thing tells you what module(s) it's loading.
The kernel might be an issue, if you had nvidia drivers in ubuntu and nouveau in LFS. Distro kernels are inclined to enable everything. I'd check your video section config with 'make xconfig' or 'make menuconfig' and read the help. You need nouveau OR nvidia drivers.
The lspci output I pasted here is the whole info about my graphics card from lspci. The next line is the next device. I doesn't show the graphics card module.
The lspci output I pasted here is the whole info about my graphics card from lspci. The next line is the next device. I doesn't show the graphics card module.
Ok, here's my output from an Intel HD4000 (Sandy Bridge?)
Code:
bash-4.3$ sudo lspci -v |grep -A12 VGA
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09) (prog-if 00 [VGA controller])
Subsystem: Samsung Electronics Co Ltd 3rd Gen Core processor Graphics Controller
Flags: bus master, fast devsel, latency 0, IRQ 24
Memory at bfc00000 (64-bit, non-prefetchable) [size=4M]
Memory at d0000000 (64-bit, prefetchable) [size=256M]
I/O ports at 3000 [size=64]
Expansion ROM at <unassigned> [disabled]
Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [d0] Power Management version 2
Capabilities: [a4] PCI Advanced Features
Kernel driver in use: i915
Note the "Kernel Driver" line. What, if any kernel modules do you have loaded for your card?
As you can see I have 01:00.0 VGA compatible controller: NVIDIA Corporation GM206 [GeForce GTX 950] (rev a1) (prog-if 00 [VGA controller]) graphics card
Path shown above is relative to /lib/firmware. So you need to put the firmware into /lib/firmware/nvidia/gm206/gr. Note that it will only work if nouveau is built as module. If it is built into kernel, you need to build the firmware into kernel as well.
If I have /usr/lib/xorg/modules/drivers/nouveau_drv.so file. Is this the module of my graphics card and I don't have the graphics card module compiled into kernel?
Does the proprietary driver work for your card? My desktop has a GT520, and the proprietary works very well in BLFS.
Nouveau has gotten better over the years, but it is still somewhat buggy and way behind the proprietary driver in FPS. The GPU runs a bit cooler as well.
Setting up the proprietary driver in BLFS is fairly straightforward. You don't need to compile additional firmware blobs into the kernel. Also, in your kernel config, you have to uncheck DRM and nouveau. You also don't compile the nouveau xorg driver in the BLFS book. You may also have to recompile Mesa without nouveau and LLVM.
Then you simply execute the nvidia run script as root. If there are no compile errors, startx or startxfce4 should work. If it doesn't, then you troubleshoot the log file. Mine installed without a hitch.
I use the latest nvidia beta driver and kernel 4.12.4 in systemd blfs.
Last edited by plasmonics; 07-28-2017 at 09:44 AM.
How to I recompile Mesa without nouveau and LLVM? Is it ./configure --disable-llvm and GLL_DRV="i915,r600,radeonsi,svga,swrast" Is the Mesa recompilation a must?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.