Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems with Intel Video Card and DRI [SOLVED]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
IsraelBuitronD
Guru
Guru


Joined: 24 Jun 2005
Posts: 343
Location: México

PostPosted: Sat Feb 23, 2008 9:53 pm    Post subject: Problems with Intel Video Card and DRI [SOLVED] Reply with quote

Hi!

I can use DRI, here you have the glxinfo output:

Code:
neoriddle@neobalam ~ $ glxinfo | grep -i render
libGL error: drmMap of framebuffer failed (Invalid argument)
libGL error: reverting to (slow) indirect rendering
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
OpenGL renderer string: Mesa GLX Indirect
neoriddle@neobalam ~ $


then here yo have an lspci output:

Code:
neobalam neoriddle # lspci -vv
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03)
        Subsystem: Dell Unknown device 01d7
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ >SERR- <PERR- INTx-
        Latency: 0
        Capabilities: [e0] Vendor Specific Information <?>
        Kernel driver in use: agpgart-intel

00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03) (prog-if 00 [VGA controller])
        Subsystem: Dell Unknown device 01d7
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0
        Interrupt: pin A routed to IRQ 17
        Region 0: Memory at eff00000 (32-bit, non-prefetchable) [size=512K]
        Region 1: I/O ports at eff8 [size=8]
        Region 2: Memory at d0000000 (32-bit, prefetchable) [size=256M]
        Region 3: Memory at efec0000 (32-bit, non-prefetchable) [size=256K]
        Capabilities: [90] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable-
                Address: 00000000  Data: 0000
        Capabilities: [d0] Power Management version 2
                Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)
        Subsystem: Dell Unknown device 01d7
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0
        Region 0: Memory at eff80000 (32-bit, non-prefetchable) [size=512K]
        Capabilities: [d0] Power Management version 2
                Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-
...
neobalam neoriddle #


then, here you have a portage and package info:

Code:
neobalam neoriddle # emerge -vp mesa xorg-x11 xorg-server

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-libs/mesa-6.5.2-r1  USE="debug motif nptl xcb -doc -pic" VIDEO_CARDS="i810 -mach64 -mga -none -r128 -radeon -s3virge -savage -sis (-sunffb) -tdfx -trident -via" 0 kB
[ebuild   R   ] x11-base/xorg-server-1.3.0.0-r5  USE="3dfx dmx dri ipv6 nptl sdl xorg xprint -debug -kdrive -minimal" INPUT_DEVICES="evdev keyboard mouse synaptics -acecad -aiptek -calcomp -citron -digitaledge -dmc -dynapro -elo2300 -elographics -fpit -hyperpen -jamstudio -joystick -magellan -microtouch -mutouch -palmax -penmount -spaceorb -summa -tek4957 -ur98 -vmmouse -void -wacom" VIDEO_CARDS="apm fbdev glint i810 v4l vesa vga -ark -chips -cirrus -cyrix -dummy -epson -fglrx -i128 -i740 (-impact) -imstt -mach64 -mga -neomagic (-newport) -nsc -nv -nvidia -r128 -radeon -rendition -s3 -s3virge -savage -siliconmotion -sis -sisusb (-sunbw2) (-suncg14) (-suncg3) (-suncg6) (-sunffb) (-sunleo) (-suntcx) -tdfx -tga -trident -tseng -via -vmware -voodoo" 0 kB
[ebuild   R   ] x11-base/xorg-x11-7.2  0 kB

Total: 3 packages (3 reinstalls), Size of downloads: 0 kB
neobalam neoriddle #


and /etc/X11/xorg.conf output:

Code:
neobalam neoriddle # cat /etc/X11/xorg.conf
Section "Files"
        FontPath        "/usr/share/X11/fonts/misc"
        FontPath        "/usr/share/X11/fonts/cyrillic"
        FontPath        "/usr/share/X11/fonts/100dpi/:unscaled"
        FontPath        "/usr/share/X11/fonts/75dpi/:unscaled"
        FontPath        "/usr/share/X11/fonts/Type1"
        FontPath        "/usr/share/X11/fonts/100dpi"
        FontPath        "/usr/share/X11/fonts/75dpi"
        # path to defoma fonts
        FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
        Load    "i2c"
        Load    "bitmap"
        Load    "ddc"
        Load    "dri"
        Load    "extmod"
        Load    "freetype"
        Load    "glx"
        Load    "int10"
        Load    "type1"
        Load    "vbe"
EndSection

Section "InputDevice"
        Identifier      "Keyboard"
        Driver          "kbd"
        Option          "CoreKeyboard"
        Option          "XkbRules"      "xorg"
        Option          "XkbModel"      "pc105"
        Option          "XkbLayout"     "latam,us"
EndSection
...
Section "Device"
        Identifier      "Intel Corporation Mobile Integrated Graphics Controller"
        Driver          "i810"
        BusID           "PCI:0:2:0"
        #Option         "XAANoOffscreenPixmaps" "true"
        #Option         "AccelMethod"           "EXA"
        Option          "AccelMethod"           "XAA"
        Option          "DRI"                   "true"
#testing next line
        Option          "AllowGLXWithComposite" "true"
EndSection

Section "Monitor"
        Identifier      "Generic Monitor"
