java.lang.Error: Cannot create window: Could not create a direct GLX context
at com.jme.system.lwjgl.LWJGLDisplaySystem.initDisplay(Unknown Source)
at com.jme.system.lwjgl.LWJGLDisplaySystem.createWindow(Unknown Source)
at gdnet.java4elements.game.MainGame.initSystem(MainGame.java:47)
at com.jme.app.BaseGame.start(Unknown Source)
at gdnet.java4elements.main.Main.main(Main.java:18)
My system is not able to do hardware acceleration, as it seems. I have a Toshiba A75 laptop, with a ATI Radeon Mobility 9000 (128 MB), running Fedora 5. I have installed livna repository's driver, kmod-fglrx-smp, but when I run:
glxinfo | grep direct
It outputs that the rendering is indirect (which is, no hardware acceleration). This is a nasty problem on Fedora + ATI + laptops running ATIs. So, I'm posting it on the hope someone here went through the same problem... I apologize in advance for doing so, since this clearly isn't a JME problem.
I heard that I would have to recompile my kernel, to enable agppart support... I've never done it before (recompiling the kernel), so if anyone could point me to a direction, I would gladly appreciate it.
sorry, this won't be much help, but you could check if agpgart is running using "dmesg | grep agp". if you don't get any output, it is not integrated into the kernel, or the module is not loaded. "modprobe -l agpgart" should then show you if the module is available. if yes, you can load it with the same command obmitting the -l. you must run (at least some) of these commands as root or via sudo. you should get some output though, since i can't imagine fedora shipping without agpgart support.
if everything fails you could try to install the kernel sources of fedora and hope that they come with a config file matching the default kernel, you would just have to enable agpgart there, compile/install and should be fine. if they don't come with a usable config, i guess it could get quite messy to build a kernel that fedora likes.
good luck.
@kman: yes, he's trying to enable hw acceleration to be able to do so.
Thank you Pavel for your kind (and fast response :lol:
Well, running dmesg gives me output, it really detected the AGP part, as you predicted. But the module was not found. I guess this is all that is preventing me from having hardware acceleration, since everything else (I mean driver, xorg.conf…) seems to be correct.
I'll google hunt for info on how to "install the module", or make it work. But if you could help me with that, I would really appreciate.
@kman I know that… that's why I'm struggling with Fedora
no need to look for the module. if dmesg gives you an output, but you can’t find the module, agpgart is compiled into the kernel and running.
i can’t give you much more help. i don’t run fedora and don’t have an ati card.
you may have a look at http://www.fedorafaq.org/#radeon if you haven’t done so. i don’t know if this is the correct way to get it to work, but it was updated just recently, good sign.
I went to that webpage when I first tried installing the driver and configuring the system, and I already wen through these steps. Still, the rendering is still indirect.
Just so you know, the output of commands you suggested are:
[root@blackbox ~]# dmesg | grep agp
Linux agpgart interface v0.101 (c) Dave Jones
agpgart: Detected Ati IGP9100/M chipset
agpgart: AGP aperture is 32M @ 0xd2000000
agpgart: Found an AGP 3.0 compliant device at 0000:00:00.0.
agpgart: Putting AGP V3 device at 0000:00:00.0 into 8x mode
agpgart: Putting AGP V3 device at 0000:01:05.0 into 8x mode
[root@blackbox ~]# modprobe -| agpgart
bash: agpgart: command not found
FATAL: Module _ not found.
actually there was a small missunderstanding with the modprobe command. its a small L not a… uh, don't know the english word for |. -l is the short form of --list. but you don't need that command anyway, since agpgart is running fine.
does "lsmod | grep fglrx" show an output? if not, the driver is not loaded and you could try to load it with "modprobe fglrx" and then restart X with ctrl-alt-backspace (save your work and close your programs first!!). i don't know if you would have to unload other drivers possibly accessing your videocard first.
"lsmod" shows output, so the driver is working fine.
By your last note, do you mean I should revert to the default driver provided by Fedora's installation? If so, it does not provide hw accel… at least, glxinfo did output indirect rendering for me, that's why I went with livna's kmod driver. And all the guides and tutorials mention I should use this livna's driver… oddly enough, no one seems to have problems with hw accel.
Anyway, thanks for your patience in answering my posts, you're helping a lot
its ugly and slow but it works :)
as for accelerated drivers, ive only done in debian many times before they made the installer and its a PITA. if its at all possible for you to switch OS ubuntu has the drivers in the repository and you can install with 2 commands.
well, i'm at my wit's end. i cannot test any of this and i'm running out of ideas.
you conf file looks good, but why do you load fbdevhw? i don't think it's needed. although i don't know if it could cause problems.
one thing i read somewhere: it seems sometimes switching the used agpgart will fix problems. to do this, add
Option "UseInternalAGPGART" "no"
to your device section if you haven't tried that already.
it also seems that the order in which modules are loaded is important. in your case, i don't know if ati-agp is a module or in the kernel, but if it is a module it must be loaded before fglrx.
"fglrxinfo" reports mesa, right? i also read, that sometimes mesa will be prefered over ati's opengl for no obvious reason. you could try to uninstall the mesa drivers and then reinstall fglrx. there should only be libGLs in /usr/lib, none in /usr/X11R6/lib (which is empyt on my system except some fonts). please make backups before deleting anything, i don't want to be responsible for trashing your system.
does "LIBGL_DEBUG=verbose glxinfo" report any errors?
it would be a good idea to uninstall fglrx before and maybe reinstall mesa and/or the xorg driver package or the whole xorg if fedora does not provide the modular xorg 7.
i’ll be on a heavy drinking session (a friend is leaving to russia for a semester) and probably won’t be back before sunday. good luck!
I've tried every possible configuration and new driver installation you can imagine, but to no good. Nobody can say I haven't tried, and I not one fool of a user... I decided to install Ubuntu, because of this problem and also because I was curious to get to know it, since everybody is saying a lot of good things about it. And guess what? Direct rendering out of the box for my ATI chip. Didn't have to touch a thing. Too lazy to scroll back and see who suggested Ubuntu here, but thanks dude, I owe you one :wink:
I am a die hard fan of Fedora, it is a wonderful distribution... I hope they manage to fix these issues with video drivers really soon. But for the time being, I'll stick to Ubuntu. Now I can finally go back to work on my little game. :D
But one thing is certain... I did rather buy a new laptop than use windows again :P :P :P
Thanks again dudes for all your support, you've lent me quite a hand, even this not being a JME issue! I really appreciate that.