Qemu + AndroidX86 + Virglrenderer - No input in OpenGL + resolution switch ?

829 views
Skip to first unread message

jfgul...@gmail.com

unread,
Jan 25, 2018, 7:08:49 AM1/25/18
to Android-x86
Hi

I configured Qemu 2.11.0 with virgl (master) support and installed the latest version of Android X86 (7.1.2).

Input works perfectly to navigate through Android menus and OpenGL games work (awesome btw!) but all input gets ignored, i.e., can't interact with games.

This is how I am launching it:

qemu-system-x86_64 \
   
-enable-kvm \
   
-m 2048 -smp 2 -cpu host \
   
-device virtio-mouse-pci -device virtio-keyboard-pci \
   
-serial mon:stdio \
   
-boot menu=on \
   
-netdev user,id=mynet,hostfwd=tcp::5555-:5555 -device virtio-net-pci,netdev=mynet \
   
-vga virtio -display sdl,gl=on $@ \
   
-cdrom ${ANDROID_IMAGE_PATH} \
   
-hda android.img

Tried with the deprecated -usbdevice mouse (instead of virtio-mouse-pci) but still no success.

Also, what is the standard method to change the devices resolution with the new framebuffer? Are kernel command line parameters a requirement?

In all tests i made, including installation with alien in an ubuntu host, google play services crashes frequently, is this a known issue? Is there a fix?

Thanks a ton!

Pasted image at 2018_01_23 09_58 PM.png

Chih-Wei Huang

unread,
Jan 25, 2018, 9:21:20 PM1/25/18
to Android-x86
2018-01-25 20:08 GMT+08:00 <jfgul...@gmail.com>:
> Hi
> I configured Qemu 2.11.0 with virgl (master) support and installed the
> latest version of Android X86 (7.1.2).
>
> Input works perfectly to navigate through Android menus and OpenGL games
> work (awesome btw!) but all input gets ignored, i.e., can't interact with
> games.

Some games may ignore keyboard and mouse input.
That's the problem of the apps. Complain to their developers.

At least, I can play some famous games like
Candy Crush, Defense Zone 3, etc on QEMU.

> This is how I am launching it:
>
> qemu-system-x86_64 \
> -enable-kvm \
> -m 2048 -smp 2 -cpu host \
> -device virtio-mouse-pci -device virtio-keyboard-pci \
> -serial mon:stdio \
> -boot menu=on \
> -netdev user,id=mynet,hostfwd=tcp::5555-:5555 -device
> virtio-net-pci,netdev=mynet \
> -vga virtio -display sdl,gl=on $@ \
> -cdrom ${ANDROID_IMAGE_PATH} \
> -hda android.img
>
> Tried with the deprecated -usbdevice mouse (instead of virtio-mouse-pci) but
> still no success.
>
> Also, what is the standard method to change the devices resolution with the
> new framebuffer? Are kernel command line parameters a requirement?

I either can't find a way to change the resolution of virgl.

> In all tests i made, including installation with alien in an ubuntu host,
> google play services crashes frequently, is this a known issue? Is there a
> fix?

Google play is known to crash frequently on i965 GPU.
But I didn't see that on virgl.


--
Chih-Wei
Android-x86 project
http://www.android-x86.org
Reply all
Reply to author
Forward
0 new messages