Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Documentation, Tips & Tricks
  • Search

Getting DRI working with Intel Sonoma (i915GM) chipset

Unofficial documentation for various parts of Gentoo Linux. Note: This is not a support forum.
Post Reply
Advanced search
177 posts
  • Page 3 of 8
    • Jump to page:
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 8
  • Next
Author
Message
Tr1cH
n00b
n00b
Posts: 29
Joined: Thu May 12, 2005 9:10 pm

  • Quote

Post by Tr1cH » Tue Aug 23, 2005 6:36 pm

Hi, I have xorg 6.8.99.15 and vanilla-src-2.6.12.5 but I cant get something under /dev/dri (there's no card0 or anything), the directory appeared when i started xorg for the first time. I want to know what are the options that I have to activate in the kernel.

I have this:

character devices --->
<*> /dev/agpgart (AGP support)
<*> Intel 440LX/.../I8**/... chipset support
<*> Direct Rendering Manager (...)
<M> Intel I810
<M> Intel 830M, 845G, ...
<M> i915 driver

Graphics support --->
[*] VESA VGA graphics support
<M> Intel 810/815 support

Im loading i915 module at boot, but i dont know what to activate as a module or "build in". :?
I applied the patch to xorg succefully and I use i810 module in my xorg.conf, load dri, and the 666 trick for the dri (for permission purposes)

But I dont know how you get something under /dev/dri because witout it, dri doesnt works under xorg.
Maybe you can add it before your how/to on how to patch xorg for i915.

and of course, I have the intel 915GM

thanks alot :D
Top
Tr1cH
n00b
n00b
Posts: 29
Joined: Thu May 12, 2005 9:10 pm

  • Quote

Post by Tr1cH » Tue Aug 23, 2005 6:54 pm

duh :oops:
it's working with this config... loll
sorry, i'm a little bit confused :oops:

tanks for the tutorial, i have 1525 fps
Top
VinzC
Watchman
Watchman
User avatar
Posts: 5100
Joined: Sat Apr 17, 2004 1:51 pm
Location: Dark side of the mood

  • Quote

Post by VinzC » Wed Aug 24, 2005 10:10 am

Tr1cH wrote:duh :oops:
it's working with this config... loll
sorry, i'm a little bit confused :oops:

tanks for the tutorial, i have 1525 fps
(tapping gently on the back) Tsss tsss tsss... ;)
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Top
BigBaaadBob
Guru
Guru
User avatar
Posts: 342
Joined: Sat Apr 19, 2003 4:43 pm
Location: Swampscott, MA USA

  • Quote

Post by BigBaaadBob » Wed Aug 24, 2005 8:43 pm

HP DV4150. Glxgears before: 580, after 1180. I was hoping for better, but I'll take what I can get.
Top
Tr1cH
n00b
n00b
Posts: 29
Joined: Thu May 12, 2005 9:10 pm

  • Quote

Post by Tr1cH » Thu Aug 25, 2005 4:01 pm

Dell latitude d610
Pentium m 760 2ghz

before: around 700
after: around 1500

EDIT:

by the way...
can you change:

Code: Select all

echo "=xorg-x11-6.8.99.15-r1 ~x86" >> /etc/portage.package.keyword
to

Code: Select all

echo "=xorg-x11-6.8.99.15-r1 ~x86" >> /etc/portage/package.keyword
:wink:
Top
Tr1cH
n00b
n00b
Posts: 29
Joined: Thu May 12, 2005 9:10 pm

  • Quote

Post by Tr1cH » Thu Aug 25, 2005 4:45 pm

When I play a movie in xine with opengl, the color are ugly
and when I try to play americas army, the color are ugly too...
is it related to this patch? maybe that dri still not have enough memory to work proprely. :?
Top
VinzC
Watchman
Watchman
User avatar
Posts: 5100
Joined: Sat Apr 17, 2004 1:51 pm
Location: Dark side of the mood

  • Quote

Post by VinzC » Thu Aug 25, 2005 6:22 pm

BigBaaadBob wrote:HP DV4150. Glxgears before: 580, after 1180. I was hoping for better, but I'll take what I can get.
Well, after all this is more than 100% increase and I got 50%!... What do you mean by better?
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Top
VinzC
Watchman
Watchman
User avatar
Posts: 5100
Joined: Sat Apr 17, 2004 1:51 pm
Location: Dark side of the mood

  • Quote

Post by VinzC » Thu Aug 25, 2005 6:24 pm

Tr1cH wrote:Dell latitude d610
Pentium m 760 2ghz

