LinuxQuestions.org
Review your favorite Linux distribution.
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 01-12-2006, 03:08 AM   #1
michal017
Member
 
Registered: Jan 2004
Location: EU
Distribution: Debian
Posts: 90

Rep: Reputation: 15
Xorg 2D hardware acceleration for Intel 865G video card


I have Intel 865G video card and now I'm trying out the xcompmgr and window transparency. When making a window transparent, moving it gets really slow.. I don't know whether 2D hardware acceleration is on or off for me, i.e. whether it should be that slow or not.. Is there a way to find out?

I am using Xorg 6.9.0 from Debian unstable.
Agp kernel configuration is:
CONFIG_AGP=y
CONFIG_AGP_INTEL=y
CONFIG_DRM=y
CONFIG_DRM_I830=y

I am using i810 module for Xorg, kernel 2.6.15. Direct rendering is off according to glxinfo.

Thanks for your help..
 
Old 01-12-2006, 09:27 AM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
I'm using a 855GM with xorg 6.9 on unstable with transparency (from experimental, I think you also got it there right?)

Can you try this:

CONFIG_DRM=m
CONFIG_DRM_I830=m

I also have CONFIG_DRM_i915 but I think it is causing me some problem (it is this one that is listed now in my lsmod)

You need a DRI section

Code:
Section "DRI"
        Mode    0666
EndSection
and

Code:
Section "Device"
        Identifier      "Video générique"
        Driver          "i810"
        BusID           "PCI:00:02:0"
        Videoram        64000
