Difference between revisions of "Direct Rendering"

From FreekiWiki
Jump to navigation Jump to search
(New page: '''Use this script to test for direct rendering and for graphics-driver-related problems while running X''' *download media:Glx.sh‎ *open terminal and cd to the directory you downloa...)
 
(initial edit, more to come)
Line 1: Line 1:
'''Use this script to test for direct rendering and for graphics-driver-related problems while running X'''
+
This page is intended to be the hub of information on graphics-driver-related problems and getting VGA adapters to run correctly. While X autoconfiguration is nice for the majority of users, not having an xorg.conf by default makes it difficult to diagnose graphics problems.
*download [[media:Glx.sh‎]]
+
 
*open terminal and cd to the directory you downloaded the script to
+
*A lot of the time, complaints like "DVD skipping" can be solved with the smplayer frontend to a bleeding-edge release of mplayer. Try:
*make it executable by running <code>chmod +x Glx.sh</code>
+
sudo add-apt-repository ppa:motumedia/mplayer-daily
* run it as <code>./Glx.sh</code>
+
sudo apt-get update && sudo apt-get install mplayer smplayer
 +
Then, in smplayer, go to Open > DVD from drive and configure your options.
 +
 
 +
*If youtube/movies on the HD are choppy as well, check your graphics drivers. Use <code>lspci</code> to check what your VGA adapter is and, if necessary, install proprietary drivers in System > Administration > Hardware Drivers.
 +
 
 +
*If lspci reports a 8xx series VGA adapter, try the [[Intel 8XX graphic chips]] fix.
 +
 
 +
*You can try turning compositing off to get a better response from menus, etc. Go to System > Preferences > Appearance > Visual Effects.
 +
 
 +
*If none of these things yields any results, see if you can find your solution below.
 +
 
 +
=Fixes for Oddball Cases=
 +
 
 +
If your system has an <code>/etc/X11/xorg.conf</code>, look there for information. [http://www.x.org/archive/X11R6.8.0/doc/xorg.conf.5.html Here's a guide to reading it.] If you don't have one, try:
 +
 
 +
'''Testing for direct rendering'''
 +
*Open Synaptic and get <code>mesa-utils</code> or do
 +
sudo apt-get install mesa-utils
 +
You can now run
 +
glxinfo | grep render
 +
and
 +
glxgears
 +
to get information about your graphics setup.
 +
 
 +
If everything is right, you'll get outputs like <code>Direct Rendering: Yes</code> and framerates of 400+ frames/5 seconds, and your problem is likely not graphics related. If you're getting strange outputs like <code>Segmentation Fault</code> or framerates of 200- frames/5 seconds, make a sad face and continue reading through this guide.
 +
 
 +
''Note that systems running the nouveau driver will '''not''' report <code>Direct Rendering: Yes</code> even if they are properly utilizing DRI. Nouveau's kernel module is a staging driver [http://www.kroah.com/log/linux/linux-staging-update.html (info)] and does not yet sit right with Mesa. Nouveau is a cool thing, but it isn't really ready for mass consumption yet (even though Ubuntu loves it). If you're really having problems, fall back to the proprietary Nvidia drivers, which are known to work well.''
  
 
[[Category: Tech support]]
 
[[Category: Tech support]]

Revision as of 16:18, 19 May 2011

This page is intended to be the hub of information on graphics-driver-related problems and getting VGA adapters to run correctly. While X autoconfiguration is nice for the majority of users, not having an xorg.conf by default makes it difficult to diagnose graphics problems.

  • A lot of the time, complaints like "DVD skipping" can be solved with the smplayer frontend to a bleeding-edge release of mplayer. Try:
sudo add-apt-repository ppa:motumedia/mplayer-daily
sudo apt-get update && sudo apt-get install mplayer smplayer

Then, in smplayer, go to Open > DVD from drive and configure your options.

  • If youtube/movies on the HD are choppy as well, check your graphics drivers. Use lspci to check what your VGA adapter is and, if necessary, install proprietary drivers in System > Administration > Hardware Drivers.
  • You can try turning compositing off to get a better response from menus, etc. Go to System > Preferences > Appearance > Visual Effects.
  • If none of these things yields any results, see if you can find your solution below.

Fixes for Oddball Cases

If your system has an /etc/X11/xorg.conf, look there for information. Here's a guide to reading it. If you don't have one, try:

Testing for direct rendering

  • Open Synaptic and get mesa-utils or do
sudo apt-get install mesa-utils

You can now run

glxinfo | grep render

and

glxgears

to get information about your graphics setup.

If everything is right, you'll get outputs like Direct Rendering: Yes and framerates of 400+ frames/5 seconds, and your problem is likely not graphics related. If you're getting strange outputs like Segmentation Fault or framerates of 200- frames/5 seconds, make a sad face and continue reading through this guide.

Note that systems running the nouveau driver will not report Direct Rendering: Yes even if they are properly utilizing DRI. Nouveau's kernel module is a staging driver (info) and does not yet sit right with Mesa. Nouveau is a cool thing, but it isn't really ready for mass consumption yet (even though Ubuntu loves it). If you're really having problems, fall back to the proprietary Nvidia drivers, which are known to work well.