Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save KSXGitHub/f79c00af0855ef312203d2b3988dfa9a to your computer and use it in GitHub Desktop.
Save KSXGitHub/f79c00af0855ef312203d2b3988dfa9a to your computer and use it in GitHub Desktop.

Revisions

  1. KSXGitHub revised this gist Oct 19, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion SmartTube on Android x86 on virt-manager on Linux.md
    Original file line number Diff line number Diff line change
    @@ -25,4 +25,4 @@ Assuming your monitor is 1920x1080.

    ## Small quality of life tweaks

    * Wallpaper: Most wallpaper apps for Android assume potrait screen and crop your beautiful 1920x1080 landscape wallpaper, which lead you seeing only a blurred corner in the main screen. Except one app named [Slideshow Wallpaper](https://github.com/Doubi88/SlideshowWallpaper).
    * **Wallpaper:** Most wallpaper apps for Android assume potrait screen and crop your beautiful 1920x1080 landscape wallpaper, which lead you seeing only a blurred corner in the main screen. Except one app named [Slideshow Wallpaper](https://github.com/Doubi88/SlideshowWallpaper).
  2. KSXGitHub revised this gist Oct 19, 2023. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions SmartTube on Android x86 on virt-manager on Linux.md
    Original file line number Diff line number Diff line change
    @@ -22,3 +22,7 @@ Assuming your monitor is 1920x1080.
    4. Add `set gfxpayload=1920x1080` to the `load_theme` function, under the `set gfxmode` command.
    5. Change `set gfxmode={whatever}` to `set gfxmode=1920x1080`.
    6. Save the `android.cfg` file, unmount `/mnt`, and then shutdown by `poweroff -f`.

    ## Small quality of life tweaks

    * Wallpaper: Most wallpaper apps for Android assume potrait screen and crop your beautiful 1920x1080 landscape wallpaper, which lead you seeing only a blurred corner in the main screen. Except one app named [Slideshow Wallpaper](https://github.com/Doubi88/SlideshowWallpaper).
  3. KSXGitHub revised this gist Oct 19, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion SmartTube on Android x86 on virt-manager on Linux.md
    Original file line number Diff line number Diff line change
    @@ -17,7 +17,7 @@
    Assuming your monitor is 1920x1080.

    1. Boot into Android debug mode.
    2. Mount the root partition (could be `/dev/sda1` or `/dev/vda1` or something else) to `/mnt` (don't worry if `/mnt` already have files).
    2. Mount the boot partition (could be `/dev/sda1` or `/dev/vda1` or something else) to `/mnt` (don't worry if `/mnt` already have files).
    3. Use `vi` to open `/mnt/boot/efi/android.cfg`.
    4. Add `set gfxpayload=1920x1080` to the `load_theme` function, under the `set gfxmode` command.
    5. Change `set gfxmode={whatever}` to `set gfxmode=1920x1080`.
  4. KSXGitHub revised this gist Oct 19, 2023. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions SmartTube on Android x86 on virt-manager on Linux.md
    Original file line number Diff line number Diff line change
    @@ -8,8 +8,7 @@

    1. Enable Intel Virtualization Technology in the BIOS.
    2. Add `intel_iommu=on iommu=pt` to your kernel parameters (of the host OS).
    3. Set `Video QXL -> Video -> Model` from `QXL` to `Virtio`.
    * If `Videio Virtio` already exists, then skip.
    3. Set `Video QXL -> Video -> Model` from `QXL` to `Virtio`. Skip this step if `Video Virtio` already exists.
    4. Set `Display Spice -> Listen type` to `None`.
    5. Enable `Display Spice -> OpenGL`, and change to dropbox under from `Auto` to the name of your GPU.

  5. KSXGitHub renamed this gist Oct 19, 2023. 1 changed file with 0 additions and 0 deletions.
  6. KSXGitHub created this gist Oct 19, 2023.
    25 changes: 25 additions & 0 deletions NOTES.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    ## Prerequisites

    * Host OS: Linux
    * Program: virt-manager
    * Intel Virtualization Technology (to enable OpenGL for good framerate)

    ## OpenGL for good FPS

    1. Enable Intel Virtualization Technology in the BIOS.
    2. Add `intel_iommu=on iommu=pt` to your kernel parameters (of the host OS).
    3. Set `Video QXL -> Video -> Model` from `QXL` to `Virtio`.
    * If `Videio Virtio` already exists, then skip.
    4. Set `Display Spice -> Listen type` to `None`.
    5. Enable `Display Spice -> OpenGL`, and change to dropbox under from `Auto` to the name of your GPU.

    ## Native resolution

    Assuming your monitor is 1920x1080.

    1. Boot into Android debug mode.
    2. Mount the root partition (could be `/dev/sda1` or `/dev/vda1` or something else) to `/mnt` (don't worry if `/mnt` already have files).
    3. Use `vi` to open `/mnt/boot/efi/android.cfg`.
    4. Add `set gfxpayload=1920x1080` to the `load_theme` function, under the `set gfxmode` command.
    5. Change `set gfxmode={whatever}` to `set gfxmode=1920x1080`.
    6. Save the `android.cfg` file, unmount `/mnt`, and then shutdown by `poweroff -f`.