Virtual Pinball using Android-X86 in portrait mode
Wurmtal 868 Wurmtal 868
4.21K subscribers
10,151 views
95

 Published On Apr 19, 2020

In this video I show you how turn an old PC in to an Android based virtual pinball machine.
I’m using Android 8.1 because this version works best for keyboard and mouse control.
By default Android-X86 does not support audio over HDMI and the display will always stay in landscape mode. I will show the required changes to make it work, anyways.

Android-X86 image : https://www.android-x86.org/releases/...

The kernel bug that requires the extra boot parameter: EXTMOD=realtek is documented here:
https://groups.google.com/forum/#!top...

Tutorial on creating the USB boot stick and installing Android 8.1-R1 by ETA PRIME:
   • Turn An Old PC Into An  Android PC Ho...  

I forget to turn on “Enable Native Bridge” in my video, please check:
   • Turn An Old PC Into An  Android PC Ho...  
It’s not required for Williams Pinball, but it may be necessary to run games which were developed for ARM only.

The wave sample I used for testing:
https://freewavesamples.com/files/Ale...

Use the “su” command in the terminal emulator to open a root shell.

“cat /proc/asound/cards” will list the sound cards
“ls -l /dev/snd/” will list all sound devices

Command for playing audio:
alsa_aplay -Dplughw:x,y /storage/emulated/0/Download/Alesis-Fusion-Acoustic-Bass-C2.wav

x=card / y=device is the same as in “pcmCxDyp” of the device listing.

Optional backup command:
cp /etc/init.sh /etc/init.sh.orig

The VI-editor is somewhat strange when you use it for the first time.

“/pattern” will jump to first occurrence of “pattern”, “n” can be used to jump the next occurrence.
“a” will append characters after the cursor position.
“i” will insert characters at the cursor position.
“ESC” exits editing commands.
“wq” will write the file and exits vi.
“q!” can be used to exit after modifications without saving.

The commands for both changes in one session:

vi /etc/init.sh
/audio
Move cursor to the c of “esac” in init.hal.audio()
Press “a” and type return and “set_property hal.audio.out pcmCxDyP” (x/y as determined in the wave test) Press “ESC”
/orient
Move the cursor to the space after “config_override_forced_orient”, press “a"
Type “true #”, press “ESCwq” to write file.
Type “reboot” to reboot.

Link to the Set Orientation APK
https://www.apkmirror.com/apk/eyes-fr...

I recommend using a keyboard with multimedia keys and a home button.
You need to toggle mute or volume up/down to activate the audio for the first time.
Volume up/down will only toggle audio on/off when using HDMI-audio.
Press CTRL-ALT-Del to get to the power down menu.

show more

Share/Embed