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

spiky0011 04-10-2011 04:11 PM

http://pastebin.com/xcxm1TVS

adamk75 04-10-2011 04:13 PM

Code:

# CONFIG_DRM_I915_KMS is not set
Isn't that what I said needs to be enabled?

spiky0011 04-10-2011 04:23 PM

Ok so I have do rebuild the kernel again? If so where do I change the setting

adamk75 04-10-2011 04:28 PM

Either edit the .config file and rebuild, or use 'make menuconfig' and find the setting in the DRM section (somewhere under device drivers). Alternatively, you can try booting with the option 'intel.modeset=1' passed to the kernel, but I'm not really all the familiar with the intel DRM stuff.

Adam

spiky0011 04-10-2011 04:32 PM

Ok thks That will have to wait till tomorro now tho

druuna 04-11-2011 02:50 AM

Hi,

To activate the i915 modesetting you indeed need to activate another option, which appears when selecting the i915 driver and is called: Enable modesetting on intel by default.

Recompile your kernel again and activate this option (section 3 from post #20):

Device Drivers -> Graphics support -> Direct Rendering Manager (as M) -> Intel 830M, 845G, 852GM, 855GM, 865G - > i915 driver -> Enable modesetting on intel by default.

Don't forget to reboot.

After the above is done create a new xorg.conf.new file using the cd ~ && Xorg -configure command and test with the X -retro -config ~/xorg.conf.new command.

Assuming that the intel/modesetting driver problem is now solved, it could be that you do not yet have a working keyboard and/or mouse and that you cannot yet exit X using the crtl-alt-bksp combo.

Mouse/keyboard -> Add the following to your ServerLayout section: Option "AllowEmptyInput" "off"
Ctrl-alt-bksp -> Add the following to your InputDevice / keyboard section: Option "XkbOptions" "terminate:ctrl_alt_bksp"

Hope this helps.

spiky0011 04-11-2011 03:20 PM

Ok I,m loosing the wil to live retro output
Code:

WARNING: All config files need .conf: /etc/modprobe.d/usb.config, it will be ignored in a future release.
WARNING: Error inserting video (/lib/modules/2.6.35.4/kernel/drivers/acpi/video.ko): Invalid module format
WARNING: Error inserting i2c_algo_bit (/lib/modules/2.6.35.4/kernel/drivers/i2c/algos/i2c-algo-bit.ko): Invalid module format
WARNING: Error inserting drm (/lib/modules/2.6.35.4/kernel/drivers/gpu/drm/drm.ko): Invalid module format
WARNING: Error inserting drm_kms_helper (/lib/modules/2.6.35.4/kernel/drivers/gpu/drm/drm_kms_helper.ko): Invalid module format
FATAL: Error inserting i915 (/lib/modules/2.6.35.4/kernel/drivers/gpu/drm/i915/i915.ko): Invalid module format
(EE) intel(1): No kernel modesetting driver detected.
(EE) Screen(s) found, but none have a usable configuration.

Fatal server error:
no screens found

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:

[ 12378.185]
X.Org X Server 1.9.3
Release Date: 2010-12-13
[ 12378.185] X Protocol Version 11, Revision 0
[ 12378.185] Build Operating System: Linux 2.6.35.4 i686
[ 12378.186] Current Operating System: Linux planet-spike 2.6.35.4 #1 SMP Sun Apr 10 19:29:32 BST 2011 i686
[ 12378.186] Kernel command line: BOOT_IMAGE=/boot/vmlinux-2.6.35.4-lfs-6.7 root=/dev/sda1 ro
[ 12378.186] Build Date: 09 April 2011  01:26:03PM
[ 12378.187] 
[ 12378.187] Current version of pixman: 0.15.20
[ 12378.187]        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[ 12378.188] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 12378.189] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Apr 11 20:37:42 2011
[ 12378.189] (++) Using config file: "/root/xorg.conf.new"
[ 12378.189] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 12378.190] (==) ServerLayout "X.org Configured"
[ 12378.190] (**) |-->Screen "Screen0" (0)
[ 12378.190] (**) |  |-->Monitor "Monitor0"
[ 12378.191] (**) |  |-->Device "Card0"
[ 12378.191] (**) |-->Screen "Screen1" (1)
[ 12378.191] (**) |  |-->Monitor "Monitor1"
[ 12378.191] (**) |  |-->Device "Card1"
[ 12378.191] (**) |-->Input Device "Mouse0"
[ 12378.191] (**) |-->Input Device "Keyboard0"
[ 12378.191] (==) Automatically adding devices
[ 12378.191] (==) Automatically enabling devices
[ 12378.192] (**) 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/
[ 12378.192] (**) ModulePath set to "/usr/lib/X11/modules"
[ 12378.192] (WW) AllowEmptyInput is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[ 12378.192] (WW) Disabling Mouse0
[ 12378.192] (WW) Disabling Keyboard0
[ 12378.192] (II) Loader magic: 0x81f1480
[ 12378.192] (II) Module ABI versions:
[ 12378.192]        X.Org ANSI C Emulation: 0.4
[ 12378.192]        X.Org Video Driver: 8.0
[ 12378.192]        X.Org XInput driver : 11.0
[ 12378.192]        X.Org Server Extension : 4.0
[ 12378.193] (--) PCI:*(0:0:2:0) 8086:3582:1179:0002 rev 1, Mem @ 0xd8000000/134217728, 0xd0000000/524288, I/O @ 0x0000eff8/8
[ 12378.194] (--) PCI: (0:0:2:1) 8086:3582:1179:0002 rev 1, Mem @ 0x10000000/134217728, 0x1c000000/524288
[ 12378.194] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 12378.194] (II) "extmod" will be loaded. This was enabled by default and also specified in the config file.
[ 12378.194] (II) "dbe" will be loaded. This was enabled by default and also specified in the config file.
[ 12378.194] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[ 12378.194] (II) "record" will be loaded. This was enabled by default and also specified in the config file.
[ 12378.194] (II) "dri" will be loaded. This was enabled by default and also specified in the config file.
[ 12378.194] (II) "dri2" will be loaded. This was enabled by default and also specified in the config file.
[ 12378.194] (II) LoadModule: "dbe"
[ 12378.195] (II) Loading /usr/lib/X11/modules/extensions/libdbe.so
[ 12378.236] (II) Module dbe: vendor="X.Org Foundation"
[ 12378.236]        compiled for 1.9.3, module version = 1.0.0
[ 12378.236]        Module class: X.Org Server Extension
[ 12378.236]        ABI class: X.Org Server Extension, version 4.0
[ 12378.236] (II) Loading extension DOUBLE-BUFFER
[ 12378.236] (II) LoadModule: "record"
[ 12378.237] (II) Loading /usr/lib/X11/modules/extensions/librecord.so
[ 12378.260] (II) Module record: vendor="X.Org Foundation"
[ 12378.260]        compiled for 1.9.3, module version = 1.13.0
[ 12378.260]        Module class: X.Org Server Extension
[ 12378.260]        ABI class: X.Org Server Extension, version 4.0
[ 12378.260] (II) Loading extension RECORD
[ 12378.260] (II) LoadModule: "dri2"
[ 12378.261] (II) Loading /usr/lib/X11/modules/extensions/libdri2.so
[ 12378.276] (II) Module dri2: vendor="X.Org Foundation"
[ 12378.276]        compiled for 1.9.3, module version = 1.2.0
[ 12378.276]        ABI class: X.Org Server Extension, version 4.0
[ 12378.276] (II) Loading extension DRI2
[ 12378.276] (II) LoadModule: "dri"
[ 12378.276] (II) Loading /usr/lib/X11/modules/extensions/libdri.so
[ 12378.299] (II) Module dri: vendor="X.Org Foundation"
[ 12378.299]        compiled for 1.9.3, module version = 1.0.0
[ 12378.299]        ABI class: X.Org Server Extension, version 4.0
[ 12378.299] (II) Loading extension XFree86-DRI
[ 12378.299] (II) LoadModule: "glx"
[ 12378.300] (II) Loading /usr/lib/X11/modules/extensions/libglx.so
[ 12378.337] (II) Module glx: vendor="X.Org Foundation"
[ 12378.337]        compiled for 1.9.3, module version = 1.0.0
[ 12378.337]        ABI class: X.Org Server Extension, version 4.0
[ 12378.358] (==) AIGLX enabled
[ 12378.358] (II) Loading extension GLX
[ 12378.358] (II) LoadModule: "extmod"
[ 12378.359] (II) Loading /usr/lib/X11/modules/extensions/libextmod.so
[ 12378.377] (II) Module extmod: vendor="X.Org Foundation"
[ 12378.377]        compiled for 1.9.3, module version = 1.0.0
[ 12378.377]        Module class: X.Org Server Extension
[ 12378.377]        ABI class: X.Org Server Extension, version 4.0
[ 12378.377] (II) Loading extension MIT-SCREEN-SAVER
[ 12378.377] (II) Loading extension XFree86-VidModeExtension
[ 12378.377] (II) Loading extension XFree86-DGA
[ 12378.377] (II) Loading extension DPMS
[ 12378.377] (II) Loading extension XVideo
[ 12378.377] (II) Loading extension XVideo-MotionCompensation
[ 12378.377] (II) Loading extension X-Resource
[ 12378.377] (II) LoadModule: "intel"
[ 12378.378] (II) Loading /usr/lib/X11/modules/drivers/intel_drv.so
[ 12378.379] (II) Module intel: vendor="X.Org Foundation"
[ 12378.379]        compiled for 1.9.3, module version = 2.13.0
[ 12378.379]        Module class: X.Org Video Driver
[ 12378.379]        ABI class: X.Org Video Driver, version 8.0
[ 12378.379] (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
[ 12378.380] (--) using VT number 7

[ 12378.394] (EE) intel(0): No kernel modesetting driver detected.
[ 12378.399] (EE) intel(1): No kernel modesetting driver detected.
[ 12378.400] (II) UnloadModule: "intel"
[ 12378.400] (II) UnloadModule: "intel"
[ 12378.400] (EE) Screen(s) found, but none have a usable configuration.
[ 12378.400]
Fatal server error:
[ 12378.400] no screens found
[ 12378.400]
Please consult the The X.Org Foundation support
        at http://wiki.x.org
 for help.
[ 12378.400] Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 12378.400]