#        Option          "ReducedBlanking"
        Option          "DPMS"
EndSection

Section "Screen"
        Identifier      "ScreenLCD"
        Device          "Intel Corporation Mobile Integrated Graphics Controller"
        Monitor         "Generic Monitor"
        DefaultDepth    24
        SubSection "Display"
                Depth           1
                Modes           "1280x800"
                ViewPort        0 0
        EndSubSection
        SubSection "Display"
                Depth           4
                Modes           "1280x800"
                ViewPort        0 0
        EndSubSection
        SubSection "Display"
                Depth           8
                Modes           "1280x800"
                ViewPort        0 0
        EndSubSection
        SubSection "Display"
                Depth           15
                Modes           "1280x800"
                ViewPort        0 0
        EndSubSection
        SubSection "Display"
                Depth           16
                Modes           "1280x800"
                ViewPort        0 0
        EndSubSection
        SubSection "Display"
                Depth           24
                Modes           "1280x800" "1024x768" "800x600" "640x480"
                ViewPort        0 0
        EndSubSection
EndSection
...
Section "DRI"
        Mode    0666
EndSection

Section "Extensions"
        Option          "Composite"     "enable"
EndSection
neobalam neoriddle #


So what can I do?

Thank you


Last edited by IsraelBuitronD on Sun Mar 02, 2008 11:22 pm; edited 1 time in total
Back to top
View user's profile Send private message
ewaller
Apprentice
Apprentice


Joined: 11 Aug 2005
Posts: 264
Location: Pasadena, CA

PostPosted: Sun Feb 24, 2008 5:45 pm    Post subject: Reply with quote

Can you post the relevant parts of your Xorg log file?

Also, check that your kernel config has

AGP=y
AGP_INTEL=y
DRM = y or m
DRM_I915= y or m

if all is well, you will have a device node:

/dev/dri/card0

If that node does not exist, you won't get direct rendering

ewaller
_________________
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Back to top
View user's profile Send private message
IsraelBuitronD
Guru
Guru


Joined: 24 Jun 2005
Posts: 343
Location: México

PostPosted: Sun Feb 24, 2008 5:59 pm    Post subject: Reply with quote

ok all this is ok:

Code:
neobalam linux # cat .config | grep -i "^config.*agp"
CONFIG_AGP=y
CONFIG_AGP_AMD64=y
CONFIG_AGP_INTEL=y
neobalam linux # cat .config | grep -i "^config.*drm"
CONFIG_DRM=m
CONFIG_DRM_I810=m
CONFIG_DRM_I915=m
neobalam linux # ls -ls /dev/dri/card0
0 crw-rw-rw- 1 root video 226, 0 Feb 23 15:22 /dev/dri/card0
neobalam linux #


but DRI is not working well:

Code:
neoriddle@neobalam ~ $ glxinfo | grep -i rendering
libGL error: drmMap of framebuffer failed (Invalid argument)
libGL error: reverting to (slow) indirect rendering
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
neoriddle@neobalam ~ $ LIBGL_DEBUG=verbose glxinfo | grep -i rendering
libGL: XF86DRIGetClientDriverName: 1.9.0 i915 (screen 0)
libGL: OpenDriver: trying /usr/lib/dri/tls/i915_dri.so
libGL: OpenDriver: trying /usr/lib/dri/i915_dri.so
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 4, (OK)
drmOpenByBusid: Searching for BusID pci:0000:00:02.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 4, (OK)
drmOpenByBusid: drmOpenMinor returns 4
drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0
libGL error: drmMap of framebuffer failed (Invalid argument)
libGL error: reverting to (slow) indirect rendering
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
neoriddle@neobalam ~ $ glxgears
libGL error: drmMap of framebuffer failed (Invalid argument)
libGL error: reverting to (slow) indirect rendering
786 frames in 5.0 seconds = 155.948 FPS
860 frames in 5.1 seconds = 170.181 FPS
880 frames in 5.1 seconds = 172.162 FPS

neoriddle@neobalam ~ $
Back to top
View user's profile Send private message
ewaller
Apprentice
Apprentice


Joined: 11 Aug 2005
Posts: 264
Location: Pasadena, CA

PostPosted: Mon Feb 25, 2008 6:56 am    Post subject: Reply with quote

NeoRiddle,

By-the-way, my compliments to your skills with Regular Expressions. In my thirty years of playing with computers, I have not mastered REs.
Here are the more interesting parts of my Xorg.config file:

Code:
        Section "Monitor"
                Identifier      "Builtin Default Monitor"
                Option  "TargetRefresh" "75.0"
                Modeline "1280x800" 71.0 1280 1328 1360 1440 800 802 808 823
                Option "UseEdidDpi"   "false"
                Option "DPI" "92 x 92"
        EndSection
        Section "Device"
                Identifier      "Builtin Default i810 Device 0"
                Driver  "i810"
                Option       "DDC" "No"
                Option      "NoAccel"       "false"
                Option      "DRI"           "true"
                Option      "dpms"
                Option      "UseEdidDpi"   "false"
                Option      "DPI"          "92 x 92"
                Option "XAANoOffscreenPixmaps" "true"


                VideoRam 32768
        EndSection
        Section "Screen"
                Identifier      "Builtin Default i810 Screen 0"
                Device  "Builtin Default i810 Device 0"
                Monitor "Builtin Default Monitor"
                DefaultDepth 24
                Subsection "Display"
                   Depth 8
                   Depth 16
                   Depth 24
                   Modes "1280x800"
                   Modes "1024x768"
                   Modes "800x600"
                   Modes "640x480"
                EndSubsection
        EndSection

        Section "ServerLayout"
                Identifier      "Builtin Default Layout"
                InputDevice    "TouchPad" "CorePointer"
                Screen  "Builtin Default i810 Screen 0"
                Option "AIGLX" "true"
        EndSection

        Section "DRI"
                Group 0
                Mode 0666
        EndSection

