LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-31-2009, 02:27 AM   #1
giri8
LQ Newbie
 
Registered: Jul 2009
Posts: 7

Rep: Reputation: 0
Enable DRI


Hi Guys,

I am trying to configure Direct Rendering on my PC, whatever i try i get direct renedering as "No".

I have RHEL 4, and this is what is available in my /etc/X11/xorg.conf file


"

# Xorg configuration created by system-config-display

Section "ServerLayout"
Identifier "single head configuration"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"

# RgbPath is the location of the RGB database. Note, this is the name of the
# file minus the extension (like ".txt" or ".db"). There is normally
# no need to change the default.
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "unix/:7100"
EndSection

Section "Module"
Load "dbe"
Load "extmod"
Load "fbdevhw"
Load "glx"
Load "record"
Load "freetype"
Load "type1"
Load "dri"
EndSection

Section "InputDevice"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
# Option "Xleds" "1 2 3"
# To disable the XKEYBOARD extension, uncomment XkbDisable.
# Option "XkbDisable"
# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults). For example, for a non-U.S.
# keyboard, you will probably want to use:
# Option "XkbModel" "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
# Option "XkbModel" "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
# Option "XkbLayout" "de"
# or:
# Option "XkbLayout" "de"
# Option "XkbVariant" "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
# Option "XkbOptions" "ctrl:swapcaps"
# Or if you just want both to be control, use:
# Option "XkbOptions" "ctrl:nocaps"
#
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "yes"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Samsung 15GLsi"
HorizSync 24.0 - 66.0
VertRefresh 50.0 - 100.0
Option "dpms"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "vesa"
VendorName "Videocard vendor"
BoardName "VESA driver (generic)"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 16
SubSection "Display"
Viewport 0 0
Depth 16
Modes "1280x1024" "1280x960" "1024x768" "800x600" "640x480"
EndSubSection
EndSection

Section "DRI"
Mode 0666
EndSection

"

I also have GL libraries in "/usr/X11R6/lib" folder.

What do i need to do to get it enabled? Can you guys help me out
 
Old 07-31-2009, 04:07 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
You'll never get direct rendering with a vesa driver. What is your graphics card and why aren't you using the driver that's appropriate for it? That would solve your problem I think.
cheers,
jdk
 
Old 07-31-2009, 04:26 AM   #3
giri8
LQ Newbie
 
Registered: Jul 2009
Posts: 7

Original Poster
Rep: Reputation: 0
I dont know how to configure the driver for my card,
can you please suggest me to get it configured.

If i run "lspci "
i get the following output :
00:02.0 VGA compatible controller: Intel Corporation: Unknown device 2972 (rev 02)
 
Old 07-31-2009, 04:45 AM   #4
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Have a look at the output of
Code:
lshw
Your system may want you to run that as root.
Do you know, for a fact, that your graphics card even supports 3D accleration? Is it a laptop? What make and model? Your really not providing much info here.
I would guess you need the i915, the i810 or the i830 driver but can't be sure until we know more about which card.
cheers,
jdk

Last edited by jdkaye; 07-31-2009 at 04:50 AM.
 
Old 07-31-2009, 04:53 AM   #5
giri8
LQ Newbie
 
Registered: Jul 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Sorry for not giving much informtion,

I am using a Desktop PC, its having Redhat Enterprise linux 4, 1GB RAM and Dual core processor.

When i ran lshw
i get following error:
bash: lshw: command not found

I am running it as root user.

The problem is lspci says unknown device and my driver is
generic vesa driver, as per xorg.conf file.

Can you help me out to resolve this and
get a proper driver for my card ?
 
Old 07-31-2009, 06:22 AM   #6
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Telling me that you have a Desktop PC is not very helpful. Did your computer come with specs? Does it have a brand name? I really can't help you at all with so little information. You really need to find out what graphics card you're using. Can you install the lshw package for RHEL?
jdk
 