Xorg.0.log
http://pastebin.com/Z3dihzJf

CONFIG_DRM_I915=m
CONFIG_DRM_I915_KMS=y

adamk75 04-11-2011 03:38 PM

Based on the "invalid module format" error, it sounds like you're trying to load an intel kernel module that is not compatible with the current running kernel. After rebuilding the kernel, did you boot off the new one you compiled?

Adam

spiky0011 04-11-2011 03:44 PM

Yes made as per instructions In earlier post "Druuna" then rebooted. I deleted the 3 files in boot then copied new ones over.

spiky0011 04-11-2011 04:25 PM

lsmod shows nothing?

lspci -v
Code:

00:02.0 VGA compatible controller: Intel Corporation 82852/855GM Integrated Graphics Device (rev 01) (prog-if 00 [VGA controller])
        Subsystem: Toshiba America Info Systems Device 0002
        Flags: bus master, fast devsel, latency 0, IRQ 10
        Memory at d8000000 (32-bit, prefetchable) [size=128M]
        Memory at d0000000 (32-bit, non-prefetchable) [size=512K]
        I/O ports at eff8 [size=8]
        Expansion ROM at <unassigned> [disabled]
        Capabilities: [d0] Power Management version 1
        Kernel modules: i915

00:02.1 Display controller: Intel Corporation 82852/855GM Integrated Graphics Device (rev 01)
        Subsystem: Toshiba America Info Systems Device 0002
        Flags: fast devsel
        Memory at 10000000 (32-bit, prefetchable) [disabled] [size=128M]
        Memory at 1c000000 (32-bit, non-prefetchable) [disabled] [size=512K]
        Capabilities: [d0] Power Management version 1