before: around 700
after: around 1500
That's not so bad :)
Tr1cH wrote:EDIT:

by the way...
can you change:

Code: Select all

echo "=xorg-x11-6.8.99.15-r1 ~x86" >> /etc/portage.package.keyword
to

Code: Select all

echo "=xorg-x11-6.8.99.15-r1 ~x86" >> /etc/portage/package.keyword
:wink:
Woops! done. Thanks.
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Top
VinzC
Watchman
Watchman
User avatar
Posts: 5100
Joined: Sat Apr 17, 2004 1:51 pm
Location: Dark side of the mood

  • Quote

Post by VinzC » Thu Aug 25, 2005 6:25 pm

Tr1cH wrote:When I play a movie in xine with opengl, the color are ugly
and when I try to play americas army, the color are ugly too...
is it related to this patch? maybe that dri still not have enough memory to work proprely. :?
You might want to tell XOrg the amount of RAM must be reserved for the video card. It also depends on the resolution and color depth.
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Top
seppelrockt
Guru
Guru
Posts: 423
Joined: Fri May 14, 2004 8:06 pm

  • Quote

Post by seppelrockt » Fri Aug 26, 2005 7:30 pm

VinzC wrote:
Tr1cH wrote:When I play a movie in xine with opengl, the color are ugly
and when I try to play americas army, the color are ugly too...
is it related to this patch? maybe that dri still not have enough memory to work proprely. :?
You might want to tell XOrg the amount of RAM must be reserved for the video card. It also depends on the resolution and color depth.
As I already wrote I had this color mess too with 16bit when I wanted to play Neverwinter Nights. I checked xine DVD playback with xine + opengl now and indeed it shows bad colors. Using xv in xine shows the DVD just fine (so I never realized this problem before). So maybe yes, one should inform / ask the xorg people if they know what's wrong with opengl here.
Top
BigBaaadBob
Guru
Guru
User avatar
Posts: 342
Joined: Sat Apr 19, 2003 4:43 pm
Location: Swampscott, MA USA

  • Quote

Post by BigBaaadBob » Fri Aug 26, 2005 11:04 pm

VinzC wrote:Well, after all this is more than 100% increase and I got 50%!... What do you mean by better?
I was hoping for about 1500 which is what I would expect from the chipset/specs... But I'm not complaining! :)
Top
nuxman
n00b
n00b
User avatar
Posts: 17
Joined: Wed Feb 04, 2004 8:20 pm
Location: Porto Velho/Brasil
Contact:
Contact nuxman
Website

I don't apllied this patch

  • Quote

Post by nuxman » Fri Sep 02, 2005 3:35 pm

i need help, i have a toshiba m45 my video card i915g, i want to apply this patch but i have some erros below

Code: Select all

patching file xorg-x11-6.8.99.15.ebuild
Hunk #1 FAILED at 33.
Hunk #2 FAILED at 491.
2 out of 2 hunks FAILED -- saving rejects to file xorg-x11-6.8.99.15.ebuild.rej


somebody help me :oops: !!! but i copied and don't work !!! how do this?? sorry my english !!!
Top
thomasa88
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 143
Joined: Wed Apr 13, 2005 6:58 pm
Location: Sweden

  • Quote

Post by thomasa88 » Fri Sep 02, 2005 4:16 pm

one way is that you open the patch and look at what is changed and change the file manually ;)
- thomasa88
Top
seppelrockt
Guru
Guru
Posts: 423
Joined: Fri May 14, 2004 8:06 pm

Re: I don't apllied this patch

  • Quote

Post by seppelrockt » Sat Sep 03, 2005 4:48 am

nuxman wrote:i need help, i have a toshiba m45 my video card i915g, i want to apply this patch but i have some erros below

Code: Select all

patching file xorg-x11-6.8.99.15.ebuild
Hunk #1 FAILED at 33.
Hunk #2 FAILED at 491.
2 out of 2 hunks FAILED -- saving rejects to file xorg-x11-6.8.99.15.ebuild.rej


