Fix, should set video mode before use
simplify the sample code
Add a simple virtual device sample project