Old 07-31-2009, 08:53 AM   #7
giri8
LQ Newbie
 
Registered: Jul 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Sure i shall install lshw and get back to u.

This is the output from lshw:

girishg
description: Computer
width: 32 bits
capabilities: smbios-2.4 dmi-2.4
configuration: boot=normal uuid=8C089396-74DB-11DB-A7F8-004095005280
*-core
description: Motherboard
product: D946GZIS
vendor: Intel Corporation
physical id: 0
version: AAD66165-302
serial: BTIS646001MH
slot: Base Board Chassis Location
*-cpu
description: CPU
product: Intel(R) Pentium(R) 4 CPU 3.00GHz
vendor: Intel Corp.
physical id: 0
bus info: cpu@0
version: 15.4.10
serial: 0000-0F4A-0000-0000-0000-0000
slot: LGA 775
size: 3GHz
capacity: 4GHz
width: 64 bits
clock: 200MHz
capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx x86-64 pni monitor ds_cpl est cid xtpr
configuration: id=0
*-cache:0
description: L1 cache
physical id: 1
slot: Unknown
size: 16KB
capacity: 16KB
capabilities: asynchronous internal write-back data
*-cache:1
description: L2 cache
physical id: 2
slot: Unknown
size: 2MB
capacity: 2MB
capabilities: asynchronous internal write-back unified
*-logicalcpu:0
description: Logical CPU
physical id: 0.1
width: 64 bits
capabilities: logical
*-logicalcpu:1
description: Logical CPU
physical id: 0.2
width: 64 bits
capabilities: logical
*-firmware
description: BIOS
vendor: Intel Corp.
physical id: 3
version: TS94610J.86A.0087.2007.1107.1049 (11/07/2007)
size: 64KB
capacity: 448KB
capabilities: pci upgrade shadowing cdboot bootselect edd int9keyboard int14serial int17printer int10video acpi usb zipboot biosbootspecification netboot
*-memory
description: System Memory
physical id: 13
slot: System board or motherboard
size: 2GB
*-bank:0
description: DIMM Synchronous 533 MHz (1.9 ns)
product: 0x4A4D33383851363433412D35202020202020
vendor: 0x7F4F000000000000
physical id: 0
serial: 0x00000000
slot: J6H1
size: 1GB
width: 64 bits
clock: 533MHz (1.9ns)
*-bank:1
description: DIMM [empty]
product: NO DIMM
vendor: NO DIMM
physical id: 1
serial: NO DIMM
slot: J6H2
*-bank:2
description: DIMM Synchronous 533 MHz (1.9 ns)
product: 0x4A4D33383851363433412D35202020202020
vendor: 0x7F4F000000000000
physical id: 2
serial: 0x00000000
slot: J6J1
size: 1GB
width: 64 bits
clock: 533MHz (1.9ns)
*-bank:3
description: DIMM [empty]
product: NO DIMM
vendor: NO DIMM
physical id: 3
serial: NO DIMM
slot: J6J2
*-pci
description: Host bridge
product: 82946GZ/PL/GL Memory Controller Hub
vendor: Intel Corporation
physical id: 100
bus info: pci@0000:00:00.0
version: 02
width: 32 bits
clock: 33MHz
*-display
description: VGA compatible controller
product: 82946GZ/GL Integrated Graphics Controller
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 02
width: 64 bits
clock: 33MHz
capabilities: msi pm vga bus_master cap_list
configuration: latency=0
*-multimedia UNCLAIMED
description: Audio device
product: 82801G (ICH7 Family) High Definition Audio Controller
vendor: Intel Corporation
physical id: 1b
bus info: pci@0000:00:1b.0
version: 01
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: latency=0
*-pci:0
description: PCI bridge
product: 82801G (ICH7 Family) PCI Express Port 1
vendor: Intel Corporation
physical id: 1c
bus info: pci@0000:00:1c.0
version: 01
width: 32 bits
clock: 33MHz
capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
*-pci:1
description: PCI bridge
product: 82801G (ICH7 Family) PCI Express Port 3
vendor: Intel Corporation
physical id: 1c.2
bus info: pci@0000:00:1c.2
version: 01
width: 32 bits
clock: 33MHz
capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
*-pci:2
description: PCI bridge
product: 82801G (ICH7 Family) PCI Express Port 4
vendor: Intel Corporation
physical id: 1c.3
bus info: pci@0000:00:1c.3
version: 01
width: 32 bits
clock: 33MHz
capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
*-usb:0
description: USB Controller
product: 82801G (ICH7 Family) USB UHCI #1
vendor: Intel Corporation
physical id: 1d
bus info: pci@0000:00:1d.0
version: 01
width: 32 bits
clock: 33MHz
capabilities: uhci bus_master
configuration: latency=0
*-usbhost
product: UHCI Host Controller
vendor: Linux 2.6.9-22.ELsmp uhci_hcd
physical id: 1
bus info: usb@2
logical name: usb2
version: 2.06
capabilities: usb-1.10
configuration: driver=hub maxpower=0mA slots=2 speed=12.0MB/s
*-usb:1
description: USB Controller
product: 82801G (ICH7 Family) USB UHCI #2
vendor: Intel Corporation
physical id: 1d.1
bus info: pci@0000:00:1d.1
version: 01
width: 32 bits
clock: 33MHz
capabilities: uhci bus_master
configuration: latency=0
*-usbhost
product: UHCI Host Controller
vendor: Linux 2.6.9-22.ELsmp uhci_hcd
physical id: 1
bus info: usb@3
logical name: usb3
version: 2.06
capabilities: usb-1.10
configuration: driver=hub maxpower=0mA slots=2 speed=12.0MB/s
*-usb:2
description: USB Controller
product: 82801G (ICH7 Family) USB UHCI #3
vendor: Intel Corporation
physical id: 1d.2
bus info: pci@0000:00:1d.2
version: 01
width: 32 bits
clock: 33MHz
capabilities: uhci bus_master
configuration: latency=0
*-usbhost
product: UHCI Host Controller
vendor: Linux 2.6.9-22.ELsmp uhci_hcd
physical id: 1
bus info: usb@4
logical name: usb4
version: 2.06
capabilities: usb-1.10
configuration: driver=hub maxpower=0mA slots=2 speed=12.0MB/s
*-usb:3
description: USB Controller
product: 82801G (ICH7 Family) USB UHCI #4
vendor: Intel Corporation
physical id: 1d.3
bus info: pci@0000:00:1d.3
version: 01
width: 32 bits
clock: 33MHz
capabilities: uhci bus_master
configuration: latency=0
*-usbhost
product: UHCI Host Controller
vendor: Linux 2.6.9-22.ELsmp uhci_hcd
physical id: 1
bus info: usb@5
logical name: usb5
version: 2.06
capabilities: usb-1.10
configuration: driver=hub maxpower=0mA slots=2 speed=12.0MB/s
*-usb:4
description: USB Controller
product: 82801G (ICH7 Family) USB2 EHCI Controller
vendor: Intel Corporation
physical id: 1d.7
bus info: pci@0000:00:1d.7
version: 01
width: 32 bits
clock: 33MHz
capabilities: pm debug ehci bus_master cap_list
configuration: latency=0
*-usbhost
product: EHCI Host Controller
vendor: Linux 2.6.9-22.ELsmp ehci_hcd
physical id: 1
bus info: usb@1
logical name: usb1
version: 2.06
capabilities: usb-2.00
configuration: driver=hub maxpower=0mA slots=8 speed=480.0MB/s
*-pci:3
description: PCI bridge
product: 82801 PCI Bridge
vendor: Intel Corporation
physical id: 1e
bus info: pci@0000:00:1e.0
version: e1
width: 32 bits
clock: 33MHz
capabilities: pci subtractive_decode bus_master cap_list
*-network
description: Ethernet interface
product: PRO/100 VE Network Connection
vendor: Intel Corporation
physical id: 8
bus info: pci@0000:04:08.0
logical name: eth0
version: 01
serial: 00:19:d1:1a:37:4b
size: 100MB/s
capacity: 100MB/s
width: 32 bits
clock: 33MHz
capabilities: pm bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e100 driverversion=3.4.8-k2-NAPI duplex=full firmware=N/A ip=192.168.1.114 latency=32 link=yes maxlatency=56 mingnt=8 multicast=yes port=MII speed=100MB/s
*-isa
description: ISA bridge
product: 82801GB/GR (ICH7 Family) LPC Interface Bridge
vendor: Intel Corporation
physical id: 1f
bus info: pci@0000:00:1f.0
version: 01
width: 32 bits
clock: 33MHz
capabilities: isa bus_master cap_list
configuration: latency=0
*-ide:0 UNCLAIMED
description: IDE interface
product: 82801G (ICH7 Family) IDE Controller
vendor: Intel Corporation
physical id: 1f.1
bus info: pci@0000:00:1f.1
version: 01
width: 32 bits
clock: 33MHz
capabilities: ide bus_master
configuration: latency=0
*-ide:1 UNCLAIMED
description: IDE interface
product: 82801GB/GR/GH (ICH7 Family) Serial ATA Storage Controllers cc=IDE
vendor: Intel Corporation
physical id: 1f.2
bus info: pci@0000:00:1f.2
version: 01
width: 32 bits
clock: 66MHz
capabilities: ide pm bus_master cap_list
configuration: latency=0
*-serial UNCLAIMED
description: SMBus
product: 82801G (ICH7 Family) SMBus Controller
vendor: Intel Corporation
physical id: 1f.3
bus info: pci@0000:00:1f.3
version: 01
width: 32 bits
clock: 33MHz
configuration: latency=0

