Linux - GamesThis forum is for all discussion relating to gaming in Linux.
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.
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 728
Rep:
What is direct rendering and how to enable it.
I have download and install a linux-based game named: "Boson"
Someone on this forum have introduced this game but I cannot remember his name or the web address right now?
When I launch this game it said direct rendering is not enbale. The game will be very slow. And it asked me to enable direct rendering.
When the game is load, it was too slow that my mouse cannot move, and I have no choices but exit it.
How to fix this please. I think boson is not a huge game and eventhogh my PC is slow, it mustn't be too slow like this.!!!
In a nutshell: DRI includes card/chipset-specific commands which enables the X server to talk directly to the video card - natively - without having to resort to a VESA compatibility mode. That's not exactly accurate but a fair brief explanation.
With that said: to enable DRI you generally have to compile the kernel module for the video chipset in your computer, then download and install (or compile and install) the specific X server for your video chipset/video card.
Could you post some specifics for your computer (post some specifications!) and we'll point you at a good HowTo specific to your chipset.
How about posting the output of the commands cs-cam gave so someone can help you?
You'll probably need to run /sbin/lspci rather than just lspci though...
On the contrary, we now know that you indeed have a i810 graphics and you're using the correct driver. Try adding
Code:
Option "DRI"
to the Device section of xorg.conf, start X, then
Code:
cat /var/log/Xorg.0.log | grep dri
to see if it gets enabled. I have an older computer with a Blaster Banshee card that can't use DRI at higher resolutions and/or colour depths, maybe you need to lower the resolution. If so, you could create a script to start X at a lower resolution just for playing the game.
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 728
Original Poster
Rep:
I hav done what you said the command
Code:
cat /var/log/Xorg0.log | grep dri
give that output (after I start the game)
Code:
X.Org XInput driver : 0.4
(II) LoadModule: "dri"
(II) Loading /usr/X11R6/lib/modules/extensions/libdri.a
(II) Module dri: vendor="X.Org Foundation"
(II) Loading /usr/X11R6/lib/modules/drivers/i810_drv.o
ABI class: X.Org XInput driver, version 0.4
ABI class: X.Org XInput driver, version 0.4
(II) Loading sub module "dri"
(II) LoadModule: "dri"
(II) Reloading /usr/X11R6/lib/modules/extensions/libdri.a
(II) UnloadModule: "dri"
(EE) I810: Failed to load module "dri" (once-only module, 0)
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: node name is /dev/dri/card0
(II) I810(0): [drm] created "i810" driver at busid "pci:0000:00:01.0"
But the game still complain that Direct rendering is not enabled.
It run a little bit faster but still too slow to play.
Why?
I think it's clear from the log that X was unble to load the dri module. I'd recommend reading the lines around the error message to see if they give more information about the failure. Did you set the colour depth to 16?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.