Template:Glsdk psdk200 running graphics demos cmd

Demos on AM5 Devices
The graphics driver and userspace libraries and binaries are distributed along with the SDK.

Please make sure the board is connected to atleast one display before running these demos.

kmscube with video
This demo allows a video frame to be applied as a texture onto the surface of the kmscube. The user can invoke the demo by following the syntax below:

target # viddec3test  --kmscube --connector 

Additionally, to change the field of view of the rotating cube, the user can specify the same on the command line like below:

target # viddec3test  --kmscube --connector  --fov

Wayland/Weston
supported Wayland/Weston version brings in the multiple display support in extended desktop mode and the ability to drag-and-drop windows from one display to the other.

To launch weston, do the following:

By default, the screensaver timeout is configured to 300 seconds.

The user can change the screensaver timeout using a command line option --idle-time=

For example, to set timeout of 10 minutes and weston configured to display on all connectors, use the below command: weston --tty=1 --idle-time=600

To disable the screen timeout and to configure weston configured to display on all connectors, use the below command: weston --tty=1 --idle-time=0

If you face any issues with the above procedure, please refer GLSDK_FAQs for troubling shooting tips.

The filesystem comes with a preconfigured weston.ini file which will be located in

Running multimedia with Wayland sink
The GStreamer video sink for Wayland is the waylandsink. To use this video-sink for video playback:

target # gst-launch-1.0 playbin uri=file:// video-sink=waylandsink

Exiting weston
Terminate all Weston clients before exiting Weston. If you have invoked Weston from the serial console, exit Weston by pressing Ctrl-C.

It is also possible to invoke Weston from the native console, exit Weston by using pressing Ctrl-Alt-Backspace.

IMG PowerVR Demos
The GLSDK filesystem comes packaged with example OpenGLES applications. The examples can be invoked using the below commands.

target # /opt/img-powervr-sdk/Examples/Advanced/OGLES2Coverflow target # /opt/img-powervr-sdk/Examples/Advanced/OGLES2ChameleonMan target # /opt/img-powervr-sdk/Examples/Advanced/OGLES2ExampleUI target # /opt/img-powervr-sdk/Examples/Advanced/OGLES2Navigation

After you see the output on the display interface, hit q to terminate the application.