somebody help me :oops: !!! but i copied and don't work !!! how do this?? sorry my english !!!
The patch from the thread here will be massed up if you copy & paste cause all the tabulators will be transformed single spaces (sorry, don't know the English word for "Leerzeichen"). I have posted the link to the patches on my FTP somewere - try this ones!
Top
gentood
Apprentice
Apprentice
User avatar
Posts: 157
Joined: Tue Mar 16, 2004 12:36 pm
Location: Sweden

  • Quote

Post by gentood » Sat Sep 03, 2005 4:15 pm

Alright...

I have hp dv4060 and I tried this guide but unfortunately unsuccessful..

my make.conf:

Code: Select all

 cat /etc/make.conf
# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example
CFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -falign-functions=64 -pipe -mmmx -msse -msse2"
#CFLAGS="-march=pentium-m -fomit-frame-pointer -msse -mmmx"

CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden"
MAKEOPTS="-j2"
USE="alsa oss dvd dvdr cdr feh imagemagick mplayer win32codecs mmx mmx2 sse sse2 qt gnome -kde gtk gtk2"
GENTOO_MIRRORS="http://ds.thn.htu.se/linux/gentoo/"
CONSOLE_FONT="lat0-16"

XSESSION="fluxbox"
VIDEOCARDS="i915"

#AUTOCLEAN="yes"
#PORTAGE_NICENESS=3

LDFLAGS="-Wl,-O1"
# Wl, --enable-new-dtags -Wl, --sort-common -s"

PORT_DIR=/usr/portage
PORTDIR_OVERLAY="/usr/local/portage"
PORT_LOGDIR=/var/log/portage

Code: Select all

# cd /usr/local/portage/x11-base/xorg-x11/
(none) xorg-x11 # ls
Manifest  files  xorg-x11-6.8.99.15-r1.ebuild
(none) xorg-x11 # ls -lR 
.:
total 60
-rw-rw-r--  1 root portage   213 Sep  4 04:08 Manifest
drwxr-xr-x  2 root root      136 Sep  4 04:08 files
-rw-r--r--  1 root root    54202 Sep  4 04:07 xorg-x11-6.8.99.15-r1.ebuild

./files:
total 8
-rw-rw-r--  1 root portage 516 Sep  4 04:08 digest-xorg-x11-6.8.99.15-r1
-rw-r--r--  1 root root    715 Sep  4 04:07 dri-lnx_agp.patch
This is what I did:
I downloaded the xorg-x11-6.8.99.15-r1 and the dri-lnx_agp.patch from this forum and didnt actually make them myself since I always got some damned error..
I copied them to the correct location as you can se in the code above.

When I try this:

Code: Select all

 xorg-x11 # USE="dri-patch" emerge -av xorg-x11
--- Invalid atom in /etc/portage/package.keywords: =xorg-x11-6.8.99.15-r1

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] x11-base/xorg-x11-6.8.2-r2  -3dfx -3dnow +bitmap-fonts -cjk -debug -dlloader -dmx -doc -font-server -insecure-drivers +ipv6 -minimal +mmx +nls -nocxx +opengl +pam -sdk +sse -static +truetype-fonts +type1-fonts (-uclibc) -xprint +xv 0 kB 

Total size of downloads: 0 kB

Do you want me to merge these packages? [Yes/No] 
Which is wrong...

I was a little confused also, since I had a package.keywords and not a package.keyword as in the guide.. so I renamed mine to package.keyword:

Code: Select all

xorg-x11 # cat /etc/portage/package.keyword 
~sys-devel/gcc-3.4.4 ~x86
sys-devel/gcc-config ~x86
sys-libs/libstdc++-v3 ~x86
sys-libs/glibc ~x86

=xorg-x11-6.8.99.15-r1 ~x86
please help... I am going insane..
Top
gentood
Apprentice
Apprentice
User avatar
Posts: 157
Joined: Tue Mar 16, 2004 12:36 pm
Location: Sweden

  • Quote

Post by gentood » Sat Sep 03, 2005 5:02 pm

just realized my miss.. how tha hell do I install xorg 6.8.99????

I have added x11-base/xorg-x11 ~x86 to package.keywords but no result...
Top
kottlettstanze
Tux's lil' helper
Tux's lil' helper
Posts: 113
Joined: Tue Apr 20, 2004 5:42 pm

  • Quote

Post by kottlettstanze » Sat Sep 03, 2005 6:58 pm

It is not in testing/unstable (~), but masked (-). You will need to put the full package name into a line in /etc/portage/package.unmask.
More info: http://gentoo-wiki.com/Masked
Top
gentood
Apprentice
Apprentice
User avatar
Posts: 157
Joined: Tue Mar 16, 2004 12:36 pm
Location: Sweden

  • Quote

Post by gentood » Sat Sep 03, 2005 7:06 pm

alright.. working now. will add the glxgears results when finished compiling[/code], right now its around 700 fps

cheers
Top
gentood
Apprentice
Apprentice
User avatar
Posts: 157
Joined: Tue Mar 16, 2004 12:36 pm
Location: Sweden

  • Quote

Post by gentood » Sun Sep 04, 2005 8:44 pm