I note that I have a group 0 line and an option explicitly turning off no acceleration. It has been a long time -- so I don't remember how I arrived at these settings.

I am interested in your Xorg log file.
My /var/log/Xorg.0.log file includes the following excerpts. How does yours compare?
Code:
(II) LoadModule: "glx"
(II) Loading /usr/lib/xorg/modules/extensions//libglx.so
(II) Module glx: vendor="X.Org Foundation"
   compiled for 1.4.0.90, module version = 1.0.0
   ABI class: X.Org Server Extension, version 0.3
(**) AIGLX enabled
(II) Loading extension GLX
(II) LoadModule: "freetype"
(II) Loading /usr/lib/xorg/modules/fonts//libfreetype.so
(II) Module freetype: vendor="X.Org Foundation & the After X-TT Project"
   compiled for 1.4.0.90, module version = 2.1.0
   Module class: X.Org Font Renderer
   ABI class: X.Org Font Renderer, version 0.5
(II) Loading font FreeType
(II) LoadModule: "dri"
(II) Loading /usr/lib/xorg/modules/extensions//libdri.so
(II) Module dri: vendor="X.Org Foundation"
   compiled for 1.4.0.90, module version = 1.0.0
   ABI class: X.Org Server Extension, version 0.3
(II) Loading extension XFree86-DRI
(II) LoadModule: "synaptics"
(II) Loading /usr/lib/xorg/modules/input//synaptics_drv.so
(II) Module synaptics: vendor="X.Org Foundation"
   compiled for 4.3.99.902, module version = 1.0.0
   Module class: X.Org XInput Driver
   ABI class: X.Org XInput driver, version 2.0

and later...
Code:
(II) LoadModule: "i810"
(II) Loading /usr/lib/xorg/modules/drivers//i810_drv.so
(II) Module i810: vendor="X.Org Foundation"
   compiled for 1.4.0.90, module version = 2.2.1
   Module class: X.Org Video Driver
   ABI class: X.Org Video Driver, version 2.0

and then
Code:
(II) Loading sub module "dri"
(II) LoadModule: "dri"
(II) Reloading /usr/lib/xorg/modules/extensions//libdri.so
(==) Depth 24 pixmap format is 32 bpp
(II) do I need RAC?  No, I don't.
(II) resource ranges after preInit:
   [0] 0   0   0xd0080000 - 0xd00bffff (0x40000) MS[B]
   [1] 0   0   0xa0000000 - 0xafffffff (0x10000000) MS[B]
   [2] 0   0   0xd0000000 - 0xd007ffff (0x80000) MS[B]
   [3] -1   0   0x00100000 - 0x3fffffff (0x3ff00000) MX[B]E(B)
   [4] -1   0   0x000f0000 - 0x000fffff (0x10000) MX[B]
   [5] -1   0   0x000c0000 - 0x000effff (0x30000) MX[B]
   [6] -1   0   0x00000000 - 0x0009ffff (0xa0000) MX[B]
   [7] -1   0   0xb8004000 - 0xb8007fff (0x4000) MX[B]
   [8] -1   0   0xb8000000 - 0xb80007ff (0x800) MX[B]
   [9] -1   0   0xb8008000 - 0xb8008fff (0x1000) MX[B]
   [10] -1   0   0xcc000000 - 0xcc003fff (0x4000) MX[B]
   [11] -1   0   0xd0180200 - 0xd01802ff (0x100) MX[B]
   [12] -1   0   0xd0180000 - 0xd01801ff (0x200) MX[B]
   [13] -1   0   0xf4000000 - 0xf40003ff (0x400) MX[B]
   [14] -1   0   0xd0100000 - 0xd017ffff (0x80000) MX[B](B)
   [15] -1   0   0xd0080000 - 0xd00bffff (0x40000) MX[B](B)
   [16] -1   0   0xa0000000 - 0xafffffff (0x10000000) MX[B](B)
   [17] -1   0   0xd0000000 - 0xd007ffff (0x80000) MX[B](B)
   [18] 0   0   0x000a0000 - 0x000affff (0x10000) MS[B](OprD)
   [19] 0   0   0x000b0000 - 0x000b7fff (0x8000) MS[B](OprD)
   [20] 0   0   0x000b8000 - 0x000bffff (0x8000) MS[B](OprD)
   [21] 0   0   0x0000e000 - 0x0000e007 (0x8) IS[B]
   [22] -1   0   0x0000ffff - 0x0000ffff (0x1) IX[B]
   [23] -1   0   0x00000000 - 0x000000ff (0x100) IX[B]
   [24] -1   0   0x0000c000 - 0x0000c0ff (0x100) IX[B]
   [25] -1   0   0x00001100 - 0x0000110f (0x10) IX[B]
   [26] -1   0   0x000001f0 - 0x000001f0 (0x1) IX[B]
   [27] -1   0   0x000001f0 - 0x000001f7 (0x8) IX[B]
   [28] -1   0   0x000001f0 - 0x000001f0 (0x1) IX[B]
   [29] -1   0   0x000001f0 - 0x000001f7 (0x8) IX[B]
   [30] -1   0   0x0000e200 - 0x0000e23f (0x40) IX[B]
   [31] -1   0   0x0000e100 - 0x0000e1ff (0x100) IX[B]
   [32] -1   0   0x00001260 - 0x0000127f (0x20) IX[B]
   [33] -1   0   0x00001240 - 0x0000125f (0x20) IX[B]
   [34] -1   0   0x00001220 - 0x0000123f (0x20) IX[B]
   [35] -1   0   0x00001200 - 0x0000121f (0x20) IX[B]
   [36] -1   0   0x0000e000 - 0x0000e007 (0x8) IX[B](B)
   [37] 0   0   0x000003b0 - 0x000003bb (0xc) IS[B](OprU)
   [38] 0   0   0x000003c0 - 0x000003df (0x20) IS[B](OprU)
