Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] /dev/dri doesn't exist anymore
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
queen
Veteran
Veteran


Joined: 19 Jul 2005
Posts: 1512

PostPosted: Wed Mar 14, 2012 2:50 pm    Post subject: [SOLVED] /dev/dri doesn't exist anymore Reply with quote

I have upgraded xorg-server to 1.11 and the intel card isn't recognized anymore. Fails to load DRM device. and other errors. I get screen not found. I checked the output and found out that there is no /dev/dri. Here is the complete output of Xorg.0.log:

Code:

X.Org X Server 1.11.2
Release Date: 2011-11-04
[  3819.654] X Protocol Version 11, Revision 0
[  3819.654] Build Operating System: Linux 2.6.38-gentoo-r6 i686 Gentoo
[  3819.655] Current Operating System: Linux mynet 2.6.38-gentoo-r6 #1 SMP Mon Feb 13 22:39:28 IST 2012 i686
[  3819.656] Kernel command line: root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3 doscsi noapic
[  3819.657] Build Date: 10 March 2012  11:54:20PM
[  3819.658] 
[  3819.659] Current version of pixman: 0.24.0
[  3819.661]    Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
[  3819.663] Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  3819.667] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Mar 11 00:09:37 2012
[  3819.669] (==) Using config file: "/etc/X11/xorg.conf"
[  3819.670] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[  3819.672] (==) ServerLayout "Main Layout"
[  3819.672] (**) |-->Screen "Screen0" (0)
[  3819.672] (**) |   |-->Monitor "Monitor0"
[  3819.673] (**) |   |-->Device "Card0"
[  3819.673] (**) |-->Input Device "Mouse1"
[  3819.673] (**) |-->Input Device "Mouse2"
[  3819.673] (**) |-->Input Device "Mouse3"
[  3819.673] (**) |-->Input Device "Keyboard1"
[  3819.673] (**) Option "BlankTime" "10"
[  3819.673] (**) Option "StandbyTime" "20"
[  3819.673] (**) Option "SuspendTime" "30"
[  3819.673] (**) Option "OffTime" "60"
[  3819.673] (==) Automatically adding devices
[  3819.673] (==) Automatically enabling devices
[  3819.673] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/default".
[  3819.673]    Entry deleted from font path.
[  3819.673]    (Run 'mkfontdir' on "/usr/share/fonts/default").
[  3819.673] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/encodings".
[  3819.673]    Entry deleted from font path.
[  3819.673]    (Run 'mkfontdir' on "/usr/share/fonts/encodings").
[  3819.673] (WW) The directory "/usr/share/fonts/sharefonts" does not exist.
[  3819.673]    Entry deleted from font path.
[  3819.673] (WW) The directory "/usr/share/fonts/terminus" does not exist.
[  3819.673]    Entry deleted from font path.
[  3819.673] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/util".
[  3819.673]    Entry deleted from font path.
[  3819.673]    (Run 'mkfontdir' on "/usr/share/fonts/util").
[  3819.673] (WW) The directory "/usr/share/fonts/unifont" does not exist.
[  3819.673]    Entry deleted from font path.
[  3819.673] (WW) The directory "/usr/local/share/fonts" does not exist.
[  3819.673]    Entry deleted from font path.
[  3819.673] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[  3819.673]    Entry deleted from font path.
[  3819.674] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi".
[  3819.674]    Entry deleted from font path.
[  3819.674]    (Run 'mkfontdir' on "/usr/share/fonts/75dpi").
[  3819.674] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi".
[  3819.674]    Entry deleted from font path.
[  3819.674]    (Run 'mkfontdir' on "/usr/share/fonts/100dpi").
[  3819.674] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[  3819.674]    Entry deleted from font path.
[  3819.674] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[  3819.674]    Entry deleted from font path.
[  3819.674] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[  3819.674]    Entry deleted from font path.
[  3819.674] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[  3819.674]    Entry deleted from font path.
[  3819.674]    (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[  3819.674] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[  3819.674]    Entry deleted from font path.
[  3819.674]    (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[  3819.674] (**) FontPath set to:
   /usr/share/fonts/dejavu,
   /usr/share/fonts/ttf-bitstream-vera,
   /usr/share/fonts/misc,
   /usr/share/fonts/misc/
[  3819.674] (**) ModulePath set to "/usr/lib/xorg/modules"
[  3819.674] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[  3819.674] (WW) Disabling Mouse1
[  3819.674] (WW) Disabling Mouse2
[  3819.674] (WW) Disabling Mouse3
[  3819.674] (WW) Disabling Keyboard1
[  3819.674] (II) Loader magic: 0x821b580
[  3819.674] (II) Module ABI versions:
[  3819.674]    X.Org ANSI C Emulation: 0.4
[  3819.674]    X.Org Video Driver: 11.0
[  3819.674]    X.Org XInput driver : 13.0
[  3819.674]    X.Org Server Extension : 6.0
[  3819.675] (--) PCI:*(0:0:2:0) 8086:3582:1734:106a rev 2, Mem @ 0xd8000000/134217728, 0xe0380000/524288, I/O @ 0x0000ec00/8
[  3819.676] (--) PCI: (0:0:2:1) 8086:3582:1734:106a rev 2, Mem @ 0xd0000000/134217728, 0xe0300000/524288
[  3819.676] (II) "extmod" will be loaded. This was enabled by default and also specified in the config file.
[  3819.676] (II) "dbe" will be loaded. This was enabled by default and also specified in the config file.
[  3819.676] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[  3819.676] (II) "record" will be loaded. This was enabled by default and also specified in the config file.
[  3819.676] (II) "dri" will be loaded. This was enabled by default and also specified in the config file.
[  3819.676] (II) "dri2" will be loaded by default.
[  3819.676] (II) LoadModule: "dbe"
[  3819.676] (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
[  3819.676] (II) Module dbe: vendor="X.Org Foundation"
[  3819.676]    compiled for 1.11.2, module version = 1.0.0
[  3819.676]    Module class: X.Org Server Extension
[  3819.677]    ABI class: X.Org Server Extension, version 6.0
[  3819.677] (II) Loading extension DOUBLE-BUFFER
[  3819.677] (II) LoadModule: "record"
[  3819.677] (II) Loading /usr/lib/xorg/modules/extensions/librecord.so
[  3819.677] (II) Module record: vendor="X.Org Foundation"
[  3819.677]    compiled for 1.11.2, module version = 1.13.0
[  3819.677]    Module class: X.Org Server Extension
[  3819.677]    ABI class: X.Org Server Extension, version 6.0
[  3819.677] (II) Loading extension RECORD
[  3819.677] (II) LoadModule: "dri"
[  3819.677] (II) Loading /usr/lib/xorg/modules/extensions/libdri.so
[  3819.678] (II) Module dri: vendor="X.Org Foundation"
[  3819.678]    compiled for 1.11.2, module version = 1.0.0
[  3819.678]    ABI class: X.Org Server Extension, version 6.0
[  3819.678] (II) Loading extension XFree86-DRI
[  3819.678] (II) LoadModule: "extmod"
[  3819.678] (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
[  3819.678] (II) Module extmod: vendor="X.Org Foundation"
[  3819.678]    compiled for 1.11.2, module version = 1.0.0
[  3819.678]    Module class: X.Org Server Extension
[  3819.678]    ABI class: X.Org Server Extension, version 6.0
[  3819.678] (II) Loading extension MIT-SCREEN-SAVER
[  3819.678] (II) Loading extension XFree86-VidModeExtension
[  3819.678] (II) Loading extension DPMS
[  3819.678] (II) Loading extension XVideo
[  3819.678] (II) Loading extension XVideo-MotionCompensation
[  3819.678] (II) Loading extension X-Resource
[  3819.678] (II) LoadModule: "glx"
[  3819.679] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[  3819.679] (II) Module glx: vendor="X.Org Foundation"
[  3819.679]    compiled for 1.11.2, module version = 1.0.0
[  3819.679]    ABI class: X.Org Server Extension, version 6.0
[  3819.679] (==) AIGLX enabled
[  3819.679] (II) Loading extension GLX
[  3819.679] (II) LoadModule: "dri2"
[  3819.679] (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
[  3819.679] (II) Module dri2: vendor="X.Org Foundation"
[  3819.679]    compiled for 1.11.2, module version = 1.2.0
[  3819.679]    ABI class: X.Org Server Extension, version 6.0
[  3819.679] (II) Loading extension DRI2
[  3819.679] (II) LoadModule: "intel"
[  3819.679] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[  3819.680] (II) Module intel: vendor="X.Org Foundation"
[  3819.680]    compiled for 1.11.2, module version = 2.17.0
[  3819.680]    Module class: X.Org Video Driver
[  3819.680]    ABI class: X.Org Video Driver, version 11.0
[  3819.680] (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 Desktop (GT1), Sandybridge Desktop (GT2),
   Sandybridge Desktop (GT2+), Sandybridge Mobile (GT1),
   Sandybridge Mobile (GT2), Sandybridge Mobile (GT2+),
   Sandybridge Server, Ivybridge Mobile (GT1), Ivybridge Mobile (GT2),
   Ivybridge Desktop (GT1), Ivybridge Desktop (GT2), Ivybridge Server
[  3819.681] (--) using VT number 7
[  3819.688] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[  3819.688] drmOpenDevice: node name is /dev/dri/card0
[  3819.700] drmOpenByBusid: Searching for BusID pci:0000:00:02.0
[  3819.700] drmOpenDevice: node name is /dev/dri/card0
[  3819.714] drmOpenByBusid: drmOpenMinor returns -1
[  3819.714] drmOpenDevice: node name is /dev/dri/card1
[  3819.726] drmOpenByBusid: drmOpenMinor returns -1
[  3819.726] drmOpenDevice: node name is /dev/dri/card2
[  3819.738] drmOpenByBusid: drmOpenMinor returns -1
[  3819.738] drmOpenDevice: node name is /dev/dri/card3
[  3819.750] drmOpenByBusid: drmOpenMinor returns -1
[  3819.750] drmOpenDevice: node name is /dev/dri/card4
[  3819.762] drmOpenByBusid: drmOpenMinor returns -1
[  3819.762] drmOpenDevice: node name is /dev/dri/card5
[  3819.774] drmOpenByBusid: drmOpenMinor returns -1
[  3819.774] drmOpenDevice: node name is /dev/dri/card6
[  3819.786] drmOpenByBusid: drmOpenMinor returns -1
[  3819.786] drmOpenDevice: node name is /dev/dri/card7
[  3819.798] drmOpenByBusid: drmOpenMinor returns -1
[  3819.798] drmOpenDevice: node name is /dev/dri/card8
[  3819.810] drmOpenByBusid: drmOpenMinor returns -1
[  3819.810] drmOpenDevice: node name is /dev/dri/card9
[  3819.822] drmOpenByBusid: drmOpenMinor returns -1
[  3819.822] drmOpenDevice: node name is /dev/dri/card10
[  3819.834] drmOpenByBusid: drmOpenMinor returns -1
[  3819.834] drmOpenDevice: node name is /dev/dri/card11
[  3819.846] drmOpenByBusid: drmOpenMinor returns -1
[  3819.846] drmOpenDevice: node name is /dev/dri/card12
[  3819.858] drmOpenByBusid: drmOpenMinor returns -1
[  3819.858] drmOpenDevice: node name is /dev/dri/card13
[  3819.870] drmOpenByBusid: drmOpenMinor returns -1
[  3819.870] drmOpenDevice: node name is /dev/dri/card14
[  3819.883] drmOpenByBusid: drmOpenMinor returns -1
[  3819.883] drmOpenDevice: node name is /dev/dri/card15
[  3819.895] drmOpenByBusid: drmOpenMinor returns -1
[  3819.895] drmOpenDevice: node name is /dev/dri/card0
[  3819.907] drmOpenDevice: node name is /dev/dri/card0
[  3819.919] drmOpenDevice: node name is /dev/dri/card1
[  3819.931] drmOpenDevice: node name is /dev/dri/card2
[  3819.943] drmOpenDevice: node name is /dev/dri/card3
[  3819.955] drmOpenDevice: node name is /dev/dri/card4
[  3819.967] drmOpenDevice: node name is /dev/dri/card5
[  3819.979] drmOpenDevice: node name is /dev/dri/card6
[  3819.991] drmOpenDevice: node name is /dev/dri/card7
[  3820.003] drmOpenDevice: node name is /dev/dri/card8
[  3820.015] drmOpenDevice: node name is /dev/dri/card9
[  3820.023] drmOpenDevice: node name is /dev/dri/card10
[  3820.035] drmOpenDevice: node name is /dev/dri/card11
[  3820.047] drmOpenDevice: node name is /dev/dri/card12
[  3820.059] drmOpenDevice: node name is /dev/dri/card13
[  3820.071] drmOpenDevice: node name is /dev/dri/card14
[  3820.083] drmOpenDevice: node name is /dev/dri/card15
[  3820.095] (EE) intel(0): [drm] Failed to open DRM device for pci:0000:00:02.0: No such file or directory
[  3820.095] (EE) intel(0): Failed to become DRM master.
[  3820.095] (**) intel(0): Depth 24, (--) framebuffer bpp 32
[  3820.095] (==) intel(0): RGB weight 888
[  3820.095] (==) intel(0): Default visual is TrueColor
[  3820.095] (II) intel(0): Integrated Graphics Chipset: Intel(R) 852GM/855GM
[  3820.095] (--) intel(0): Chipset: "852GM/855GM"
[  3820.095] (**) intel(0): Relaxed fencing disabled
[  3820.096] (**) intel(0): Wait on SwapBuffers? enabled
[  3820.096] (**) intel(0): Triple buffering? enabled
[  3820.096] (**) intel(0): Framebuffer tiled
[  3820.096] (**) intel(0): Pixmaps tiled
[  3820.096] (**) intel(0): 3D buffers tiled
[  3820.096] (**) intel(0): SwapBuffers wait enabled
[  3820.096] (==) intel(0): video overlay key set to 0x101fe
[  3820.096] (EE) intel(0): failed to get resources: Bad file descriptor
[  3820.096] (II) UnloadModule: "intel"
[  3820.096] (II) Unloading intel
[  3820.096] [b](EE) Screen(s) found, but none have a usable configuration.[/b]
[  3820.096]
Fatal server error:
[  3820.096] no screens found
[  3820.096]
Please consult the The X.Org Foundation support
    at http://wiki.x.org
 for help.
[  3820.096] Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[  3820.096]
[  3820.106] Server terminated with error (1). Closing log file.



I checked and found out that /dev/dri doesn't exist.

I also reinstalled all the xf86 dirvers.

I also created a file 20-intel.conf

Code:

cat 20-intel.conf
Section "Device"
   Identifier "Card0"
   Driver "intel"
   VendorName "Intel Cororation"
   BoardName "Intel Corporation"
   BusId "PCI:0:2:0"
EndSection


Code:
cat /etc/make.conf |grep VI
INPUT_DEVICES="evdev keyboard mouse synaptics"
VIDEO_CARDS="intel"
LIRC_DEVICES="devinput"


Code:

grep KMS /usr/src/linux/.config
CONFIG_DRM_KMS_HELPER=y
CONFIG_DRM_I915_KMS=y
***************************
lspci -ks 0:02
00:02.0 VGA compatible controller: Intel Corporation 82852/855GM Integrated Graphics Device (rev 02)
   Subsystem: Fujitsu Technology Solutions Device 106a
00:02.1 Display controller: Intel Corporation 82852/855GM Integrated Graphics Device (rev 02)
   Subsystem: Fujitsu Technology Solutions Device 106a


Code:

eix xorg-server
[I] x11-base/xorg-server
     Available versions:  1.9.5-r1 1.10.4-r1 ~1.10.6 ~1.11.2-r1 1.11.2-r2 ~1.11.3 ~1.11.4 [M]~1.12.0 {dmx doc ipv6 kdrive minimal nptl selinux static-libs tslib +udev xnest xorg xvfb}
     Installed versions:  1.11.2-r2(23:58:30 03/10/12)(ipv6 nptl udev xorg -dmx -doc -kdrive -minimal -static-libs -tslib -xnest -xvfb)
****************************
[I] x11-base/xorg-drivers
     Available versions:  1.9 1.10 1.11 [M]~1.12 {input_devices_acecad input_devices_aiptek input_devices_elographics input_devices_evdev input_devices_fpit input_devices_hyperpen input_devices_joystick input_devices_keyboard input_devices_mouse input_devices_mutouch input_devices_penmount input_devices_synaptics input_devices_tslib input_devices_virtualbox input_devices_vmmouse input_devices_void input_devices_wacom video_cards_apm video_cards_ark video_cards_ast video_cards_chips video_cards_cirrus video_cards_dummy video_cards_epson video_cards_fbdev video_cards_fglrx video_cards_geode video_cards_glint video_cards_i128 video_cards_i740 video_cards_impact video_cards_intel video_cards_mach64 video_cards_mga video_cards_neomagic video_cards_newport video_cards_nouveau video_cards_nv video_cards_nvidia video_cards_omapfb video_cards_qxl video_cards_r128 video_cards_radeon video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_sunbw2 video_cards_suncg14 video_cards_suncg3 video_cards_suncg6 video_cards_sunffb video_cards_sunleo video_cards_suntcx video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_via video_cards_virtualbox video_cards_vmware video_cards_voodoo}
     Installed versions:  1.11(23:52:48 03/10/12)(input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_synaptics video_cards_intel -input_devices_acecad -input_devices_aiptek -input_devices_elographics -input_devices_fpit -input_devices_hyperpen -input_devices_joystick -input_devices_mutouch -input_devices_penmount -input_devices_tslib -input_devices_vmmouse -input_devices_void -input_devices_wacom -video_cards_apm -video_cards_ark -video_cards_ast -video_cards_chips -video_cards_cirrus -video_cards_dummy -video_cards_epson -video_cards_fbdev -video_cards_fglrx -video_cards_geode -video_cards_glint -video_cards_i128 -video_cards_i740 -video_cards_impact -video_cards_mach64 -video_cards_mga -video_cards_neomagic -video_cards_newport -video_cards_nouveau -video_cards_nv -video_cards_nvidia -video_cards_omapfb -video_cards_qxl -video_cards_r128 -video_cards_radeon -video_cards_rendition -video_cards_s3 -video_cards_s3virge -video_cards_savage -video_cards_siliconmotion -video_cards_sis -video_cards_sisusb -video_cards_sunbw2 -video_cards_suncg14 -video_cards_suncg3 -video_cards_suncg6 -video_cards_sunffb -video_cards_sunleo -video_cards_suntcx -video_cards_tdfx -video_cards_tga -video_cards_trident -video_cards_tseng -video_cards_v4l -video_cards_vesa -video_cards_via -video_cards_virtualbox -video_cards_vmware -video_cards_voodoo)
********************************************

eix xf86 |grep I     
[I] x11-drivers/xf86-input-evdev
     Installed versions:  2.6.0(23:29:08 03/09/12)
[I] x11-drivers/xf86-input-keyboard
     Installed versions:  1.6.0(23:29:24 03/09/12)
[I] x11-drivers/xf86-input-mouse
     Installed versions:  1.7.1(23:29:40 03/09/12)
[I] x11-drivers/xf86-input-synaptics
     Installed versions:  1.4.0(23:30:01 03/09/12)
[I] x11-drivers/xf86-video-fbdev
     Installed versions:  0.4.2(23:30:16 03/09/12)
[I] x11-drivers/xf86-video-intel
     Installed versions:  2.17.0-r3(23:30:41 03/09/12)(dri -sna)
[I] x11-drivers/xf86-video-v4l
     Installed versions:  0.2.0(23:31:02 03/09/12)(-debug)
[I] x11-drivers/xf86-video-vesa
     Installed versions:  2.3.0(23:31:17 03/09/12)(-debug)
[I] x11-libs/libXxf86misc
     Installed versions:  1.0.3(17:04:20 07/26/11)(-static-libs)
[I] x11-libs/libXxf86vm
     Installed versions:  1.1.1(11:03:12 06/20/11)(-static-libs)
[I] x11-proto/xf86bigfontproto
     Installed versions:  1.2.0(15:26:36 06/19/11)
[I] x11-proto/xf86dgaproto
     Installed versions:  2.1(10:56:25 06/20/11)
[I] x11-proto/xf86driproto
     Installed versions:  2.1.1(10:53:14 06/20/11)
     Description:         X.Org XF86DRI protocol headers
[I] x11-proto/xf86miscproto
     Installed versions:  0.9.3(16:32:22 07/26/11)
[I] x11-proto/xf86rushproto
     Installed versions:  1.1.2(10:57:21 06/20/11)
[I] x11-proto/xf86vidmodeproto
     Installed versions:  2.3.1(10:54:42 06/20/11)


Any ideas how to solve it?


Last edited by queen on Tue Mar 20, 2012 8:29 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31365
Location: 56N 3W

PostPosted: Wed Mar 14, 2012 8:50 pm    Post subject: Reply with quote

queen,

/dev/dri is provided by the kernel.

Turn off any hardware framebuffer drivers.
Turn on Intel in agpgart and in DRM in the kernel.
Turn on KMS (Kernel mode setting) under one of the intel options.

At one time KMS was optional, its not true any more.

You will get a framebuffer console for free.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
queen
Veteran
Veteran


Joined: 19 Jul 2005
Posts: 1512

PostPosted: Wed Mar 14, 2012 9:08 pm    Post subject: Reply with quote

NeddySeagoon wrote:
queen,

/dev/dri is provided by the kernel.

Turn off any hardware framebuffer drivers.
Turn on Intel in agpgart and in DRM in the kernel.
Turn on KMS (Kernel mode setting) under one of the intel options.

At one time KMS was optional, its not true any more.

You will get a framebuffer console for free.


This is what I have in the kernel.

Code:
grep FRAME .config
CONFIG_SCHED_OMIT_FRAME_POINTER=y
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
# CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set
CONFIG_FRAME_WARN=1024
CONFIG_ARCH_WANT_FRAME_POINTERS=y
CONFIG_FRAME_POINTER=y


Code:

grep AGP .config
CONFIG_AGP=y
# CONFIG_AGP_ALI is not set
# CONFIG_AGP_ATI is not set
# CONFIG_AGP_AMD is not set
# CONFIG_AGP_AMD64 is not set
CONFIG_AGP_INTEL=y
# CONFIG_AGP_NVIDIA is not set
# CONFIG_AGP_SIS is not set
# CONFIG_AGP_SWORKS is not set
# CONFIG_AGP_VIA is not set
# CONFIG_AGP_EFFICEON is not set


Code:

grep DRM .config
CONFIG_DRM=y
CONFIG_DRM_KMS_HELPER=y
# CONFIG_DRM_TDFX is not set
# CONFIG_DRM_R128 is not set
# CONFIG_DRM_RADEON is not set
# CONFIG_DRM_I810 is not set
# CONFIG_DRM_I830 is not set
CONFIG_DRM_I915=y
CONFIG_DRM_I915_KMS=y
# CONFIG_DRM_MGA is not set
# CONFIG_DRM_SIS is not set
# CONFIG_DRM_VIA is not set
# CONFIG_DRM_SAVAGE is not set


Code:

grep KMS .config
CONFIG_DRM_KMS_HELPER=y
CONFIG_DRM_I915_KMS=y

If I understand correct, I have to disable
Code:
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
too or I got it already for free?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31365
Location: 56N 3W

PostPosted: Wed Mar 14, 2012 10:28 pm    Post subject: Reply with quote

queen,

Those options should be harmless.

It things like vesafb or uvesafb or any hardware related items in that menu must be disabled.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
queen
Veteran
Veteran


Joined: 19 Jul 2005
Posts: 1512

PostPosted: Wed Mar 14, 2012 10:32 pm    Post subject: Reply with quote

NeddySeagoon wrote:
queen,

Those options should be harmless.

It things like vesafb or uvesafb or any hardware related items in that menu must be disabled.


Code:

grep -i vesa /usr/src/linux/.config
# CONFIG_FB_BOOT_VESA_SUPPORT is not set
# CONFIG_FB_UVESA is not set
# CONFIG_FB_VESA is not set
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 1561
Location: Berlin, Germany

PostPosted: Thu Mar 15, 2012 2:17 am    Post subject: Reply with quote

Do you get errors from i915 in dmesg? Does "lspci -k" confirm that the i915 driver is driving your graphics chipset?
Back to top
View user's profile Send private message
queen
Veteran
Veteran


Joined: 19 Jul 2005
Posts: 1512

PostPosted: Tue Mar 20, 2012 12:01 pm    Post subject: Reply with quote

chithanh wrote:
Do you get errors from i915 in dmesg? Does "lspci -k" confirm that the i915 driver is driving your graphics chipset?


I always used i915.
Code:

lspci -k
00:02.0 VGA compatible controller: Intel Corporation 82852/855GM Integrated Graphics Device (rev 02)
        Subsystem: Fujitsu Technology Solutions Device 106a
        Kernel driver in use: i915


Regarding dmesg and i915, I don't get any errors.

I managed to solve the problem. I am not sure what exactly solved it. The only thing I did was update dbus and some corrections with stop-system-daemon file that was giving me errors with authentication and many services and modules were not loaded.
Back to top
View user's profile Send private message
SDNick484
Tux's lil' helper
Tux's lil' helper


Joined: 05 Dec 2005
Posts: 138

PostPosted: Thu Mar 22, 2012 12:29 am    Post subject: Reply with quote

I encountered an issue with the same symptoms (no /dev/dri so X won't start) which I believe is actually caused by a udev update. I had upgraded from udev-171 to udev-181 (and several other packages), and when I rebooted, X failed to start. I had made several other changes including upgrading xorg-server to 1.12 and xf86-video-intel to 2.18, so I wasn't sure who the culrpit was. I tried reverting everything, including dbus, mesa, libdrm, etc., but I wasn't able to resolve my issue. I also tried upgrading, going to kernel 3.3.0 from 3.1. I then tried upgrading udev from 181 to 182 and noticed the message about "CONFIG_DEVTMPFS" missing. I rebuilt my kernel (3.3.0-gentoo) to include both that and CONFIG_DEVTMPFS_MOUNT and now my issue has gone away. X works great (I am now running the latest ~amd64 versions of everything I mentioned).

Hope this helps someone,
Nick
Back to top
View user's profile Send private message
FranZ
Apprentice
Apprentice


Joined: 15 Feb 2004
Posts: 212
Location: Enschede, Holland

PostPosted: Mon Apr 02, 2012 5:48 am    Post subject: Reply with quote

SDNick484 wrote:
I then tried upgrading udev from 181 to 182 and noticed the message about "CONFIG_DEVTMPFS" missing. I rebuilt my kernel (3.3.0-gentoo) to include both that and CONFIG_DEVTMPFS_MOUNT and now my issue has gone away.

Thanks, that fixed it for me.
_________________
Horse sense is the thing that keeps horses from betting on people. --W.C. Fields

Ask Smart Questions
Back to top
View user's profile Send private message
rokj
n00b
n00b


Joined: 05 Sep 2005
Posts: 33

PostPosted: Sun Sep 30, 2012 3:57 pm    Post subject: Reply with quote

FranZ wrote:
SDNick484 wrote:
I then tried upgrading udev from 181 to 182 and noticed the message about "CONFIG_DEVTMPFS" missing. I rebuilt my kernel (3.3.0-gentoo) to include both that and CONFIG_DEVTMPFS_MOUNT and now my issue has gone away.

Thanks, that fixed it for me.


Yes, that fixed it for me also. Thank you.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum