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.
Assuming you use a 2.6.37.X kernel and looking at your lspci output I do believe these should be activated in the kernel:
- AGP support for intel [855GM]:
Device Drivers -> Graphics support -> /dev/agpgart -> Intel 440LX/BX/GX, I8xx and E7x05 chipset support
- DRM/DRI suipport for intel [855GM]:
Device Drivers -> Graphics support -> Direct Rendering Manager -> Intel 830M, 845G, 852GM, 855GM, 865G
Also choose the i915 driver (this one is for the newer xorg version)
After you made the kernel changes, compiled and moved the appropriate files into place you do need to reboot for them to take effect. If all went well you should be able to use the intel driver instead of the vesa driver (xorg.conf file).
I first wanted to make sure you have a running X using vesa (the "easy one") that has a working keyboard and mouse, before going into this but my hand got forced
cd /usr/src/linux-2.6.35.4
# first clean the kernel tree
make mrproper
# as a side effect the .config file is also removed, get the one that is currently used
cp /boot/config-2.6.35.4 .config
# edit kernel options
make menuconfig
# Once the menuconfig menu is shown, go to the sections mentioned in post #16 and enable
# them (they should not be blank, a * or an M should be present)
# exit and safe when done.
# compile kernel
make
# compile modules
make modules_install
# copy files to /boot
cp arch/x86/boot/bzImage /boot/vmlinux-2.6.35.4-lfs-6.7
cp System.map /boot/System.map-2.6.35.4
cp .config /boot/config-2.6.35.4
At the next boot the newly configured kernel will be booted.
I created an extra entry in grub so I can always boot from a working kernel. The entry is almost identical to the LFS line that is present, but instead of vmlinux-2.6.35.4-lfs-6.7 the original vmlinux-2.6.35.4-lfs-6.7.org is used. Post your grub.conf if you want this and don't know how to add this.
All steps mentioned as root user.
Hope this helps.
EDIT: Steps 1 and 2 are only needed once. Step 3 is all you need from now on to (re)compile your kernel.
Last edited by druuna; 04-10-2011 at 12:02 PM.
Reason: Clarified steps 1, 2 and 3
I have been reading that amongst others when I did it I dont think I got to involved Not Brave enough
LOL
I still remember my first kernel compile, took a lot longer then it does nowadays (8-9 hours vs less then half an hour, depending on your hardware). Boy, was I nervous during that long wait.....
But if you have a working kernel (you do, the ".org" version) on the side, you can edit/try as much as you want. That is the main reason I have a second LFS entry in grub. If the new kernel does not boot: Start the original one and try again.
If you don't have the extra entry in grub you can always use a liveCD to copy the .org files over the new files and reboot (the long way around, but it is a valid option).
Ok got through that rebooted ran x window commands again still no screen, I checked the xorg.log file still same error "No Kernel modesetting driver detected" xorg.conf.new shows the same as before
Without knowing which xorg.conf.new you are using at the moment I cannot comment.
I would start with the version I posted in post #11. Do change the Driver "vesa" into Driver "intel". Then run the X -retro -config ~/xorg.conf.new command.
Please post the output of the Xorg.0.log file after that (and possibly what is printed to screen by the X -retro ... command).
If you do get an X as prompt:
- does the mouse work?
- can you exit using ctrl-alt-bksp?
I have a thought I have a hard drive that I think boots this lappy with Ubuntu on, Is it worth getting information off the files that run that system?
The Xorg.0.log file should give us enough information (for now).
In general: It is always good to know what hardware you are using. X and the kernel both benefit when having this information (other parts do as well, but those 2 benefit the most). Both can/should be tailored to your hardware. It also means you need to feel comfortable with editing and compiling the kernel options.
[ 3952.234]
X.Org X Server 1.9.3
Release Date: 2010-12-13
[ 3952.235] X Protocol Version 11, Revision 0
[ 3952.235] Build Operating System: Linux 2.6.35.4 i686
[ 3952.235] Current Operating System: Linux planet-spike 2.6.35.4 #1 SMP Sun Apr 10 19:29:32 BST 2011 i686
[ 3952.236] Kernel command line: BOOT_IMAGE=/boot/vmlinux-2.6.35.4-lfs-6.7 root=/dev/sda1 ro
[ 3952.236] Build Date: 09 April 2011 01:26:03PM
[ 3952.236]
[ 3952.236] Current version of pixman: 0.15.20
[ 3952.237] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 3952.237] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 3952.238] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Apr 10 20:55:55 2011
[ 3952.239] (++) Using config file: "/root/xorg.conf.new"
[ 3952.239] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 3952.240] (==) ServerLayout "X.org Configured"
[ 3952.240] (**) |-->Screen "Screen0" (0)
[ 3952.240] (**) | |-->Monitor "Monitor0"
[ 3952.240] (**) | |-->Device "Card0"
[ 3952.240] (**) |-->Screen "Screen1" (1)
[ 3952.240] (**) | |-->Monitor "Monitor1"
[ 3952.241] (**) | |-->Device "Card1"
[ 3952.241] (**) |-->Input Device "Mouse0"
[ 3952.241] (**) |-->Input Device "Keyboard0"
[ 3952.241] (==) Automatically adding devices
[ 3952.241] (==) Automatically enabling devices
[ 3952.241] (**) FontPath set to:
/usr/share/fonts/X11/misc/,
/usr/share/fonts/X11/TTF/,
/usr/share/fonts/X11/OTF/,
/usr/share/fonts/X11/Type1/,
/usr/share/fonts/X11/100dpi/,
/usr/share/fonts/X11/75dpi/,
/usr/share/fonts/X11/misc/,
/usr/share/fonts/X11/TTF/,
/usr/share/fonts/X11/OTF/,
/usr/share/fonts/X11/Type1/,
/usr/share/fonts/X11/100dpi/,
/usr/share/fonts/X11/75dpi/
[ 3952.241] (**) ModulePath set to "/usr/lib/X11/modules"
[ 3952.241] (WW) AllowEmptyInput is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[ 3952.241] (WW) Disabling Mouse0
[ 3952.241] (WW) Disabling Keyboard0
[ 3952.241] (II) Loader magic: 0x81f1480
[ 3952.241] (II) Module ABI versions:
[ 3952.241] X.Org ANSI C Emulation: 0.4
[ 3952.241] X.Org Video Driver: 8.0
[ 3952.241] X.Org XInput driver : 11.0
[ 3952.241] X.Org Server Extension : 4.0
[ 3952.243] (--) PCI:*(0:0:2:0) 8086:3582:1179:0002 rev 1, Mem @ 0xd8000000/134217728, 0xd0000000/524288, I/O @ 0x0000eff8/8
[ 3952.243] (--) PCI: (0:0:2:1) 8086:3582:1179:0002 rev 1, Mem @ 0x10000000/134217728, 0x1c000000/524288
[ 3952.243] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 3952.243] (II) "extmod" will be loaded. This was enabled by default and also specified in the config file.
[ 3952.243] (II) "dbe" will be loaded. This was enabled by default and also specified in the config file.
[ 3952.243] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[ 3952.244] (II) "record" will be loaded. This was enabled by default and also specified in the config file.
[ 3952.244] (II) "dri" will be loaded. This was enabled by default and also specified in the config file.
[ 3952.244] (II) "dri2" will be loaded. This was enabled by default and also specified in the config file.
[ 3952.244] (II) LoadModule: "dbe"
[ 3952.245] (II) Loading /usr/lib/X11/modules/extensions/libdbe.so
[ 3952.245] (II) Module dbe: vendor="X.Org Foundation"
[ 3952.245] compiled for 1.9.3, module version = 1.0.0
[ 3952.245] Module class: X.Org Server Extension
[ 3952.245] ABI class: X.Org Server Extension, version 4.0
[ 3952.245] (II) Loading extension DOUBLE-BUFFER
[ 3952.245] (II) LoadModule: "record"
[ 3952.246] (II) Loading /usr/lib/X11/modules/extensions/librecord.so
[ 3952.246] (II) Module record: vendor="X.Org Foundation"
[ 3952.246] compiled for 1.9.3, module version = 1.13.0
[ 3952.246] Module class: X.Org Server Extension
[ 3952.246] ABI class: X.Org Server Extension, version 4.0
[ 3952.246] (II) Loading extension RECORD
[ 3952.246] (II) LoadModule: "dri2"
[ 3952.247] (II) Loading /usr/lib/X11/modules/extensions/libdri2.so
[ 3952.247] (II) Module dri2: vendor="X.Org Foundation"
[ 3952.248] compiled for 1.9.3, module version = 1.2.0
[ 3952.248] ABI class: X.Org Server Extension, version 4.0
[ 3952.248] (II) Loading extension DRI2
[ 3952.248] (II) LoadModule: "dri"
[ 3952.248] (II) Loading /usr/lib/X11/modules/extensions/libdri.so
[ 3952.249] (II) Module dri: vendor="X.Org Foundation"
[ 3952.249] compiled for 1.9.3, module version = 1.0.0
[ 3952.249] ABI class: X.Org Server Extension, version 4.0
[ 3952.249] (II) Loading extension XFree86-DRI
[ 3952.249] (II) LoadModule: "glx"
[ 3952.250] (II) Loading /usr/lib/X11/modules/extensions/libglx.so
[ 3952.250] (II) Module glx: vendor="X.Org Foundation"
[ 3952.250] compiled for 1.9.3, module version = 1.0.0
[ 3952.250] ABI class: X.Org Server Extension, version 4.0
[ 3952.250] (==) AIGLX enabled
[ 3952.250] (II) Loading extension GLX
[ 3952.250] (II) LoadModule: "extmod"
[ 3952.251] (II) Loading /usr/lib/X11/modules/extensions/libextmod.so
[ 3952.252] (II) Module extmod: vendor="X.Org Foundation"
[ 3952.252] compiled for 1.9.3, module version = 1.0.0
[ 3952.252] Module class: X.Org Server Extension
[ 3952.252] ABI class: X.Org Server Extension, version 4.0
[ 3952.252] (II) Loading extension MIT-SCREEN-SAVER
[ 3952.252] (II) Loading extension XFree86-VidModeExtension
[ 3952.252] (II) Loading extension XFree86-DGA
[ 3952.252] (II) Loading extension DPMS
[ 3952.252] (II) Loading extension XVideo
[ 3952.252] (II) Loading extension XVideo-MotionCompensation
[ 3952.252] (II) Loading extension X-Resource
[ 3952.252] (II) LoadModule: "intel"
[ 3952.253] (II) Loading /usr/lib/X11/modules/drivers/intel_drv.so
[ 3952.254] (II) Module intel: vendor="X.Org Foundation"
[ 3952.254] compiled for 1.9.3, module version = 2.13.0
[ 3952.254] Module class: X.Org Video Driver
[ 3952.254] ABI class: X.Org Video Driver, version 8.0
[ 3952.254] (II) intel: Driver for Intel Integrated Graphics Chipsets: i810,
i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G, 915G,
E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM, Pineview G,
965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33, GM45,
4 Series, G45/G43, Q45/Q43, G41, B43, B43, Clarkdale, Arrandale,
Sandybridge, Sandybridge, Sandybridge, Sandybridge, Sandybridge,
Sandybridge, Sandybridge
[ 3952.254] (--) using VT number 7
[ 3952.265] (EE) intel(0): No kernel modesetting driver detected.
[ 3952.269] (EE) intel(1): No kernel modesetting driver detected.
[ 3952.269] (II) UnloadModule: "intel"
[ 3952.269] (II) UnloadModule: "intel"
[ 3952.269] (EE) Screen(s) found, but none have a usable configuration.
[ 3952.269]
Fatal server error:
[ 3952.269] no screens found
[ 3952.269]
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 3952.269] Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 3952.269]
Output from retro
Code:
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sun Apr 10 20:55:55 2011
(++) Using config file: "/root/xorg.conf.new"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
WARNING: All config files need .conf: /etc/modprobe.d/usb.config, it will be ignored in a future release.
(EE) intel(0): No kernel modesetting driver detected.
WARNING: All config files need .conf: /etc/modprobe.d/usb.config, it will be ignored in a future release.
(EE) intel(1): No kernel modesetting driver detected.
(EE) Screen(s) found, but none have a usable configuration.
Fatal server error:
no screens found
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional information.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.