(WW) intel(0): VideoRam configuration found, which is no longer recommended.
(II) intel(0): Continuing with default 262144kB VideoRam instead of 32768 kB.
(II) intel(0): Kernel reported 208896 total, 1 used
(II) intel(0): I830CheckAvailableMemory: 835580 kB available
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device or address)
drmOpenDevice: open result is -1, (No such device or address)
drmOpenDevice: Open failed
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device or address)
drmOpenDevice: open result is -1, (No such device or address)
drmOpenDevice: Open failed
drmOpenByBusid: Searching for BusID pci:0000:00:02.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 8, (OK)
drmOpenByBusid: drmOpenMinor returns 8
drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0
(II) [drm] loaded kernel module for "i915" driver.
(II) [drm] DRM interface version 1.3
(II) [drm] DRM open master succeeded.
(II) intel(0): [drm] Using the DRM lock SAREA also for drawables.
(II) intel(0): [drm] framebuffer mapped by ddx driver
(II) intel(0): [drm] added 1 reserved context for kernel
(II) intel(0): X context handle = 0x1
(II) intel(0): [drm] installed DRM signal handler
(**) intel(0): VideoRam: 262144 KB
(**) intel(0): Framebuffer compression enabled
(**) intel(0): Tiling enabled
(II) intel(0): Attempting memory allocation with tiled buffers.
(II) intel(0): Success.
(II) intel(0): Increasing the scanline pitch to allow tiling mode (1280 -> 2048).
(II) intel(0): [drm] Registers = 0xd0000000
(II) intel(0): [drm] ring buffer = 0xa0000000
(II) intel(0): [drm] mapped front buffer at 0xa1000000, handle = 0xa1000000
(II) intel(0): [drm] mapped back buffer at 0xa4000000, handle = 0xa4000000
(II) intel(0): [drm] mapped depth buffer at 0xa5000000, handle = 0xa5000000
(II) intel(0): [drm] mapped classic textures at 0xa6000000, handle = 0xa6000000
(II) intel(0): [drm] Initialized kernel agp heap manager, 33554432
(II) intel(0): [dri] visual configs initialized
(II) intel(0): Page Flipping disabled
(==) intel(0): Removed MMIO write-combining range (0xa0000000,0x400000)
(==) intel(0): Write-combining range (0xa0000000,0x10000000)
(II) intel(0): vgaHWGetIOBase: hwp->IOBase is 0x03d0, hwp->PIOOffset is 0x0000
(II) EXA(0): Offscreen pixmap area of 31457280 bytes
(II) EXA(0): Driver registered support for the following operations:
(II)         Solid
(II)         Copy
(II)         Composite (RENDER acceleration)
(==) intel(0): Backing store disabled
(==) intel(0): Silken mouse enabled
(II) intel(0): Initializing HW Cursor
(II) intel(0): [DRI] installation complete
(II) intel(0): [drm] dma control initialized, using IRQ 11
(II) intel(0): xf86BindGARTMemory: bind key 0 at 0x01000000 (pgoffset 4096)
(II) intel(0): xf86BindGARTMemory: bind key 1 at 0x02000000 (pgoffset 8192)
(II) intel(0): xf86BindGARTMemory: bind key 2 at 0x04000000 (pgoffset 16384)
(II) intel(0): xf86BindGARTMemory: bind key 3 at 0x05000000 (pgoffset 20480)
(II) intel(0): xf86BindGARTMemory: bind key 4 at 0x06000000 (pgoffset 24576)
(II) intel(0): Fixed memory allocation layout:
(II) intel(0): 0x00000000-0x0001ffff: ring buffer (128 kB)
(II) intel(0): 0x00020000-0x0061ffff: compressed frame buffer (6144 kB, 0x000000003f820000 physical
)
(II) intel(0): 0x00620000-0x00620fff: compressed ll buffer (4 kB, 0x000000003fe20000 physical
)
(II) intel(0): 0x00621000-0x0062afff: HW cursors (40 kB, 0x000000003fe21000 physical
)
(II) intel(0): 0x0062b000-0x00632fff: logical 3D context (32 kB)
(II) intel(0): 0x00633000-0x00633fff: overlay registers (4 kB, 0x000000003fe33000 physical
)
(II) intel(0): 0x007bf000:            end of stolen memory
(II) intel(0): 0x01000000-0x01ffffff: front buffer (10240 kB) X tiled
(II) intel(0): 0x02000000-0x03dfffff: exa offscreen (30720 kB)
(II) intel(0): 0x04000000-0x04ffffff: back buffer (10240 kB) X tiled
(II) intel(0): 0x05000000-0x05ffffff: depth buffer (10240 kB) X tiled
(II) intel(0): 0x06000000-0x07ffffff: classic textures (32768 kB)
(II) intel(0): 0x10000000:            end of aperture
(II) intel(0): fbc disabled on plane a
(II) intel(0): fbc enabled on plane a
(II) intel(0): fbc disabled on plane a
(II) intel(0): fbc disabled on plane a
(II) intel(0): Output configuration:
(II) intel(0):   Pipe A is off
(II) intel(0):   Display plane A is now disabled and connected to pipe A.
(II) intel(0):   Pipe B is on
(II) intel(0):   Display plane B is now enabled and connected to pipe B.
(II) intel(0):   Output VGA is connected to pipe none
(II) intel(0):   Output LVDS is connected to pipe B
(II) intel(0):   Output TV is connected to pipe none
(II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled message.

and then
Code:
(WW) intel(0): VideoRam configuration found, which is no longer recommended.
(II) intel(0): Continuing with default 262144kB VideoRam instead of 32768 kB.
(II) intel(0): Kernel reported 208896 total, 1 used
(II) intel(0): I830CheckAvailableMemory: 835580 kB available
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 8, (OK)
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 8, (OK)
drmOpenByBusid: Searching for BusID pci:0000:00:02.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 8, (OK)
drmOpenByBusid: drmOpenMinor returns 8
drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0
(II) [drm] DRM interface version 1.3
(II) [drm] DRM open master succeeded.
(II) intel(0): [drm] Using the DRM lock SAREA also for drawables.
(II) intel(0): [drm] framebuffer mapped by ddx driver
(II) intel(0): [drm] added 1 reserved context for kernel
(II) intel(0): X context handle = 0x1
(II) intel(0): [drm] installed DRM signal handler
(**) intel(0): VideoRam: 262144 KB
(**) intel(0): Framebuffer compression enabled
(**) intel(0): Tiling enabled
(II) intel(0): Attempting memory allocation with tiled buffers.
(II) intel(0): Success.
(II) intel(0): Increasing the scanline pitch to allow tiling mode (1280 -> 2048).
(II) intel(0): [drm] Registers = 0xd0000000
(II) intel(0): [drm] ring buffer = 0xa0000000
(II) intel(0): [drm] mapped front buffer at 0xa1000000, handle = 0xa1000000
(II) intel(0): [drm] mapped back buffer at 0xa0800000, handle = 0xa0800000
(II) intel(0): [drm] mapped depth buffer at 0xa3800000, handle = 0xa3800000
(II) intel(0): [drm] mapped classic textures at 0xa4000000, handle = 0xa4000000
(II) intel(0): [drm] Initialized kernel agp heap manager, 33554432
(II) intel(0): [dri] visual configs initialized
(II) intel(0): Page Flipping disabled
(==) intel(0): Write-combining range (0xa0000000,0x10000000)
(II) intel(0): vgaHWGetIOBase: hwp->IOBase is 0x03d0, hwp->PIOOffset is 0x0000
(II) EXA(0): Offscreen pixmap area of 19660800 bytes
(II) EXA(0): Driver registered support for the following operations:
(II)         Solid
(II)         Copy
(II)         Composite (RENDER acceleration)
(II) intel(0): Initializing HW Cursor
(II) intel(0): [DRI] installation complete
(II) intel(0): [drm] dma control initialized, using IRQ 11
(II) intel(0): xf86BindGARTMemory: bind key 2 at 0x00800000 (pgoffset 2048)
(II) intel(0): xf86BindGARTMemory: bind key 0 at 0x01000000 (pgoffset 4096)
(II) intel(0): xf86BindGARTMemory: bind key 1 at 0x02000000 (pgoffset 8192)
(II) intel(0): xf86BindGARTMemory: bind key 3 at 0x03800000 (pgoffset 14336)
(II) intel(0): xf86BindGARTMemory: bind key 4 at 0x04000000 (pgoffset 16384)
(II) intel(0): Fixed memory allocation layout:
(II) intel(0): 0x00000000-0x0001ffff: ring buffer (128 kB)
(II) intel(0): 0x00020000-0x0061ffff: compressed frame buffer (6144 kB, 0x000000003f820000 physical
)
(II) intel(0): 0x00620000-0x00620fff: compressed ll buffer (4 kB, 0x000000003fe20000 physical
)
(II) intel(0): 0x00621000-0x0062afff: HW cursors (40 kB, 0x000000003fe21000 physical
)
(II) intel(0): 0x0062b000-0x00632fff: logical 3D context (32 kB)
(II) intel(0): 0x00633000-0x00633fff: overlay registers (4 kB, 0x000000003fe33000 physical
)
(II) intel(0): 0x007bf000:            end of stolen memory
(II) intel(0): 0x00800000-0x00ffffff: back buffer (6400 kB) X tiled
(II) intel(0): 0x01000000-0x01ffffff: front buffer (10240 kB) X tiled
(II) intel(0): 0x02000000-0x032bffff: exa offscreen (19200 kB)
(II) intel(0): 0x03800000-0x03ffffff: depth buffer (6400 kB) X tiled
(II) intel(0): 0x04000000-0x05ffffff: classic textures (32768 kB)
(II) intel(0): 0x10000000:            end of aperture
(II) intel(0): fbc disabled on plane a
(II) intel(0): fbc disabled on plane a
(II) intel(0): Output configuration:
(II) intel(0):   Pipe A is off
(II) intel(0):   Display plane A is now disabled and connected to pipe A.
(II) intel(0):   Pipe B is on
(II) intel(0):   Display plane B is now enabled and connected to pipe B.
(II) intel(0):   Output VGA is connected to pipe none
(II) intel(0):   Output LVDS is connected to pipe B
(II) intel(0):   Output TV is connected to pipe none
(II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled message.
(**) intel(0): DPMS enabled
(II) intel(0): Set up textured video
(II) intel(0): Set up overlay video
(II) intel(0): direct rendering: Enabled
(--) RandR disabled
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 9, (OK)
drmOpenByBusid: Searching for BusID pci:0000:00:02.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 9, (OK)
drmOpenByBusid: drmOpenMinor returns 9
drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0
(WW) AIGLX: 3D driver claims to not support visual 0x23
(WW) AIGLX: 3D driver claims to not support visual 0x24
(WW) AIGLX: 3D driver claims to not support visual 0x25
(WW) AIGLX: 3D driver claims to not support visual 0x26
(WW) AIGLX: 3D driver claims to not support visual 0x27
(WW) AIGLX: 3D driver claims to not support visual 0x28
(WW) AIGLX: 3D driver claims to not support visual 0x29
(WW) AIGLX: 3D driver claims to not support visual 0x2a
(WW) AIGLX: 3D driver claims to not support visual 0x2b
(WW) AIGLX: 3D driver claims to not support visual 0x2c
(WW) AIGLX: 3D driver claims to not support visual 0x2d
(WW) AIGLX: 3D driver claims to not support visual 0x2e
(WW) AIGLX: 3D driver claims to not support visual 0x2f
(WW) AIGLX: 3D driver claims to not support visual 0x30
(WW) AIGLX: 3D driver claims to not support visual 0x31
(WW) AIGLX: 3D driver claims to not support visual 0x32
(II) AIGLX: Loaded and initialized /usr/lib/dri/i915_dri.so
(II) GLX: Initialized DRI GL provider for screen 0
(II) intel(0): Setting screen physical size to 338 x 211

_________________
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Back to top
View user's profile Send private message
gi1242
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jul 2004
Posts: 146

PostPosted: Sun Mar 02, 2008 8:37 pm    Post subject: Reply with quote

Just FYI -- it looks like this is because something changed in the later intel drivers (2.2.x). Bug report at https://bugs.gentoo.org/show_bug.cgi?id=201030, and fix at http://www.mail-archive.com/dri-devel@lists.sourceforge.net/msg33732.html

GI
Back to top
View user's profile Send private message
IsraelBuitronD
Guru
Guru


Joined: 24 Jun 2005
Posts: 343
Location: México

PostPosted: Sun Mar 02, 2008 11:34 pm    Post subject: Reply with quote

yes it works very well

i did these:

First I added this into /etc/portage/package.keywords, to have th last xorg-server version (in my case x11-base/xorg-server-1.4.0.90-r3):
Code:

# For libXrender
x11-proto/renderproto   ~x86
x11-libs/libXrender   ~x86

# For xorg-server
x11-drivers/xf86-input-keyboard   ~x86
x11-libs/xtrans   ~x86
x11-libs/pixman   ~x86
x11-base/xorg-server   ~x86


then, emerge:

Code:
neobalam neoriddle # emerge -vp x11-libs/libdrm media-libs/mesa x11-base/xorg-server x11-drivers/xf86-video-i810

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N   ] x11-libs/libdrm-2.3.0  USE="-debug" 383 kB
[ebuild  N    ] media-libs/mesa-7.0.2  USE="debug motif xcb -doc (-nptl) -pic" VIDEO_CARDS="i810 -mach64 -mga -none -r128 -radeon -s3virge -savage -sis (-sunffb) -tdfx -trident -via" 0 kB
[ebuild  N    ] x11-base/xorg-server-1.4.0.90-r3  USE="3dfx dmx dri hal ipv6 sdl xorg xprint -debug -kdrive -minimal (-nptl)" INPUT_DEVICES="evdev keyboard mouse synaptics -acecad -aiptek -calcomp -citron -digitaledge -dmc -dynapro -elo2300 -elographics -fpit -hyperpen -jamstudio -joystick -magellan -microtouch -mutouch -palmax -penmount -spaceorb -summa -tek4957 -ur98 -vmmouse -void -wacom" VIDEO_CARDS="apm fbdev glint i810 v4l vesa vga -amd -ark -chips -cirrus -cyrix -dummy -epson -fglrx -i128 -i740 (-impact) -imstt -mach64 -mga -neomagic (-newport) -nsc -nv -nvidia -r128 -radeon -rendition -s3 -s3virge -savage -siliconmotion -sis -sisusb (-sunbw2) (-suncg14) (-suncg3) (-suncg6) (-sunffb) (-sunleo) (-suntcx) -tdfx -tga -trident -tseng -vermilion -via -vmware -voodoo -xgi" 0 kB
[ebuild  N    ] x11-drivers/xf86-video-i810-2.2.1  USE="dri -debug" 0 kB

Total: 4 packages (4 reinstalls), Size of downloads: 383 kB
neobalam neoriddle #


then, reemerge these too (it's prefered to avoid unlink problems):

Code:
neobalam neoriddle # qlist -I -C x11-drivers/
x11-drivers/synaptics
x11-drivers/xf86-input-evdev
x11-drivers/xf86-input-keyboard
x11-drivers/xf86-input-mouse
x11-drivers/xf86-video-apm
x11-drivers/xf86-video-fbdev
x11-drivers/xf86-video-glint
x11-drivers/xf86-video-i810
x11-drivers/xf86-video-v4l
x11-drivers/xf86-video-vesa
x11-drivers/xf86-video-vga
neobalam neoriddle #


and that's all, then you can reboot and can see the changes:

Code:
neoriddle@neobalam ~ $ glxinfo | grep -i render
direct rendering: Yes
OpenGL renderer string: Mesa DRI Intel(R) 945GM 20061017 x86/MMX/SSE2
neoriddle@neobalam ~ $


Thank you!
Back to top
View user's profile Send private message
gi1242
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jul 2004
Posts: 146

PostPosted: Mon Mar 03, 2008 12:13 am    Post subject: Reply with quote

Damn! I just tried the same, and it did not work for me! When I upgraded, X crashed on startup, and froze my system. I had to downgrade to the 2.1.1 drivers again :(. The 2.1.1 drivers have a few issues with ACPI on my laptop, which is gone on the 2.2.1 driver.

But on the 2.2.1 driver I lose acceleration...

:(
Back to top
View user's profile Send private message
IsraelBuitronD
Guru
Guru


Joined: 24 Jun 2005
Posts: 343
Location: México

PostPosted: Mon Mar 03, 2008 12:55 am    Post subject: Reply with quote

ok, here I put all my configs and compare with yours

Code:
neobalam neoriddle # cat /etc/X11/xorg.conf
...
Section "Module"
        Load    "dri"
        Load    "glx"
EndSection
...
Section "Device"
        Identifier      "Intel Corporation Mobile Integrated Graphics Controller"
        Driver          "i810"
        BusID           "PCI:0:2:0"
EndSection

Section "Monitor"
        Identifier      "Generic Monitor"
        Option          "DPMS"
EndSection

Section "Screen"
        Identifier      "ScreenLCD"
        Device          "Intel Corporation Mobile Integrated Graphics Controller"
        Monitor         "Generic Monitor"
        DefaultDepth    24
        SubSection "Display"
                Depth           16
                Modes           "1280x800" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth           24
                Modes           "1280x800" "1024x768" "800x600" "640x480"
        EndSubSection
EndSection
...
Section "DRI"
        Mode    0666
EndSection

Section "Extensions"
        Option          "Composite"     "1"
EndSection
neobalam neoriddle # emerge -vp x11-libs/libdrm media-libs/mesa x11-base/xorg-server x11-drivers/xf86-video-i810 x11-drivers/synaptics x11-drivers/xf86-input-evdev x11-drivers/xf86-input-keyboard x11-drivers/xf86-input-mouse x11-drivers/xf86-video-apm x11-drivers/xf86-video-fbdev x11-drivers/xf86-video-glint x11-drivers/xf86-video-i810 x11-drivers/xf86-video-v4l x11-drivers/xf86-video-vesa x11-drivers/xf86-video-vga 915resolution

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] x11-libs/libdrm-2.3.0  USE="-debug" 383 kB
[ebuild   R   ] sys-apps/915resolution-0.5.3-r1  23 kB
[ebuild   R   ] media-libs/mesa-7.0.2  USE="debug motif xcb -doc (-nptl) -pic" VIDEO_CARDS="i810 -mach64 -mga -none -r128 -radeon -s3virge -savage -sis (-sunffb) -tdfx -trident -via" 0 kB
[ebuild   R   ] x11-base/xorg-server-1.4.0.90-r3  USE="3dfx dmx dri hal ipv6 sdl xorg xprint -debug -kdrive -minimal (-nptl)" INPUT_DEVICES="evdev keyboard mouse synaptics -acecad -aiptek -calcomp -citron -digitaledge -dmc -dynapro -elo2300 -elographics -fpit -hyperpen -jamstudio -joystick -magellan -microtouch -mutouch -palmax -penmount -spaceorb -summa -tek4957 -ur98 -vmmouse -void -wacom" VIDEO_CARDS="apm fbdev glint i810 v4l vesa vga -amd -ark -chips -cirrus -cyrix -dummy -epson -fglrx -i128 -i740 (-impact) -imstt -mach64 -mga -neomagic (-newport) -nsc -nv -nvidia -r128 -radeon -rendition -s3 -s3virge -savage -siliconmotion -sis -sisusb (-sunbw2) (-suncg14) (-suncg3) (-suncg6) (-sunffb) (-sunleo) (-suntcx) -tdfx -tga -trident -tseng -vermilion -via -vmware -voodoo -xgi" 0 kB
[ebuild   R   ] x11-drivers/xf86-input-keyboard-1.2.2  USE="-debug" 0 kB
[ebuild   R   ] x11-drivers/xf86-video-vesa-1.3.0  USE="-debug" 0 kB
[ebuild   R   ] x11-drivers/xf86-input-evdev-1.1.5-r1  USE="-debug" 0 kB
[ebuild   R   ] x11-drivers/xf86-video-vga-4.1.0  USE="-debug" 0 kB
[ebuild   R   ] x11-drivers/xf86-input-mouse-1.2.3  USE="-debug" 0 kB
[ebuild   R   ] x11-drivers/xf86-video-apm-1.1.1  USE="-debug" 0 kB
[ebuild   R   ] x11-drivers/xf86-video-fbdev-0.3.1  USE="-debug" 0 kB
[ebuild   R   ] x11-drivers/synaptics-0.14.6  0 kB
[ebuild   R   ] x11-drivers/xf86-video-i810-2.2.1  USE="dri -debug" 0 kB
[ebuild   R   ] x11-drivers/xf86-video-glint-1.1.1  USE="dri -debug" 0 kB
[ebuild   R   ] x11-drivers/xf86-video-v4l-0.1.1  USE="-debug" 0 kB

Total: 15 packages (15 reinstalls), Size of downloads: 405 kB
neobalam neoriddle # cat /etc/conf.d/915resolution
log="/var/log/915resolution"
replace="'5c 1280 800 32'"
neobalam neoriddle # cat /etc/portage/package.keywords
...
sys-apps/915resolution  ~x86
x11-drivers/xf86-video-i810
dev-libs/libx86   ~x86

# For libXrender
x11-proto/renderproto   ~x86
x11-libs/libXrender   ~x86

# For xorg-server
x11-drivers/xf86-input-keyboard   ~x86
x11-libs/xtrans   ~x86
x11-libs/pixman   ~x86
x11-base/xorg-server   ~x86
neobalam neoriddle # lspci -vv
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03)
        Subsystem: Dell Unknown device 01d7
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ >SERR- <PERR- INTx-
        Latency: 0
        Capabilities: [e0] Vendor Specific Information <?>
        Kernel driver in use: agpgart-intel

00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03) (prog-if 00 [VGA controller])
        Subsystem: Dell Unknown device 01d7
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0
        Interrupt: pin A routed to IRQ 16
        Region 0: Memory at eff00000 (32-bit, non-prefetchable) [size=512K]
        Region 1: I/O ports at eff8 [size=8]
        Region 2: Memory at d0000000 (32-bit, prefetchable) [size=256M]
        Region 3: Memory at efec0000 (32-bit, non-prefetchable) [size=256K]
        Capabilities: [90] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable-
                Address: 00000000  Data: 0000
        Capabilities: [d0] Power Management version 2
                Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)
        Subsystem: Dell Unknown device 01d7
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0
        Region 0: Memory at eff80000 (32-bit, non-prefetchable) [size=512K]
        Capabilities: [d0] Power Management version 2
                Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-
