LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Creating an X11R6 Compatibility Symlink (https://www.linuxquestions.org/questions/linux-from-scratch-13/creating-an-x11r6-compatibility-symlink-874031/)

druuna 04-10-2011 09:30 AM

Hi,

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 ;)

Anyway, hope this helps.

spiky0011 04-10-2011 09:35 AM

I have 2.6.35.4 kernel as per LFS6.7

druuna 04-10-2011 09:42 AM

Hi,

I just checked, the options and location are the same for the 2.6.35 kernel.

spiky0011 04-10-2011 11:32 AM

Ok this is beyond me I will need help, never done this before, I have tried with google but cant get the hang of it :confused:

druuna 04-10-2011 11:56 AM

Hi,

You have done this before ;)

When building LFS, this chapter: 8.3. Linux-2.6.35.4.

If that is the only time you tinkered with the kernel I would suggest doing the following:

1) Unpack the kernel source at the proper location.
Code:

cd /usr/src
cp /path/to/the/kernel/source/file/linux-2.6.35.4.tar.bz2 .
tar jxf linux-2.6.35.4.tar.bz2
rm linux-2.6.35.4.tar.bz2
chown -R root:root linux-2.6.35.4

2) Safe the current kernel files. You can boot from these at the moment so they work and you can fall back on them if something goes wrong.
Code:

cd /boot
cp vmlinux-2.6.35.4-lfs-6.7 vmlinux-2.6.35.4-lfs-6.7.org
cp System.map-2.6.35.4 System.map-2.6.35.4.org
cp config-2.6.35.4 config-2.6.35.4.org

3) Edit kernel options and compile kernel.
Code:

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.

spiky0011 04-10-2011 11:59 AM

I have been reading that amongst others when I did it I dont think I got to involved Not Brave enough

druuna 04-10-2011 12:09 PM

Hi,
Quote:

Originally Posted by spiky0011 (Post 4320114)
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).

Hope this helps.

spiky0011 04-10-2011 02:11 PM

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

spiky0011 04-10-2011 02:31 PM

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?

druuna 04-10-2011 02:31 PM

Hi,

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?

druuna 04-10-2011 02:42 PM

Hi,
Quote:

Originally Posted by spiky0011 (Post 4320226)
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.

spiky0011 04-10-2011 03:18 PM

Before I ran cd && I deleted old xorg.conf file xorg.conf.new
Code:

Section "ServerLayout"
        Identifier    "X.org Configured"
        Screen      0  "Screen0" 0 0
        Screen      1  "Screen1" RightOf "Screen0"
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        ModulePath  "/usr/lib/X11/modules"
        FontPath    "/usr/share/fonts/X11/misc/"
        FontPath    "/usr/share/fonts/X11/TTF/"
        FontPath    "/usr/share/fonts/X11/OTF/"
        FontPath    "/usr/share/fonts/X11/Type1/"
        FontPath    "/usr/share/fonts/X11/100dpi/"
        FontPath    "/usr/share/fonts/X11/75dpi/"
EndSection

Section "Module"
        Load  "dbe"
        Load  "record"
        Load  "dri2"
        Load  "dri"
        Load  "glx"
        Load  "extmod"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option            "Protocol" "auto"
        Option            "Device" "/dev/input/mice"
        Option            "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
        Identifier  "Monitor0"
        VendorName  "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Monitor"
        Identifier  "Monitor1"
        VendorName  "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option    "AccelMethod"                # [<str>]
        #Option    "DRI"                        # [<bool>]
        #Option    "ColorKey"                  # <i>
        #Option    "VideoKey"                  # <i>
        #Option    "FallbackDebug"              # [<bool>]
        #Option    "Tiling"                    # [<bool>]
        #Option    "Shadow"                    # [<bool>]
        #Option    "SwapbuffersWait"            # [<bool>]
        #Option    "XvMC"                      # [<bool>]
        #Option    "XvPreferOverlay"            # [<bool>]
        #Option    "DebugFlushBatches"          # [<bool>]
        #Option    "DebugFlushCaches"          # [<bool>]
        #Option    "DebugWait"                  # [<bool>]
        Identifier  "Card0"
        Driver      "intel"
        BusID      "PCI:0:2:0"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option    "AccelMethod"                # [<str>]
        #Option    "DRI"                        # [<bool>]
        #Option    "ColorKey"                  # <i>
        #Option    "VideoKey"                  # <i>
        #Option    "FallbackDebug"              # [<bool>]
        #Option    "Tiling"                    # [<bool>]
        #Option    "Shadow"                    # [<bool>]
        #Option    "SwapbuffersWait"            # [<bool>]
        #Option    "XvMC"                      # [<bool>]
        #Option    "XvPreferOverlay"            # [<bool>]
        #Option    "DebugFlushBatches"          # [<bool>]
        #Option    "DebugFlushCaches"          # [<bool>]
        #Option    "DebugWait"                  # [<bool>]
        Identifier  "Card1"
        Driver      "intel"
        BusID      "PCI:0:2:1"
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

Section "Screen"
        Identifier "Screen1"
        Device    "Card1"
        Monitor    "Monitor1"
        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

Xorg.0.log
Code:

[  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.


adamk75 04-10-2011 03:24 PM

What's the output of 'dmesg | grep drm'?

spiky0011 04-10-2011 03:42 PM

dmesg
Code:

[    0.270639] [drm] Initialized drm 1.1.0 20060810
[  124.416517] [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0


adamk75 04-10-2011 03:43 PM

OK, sounds like your kernel still isn't compiled with the correct options. Why not pastebin or attach your .config file?

Adam


All times are GMT -5. The time now is 06:49 AM.