adamk75 04-11-2011 04:44 PM

Sorry, but I'm out of ideas. I don't know why your recompiled kernel would have this problem loading the i915 kernel module.

Adam

spiky0011 04-11-2011 04:57 PM

A thought. 1 try another kernel? 2 another intel driver?

druuna 04-12-2011 12:37 AM

Hi,

@spiky0011: I'm on my way to work and don't have time to look at this right now. I'll have a look when I get back home.

PS: I would not recommend using another kernel yet.

PPSS: You might want to try getting X to work using the vesa driver, this way you can create a working xorg.conf. The intel part can be done later.

Got to go, my train is about to arrive at my stop.....

druuna 04-12-2011 12:34 PM

Hi,

This looks to be an interesting problem.... An internet search shows that many people struggle with this driver.

Looking at the .config file you posted, a few of my doubts are already taken away (are these drivers compiled as a module: Yes. Are there any other framebuffer devices present: No). No need to double check that.

You could try adding the following line to the /etc/modprobe.conf file: options i915 modeset=1. I don't think a reboot is needed (not 100% sure).

I also read that the following should be set: Framebuffer Console support and Framebuffer Console Rotation (Device Drivers -> Graphics support -> Console display driver support -> Framebuffer Console support + Framebuffer Console Rotation).

The above need to be static (a *) and _not_ modular (no M)!! Looking at your .config file, the Framebuffer Console support is present, but it is set as a module, not static. The other option is not set in your kernel.

Just to make sure you install a clean module tree add the following step to the compile steps mentioned before:
Code:

mv /lib/modules/2.6.35.4 /lib/modules/2.6.35.4.previous

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

Ok, that should be enough to keep you busy for a while :)

Seriously: I hope this will work for you, but like I stated before, a lot of people seem to have problems with this driver and X. We might not be out of the woods yet.....

spiky0011 04-12-2011 12:37 PM

Ok we have a new problem to start the evening off, turn laptop on grub ran through system then a black screen, no cursor nothing. I booted a live cd changed xorg.conf.new file from INTEL to VESA reboot black screen no cursor again, Typed in user name and password nothing? Typed "startx" as user eventually it started at command prompt as user logged in, with a msg about x.server connection refused. Anyway we back in the system If I reboot same thing again It wont start till I type startx. ANYONE FOR A CHALLENGE LOL


All times are GMT -5. The time now is 08:56 PM.