EndSection
Here you should have 3D acceleration (I don't know for 2D but I think it uses 3D accel). I have problems after suspending and some screensavers don't run properly... detail..
To check it:
glxinfo | grep rendering

then I guess you have the Composite line in xorg.conf
check it is loaded:
type xdpyinfo | grep Composite

and then
xcompmgr -c&
transset

and tweak

Well I'm not completely happy with it (I have KDE3.5), it still has a few bugs (experimental..) but it's a nice thing

Tell me if you manage to do it.
 
Old 01-13-2006, 12:56 AM   #3
michal017
Member
 
Registered: Jan 2004
Location: EU
Distribution: Debian
Posts: 90

Original Poster
Rep: Reputation: 15
First, thanks for your response and help..
In the meantime I have managed to turn on direct rendering - the problem was I did not have the appropriate software installed and this page http://dri.freedesktop.org/wiki/DriTroubleshooting helped me a lot, especially the 'Userspace setup' part.

Now, the problem here is that even with direct rendering, if I set a window (Firefox, mrxvt, etc.) being transparent, when I move it around the desktop it's still as slow as without direct rendering, plus consuming the same CPU as before (using gkrellm to monitor the CPU usage).. Is that normal?

Thanks..
 
Old 01-13-2006, 04:17 AM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Strange that you have to use something from freedesktop.
I only use my kernel and xorg.

What did you download exactly?

My glxgears gives me 1000/1200. Same for you?

For me its pretty fast. Little flickering when moving windows from one side to other, I mean its not *completely* smooth.
and my cpu is ok

You did use xcompmgr and transset from experimental?

Did you check your xorg log?
Code:
egrep "\((WW|EE)\)" /var/log/Xorg.0.log
the rest I did it like this:
Check in xdpyinfo you have Composite
With KDE 3.5, you go in Window behaviour in Kcontrol and enable translucidity
then I take the line I found on the net:
Code:
xcompmgr -cCfF -r7 -o.65 -l-10 -t-8 -D7&
And then transset to make a window transparent
Code:
transset
Btw, using my configuration (kernel and xorg only) you NEED i915, I tried yesterday and lost DRI.

edit:
firefox+composite+flash makes firefox crash.
Either disable flash or composite.
I have made a post in Debian forum

Last edited by nx5000; 01-13-2006 at 04:22 AM.
 
Old 01-13-2006, 07:31 AM   #5
michal017
Member
 
Registered: Jan 2004
Location: EU
Distribution: Debian
Posts: 90

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by nx5000
Strange that you have to use something from freedesktop.
I only use my kernel and xorg.
Nope, I just searched the freedesktop for some troubleshooting, of course I downloaded stuff from Debian repository.. I did not have the i915_dri.so in X.org, that's why it was not working

Quote:
What did you download exactly?

My glxgears gives me 1000/1200. Same for you?
Nope, just about 770 fps

Quote:
For me its pretty fast. Little flickering when moving windows from one side to other, I mean its not *completely* smooth.
and my cpu is ok

You did use xcompmgr and transset from experimental?
yes

Quote:

Did you check your xorg log?
Code:
egrep "\((WW|EE)\)" /var/log/Xorg.0.log
Gives me this:
Code:
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(WW) Open ACPI failed (/proc/acpi/event) (No such file or directory)
(WW) Ignoring request to load module GLcore
(WW) Ignoring request to load module speedo
*(WW) (1920x1440,Generic Monitor) mode clock 297MHz exceeds DDC maximum 260MHz
(WW) (1920x1440,Generic Monitor) mode clock 341.35MHz exceeds DDC maximum 260MHz
(WW) I810(0): Extended BIOS function 0x5f05 not supported.
(WW) I810(0): PGTBL_ER is 0x00000029
(WW) I810(0): Extended BIOS function 0x5f05 not supported.
(WW) I810(0): Extended BIOS function 0x5f28 not supported.
Quote:

the rest I did it like this:
Check in xdpyinfo you have Composite
With KDE 3.5, you go in Window behaviour in Kcontrol and enable translucidity
then I take the line I found on the net:
Code:
xcompmgr -cCfF -r7 -o.65 -l-10 -t-8 -D7&
And then transset to make a window transparent
Code:
transset
Btw, using my configuration (kernel and xorg only) you NEED i915, I tried yesterday and lost DRI.
You need i915 where? In the kernel? Because I switched back to i830, I will try with i915 (CONFIG_DRM_I915).

Quote:
edit:
firefox+composite+flash makes firefox crash.
Either disable flash or composite.
I have made a post in Debian forum
 
Old 01-13-2006, 09:01 AM   #6
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Quote:
Originally Posted by michal017
Nope, I just searched the freedesktop for some troubleshooting, of course I downloaded stuff from Debian repository.. I did not have the i915_dri.so in X.org, that's why it was not working
Ah interesting they have the xorg module for i915!
As you have seen in my xorg.conf, i use i810 (i810_drv.so)

Quote:

Gives me this:
Code:
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(WW) Open ACPI failed (/proc/acpi/event) (No such file or directory)
(WW) Ignoring request to load module GLcore
(WW) Ignoring request to load module speedo
*(WW) (1920x1440,Generic Monitor) mode clock 297MHz exceeds DDC maximum 260MHz
(WW) (1920x1440,Generic Monitor) mode clock 341.35MHz exceeds DDC maximum 260MHz
(WW) I810(0): Extended BIOS function 0x5f05 not supported.
(WW) I810(0): PGTBL_ER is 0x00000029
(WW) I810(0): Extended BIOS function 0x5f05 not supported.
(WW) I810(0): Extended BIOS function 0x5f28 not supported.
Seems good for me, so you have the dri using i915 xorg driver, while i use the i810 driver, your solution is maybe better!?

Quote:
You need i915 where? In the kernel? Because I switched back to i830, I will try with i915 (CONFIG_DRM_I915).
Yes, I need it in the kernel.

Your 600fps is not normal .
I bet glxinfo gives
direct rendering:No

?

its a bit confusing, I had some issues about it and was very happy when this damned thing worked I will regive you my working configuration, you should try it and then you probably will get a better one.

xorg:
see beginning of post
kernel:
CONFIG_DRM=m
CONFIG_DRM_I830=m
CONFIG_DRM_I915=m

Then in linux, lsmod gives:
module used by
i915 1
drm 2 i915

Then check glxinfo.

Sorry if it does'nt help you more
Good luck
 
Old 01-13-2006, 09:58 AM   #7
michal017
Member
 
Registered: Jan 2004
Location: EU
Distribution: Debian
Posts: 90

Original Poster
Rep: Reputation: 15
Actually I use i810 in xorg:

Code:
Section "Device"
        Identifier      "Generic Video Card"
        Driver          "i810"
#       Driver          "i915"

# option in case of problem
#       Option          "NoAccel" "True"
#       Option          "VBERestore"
EndSection
but the log says:

Code:
(II) I810(0): [drm] created "i915" driver at busid "pci:0000:00:02.0"
I will recompile kernel and retest.. Thanks for now..
Oh, and glxinfo gives:

Code:
direct rendering: Yes
 
Old 01-13-2006, 10:09 AM   #8
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Quote:
Code:
(II) I810(0): [drm] created "i915" driver at busid "pci:0000:00:02.0"
I will recompile kernel and retest.. Thanks for now..
Oh, and glxinfo gives:

Code:
direct rendering: Yes
Same for me:

Code:
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 9, (OK)
drmOpenByBusid: drmOpenMinor returns 9
drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0
(II) I810(0): [drm] loaded kernel module for "i915" driver
(II) I810(0): [drm] DRM interface version 1.2
(II) I810(0): [drm] created "i915" driver at busid "pci:0000:00:02.0"
So xorg module i810 uses kernel module i915 in my case.

I don't know about the performance of the i865 but you really seem to have DRI. 600fps is about what I get without DRI. strange.
Try with the module but I'm not sure it'll help.. anyway xorg prefers modules!
 
Old 01-13-2006, 10:16 AM   #9
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Before I leave..

you could try a recent LiveCD, they usually have good configuration, and it would not interfere with your current setting (maybe you have one library from an old xorg causing problem).
If you still have 600fps on one or two live cd, throw your card
 
Old 01-16-2006, 01:51 AM   #10
michal017
Member
 
Registered: Jan 2004
Location: EU
Distribution: Debian
Posts: 90

Original Poster
Rep: Reputation: 15
Here's a summary..
I get the same performance in glxgears using i830 or i915 kernel module.
Without direct rendering I get about 300 fps, with direct rendering about 750 fps..
I will download and try out some recent knoppix (when I have time)..
Thanks for your help and if you came up with something else please let me know..

Oh, and one more thing.. I have tried out xcompmgr on my PC at home where I have ATI Radeon 9600 with the new r300_dri.so module and I was getting about 2000 fps.. What's strange is that when I set a Firefox window instance to transparent, it felt slow while moving it around the desktop.. kind of same as moving it on this PC where I have around 750 fps..

m.
 
  


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
Hardware acceleration not working on Intel D845GVSR MB with Slack 10.1 rsamurti Slackware - Installation 4 02-09-2006 02:14 AM
Hardware acceleration : NVIDIA / ATI on Intel 845 koodoo Linux - Newbie 4 06-14-2005 04:20 PM
XOrg, intel onboard 865G and 1152x864. is it possible? asklepios Linux - General 2 03-13-2005 05:36 AM
Hardware acceleration with Intel 855GME, Kernel 2.6 Ben2210 Linux - Laptop and Netbook 4 12-09-2004 06:53 AM
3D Hardware Acceleration For Intel 830? welson_sun Linux - Laptop and Netbook 7 10-02-2004 04:31 PM

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

All times are GMT -5. The time now is 12:16 AM.

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