alright, according to the glxinfo I get direct rendering.. but the glxgears result is silly.. jumped from 730-850 fps.. I know it should be atleast 1600..
ontop of that, now I cant play xjump for some reason, it goes super slow..

damn i810 driver.. its totally broken.. they really should make better support for the i810 driver in xorg..
Top
kottlettstanze
Tux's lil' helper
Tux's lil' helper
Posts: 113
Joined: Tue Apr 20, 2004 5:42 pm

  • Quote

Post by kottlettstanze » Sun Sep 04, 2005 10:13 pm

Are you sure, you are running it with 16bit color depth?
Top
allex87
Apprentice
Apprentice
User avatar
Posts: 154
Joined: Sat Aug 02, 2003 2:22 pm
Location: Ontario, Canada

  • Quote

Post by allex87 » Tue Sep 06, 2005 2:03 am

Remember, to get full acceleration, use 16-bit colour mode. NOT 24!

i810 driver does not support acceleration (well?) at 24 bit, only at 16.

I run at 16, and I get ~1100-1200 fps from glxgears.

I am running nitro-sources 2.6.12-nitro5 xorg-6.8.9.whatever, the latest one in portage, and latest (as of last night) enlightenment dr17 cvs... to give you an idea of the stuff in the background.
Top
VinzC
Watchman
Watchman
User avatar
Posts: 5100
Joined: Sat Apr 17, 2004 1:51 pm
Location: Dark side of the mood

Re: I don't apllied this patch

  • Quote

Post by VinzC » Tue Sep 06, 2005 5:16 am

nuxman wrote:i need help, i have a toshiba m45 my video card i915g, i want to apply this patch but i have some erros below

Code: Select all

patching file xorg-x11-6.8.99.15.ebuild
Hunk #1 FAILED at 33.
Hunk #2 FAILED at 491.
2 out of 2 hunks FAILED -- saving rejects to file xorg-x11-6.8.99.15.ebuild.rej


somebody help me :oops: !!! but i copied and don't work !!! how do this?? sorry my english !!!
Follow seppelrockt's advice. Remember:
VinzC wrote:Note: You will be creating patches from scratch. Be careful to replace indent spaces with tabs since this is a standard for ebuild, especially. If you don't replace spaces with tabs, patch may fail with an error message like:

Code: Select all

Code:
patching file xorg-x11-6.8.99.15.ebuild
Hunk #1 FAILED at 33.
Hunk #2 FAILED at 491.
2 out of 2 hunks FAILED -- saving rejects to file xorg-x11-6.8.99.15.ebuild.rej
@gentood:
The file /etc/portage/package.keyword is a typo error (my mistake :oops:). It is of course Gentoo's /etc/portage/package.keywords instead.
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Top
meulie
l33t
l33t
User avatar
Posts: 845
Joined: Tue Jun 17, 2003 12:07 pm
Location: a Dutchman living in Norway
Contact:
Contact meulie
Website

  • Quote

Post by meulie » Tue Sep 06, 2005 7:22 am

allex87 wrote:Remember, to get full acceleration, use 16-bit colour mode. NOT 24!

i810 driver does not support acceleration (well?) at 24 bit, only at 16.
Not always... On my Compaq nx6110 I get a higher glxgears speed on 24 bit than on 16 bit... Only about 8% faster, but still... 8)
Greetz,
Evert Meulie
Top
VinzC
Watchman
Watchman
User avatar
Posts: 5100
Joined: Sat Apr 17, 2004 1:51 pm
Location: Dark side of the mood

  • Quote

Post by VinzC » Tue Sep 06, 2005 6:08 pm

meulie wrote:
allex87 wrote:...
i810 driver does not support acceleration (well?) at 24 bit, only at 16.
Not always... On my Compaq nx6110 I get a higher glxgears speed on 24 bit than on 16 bit... Only about 8% faster, but still... 8)
... which could mean the implementation of the i915 chipset (as far as the video is concerned) is better on Compaq/HP laptops than on Dell's...
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Top
meulie
l33t
l33t
User avatar
Posts: 845
Joined: Tue Jun 17, 2003 12:07 pm
Location: a Dutchman living in Norway
Contact:
Contact meulie
Website

  • Quote

Post by meulie » Tue Sep 06, 2005 6:12 pm

But the problem I do still have is that I get a max of around 550 with glxgears. Shouldn't I be able to get a bit more...?
Greetz,
Evert Meulie
Top
Post Reply

177 posts
  • Page 3 of 8
    • Jump to page:
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 8
  • Next

Return to “Documentation, Tips & Tricks”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy