Meego Wiki
Views

SDK/Docs/1.1/MeeGo SDK Graphics Acceleration

From MeeGo wiki
< SDK | Docs | 1.1(Difference between revisions)
Jump to: navigation, search
(Graphics hardware acceleration is enabled)
 
(6 intermediate revisions not shown)
Line 1: Line 1:
[[category:Meego-1.1]]
[[category:Meego-1.1]]
-
Using [[SDK/Docs/1.1/Configuring QEMU targets|QEMU for MeeGo development]] requires that your system be capable of VT suppport and hardware accelerated graphics.  The following sections describe the steps to check for support on your platform.
+
Using [[SDK/Docs/1.1/Configuring QEMU runtimes|QEMU for MeeGo development]] requires that your system be capable of VT support and hardware accelerated graphics.  The following sections describe the steps to check for support on your platform.
== Virtualization (VT) Enabled ==
== Virtualization (VT) Enabled ==
Line 21: Line 21:
  kvm_intel              43816  0  
  kvm_intel              43816  0  
  kvm                  164576  1 kvm_intel
  kvm                  164576  1 kvm_intel
-
If needed, load the module:
+
If needed, load the module.
 +
 
 +
For an Intel processor:
  $ sudo modprobe kvm_intel
  $ sudo modprobe kvm_intel
-
== VT Enabled in the BIOS ==
+
For an AMD processor:
 +
$ sudo modprobe kvm_amd
 +
 
 +
=== VT Enabled in the BIOS ===
If the kvm modules are not available or fail to load, VT may not be enabled in the BIOS.  Reboot your system, go into the BIOS, and enable VT.
If the kvm modules are not available or fail to load, VT may not be enabled in the BIOS.  Reboot your system, go into the BIOS, and enable VT.
-
'''Graphic Hardware Acceleration is Enabled'''<br>
+
== Graphics hardware acceleration is enabled ==
Check that host hardware graphic acceleration is enabled:
Check that host hardware graphic acceleration is enabled:
  $ glxinfo | grep "renderer string"
  $ glxinfo | grep "renderer string"
Good output:  OpenGL renderer string: '''Mesa DRI''' ...<br>
Good output:  OpenGL renderer string: '''Mesa DRI''' ...<br>
Bad output:  OpenGL renderer string: Software Rasterizer <br>
Bad output:  OpenGL renderer string: Software Rasterizer <br>
-
If you get the bad output (software) then acceleration is not fully enabled, your graphics driver might not be capable.
+
If you get the bad output (software) then acceleration is not fully enabled, your graphics driver might not be capable, and the QEMU performance would be bad.
-
 
+
-
== Graphics Chipset ==
+
-
To identify your graphics chipset, run the following:
+
-
$ lspci | grep VGA
+
-
<table><tr><td colspan='2'>Example output:</td></tr>
+
-
<tr><td valign='top' nowrap>Intel mobile:</td><td>00:02.0 VGA compatible controller: '''Intel Corporation''' Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)</td></tr>
+
-
<tr><td valign='top'>nVidia:</td><td>08:00.0 VGA compatible controller: nVidia Corporation GT216 [GeForce GT 220] (rev a2)</td></tr>
+
-
<tr><td valign='top'>ATI:</td><td>01:00.0 VGA compatible controller: ATI Technologies Inc M22 [Mobility Radeon X300]
+
-
</td></tr>
+
-
</table>
+

Latest revision as of 02:10, 4 May 2011


Using QEMU for MeeGo development requires that your system be capable of VT support and hardware accelerated graphics. The following sections describe the steps to check for support on your platform.

Contents

Virtualization (VT) Enabled

Your system must have support for virtualization to enable the QEMU virtual machine to accelerate graphics performance using the platform hardware. To check for VT support, run the following from a terminal. It should output something.

$ egrep '^flags.*(vmx|svm)' /proc/cpuinfo

Any output is success. Here's an example:

flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge 
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht 
tm pbe lm constant_tsc arch_perfmon pebs bts pni dtes64 monitor 
ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 lahf_lm tpr_shadow 
vnmi flexpriority

KVM module Installed

Check that the kvm_intel or kvm_amd modules are loaded:

$ lsmod | grep kvm
kvm_intel              43816  0 
kvm                   164576  1 kvm_intel

If needed, load the module.

For an Intel processor:

$ sudo modprobe kvm_intel

For an AMD processor:

$ sudo modprobe kvm_amd

VT Enabled in the BIOS

If the kvm modules are not available or fail to load, VT may not be enabled in the BIOS. Reboot your system, go into the BIOS, and enable VT.

Graphics hardware acceleration is enabled

Check that host hardware graphic acceleration is enabled:

$ glxinfo | grep "renderer string"

Good output: OpenGL renderer string: Mesa DRI ...
Bad output: OpenGL renderer string: Software Rasterizer
If you get the bad output (software) then acceleration is not fully enabled, your graphics driver might not be capable, and the QEMU performance would be bad.

Personal tools