Last edited by giri8; 07-31-2009 at 08:58 AM.
 
Old 07-31-2009, 09:51 AM   #8
wr3ck3d
Member
 
Registered: Dec 2002
Location: IL
Distribution: NetBSD, Slackware, Gentoo, Debian, FreeBSD
Posts: 444

Rep: Reputation: 31
I think you need to go back to the basics and learn a little more about computers. Proc (p4 with hyperthreading, not a dual core), chipset, video card, etc is what most people know months before they even buy it. Or if you happen to get a computer on the fly, working on something that isn't yours, that is the first thing you do.

82946GZ/GL Integrated Graphics Controller

There's the info you need. You will find plenty of tutorials on google for getting DRI to work with onboard intel video. But asking a forum how to get hardware acceleration to work on your video card, but don't know what kind of video card you have is crazy. It's like calling a mechanic and telling him you have a black car with 2 doors that isn't working.
 
Old 07-31-2009, 10:06 AM   #9
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
I agree with wr3ck3d entirely. lshw has identified your graphics card as the Intel one he mentions in the previous post. Please note it down somewhere and don't forget it.
Have a look here:
http://www.netsteps.ch/tutorials/lin...6GZ_widescreen
cheers,
jdk
 
Old 08-01-2009, 01:07 AM   #10
giri8
LQ Newbie
 
Registered: Jul 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks jdk, for the reply ...


wr3ck3d my friend, thanks for your suggestion, everyone has a starting point, i was a Windows user and new to Linux, you cant ask a baby to swim the day its out :-)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Video is choppy; need to enable DRI - HOW??? cjtinant Ubuntu 3 04-18-2008 02:01 PM
how to enable DRI? leedude Linux - Hardware 0 12-11-2007 01:25 AM
Enable DRI on ATI Radeon 9250 voidance Slackware 5 08-23-2006 08:41 PM
Enable DRI on i810 stormtracknole Slackware 29 06-07-2006 01:35 PM
Can't enable DRI Radeon 7000 AGP slackwarefan Slackware 22 04-05-2005 04:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration