Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello, this is my first post here. I installed L.F.S. 6.8 and some packages from B.L.F.S., the svn/development version. I have a working X environment, with OpenBox. I have a few problems, but the main one that bothers me is that I have no hardware 3D acceleration.
I'm using a Panasonic Toughbook CF-51, which has an integrated Intel i915 adapter. My kernel .config file is from my Gentoo installation (in which hardware acceleration works) -- I ran 'make menuconfig' with it and made sure that it worked, and everything else that's related to the kernel seems ok. I have no Xorg configuration file; I haven't needed one in a long time. L.F.S. lives on the same hard drive as Gentoo, and if I boot into Gentoo, it works fine. However, in LFS, XScreensaver is quite choppy, and some programs (Pidgin and Firefox/Aurora) crash when I drag and drop things with an error which I read could be caused by lack of hardware acceleration.
I'm not sure what the problem is because everything recognizes DRI(2) and OpenGL support. I can provide logs or anything else that seems relevant. I'm just not sure where to begin, since I've tried recompiling Mesa, xf86-video-intel, and xorg-server, checking the ./configure options for anything I missed.
What does it say about dri in /var/log/Xorg.0.log? It should say something like
Quote:
[ 6.538] (II) Loading sub module "dri2"
[ 6.538] (II) LoadModule: "dri2"
[ 6.539] (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
[ 6.539] (II) Module dri2: vendor="X.Org Foundation"
[ 6.539] compiled for 1.10.1, module version = 1.2.0
[ 6.539] ABI class: X.Org Server Extension, version 5.0
[ 6.539] (==) Depth 24 pixmap format is 32 bpp
[ 6.540] (II) intel(0): [DRI2] Setup complete
[ 6.540] (II) intel(0): [DRI2] DRI driver: i915
What options did you use to compile libdrm and mesa? What versions of libdrm and mesa did you use?
My kernel version is 2.6.37. My card is actually a 945GM, apparently, and kernel mode setting is enabled for it in the kernel.
I added i915.modeset=1 to grub.conf. I don't use an initrd, so some of that page doesn't apply to me.
Here is what Xorg.0.log says about dri:
Code:
(II) LoadModule: "dri"
(II) Loading /usr/lib/X11/modules/extensions/libdri.so
(II) Module dri: vendor="X.Org Foundation"
(II) LoadModule: "dri2"
(II) Loading /usr/lib/X11/modules/extensions/libdri2.so
(II) Module dri2: vendor="X.Org Foundation"
(==) Matched intel as autoconfigured driver 0
(==) Matched vesa as autoconfigured driver 1
(==) Matched fbdev as autoconfigured driver 2
(==) Assigned the driver to the xf86ConfigLayout
(II) Loading /usr/lib/X11/modules/drivers/intel_drv.so
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: node name is /dev/dri/card0
(II) intel(0): [DRI2] DRI driver: i915
(II) Loading extension XFree86-DRI
{II) Loading extension DRI2
(II) intel(0): [DRI2] Setup complete
(II) intel(0): [DRI2] DRI driver: i915
(II) intel(0): direct rendering: DRI2 Enabled
(II) GLX: Initialized DRI2 GL provider for screen 0
(II) AIGLX: Loaded and initialized /usr/lib/dri/i915_dri.so
It also says '(EE) Failed to load module "fbdev" (module does not exist, 0)' and '(EE) Failed to load module "vesa" (module does not exist, 0). I think that this is irrelevent, but please tell me if I am wrong.
I have libdrm-2.4.26, MesaGLUT-7.10.3.tar.bz2 and MesaLib-7.10.3.tar.bz2.
Code:
libdrm 2.4.26 will be compiled with:
libkms yes
Intel API yes
vmwgfx API no
Radeon API no (I might have compiled with this enabled last time, since it does so by default for me)
Nouveau API no
Edit: I tried installing Mesa 7.9 per the main B.L.F.S. guide, and this got faster frame rates, though not as fast as in Gentoo. I'm not sure why this is, since I compiled it with the same option. After this, I had a fun time uninstalling it and reinstalling 7.10.3 so that it worked properly.
It also says '(EE) Failed to load module "fbdev" (module does not exist, 0)' and '(EE) Failed to load module "vesa" (module does not exist, 0). I think that this is irrelevent, but please tell me if I am wrong.
Yes, this doesn't matter, as long as it loads the i915 driver. I think yopu're doing fairly well, and just need to find the final hurdle and jump it. Post the o/p of
Yes, this doesn't matter, as long as it loads the i915 driver. I think yopu're doing fairly well, and just need to find the final hurdle and jump it. Post the o/p of
glxinfo |grep OpenGL
I maybe cheated a bit by booting into Gentoo and seeing what compilation options it used for the package. I have improved it, though it is not quite as fast as it should be. I am going to try with this:
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: Gallium 0.4 on i915 (chipset: 945GM)
OpenGL version string: 1.3 Mesa 7.10.3
Something looks weird there. Why in the world is it VMware? That's probably part of the problem. It's faster now, but not as fast as it should be.
At least I fixed the problem in with gtk programs crashed when I tried to drag and drop; apparently, gtk2 has that problem when it's compiled with -fomit-frame-pointer, which I used to compile things. After I disabled that cflag for that particular package, recompiled and reinstalled it, my gtk programs no longer crash.
I am not able to pass much comment on Mesa options, because I have forgotten that stuff, having achieved stability. I think you can leave out all the gallium options except --enable-gallium-i915. If it barfs on that, try removing glx-tls first.
FYI, here's my glxinfo |grep OpenGL
Quote:
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: Mesa DRI R600 (RV730 9495) 20090101 x86/MMX+/3DNow!+/SSE TCL DRI2
OpenGL version string: 2.1 Mesa 7.9.2
OpenGL shading language version string: 1.20
OpenGL extensions:
I concur that vmware looks odd in the render string.
The primary Mesa/gallium development is done by vmware. You are using the intel gallium3D driver, which the folks at vmware (not intel) developed. That's why you have vmware as the vendor. It does provide 3D acceleration. This driver may not perform as well as the driver developed by Intel (which does not use the gallium infrastructure).
When you built mesa, did you end up with another i915_dri.so driver? If not, try rebuilding mesa without the --enable-gallium-i915 option.
Edit: It worked perfectly for a while... but it's messed up again. I'm not sure what went wrong between then and now, but I'm trying to figure it out. I installed quite a few things, working on qt3, installing Firefox 6, avahi, cups... I at least have this right:
Edit 2: Ok, this is messed up: If I start something CPU-intensive, like compilation, then the 3D acceleration works fine. For example, if I start compiling Firefox, then xscreensaver (this or glxgears is the quickest test I can run) runs at full speed. If I cancel the compilation, whatever I'm running that uses 3D acceleration instantly becomes jerky and slow.
Last edited by liquidkaleidoscopes; 08-26-2011 at 06:51 PM.
Might just be a load of broken pipes, and memory to be reorganised.
There has been recent kernel advances in the area of control groups and scheduling. I can't claim to be an expert (Haven't a clue really but you may have all that reorganisation sidelined into the control group of your user, slowing the other processes there.
Please do not test with glxgears or xscreensavers. There are dozens of explanations as to why glxgears is not a benchmark and I'm willing to bet those reasons apply to most of the OpenGL xscreensaver hacks. Instead, test with something that actually stresses your video card. My suggestion would be openarena, which comes with a built-in benchmark.
There are dozens of explanations as to why glxgears is not a benchmark and I'm willing to bet those reasons apply to most of the OpenGL xscreensaver hacks.
I'm downloading OpenArena. I've read what you're saying about GLXGears and XScreenSaver not being benchmarcks, but I find it difficult not to wonder: If they work fine on the same computer in one Linux O.S. with a similar configuration, why not in L.F.S.?
I've been curious of kernel 3 for a while anyway, and I noticed that my performance was better when I used the Gentoo kernel (2.6.39-r3), so I downloaded kernel 3.0.3 and started with a blank configuration (well, except for the vanilla kernel seed at www.kernel-seeds.org. I had made my other L.F.S. kernel with my previous .config file and 'make oldconfig'. I'm booted into 3.0.3 now and it seems to work well; I'm recompiling it now with cgroup support, which I somehow forgot the first time. I'll work on installing OpenArena and try to get a more definitive benchmark.
Yeah, that one also (I f'got to mention it, sorry). The main point is: check all the options regarding 'Intel' on your graphics.
Anyways, just to make sure, what version is your kernel?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.