LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Gentoo Xorg problem with startx. (https://www.linuxquestions.org/questions/linux-newbie-8/gentoo-xorg-problem-with-startx-818942/)

David2010 07-09-2010 12:31 PM

Gentoo Xorg problem with startx.
 
When trying to "startx" the machine goes to a black screen and just sits there. Only a hard reboot allows me to stop it.

After SSHing into the machine and typing "startx" I see this error.

---------------------------------------------------------
Code:


(==) Using config file: "/etc/X11/xorg.conf"
(EE) Failed to load module "kbd" (module does not exist, 0)
FATAL: Module i915 not found.
FATAL: Module i915 not found.
(EE) intel(0): [drm] Failed to open DRM device for : No such file or directory
(EE) intel(0): Failed to become DRM master.

----------------------------------------------------------------

Where can I find the module i915?

The video card is an intel.

Also where can I find the module kbd?

Also what is the "drm"? Do I need to install it?

I used genkernel to configure my kernel.

This is my xorg.conf file:

-------------------------------------------------------------
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/xorg/modules"
        FontPath    "/usr/share/fonts/misc/"
        FontPath    "/usr/share/fonts/TTF/"
        FontPath    "/usr/share/fonts/OTF"
        FontPath    "/usr/share/fonts/Type1/"
        FontPath    "/usr/share/fonts/100dpi/"
        FontPath    "/usr/share/fonts/75dpi/"
EndSection

Section "Module"
        Load  "dri"
        Load  "dri2"
        Load  "glx"
        Load  "dbe"
        Load  "record"
        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"
        ### [arg]: arg optional
        #Option    "NoAccel"                  # [<bool>]
        #Option    "SWcursor"                  # [<bool>]
        #Option    "ColorKey"                  # <i>
        #Option    "CacheLines"                # <i>
        #Option    "Dac6Bit"                  # [<bool>]
        #Option    "DRI"                      # [<bool>]
        #Option    "NoDDC"                    # [<bool>]
        #Option    "ShowCache"                # [<bool>]
        #Option    "XvMCSurfaces"              # <i>
        #Option    "PageFlip"                  # [<bool>]
        Identifier  "Card0"
        Driver      "intel"
        VendorName  "Intel Corporation"
        BoardName  "82852/855GM Integrated Graphics Device"
        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"
        ### [arg]: arg optional
        #Option    "NoAccel"                  # [<bool>]
        #Option    "SWcursor"                  # [<bool>]
        #Option    "ColorKey"                  # <i>
        #Option    "CacheLines"                # <i>
        #Option    "Dac6Bit"                  # [<bool>]
        #Option    "DRI"                      # [<bool>]
        #Option    "NoDDC"                    # [<bool>]
        #Option    "ShowCache"                # [<bool>]
        #Option    "XvMCSurfaces"              # <i>
        #Option    "PageFlip"                  # [<bool>]
        Identifier  "Card0"
        Driver      "intel"
        VendorName  "Intel Corporation"
        BoardName  "82852/855GM Integrated Graphics Device"
        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

-------------------------------------------------------------

troop 07-09-2010 04:39 PM

Seems you dont have i915 module.
genkernel:
Code:

Device Drivers  --->
    Graphics support  --->
        ...
        <*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)  --->
            <*>Intel 830M, 845G, 852GM, 855GM, 865G (i915 driver)  --->
                  <*> i915 driver

Code:

/dev/agpgart (AGP Support) --->
                ...
                <*>  Intel 440LX/BX/GX, I8xx and E7x05 chipset support


David2010 07-09-2010 05:12 PM

Quote:

Originally Posted by troop (Post 4028687)
Seems you dont have i915 module.
genkernel:
Code:

Device Drivers  --->
    Graphics support  --->
        ...
        <*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)  --->
            <*>Intel 830M, 845G, 852GM, 855GM, 865G (i915 driver)  --->
                  <*> i915 driver

Code:

/dev/agpgart (AGP Support) --->
                ...
                <*>  Intel 440LX/BX/GX, I8xx and E7x05 chipset support


I will look into the kernel sources here in a couple minutes.

I got xorg working with the generic vesa driver but I would prefer the intel driver.

I also installed the keyboard driver so that error is gone.

Since it works with vesa I know that the error is with the intel driver or I suppose in this case my kernel.

David2010 07-09-2010 06:23 PM

Quote:

Originally Posted by troop (Post 4028687)
Seems you dont have i915 module.
genkernel:
Code:

Device Drivers  --->
    Graphics support  --->
        ...
        <*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)  --->
            <*>Intel 830M, 845G, 852GM, 855GM, 865G (i915 driver)  --->
                  <*> i915 driver

Code:

/dev/agpgart (AGP Support) --->
                ...
                <*>  Intel 440LX/BX/GX, I8xx and E7x05 chipset support


After enabling those drivers now as soon as "uevents" finishes the screen goes black and I can't do anything.

Luckily I thought of that and installed an ssh server beforehand.

So after several minutes of typing commands in the dark (no screen) I got sshd working and I am ssh'ed into the machine.

I am guessing this is some sort of kernel bug as "startx" was never typed.

Note I enabled those drivers as modules (M). If that helps.

Now what should I do now?

EDIT:

Right now I am enabling those drivers as (*) instead of (M) to see if that helps.

David2010 07-09-2010 06:39 PM

Quote:

Originally Posted by David2010 (Post 4028748)
After enabling those drivers now as soon as "uevents" finishes the screen goes black and I can't do anything.

Luckily I thought of that and installed an ssh server beforehand.

So after several minutes of typing commands in the dark (no screen) I got sshd working and I am ssh'ed into the machine.

I am guessing this is some sort of kernel bug as "startx" was never typed.

Note I enabled those drivers as modules (M). If that helps.

Now what should I do now?

EDIT:

Right now I am enabling those drivers as (*) instead of (M) to see if that helps.

Sadly that didn't work either.

I will try putting the vesa driver back and removing those changed in the kernel.

colorpurple21859 07-09-2010 06:53 PM

Did you install the xf86-video-intel driver?

David2010 07-09-2010 06:56 PM

Quote:

Originally Posted by colorpurple21859 (Post 4028766)
Did you install the xf86-video-intel driver?

Yeah I already installed the intel driver.

I am tampering with some things related to video in the kernel right now.

David2010 07-09-2010 07:36 PM

intel driver i915 must not work for my intel video card because after setting the i915 as "M" the same issue came up (black screen) but in the xorg.conf

Code:


Current version of pixman: 0.17.2
        Before reporting problems, check http://wiki.x.org
        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: Fri Jul  9 14:31:34 2010
(==) Using config file: "/etc/X11/xorg.conf"

Showed up. No errors just a black screen.

I wonder what I am doing wrong here.

I tried setting i915 to "*" but the screen blacked out during boot.

After much grief I am just going to stick with the vesa driver.

colorpurple21859 07-09-2010 08:39 PM

this might help
http://en.gentoo-wiki.com/wiki/Intel_GMA

David2010 07-09-2010 11:43 PM

Quote:

Originally Posted by colorpurple21859 (Post 4028809)

I followed those directions but got stuck with a "no video" laptop again. I just don't get why I loose my video without even using "startx". Once again saved by ssh.

I am still staying with vesa.

I think the intel driver just doesn't work with my hardware.


All times are GMT -5. The time now is 09:29 AM.