...
neobalam neoriddle #


If you want some info please tell me
Good luck!
Back to top
View user's profile Send private message
gi1242
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jul 2004
Posts: 146

PostPosted: Mon Mar 03, 2008 1:13 am    Post subject: Reply with quote

Ah. Looks like you have a 945. I have a 965GM. Due to other ACPI / wireless issues, I had to switch to a 2.6.24 (still ~x86) in Gentoo. Plus I did SMP=y for my dual core laptop.

Looks like one of these things is messing things up :(. I'm just going to wait 6 months for the next release, and hope it's fixed then. Thankfully my system is fully functional with the 2.1.1 i810 driver, with a few minor ACPI issues which I can work around using acpid.

Oh well. Glad to see that all the forum posts I sifted through at least helped you :).
Back to top
View user's profile Send private message
gi1242
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jul 2004
Posts: 146

PostPosted: Sat Mar 22, 2008 8:45 pm    Post subject: Reply with quote

gi1242 wrote:
Ah. Looks like you have a 945. I have a 965GM. Due to other ACPI / wireless issues, I had to switch to a 2.6.24 (still ~x86) in Gentoo. Plus I did SMP=y for my dual core laptop.

Looks like one of these things is messing things up :(.

I was wrong :). What caused the crash was the linuxwacom-0.7.8* drivers. Upgrading to 0.7.9 worked for me! I reported (and fixed it) on https://bugs.gentoo.org/show_bug.cgi?id=214233
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