Meego Wiki
Views

SDK/Docs/1.2/MeeGo SDK Graphics Acceleration

From MeeGo wiki
< SDK | Docs | 1.2(Difference between revisions)
Jump to: navigation, search
(Graphics hardware acceleration is enabled)
(Virtualization (VT) Enabled)
 
(3 intermediate revisions not shown)
Line 5: Line 5:
== Virtualization (VT) Enabled ==
== Virtualization (VT) Enabled ==
-
Your system must have support for virtualization to enable the QEMU virtual machine to accelerate graphics performance using the platform hardware.
+
Your host 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.
+
 
 +
To check for VT support, run the following from a terminal:
 +
 
  $ egrep '^flags.*(vmx|svm)' /proc/cpuinfo
  $ egrep '^flags.*(vmx|svm)' /proc/cpuinfo
-
Any output is success. Here's an example:
+
 
 +
If you get any output, the check was successful.
 +
 
 +
Here's an example of the output you might see:
 +
 
  flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge  
  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  
  mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht  
Line 39: Line 45:
  $ glxinfo | grep "renderer string"
  $ glxinfo | grep "renderer string"
-
* '''Good output:'''  <code>OpenGL renderer string: '''Mesa DRI'''</code>
+
* '''Good output:'''  <code>OpenGL renderer string: '''Mesa DRI...'''</code>
* '''Bad output:''' <code>OpenGL renderer string: Software Rasterizer</code>
* '''Bad output:''' <code>OpenGL renderer string: Software Rasterizer</code>
If you get the bad output ("Software Rasterizer") then acceleration is not fully enabled. This may mean that your graphics driver is not capable of hardware acceleration, resulting in poor QEMU performance.
If you get the bad output ("Software Rasterizer") then acceleration is not fully enabled. This may mean that your graphics driver is not capable of hardware acceleration, resulting in poor QEMU performance.

Latest revision as of 13:25, 24 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 host 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:

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

If you get any output, the check was successful.

Here's an example of the output you might see:

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 the module is not loaded, load it as follows:

  • 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 be disabled in the BIOS.

Reboot your system, go into the BIOS, and enable VT.

Graphics hardware acceleration is enabled

Check that graphics acceleration is enabled on the host hardware:

$ 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 Rasterizer") then acceleration is not fully enabled. This may mean that your graphics driver is not capable of hardware acceleration, resulting in poor QEMU performance.

Personal tools