HP TOUCHPAD Optimize for All Android ROMs with Swap Partition

Search This thread

HP_TOUCHPAD

Senior Member
Jan 18, 2017
1,329
567
HP Touchpad Universal Optimize Swap Settings for All Android ROMs

MAX 1GB RAM - MAX 1836 Frequency


Click HERE for detail Memory and Frequency information for each ROM
Click HERE to dual boot all listed Android ROMs and LuneOS
Click HERE for PowerOFF - Prevents Battery Drain
Upated: November 12, 2020: Added HP TOUCHPAD DEBRICK Linux Live CD
Upated: November 12, 2019: Added PowerOFF
Upated: November 07, 2019: Rom_Reducer to Evervolv, Kitkat by Milaq and LuneOS
Upated: October 09, 2019: HpTp_MaXtreme (Max Extreme Kernel Settings for All ROMs)
Upated: October 01, 2019: Added ROM: LineageOS 11 Kitkat by Milaq build October 01, 2019
Upated: September 28, 2019: All_Files for Lollipop got updated to fix WiFi
Upated: September 25, 2019: Added ROM LineageOS 14.1, HpTp_MAX_Settings, 1GB Swap
Upated: September 2, 2019: Fix Evervolv 7.1.2 Frequencies, Created: Universal Authority, Added: Evervolv Pie, Posted: Universal Settings
Upated: August 24, 2019: HP Touchpad Novacom Repair Android
Upated: August 2, 2019: New Improved Settings: HpTp_Universal_Optimized_Swap
Added ROM_Reducer; Removed support for Lineage 11
Upated: July 12, 2019: Flash ToolBox v42 by jcsullins to /boot
Upated: July 8, 2019: /System Partition is 2.2 GB:/ Improved Settings to All ROMs

________________________________________________________________
HP TOUCHPAD DEBRICK Linux Live CD
Built in with all the tools to properly run TP Debrick v005 by jcsullins and also novacom drivers.
Click HERE for the Guide
Click HERE to Download ISO File
________________________________________________________________
HP Touchpad Novacom Repair Android
Built in Novacom Driver, Repair non bootable Tablet, Flash ToolBox, Modify Ramdisk and more !
Click HERE for the Guide
Click HERE to Download ISO File
________________________________________________________________
Back up any data before making any changes to the Tablet, follow this guide:
Click here on how to backup ROM to PC and restore
Important, do not restore the /boot partition
________________________________________________________________
For WebOS users
WebOS has the swap partition and it can be share with Android.
There is no need to Flash the file Automatic_Wipe_All_and_Create_Android_with_Swap.
But to use Android PIE, Oreo and Nougat the Android /system partition must be 1400 MB.
There are two options to resize the Android /system partition.
Inside webOS using Tailor:
Click here for Tailor
Using the ToolBox:
Click here to download the ToolBox
After the Android /system partition have been resize Flash any listed ROM.
________________________________________________________________
The Automatic_Wipe_All_and_Create_Android_with _Swap can be flash using any Recovery.
It is best to use TWRP Recovery Version 3.1 or 3.2

Click here to download TWRP Recovery 3.1 by Flintman
Click here to download TWRP Recovery 3.2 by Flintman
________________________________________________________________

Easy Automatic process to Wipe All and Create Android partitions with Swap 1GB or 500MB

Click Here to Download Automatic_Wipe_All_and_Create_Android_with _Swap, choose 1GB or 500MB
This file MUST BE FLASH to create the swap partition to be use by the listed ROMs
A complete Data RESET of all the internal storage.
All partitions are deleted, is a total fresh start as if the Tablet came from factory with only Android install.
The Android partitions are created and formatted ready for use:
/system 2.2 GB ( Allows to install any ROM plus the maximum size of Open Gapps Variant Super )
/cache 200 MB ( Standard size )
/media 1GB or 500MB ( USB Media in Android, use it to save the ROM, Gapps and Universal Settings to Flash )
HpTp_MAX provides more RAM available and Android can use over 750 MB of swap space.
/swap 1GB or 500MB
( It allows Android to store temporally Data from RAM to allocate more Memory for Apps. )
/data depends on the model 16, 32 or 64 GB ( The free space available for Android Apps and user Data )
/boot 32 MB ( Is a fixed sized ) Moboot will be created and also TWRP Recovey 3.2.
The Tablet will boot as always, with Recovery in the Moboot Menu ready to Flash any ROM.
________________________________________________________________
Flash all listed ROMs in the order to download:
1. First the ROM ( Only the specific ROM by the built date will work )
2. HpTp MAX Universal Optimize Swap Settings ( Enables swap partition and provide the best settings for Android )
All_Files (name of the ROM) zip contains everything. Uncompress on PC first then flash the selected frequency.
2_A Optional -- HpTp_MaXtreme (Max Extreme Kernel for All ROMs)
Click HERE to Download HpTp_MaXtreme for All ROMs
If you do not know the maximum CPU speed of your Tablet flash 1674 first to set up.
All Kernels are the same, the speed is preset to avoid installing any Kernel App in Android.
Do not install any Apps in Android to make the Tablet work faster, it will be the opposite.
It will use more RAM and cause reboots, there is nothing to change.
This is a laptop with a touch screen keyboard not a phone.
3. Optional -- ROM Reducer Click HERE for ROM Reducer
4. Flash the Open Gapps according to the ROM version, is best to install Pico and build the system as need it.
5. Optional -- All listed ROMs have /system Read and Write enabled, Click HERE for Root access using SuperSu v2.82
6. Optional -- Universal Authority Click HERE for Universal Auhority
7. Important: Read the section on this guide -- Flash the ToolBox 2015-01-08-v42 by jcsullins into /boot
Flash the files in the listed order in TWRP all at one time.
The Tablet will boot into the Welcome setup screen as a brand new Device.

________________________________________________________________
Root access with SuperSu v2.82 for all the ROMs
5. Click Here to Download SR5-SuperSU-v2.82
________________________________________________________________

Evervolv v9 Android PIE by Elginsk8r
1. Click Here to Download the ROM
2. Click Here to Download HpTp_MAX, select All Files for this ROM
4. Click Here to download Google Open Apps
Select Platform ARM, Android 9 and the Variant you want, Pico is recommended
Click Here for detail information about the Pie ROM
________________________________________________________________

Dirty Unicorns v13 Android PIE by Flintman
1. Click Here to Download the ROM
2. Click Here to Download HpTp_MAX, select All Files for this ROM
4. Click Here to download Google Open Apps
Select Platform ARM, Android 9 and the Variant you want, Pico is recommended
Click Here for detail information about the Pie ROM
________________________________________________________________

Dirty Unicorns v8.1 Android Oreo by Flintman
1. Click Here to Download the ROM
2. Click Here to Download HpTp_MAX, select All Files for this ROM
4. Click Here to download Google Open Apps
Select Platform ARM, Android 8.1 and the Variant you want, Pico is recommended
Click Here for detail information about the Oreo ROM
________________________________________________________________
Evervolv 7.1.2 Android Nougat
1. Click Here to Download the ROM
2. Click Here to Download HpTp_MAX, select All Files for this ROM
4. Click Here to download Google Open Apps
Select Platform ARM, Android 7.1 and the Variant you want, Pico is recommended
Click Here for detail information about the Nougat ROM
________________________________________________________________
LineageOS 14.1 Android Nougat 7.1.2 by invisiblek
1. Click Here to Download the ROM
2. Click Here to Download HpTp_MAX, select All Files for this ROM
4. Click Here to download Google Open Apps
Select Platform ARM, Android 7.1 and the Variant you want, Pico is recommended
________________________________________________________________
CyanogenMod 12.1 Android Lollipop by Jcsullins
1. Click Here to Download the ROM
2. Click Here to Download HpTp_MAX, select All Files for this ROM
4. Click Here to download Google Open Apps
Select Platform ARM, Android 5.1 and only Pico
Click Here for detail information about the Lollipop ROM
________________________________________________________________
CyanogenMod 11 Android KitKat by Jcsullins
1. Click Here to Download the ROM
2. Click Here to Download HpTp_MAX, select All Files for this ROM
4. Click Here to download Google Open Apps

Select Platform ARM, Android 4.4 and only Pico
Click Here for detail information about the Kitkat ROM
________________________________________________________________
LineageOS 11 Android KitKat by Milaq November, 01 of 2019 Build
1. Click Here to Download the ROM
2. Click Here to Download HpTp_MAX, select All Files for this ROM
4. Click Here to download Google Open Apps
Select Platform ARM, Android 4.4 and only Pico
Click Here for detail information about the Kitkat ROM
________________________________________________________________
ROM Reducer
Click HERE for the Guide
2.Click HERE to Download, ROM Reducer is included in the All Files for each ROM.
________________________________________________________________
Universal Authority
Click HERE for the Guide
6. Click HERE for the Flash Files
________________________________________________________________
Flash the ToolBox 2015-01-08-v42 by jcsullins into /boot
________________________________________________________________
After successfully flashing any of the listed ROM the ToolBox can be flash into boot to maintain the battery.
Do NOT use the ToolBox to Resize or Repair Android Volumes.
If done it will corrupt all the Volumes ( Partitions ) and a PC with the Novacom driver must be use.
The ToolBox does not display the /swap partition, it was not created for that purpose.

Only after flashing all files from this guide the /boot partition has just enough space for the ToolBox.
7. Click Here to download all the files to flash the ToolBox to boot/
Flash_TPToolBox_v42_to_Boot.zip ( delete any splash *.tga images files and copy ToolBox into /boot )
Remove_TPToolBox_v42_from_Boot.zip ( delete the ToolBox from /boot )
If more than one ROM got flash and the ToolBox was not successfully copied to /boot then use this file:
Clean_Boot_Remove_All_ROM_Files.zip
It will create a back up of the boot files and clean /boot preserving the basic files, MoBoot and TWRP.
Then the Flash_TPToolBox_v42_to_Boot.zip can be flash.
Plus the Universal Optimize Swap Settings for the ROM installed in the Tablet.
The Universal Optimize Swap Settings copies the boot uImage for the ROM into /boot.
Keep all the downloaded files in the Micro SD card (USB Media) /external_sd ( it goes by all those names )
Any of the listed files can be flash any time and a PC is not required to maintain the battery of the Tablet.
Special Thanks to Jcsullins "The God Father of the HP Touchpad" for all the unique and great software that made it
possible to transition easily from WebOS to Android.

Click Here for my guide on How to unpack and repack the ToolBox
________________________________________________________________
/boot Partition Detail Information
________________________________________________________________
Code:
The boot partition was created with the basics to get everything working and provide
enough storage to accommodate:
TWRP/Recovery 3.2,  each of the listed ROMs from Kitkat to Pie and the ToolBox.
The size of /boot is 32MB, is a fix size and can not be expanded.
Boot partition details after Automatic_Wipe_All:

Directories:             size   file name
bin                     647.5k busybox
etc                      16.1k  lvm.conf
lib
lost+found
usr                      1.2M   lvm.static

Files:                   size
android.default.recovery  9 bytes
uImage                  13 bytes (link to uImage.moboot )
uImage.moboot           63.8 K
uImage.Recovery         10.6 M

Total:
/dev/block/mmcblk0p13     size     used    available Use %
                         32.0M     14.1M     17.9M  44% /boot

A clean /boot has 17.9M of free space

Free Space After Pie ROM
/dev/block/mmcblk0p13
                         32.0M     20.8M     11.2M  65% /boot
The ToolBox is 11.2M

After flashing the ToolBox
/dev/block/mmcblk0p13
                         32.0M     31.6M    395.0K  99% /boot
There is only 395.0k available.

________________________________________________________________
HpTp Universal Optimize Swap Settings
________________________________________________________________
The following settings are applied to all listed ROMs and makes the Tablet work as a Laptop, not a phone.
All Developers have done a great job building the ROMs, if the same settings are apply then all performs very similar.
The hardware does not change and the basic requirements must be apply to all Android version.
There is nothing to add, but removed all the modules and only use the swap option.
The following features must be disable and can not be use:
Disable KSM, Low Memory Killer, CPU Boost, mpdecision

Changes in the Ramdisk:
The changes can be permanently modified using:
Click HERE to modify the Ramdisk
Not Permanent, Inside Android:
Click HERE to modify inside Android

File in the Ramdisk:fstab.tenderloin
Code:
/dev/store/swap                                none              swap    defaults                                              swapprio=0, 0    0

File in the Ramdisk:init.rc
TCP Buffer increase to 6MB
Code:
on boot
# Define TCP buffer sizes for various networks
#   ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax,
    setprop net.tcp.buffersize.default 4194304,5242880,6291456,4194304,5242880,6291456
    setprop net.tcp.buffersize.wifi    4194304,5242880,6291456,4194304,5242880,6291456

# Assign TCP buffer thresholds to be ceiling value of technology maximums
# Increased technology maximums should be reflected here.
        write /proc/sys/net/core/rmem_max  6291456
        write /proc/sys/net/core/wmem_max  6291456
extra_free_kbytes 20480
Code:
# system server cannot write to /proc/sys files,
# and chown/chmod does not work for /proc/sys/ entries.
# So proxy writes through init.
on property:sys.sysctl.extra_free_kbytes=*
    write /proc/sys/vm/extra_free_kbytes 20480
    # write /proc/sys/vm/extra_free_kbytes ${sys.sysctl.extra_free_kbytes}

File in the Ramdisk:Init.tenderloin.rc
Code:
 on fs
    # Enable swap partition
    swapon_all /fstab.tenderloin

on property:sys.boot_completed=1
    # Swap Partition Settings
    write /proc/sys/vm/block_dump 0
    write /proc/sys/vm/dirty_background_bytes 0
    write /proc/sys/vm/dirty_background_ratio 10
    write /proc/sys/vm/dirty_bytes 0
    write /proc/sys/vm/dirty_expire_centisecs 600
    write /proc/sys/vm/dirty_ratio 20
    write /proc/sys/vm/dirty_writeback_centisecs 600
    write /proc/sys/vm/drop_caches 3
    # change in ramdisk init.rc  write /proc/sys/vm/extra_free_kbytes 20480
    write /proc/sys/vm/highmem_is_dirtyable 0
    write /proc/sys/vm/laptop_mode 0
    write /proc/sys/vm/legacy_va_layout 0
    # write /proc/sys/vm/lowmem_reserve_ratio 32    32
    write /proc/sys/vm/max_map_count 65530
    write /proc/sys/vm/min_free_kbytes 40960
    write /proc/sys/vm/min_free_order_shift 4
    write /proc/sys/vm/mmap_min_addr 32768
    write /proc/sys/vm/mmap_rnd_bits 16
    write /proc/sys/vm/nr_pdflush_threads 0
    write /proc/sys/vm/oom_dump_tasks 0
    write /proc/sys/vm/oom_kill_allocating_task 1
    write /proc/sys/vm/overcommit_memory 1
    write /proc/sys/vm/overcommit_ratio 50
    write /proc/sys/vm/page-cluster 8
    write /proc/sys/vm/panic_on_oom 0
    write /proc/sys/vm/percpu_pagelist_fraction 0
    write /proc/sys/vm/scan_unevictable_pages 0
    write /proc/sys/vm/stat_interval 1
    write /proc/sys/vm/swappiness 100
    write /proc/sys/vm/vfs_cache_pressure 100

    # Increase readahead buffers on MMC devices
    write /sys/block/mmcblk0/bdi/read_ahead_kb 0

    # CPU Scaling
    write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 384000
    write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq 384000
    write /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq 1674000
    write /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq 1674000

    # Configure Performance
    write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor performance
    write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor performance

    # Entropy
    write /proc/sys/kernel/random/write_wakeup_threshold 2048
    write /proc/sys/kernel/random/read_wakeup_threshold 1195

    # I/O
    write /sys/block/mmcblk0/queue/rq_affinity "0"
    write /sys/block/mmcblk0/queue/scheduler "bfq"

________________________________________________________________
Disclaimer: I am not a developer, just a regular user like YOU that have found a way to improve the Tablet and would like others to benefit by sharing the information.
I am not the creator of any ROM, Recovery or App mentioned or used. All credits goes to the developers than have worked and provided the best ROMs there is for our Tablet and there are way too many to mentioned, but everyone know who they are! Thanks a lot to all of YOU (Developers for the HP Touchpad)!
Special Thanks:
@flintman for all his work creating TWRP Recovery and the many customs ROMs with the latest PIE.
@elginsk8r for developing and maintaining Evervolv ROMs, currently PIE.
* The stock Kernel has been modified to provide more RAM and a higher frequency.
 
Last edited:

Touchie Pad

Member
Feb 22, 2016
14
2
Does seem pretty responsive, even though i have been downloading apps etc, to get it set up. I downloaded the Gapps as well not sure if that was mentioned in your post, but it will be necessary if you go with a clean install. With the DU 11/16 kernel couldnt get the play store to work. went back to the 6/18 and it worked but no videos would play...... so updated again to 11/16 and now both seem to be working ok. I think that could have been a problem with the initial ROMS, its been awhile so i cant remember but there were a few bugs there to work out as well. I will keep checking it out...

Thanks very much....much simpler:D
 

HP_TOUCHPAD

Senior Member
Jan 18, 2017
1,329
567
@ Touchie Pad,
Thanks for trying it out!
It will only work as intended by downloading the "Skz Kernel Optimize and Swap Partition enable" links provided.
It will not work at all by only downloading the ROM. The Dirty Unicorn ROM Kernel does not provide support for the swap file or optimized Android.
The proper Installation is:

1. Flash DU ROM "du_tenderloin-v12.5.3-20181116-0140-RC.zip" ( It has to be that in specific)

2. Flash one of the SKZ Kernel speed provided ( Without it, no optimization or use of the swap partition will happen"

3. You can install any Google Open Gapps, I have installed all version , please provide a link to the one that does not work for you and I will try it out!

4. If you want Root access you must install SuperSu and the SKZ Kernel allows System read and write ( is a complete open system)

Let me know if those were the steps you followed otherwise I will try to explain my instructions better!
 
  • Like
Reactions: mariosenta

Gborg3

Senior Member
Dec 5, 2013
298
72
HP Touchpad
OnePlus 6T
Did the swap partition with the 2017.11.03 Evervolv build with nano Gapps and my tablet confuses me because it is so quick and responsive. Thank you HP_TOUCHPAD, shumash and everyone involved in making this happen.
 

HP_TOUCHPAD

Senior Member
Jan 18, 2017
1,329
567
Did the swap partition with the 2017.11.03 Evervolv build with nano Gapps and my tablet confuses me because it is so quick and responsive. Thank you HP_TOUCHPAD, shumash and everyone involved in making this happen.
It is FAST and you can do a lot on it, mostly is all about the settings apply in Kernel and Ramdisk that makes the magic and giving Android OS room to breath by placing in swap unnecessary services not need it at the moment, instead of killing it and been limited to only 1GB of RAM, it can expand allocating a lot of memory to the active application. Once you close the App Android will clean up the RAM and load it from the swap file and everything goes back to normal. Android is the perfect OS for swapping.
Can you share which Kernel speed worked for you?
 
  • Like
Reactions: mariosenta

Gborg3

Senior Member
Dec 5, 2013
298
72
HP Touchpad
OnePlus 6T
It is FAST and you can do a lot on it, mostly is all about the settings apply in Kernel and Ramdisk that makes the magic and giving Android OS room to breath by placing in swap unnecessary services not need it at the moment, instead of killing it and been limited to only 1GB of RAM, it can expand allocating a lot of memory to the active application. Once you close the App Android will clean up the RAM and load it from the swap file and everything goes back to normal. Android is the perfect OS for swapping.
Can you share which Kernel speed worked for you?
1782000 is what I flashed of the swap enabled kernel. That speed has been working well for me so I stuck with it. I am still using a few options in the L Speed app also. Nothing that contradicts the changes you have made. Just a few extra boosts and streamlining. The battery seems to drain more slowly also. I have not reflashed the A6 battery firmware since enabling swap and I expected the higher speed to drain more but everything is working great. No problems, no worries.
 

HP_TOUCHPAD

Senior Member
Jan 18, 2017
1,329
567
1782000 is what I flashed of the swap enabled kernel. That speed has been working well for me so I stuck with it. I am still using a few options in the L Speed app also. Nothing that contradicts the changes you have made. Just a few extra boosts and streamlining. The battery seems to drain more slowly also. I have not reflashed the A6 battery firmware since enabling swap and I expected the higher speed to drain more but everything is working great. No problems, no worries.
Contrary to believe a higher speed will not drain your battery. By using this settings the Tablet will have an extremely power efficiency. A higher speed only means if the CPU needs power to run an App is not going to be limited by the governor, but when idle does not consume much power. The modules on the Kernel have been remove so there is no kernel workers checking on how much memory to clean and all that extra task that is not need it. If your tablet will run at 1836 you will see the big difference, but if you are using any App to improve anything you are not going to see the full potential benefit. All those apps are only setting things up that are already set and working in the background slowing things down. None of them are need it, this is been run as a Tablet mode setting not a Phone.
 

Touchie Pad

Member
Feb 22, 2016
14
2
@ Touchie Pad,
Thanks for trying it out!
It will only work as intended by downloading the "Skz Kernel Optimize and Swap Partition enable" links provided.
It will not work at all by only downloading the ROM. The Dirty Unicorn ROM Kernel does not provide support for the swap file or optimized Android.
The proper Installation is:

1. Flash DU ROM "du_tenderloin-v12.5.3-20181116-0140-RC.zip" ( It has to be that in specific)

2. Flash one of the SKZ Kernel speed provided ( Without it, no optimization or use of the swap partition will happen"

3. You can install any Google Open Gapps, I have installed all version , please provide a link to the one that does not work for you and I will try it out!

4. If you want Root access you must install SuperSu and the SKZ Kernel allows System read and write ( is a complete open system)

Let me know if those were the steps you followed otherwise I will try to explain my instructions better![/QUOTE


I did it in that order...used pico and micro, also had the problem with the AOSP keyboard stopping which i remember having when i first flashed the ROMS. I flashed the 183 kernel..... works fast but i did have a reboot on the second day and the screen was just dark, rebooted a couple times and then reflashed the rom, and optimize, and super su files ......and all is up and running again. I was seeing -220ma drain up until i reflashed it. I will give it some more time to sort it all out, and play around with it a bit. The video playing is 1,000,000,000 times better, i love it, thanks a lot
 

HP_TOUCHPAD

Senior Member
Jan 18, 2017
1,329
567
@ Touchie Pad,
Thanks for trying it out!
It will only work as intended by downloading the "Skz Kernel Optimize and Swap Partition enable" links provided.
It will not work at all by only downloading the ROM. The Dirty Unicorn ROM Kernel does not provide support for the swap file or optimized Android.
The proper Installation is:

1. Flash DU ROM "du_tenderloin-v12.5.3-20181116-0140-RC.zip" ( It has to be that in specific)
All the testing that I have done and prove to be stable is on that version, I can only recommend what I have tested.

2. Flash one of the SKZ Kernel speed provided ( Without it, no optimization or use of the swap partition will happen"
All the settings are on the Kernel and Ramdisk (the boot image) no settings are on any ROM. If that Kernel is not apply no performance will happen it will be worse.

3. You can install any Google Open Gapps, I have installed all version , please provide a link to the one that does not work for you and I will try it out!

4. If you want Root access you must install SuperSu and the SKZ Kernel allows System read and write ( is a complete open system)

Let me know if those were the steps you followed otherwise I will try to explain my instructions better![/QUOTE


I did it in that order...used pico and micro, also had the problem with the AOSP keyboard stopping
Yes you are correct the Keyboard stops working in most of the ROM that is why I recommend it to install the FULL Google open Apps because, it will replace the stock Keyboard with the one original from google.
The issues has been around for as long as I can remember. The only way around is to flash another keyboard after installing pico and micro or you can do it manually. I do not know if I am allow to distribute google keyboard as a separte flash-able zip file, that will resolve the issue and all open gapps will work.

which i
remember having when i first flashed the ROMS. I flashed the 183 kernel..... works fast but i did have a reboot on the second day and the screen was just dark, rebooted a couple times and then reflashed the rom, and optimize, and super su files ......and all is up and running again. I was seeing -220ma drain up until i reflashed it.
If your tablet reboots at 1836, it may not be able to sustain that speed and it will be better to go for 1782, you will still be able to do the same. The CPU does not work at that speed all the time, only if it needs to and the cap is at 1836, but if stays that high and your CPU can not handle it then it will reboot, but others can maintain it.
I will give it some more time to sort it all out, and play around with it a bit. The video playing is 1,000,000,000 times better, i love it, thanks a lot
You will be able to play videos in HD 720 using youtube app and also the web browser. I use Opera as is easy to change to desktop mode and play music with the screen off. It can play for days none stop and no reboots, you can watch movies back to back a HD 720 no issues and will never close down or reboots, that is why the use of the swap file as an extra space to allocate memory resources.
But the most important do not install any app to optimize anything, it will make it worse, all the Kernel modules have been removed, there is nothing an app can do, just work in the background and make things worse.
It is set up to run as your PC or Laptop not as your Phone, that is the difference!
 
Last edited:

Gborg3

Senior Member
Dec 5, 2013
298
72
HP Touchpad
OnePlus 6T
@HP_TOUCHPAD I have flashed the 1836000 swap optimized kernel and left things as they are. Interactive BFQ the preferred setup for best performance? In the Toolbox I have set it just below performance with dynamic scaling as well. This TouchPad functions like a tesseract now. Speed of light? Bwahahaha, that is nothing compared to this.
 

HP_TOUCHPAD

Senior Member
Jan 18, 2017
1,329
567
I did it in that order...used pico and micro, also had the problem with the AOSP keyboard stopping which i remember having when i first flashed the ROMS. I flashed the 183 kernel..... works fast but i did have a reboot on the second day and the screen was just dark, rebooted a couple times and then reflashed the rom, and optimize, and super su files ......and all is up and running again. I was seeing -220ma drain up until i reflashed it. I will give it some more time to sort it all out, and play around with it a bit. The video playing is 1,000,000,000 times better, i love it, thanks a lot[/QUOTE]

I updated the guide and added the Keyboard Flash file to be use with Pico and Micro and the others. My advice, if you want the Tablet to run smooth fast and stable, flash all those files in that specific order and everything will work as a brand new device.
 
  • Like
Reactions: Gborg3

HP_TOUCHPAD

Senior Member
Jan 18, 2017
1,329
567
@HP_TOUCHPAD I have flashed the 1836000 swap optimized kernel and left things as they are. Interactive BFQ the preferred setup for best performance? In the Toolbox I have set it just below performance with dynamic scaling as well. This TouchPad functions like a tesseract now. Speed of light? Bwahahaha, that is nothing compared to this.
I know that is very contradicting after been accustom to use apps to get better performance, but with this set up none can be use.
The Kernel modules have been removed, there is nothing an app can do, it may even make the system unstable and worse.
The best is to disable the ToolBox in Evervolv. Is best to completely disable any background tune performance app. There is only two Governors Interactive and performance.
Is set to interactive by default it scales perfectly, no app is need it for that to happen is control my a kernel module.
Keep the system lean and simple you will get the best performance and efficiency. There is nothing to do, just don't install bloatware that will use resources without you knowing and creating lag.
 
  • Like
Reactions: Gborg3

Gborg3

Senior Member
Dec 5, 2013
298
72
HP Touchpad
OnePlus 6T
I know that is very contradicting after been accustom to use apps to get better performance, but with this set up none can be use.
The Kernel modules have been removed, there is nothing an app can do, it may even make the system unstable and worse.
The best is to disable the ToolBox in Evervolv. Is best to completely disable any background tune performance app. There is only two Governors Interactive and performance.
Is set to interactive by default it scales perfectly, no app is need it for that to happen is control my a kernel module.
Keep the system lean and simple you will get the best performance and efficiency. There is nothing to do, just don't install bloatware that will use resources without you knowing and creating lag.
I am following your advice and doing as you say. Lean, simple and set to run fast has Android N running as well as kitkat did. Thank you very much @HP_TOUCHPAD
 

Gborg3

Senior Member
Dec 5, 2013
298
72
HP Touchpad
OnePlus 6T
[/COLOR]
hello everyone! how does this swap thing influence flash storage? Will it degrade much faster using this way?
With this age device and a swap partition in the flash memory being used often, it will likely degrade somewhat faster. No guarantee or prediction of how much faster because all devices behave differently. Think along the line how different TouchPads can functionally use different max processor speeds. You can have a quick and functional TouchPad that will degrade faster or one that is usable for almost nothing.
 
Last edited:

Steelskinz

Senior Member
Mar 14, 2012
376
56
Lyon
Great tutorial dude. Thanks !

Waiting to reboot after flashing rom/gapps/keyboard/kernel/su right now.. :)
 

HP_TOUCHPAD

Senior Member
Jan 18, 2017
1,329
567
hello everyone! how does this swap thing influence flash storage? Will it degrade much faster using this way?
I updated the guide with a short statement. I want to make things very easy and quick to follow but the problem is that there are more Taboo to dismantle than the settings itself.
I will try to explain in in here:
A swap file is created by default in all modern Linux installation. There is nothing new about this and everyone that has ever owned a PC knows about it.
Swapping only takes place when the system requires more memory than is physically available.
Any time you would like to see how much memory Android is using type this in on PC using adb shell or in terminal in Android:
free -h
This is Dirty Unicorns with basic ROM installed:
Code:
ubuntu@ubuntu:~$ adb shell
root@android:/ # free -h
		total        used        free      shared     buffers
Mem:             828M        574M        254M           0        5.4M
-/+ buffers/cache:           568M        260M
Swap:            504M           0        504M

Is the basic ROM nothing installed.

This is Dirty Unicorn installed with Micro gapps as the guide:
Code:
root@android:/ # free -h
		total        used        free      shared     buffers
Mem:             828M        804M         24M           0        8.9M
-/+ buffers/cache:           795M         33M
Swap:            504M         16M        488M

There is 16MB used in swap, because the system is set up to 60% swapping.

Android is the King of swapping, it does it all the time. Is not a true multitasking OS, it places background Apps in hibernation, temporally storage. Then when active it pick ups where it was left, it gets awake. The swap file is the perfect place to place anything that the user is not using at the moment and then load it later. It is not going to be use to be running the OS, it will be extremely slow to run Android or any App directly from swap space. Is only use to free RAM to run Apps and make the system stable instead of killing services and process.
The swap will help all the components by making the CPU, RAM and storage work less. To keep Android alive with only 1 GB or RAM the CPU has a lot of overhead and the RAM is been constantly in use. For example zRAM, compress Memory for swapping. The CPU has to compress and uncompressed everything that is going into zRAM plus the RAM is constantly been used with read and writes, none stop.
Is the other way around with swap, what is not need it is place there, nothing else is working , all at rest!
Hopefully this explain a little is the basic!
 
Last edited:
  • Like
Reactions: Gborg3 and geddy3

HP_TOUCHPAD

Senior Member
Jan 18, 2017
1,329
567
Great tutorial dude. Thanks !

Waiting to reboot after flashing rom/gapps/keyboard/kernel/su right now.. :)

You are welcome, but the only way to find out if the tutorial is set up properly is if the user can achieved the results.
Otherwise something got lost in the translation, hopefully it worked for you with no issues.

Update:
The Keyboard zip files got updated today February 23, to completely removed the LatinIME directory and then recreated again and copy all files the files from google Open Gapps Keyboard.

Pico works great now, it will be best to install the minimum and add Apps as you need.
 
Last edited:
  • Like
Reactions: Gborg3

Gborg3

Senior Member
Dec 5, 2013
298
72
HP Touchpad
OnePlus 6T
The computer I used somehow deleted most of what I backed up from my TouchPad. It kept the TWRP backup of /boot in existence. For anyone with ample use and data on theirs this could aggravating but it caused me to do a cleaner clean install. I did not remember which apps I had on mine so I now have less than 80 total apps on mine and after flashing the full wipe zip and the swap partition creation zip I restored my backup of /boot so I had a TouchPad Toolbox uImage available in moboot and a spectacularly quickly performing tablet. Minimizing excess like this made my TouchPad as quick and responsive as the new iPad one of my roommates recently got.
I have one suggestion and one question -
Setup instructions for swap will be more understandable if accompanied by full written step-by-step instructions.
What are your thoughts on the effects of setting the number of background processes maximum to one or two after boot?

Swap allows for more to be done without lagging but these are still 8 year old tablets so I am curious about the expert opinions. @HP_TOUCHPAD and @shumash
It would be helpful to hear both of your thoughts on this matter.
 

HP_TOUCHPAD

Senior Member
Jan 18, 2017
1,329
567
The computer I used somehow deleted most of what I backed up from my TouchPad. It kept the TWRP backup of /boot in existence.
When you back up the tablet using TWRP, you have to select the partitions /System and /Data. Boot is not necessary at all and you do not want to back up or restore boot in this case as it will restore LVM old configuration files. That is the reason that this guides wipes and reformat /boot and places TWRP on it.
For anyone with ample use and data on theirs this could aggravating but it caused me to do a cleaner clean install.
A clean install is the best option to do, there are Apps that will back up only the Apps if you do not use the Play Store
I did not remember which apps I had on mine so I now have less than 80 total apps on mine and after flashing the full wipe zip and the swap partition creation zip I restored my backup of /boot so I had a TouchPad Toolbox uImage available in moboot and a spectacularly quickly performing tablet.
After you do apply the Full wipe zip flash file it is not a good idea at all to restore /boot, and there is no need.
Boot keeps the uImages of the ROM and LVM ( storage partition configuration and size ). It could keep the old partition layout, I have not tried that myself.

Minimizing excess like this made my TouchPad as quick and responsive as the new iPad one of my roommates recently got.
The less Apps you have or keep it to what you really needs, the faster the Tablet will be. This apply to any computer. The worse is to have bloatware, most run in the background or create process that keeps the CPU working most of the time.
I have one suggestion and one question -
Setup instructions for swap will be more understandable if accompanied by full written step-by-step instructions.
What area do you think that must be written better?
1. How to back up and restore.
2. Or the process to flash the Wipe_ALL zip flash file.

What are your thoughts on the effects of setting the number of background processes maximum to one or two after boot?
The background process limit that you can setup under Developers options is how many Apps Android will keep in pause (hibernation), when you open another app, it has nothing to do with process that are launch to collect data or updates. Those are terminal commands to apply to each specifically installed Apps to prevent it from activating its data collection. Keep in mind Android and many Apps are free, but in exchange off data mining.
Swap allows for more to be done without lagging but these are still 8 year old tablets so I am curious about the expert opinions. @HP_TOUCHPAD and @shumash
It would be helpful to hear both of your thoughts on this matter.
Can you provide the link to the experts options? """ Corrections , Gborg3 said opinions my brain captured options """" This is a great example when humans interact!
All the flash files on provided on this guide will apply all the settings that any expert can do by entering line y line in a terminal window.
The tablet is old but the basic of streaming HD video, using the Web, running Apps, all that can be done as with any other device. The most important is to have the most current ROM and the open gapps installed.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 23
    HP Touchpad Universal Optimize Swap Settings for All Android ROMs

    MAX 1GB RAM - MAX 1836 Frequency


    Click HERE for detail Memory and Frequency information for each ROM
    Click HERE to dual boot all listed Android ROMs and LuneOS
    Click HERE for PowerOFF - Prevents Battery Drain
    Upated: November 12, 2020: Added HP TOUCHPAD DEBRICK Linux Live CD
    Upated: November 12, 2019: Added PowerOFF
    Upated: November 07, 2019: Rom_Reducer to Evervolv, Kitkat by Milaq and LuneOS
    Upated: October 09, 2019: HpTp_MaXtreme (Max Extreme Kernel Settings for All ROMs)
    Upated: October 01, 2019: Added ROM: LineageOS 11 Kitkat by Milaq build October 01, 2019
    Upated: September 28, 2019: All_Files for Lollipop got updated to fix WiFi
    Upated: September 25, 2019: Added ROM LineageOS 14.1, HpTp_MAX_Settings, 1GB Swap
    Upated: September 2, 2019: Fix Evervolv 7.1.2 Frequencies, Created: Universal Authority, Added: Evervolv Pie, Posted: Universal Settings
    Upated: August 24, 2019: HP Touchpad Novacom Repair Android
    Upated: August 2, 2019: New Improved Settings: HpTp_Universal_Optimized_Swap
    Added ROM_Reducer; Removed support for Lineage 11
    Upated: July 12, 2019: Flash ToolBox v42 by jcsullins to /boot
    Upated: July 8, 2019: /System Partition is 2.2 GB:/ Improved Settings to All ROMs

    ________________________________________________________________
    HP TOUCHPAD DEBRICK Linux Live CD
    Built in with all the tools to properly run TP Debrick v005 by jcsullins and also novacom drivers.
    Click HERE for the Guide
    Click HERE to Download ISO File
    ________________________________________________________________
    HP Touchpad Novacom Repair Android
    Built in Novacom Driver, Repair non bootable Tablet, Flash ToolBox, Modify Ramdisk and more !
    Click HERE for the Guide
    Click HERE to Download ISO File
    ________________________________________________________________
    Back up any data before making any changes to the Tablet, follow this guide:
    Click here on how to backup ROM to PC and restore
    Important, do not restore the /boot partition
    ________________________________________________________________
    For WebOS users
    WebOS has the swap partition and it can be share with Android.
    There is no need to Flash the file Automatic_Wipe_All_and_Create_Android_with_Swap.
    But to use Android PIE, Oreo and Nougat the Android /system partition must be 1400 MB.
    There are two options to resize the Android /system partition.
    Inside webOS using Tailor:
    Click here for Tailor
    Using the ToolBox:
    Click here to download the ToolBox
    After the Android /system partition have been resize Flash any listed ROM.
    ________________________________________________________________
    The Automatic_Wipe_All_and_Create_Android_with _Swap can be flash using any Recovery.
    It is best to use TWRP Recovery Version 3.1 or 3.2

    Click here to download TWRP Recovery 3.1 by Flintman
    Click here to download TWRP Recovery 3.2 by Flintman
    ________________________________________________________________

    Easy Automatic process to Wipe All and Create Android partitions with Swap 1GB or 500MB

    Click Here to Download Automatic_Wipe_All_and_Create_Android_with _Swap, choose 1GB or 500MB
    This file MUST BE FLASH to create the swap partition to be use by the listed ROMs
    A complete Data RESET of all the internal storage.
    All partitions are deleted, is a total fresh start as if the Tablet came from factory with only Android install.
    The Android partitions are created and formatted ready for use:
    /system 2.2 GB ( Allows to install any ROM plus the maximum size of Open Gapps Variant Super )
    /cache 200 MB ( Standard size )
    /media 1GB or 500MB ( USB Media in Android, use it to save the ROM, Gapps and Universal Settings to Flash )
    HpTp_MAX provides more RAM available and Android can use over 750 MB of swap space.
    /swap 1GB or 500MB
    ( It allows Android to store temporally Data from RAM to allocate more Memory for Apps. )
    /data depends on the model 16, 32 or 64 GB ( The free space available for Android Apps and user Data )
    /boot 32 MB ( Is a fixed sized ) Moboot will be created and also TWRP Recovey 3.2.
    The Tablet will boot as always, with Recovery in the Moboot Menu ready to Flash any ROM.
    ________________________________________________________________
    Flash all listed ROMs in the order to download:
    1. First the ROM ( Only the specific ROM by the built date will work )
    2. HpTp MAX Universal Optimize Swap Settings ( Enables swap partition and provide the best settings for Android )
    All_Files (name of the ROM) zip contains everything. Uncompress on PC first then flash the selected frequency.
    2_A Optional -- HpTp_MaXtreme (Max Extreme Kernel for All ROMs)
    Click HERE to Download HpTp_MaXtreme for All ROMs
    If you do not know the maximum CPU speed of your Tablet flash 1674 first to set up.
    All Kernels are the same, the speed is preset to avoid installing any Kernel App in Android.
    Do not install any Apps in Android to make the Tablet work faster, it will be the opposite.
    It will use more RAM and cause reboots, there is nothing to change.
    This is a laptop with a touch screen keyboard not a phone.
    3. Optional -- ROM Reducer Click HERE for ROM Reducer
    4. Flash the Open Gapps according to the ROM version, is best to install Pico and build the system as need it.
    5. Optional -- All listed ROMs have /system Read and Write enabled, Click HERE for Root access using SuperSu v2.82
    6. Optional -- Universal Authority Click HERE for Universal Auhority
    7. Important: Read the section on this guide -- Flash the ToolBox 2015-01-08-v42 by jcsullins into /boot
    Flash the files in the listed order in TWRP all at one time.
    The Tablet will boot into the Welcome setup screen as a brand new Device.

    ________________________________________________________________
    Root access with SuperSu v2.82 for all the ROMs
    5. Click Here to Download SR5-SuperSU-v2.82
    ________________________________________________________________

    Evervolv v9 Android PIE by Elginsk8r
    1. Click Here to Download the ROM
    2. Click Here to Download HpTp_MAX, select All Files for this ROM
    4. Click Here to download Google Open Apps
    Select Platform ARM, Android 9 and the Variant you want, Pico is recommended
    Click Here for detail information about the Pie ROM
    ________________________________________________________________

    Dirty Unicorns v13 Android PIE by Flintman
    1. Click Here to Download the ROM
    2. Click Here to Download HpTp_MAX, select All Files for this ROM
    4. Click Here to download Google Open Apps
    Select Platform ARM, Android 9 and the Variant you want, Pico is recommended
    Click Here for detail information about the Pie ROM
    ________________________________________________________________

    Dirty Unicorns v8.1 Android Oreo by Flintman
    1. Click Here to Download the ROM
    2. Click Here to Download HpTp_MAX, select All Files for this ROM
    4. Click Here to download Google Open Apps
    Select Platform ARM, Android 8.1 and the Variant you want, Pico is recommended
    Click Here for detail information about the Oreo ROM
    ________________________________________________________________
    Evervolv 7.1.2 Android Nougat
    1. Click Here to Download the ROM
    2. Click Here to Download HpTp_MAX, select All Files for this ROM
    4. Click Here to download Google Open Apps
    Select Platform ARM, Android 7.1 and the Variant you want, Pico is recommended
    Click Here for detail information about the Nougat ROM
    ________________________________________________________________
    LineageOS 14.1 Android Nougat 7.1.2 by invisiblek
    1. Click Here to Download the ROM
    2. Click Here to Download HpTp_MAX, select All Files for this ROM
    4. Click Here to download Google Open Apps
    Select Platform ARM, Android 7.1 and the Variant you want, Pico is recommended
    ________________________________________________________________
    CyanogenMod 12.1 Android Lollipop by Jcsullins
    1. Click Here to Download the ROM
    2. Click Here to Download HpTp_MAX, select All Files for this ROM
    4. Click Here to download Google Open Apps
    Select Platform ARM, Android 5.1 and only Pico
    Click Here for detail information about the Lollipop ROM
    ________________________________________________________________
    CyanogenMod 11 Android KitKat by Jcsullins
    1. Click Here to Download the ROM
    2. Click Here to Download HpTp_MAX, select All Files for this ROM
    4. Click Here to download Google Open Apps

    Select Platform ARM, Android 4.4 and only Pico
    Click Here for detail information about the Kitkat ROM
    ________________________________________________________________
    LineageOS 11 Android KitKat by Milaq November, 01 of 2019 Build
    1. Click Here to Download the ROM
    2. Click Here to Download HpTp_MAX, select All Files for this ROM
    4. Click Here to download Google Open Apps
    Select Platform ARM, Android 4.4 and only Pico
    Click Here for detail information about the Kitkat ROM
    ________________________________________________________________
    ROM Reducer
    Click HERE for the Guide
    2.Click HERE to Download, ROM Reducer is included in the All Files for each ROM.
    ________________________________________________________________
    Universal Authority
    Click HERE for the Guide
    6. Click HERE for the Flash Files
    ________________________________________________________________
    Flash the ToolBox 2015-01-08-v42 by jcsullins into /boot
    ________________________________________________________________
    After successfully flashing any of the listed ROM the ToolBox can be flash into boot to maintain the battery.
    Do NOT use the ToolBox to Resize or Repair Android Volumes.
    If done it will corrupt all the Volumes ( Partitions ) and a PC with the Novacom driver must be use.
    The ToolBox does not display the /swap partition, it was not created for that purpose.

    Only after flashing all files from this guide the /boot partition has just enough space for the ToolBox.
    7. Click Here to download all the files to flash the ToolBox to boot/
    Flash_TPToolBox_v42_to_Boot.zip ( delete any splash *.tga images files and copy ToolBox into /boot )
    Remove_TPToolBox_v42_from_Boot.zip ( delete the ToolBox from /boot )
    If more than one ROM got flash and the ToolBox was not successfully copied to /boot then use this file:
    Clean_Boot_Remove_All_ROM_Files.zip
    It will create a back up of the boot files and clean /boot preserving the basic files, MoBoot and TWRP.
    Then the Flash_TPToolBox_v42_to_Boot.zip can be flash.
    Plus the Universal Optimize Swap Settings for the ROM installed in the Tablet.
    The Universal Optimize Swap Settings copies the boot uImage for the ROM into /boot.
    Keep all the downloaded files in the Micro SD card (USB Media) /external_sd ( it goes by all those names )
    Any of the listed files can be flash any time and a PC is not required to maintain the battery of the Tablet.
    Special Thanks to Jcsullins "The God Father of the HP Touchpad" for all the unique and great software that made it
    possible to transition easily from WebOS to Android.

    Click Here for my guide on How to unpack and repack the ToolBox
    ________________________________________________________________
    /boot Partition Detail Information
    ________________________________________________________________
    Code:
    The boot partition was created with the basics to get everything working and provide
    enough storage to accommodate:
    TWRP/Recovery 3.2,  each of the listed ROMs from Kitkat to Pie and the ToolBox.
    The size of /boot is 32MB, is a fix size and can not be expanded.
    Boot partition details after Automatic_Wipe_All:
    
    Directories:             size   file name
    bin                     647.5k busybox
    etc                      16.1k  lvm.conf
    lib
    lost+found
    usr                      1.2M   lvm.static
    
    Files:                   size
    android.default.recovery  9 bytes
    uImage                  13 bytes (link to uImage.moboot )
    uImage.moboot           63.8 K
    uImage.Recovery         10.6 M
    
    Total:
    /dev/block/mmcblk0p13     size     used    available Use %
                             32.0M     14.1M     17.9M  44% /boot
    
    A clean /boot has 17.9M of free space
    
    Free Space After Pie ROM
    /dev/block/mmcblk0p13
                             32.0M     20.8M     11.2M  65% /boot
    The ToolBox is 11.2M
    
    After flashing the ToolBox
    /dev/block/mmcblk0p13
                             32.0M     31.6M    395.0K  99% /boot
    There is only 395.0k available.

    ________________________________________________________________
    HpTp Universal Optimize Swap Settings
    ________________________________________________________________
    The following settings are applied to all listed ROMs and makes the Tablet work as a Laptop, not a phone.
    All Developers have done a great job building the ROMs, if the same settings are apply then all performs very similar.
    The hardware does not change and the basic requirements must be apply to all Android version.
    There is nothing to add, but removed all the modules and only use the swap option.
    The following features must be disable and can not be use:
    Disable KSM, Low Memory Killer, CPU Boost, mpdecision

    Changes in the Ramdisk:
    The changes can be permanently modified using:
    Click HERE to modify the Ramdisk
    Not Permanent, Inside Android:
    Click HERE to modify inside Android

    File in the Ramdisk:fstab.tenderloin
    Code:
    /dev/store/swap                                none              swap    defaults                                              swapprio=0, 0    0

    File in the Ramdisk:init.rc
    TCP Buffer increase to 6MB
    Code:
    on boot
    # Define TCP buffer sizes for various networks
    #   ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax,
        setprop net.tcp.buffersize.default 4194304,5242880,6291456,4194304,5242880,6291456
        setprop net.tcp.buffersize.wifi    4194304,5242880,6291456,4194304,5242880,6291456
    
    # Assign TCP buffer thresholds to be ceiling value of technology maximums
    # Increased technology maximums should be reflected here.
            write /proc/sys/net/core/rmem_max  6291456
            write /proc/sys/net/core/wmem_max  6291456
    extra_free_kbytes 20480
    Code:
    # system server cannot write to /proc/sys files,
    # and chown/chmod does not work for /proc/sys/ entries.
    # So proxy writes through init.
    on property:sys.sysctl.extra_free_kbytes=*
        write /proc/sys/vm/extra_free_kbytes 20480
        # write /proc/sys/vm/extra_free_kbytes ${sys.sysctl.extra_free_kbytes}

    File in the Ramdisk:Init.tenderloin.rc
    Code:
     on fs
        # Enable swap partition
        swapon_all /fstab.tenderloin
    
    on property:sys.boot_completed=1
        # Swap Partition Settings
        write /proc/sys/vm/block_dump 0
        write /proc/sys/vm/dirty_background_bytes 0
        write /proc/sys/vm/dirty_background_ratio 10
        write /proc/sys/vm/dirty_bytes 0
        write /proc/sys/vm/dirty_expire_centisecs 600
        write /proc/sys/vm/dirty_ratio 20
        write /proc/sys/vm/dirty_writeback_centisecs 600
        write /proc/sys/vm/drop_caches 3
        # change in ramdisk init.rc  write /proc/sys/vm/extra_free_kbytes 20480
        write /proc/sys/vm/highmem_is_dirtyable 0
        write /proc/sys/vm/laptop_mode 0
        write /proc/sys/vm/legacy_va_layout 0
        # write /proc/sys/vm/lowmem_reserve_ratio 32    32
        write /proc/sys/vm/max_map_count 65530
        write /proc/sys/vm/min_free_kbytes 40960
        write /proc/sys/vm/min_free_order_shift 4
        write /proc/sys/vm/mmap_min_addr 32768
        write /proc/sys/vm/mmap_rnd_bits 16
        write /proc/sys/vm/nr_pdflush_threads 0
        write /proc/sys/vm/oom_dump_tasks 0
        write /proc/sys/vm/oom_kill_allocating_task 1
        write /proc/sys/vm/overcommit_memory 1
        write /proc/sys/vm/overcommit_ratio 50
        write /proc/sys/vm/page-cluster 8
        write /proc/sys/vm/panic_on_oom 0
        write /proc/sys/vm/percpu_pagelist_fraction 0
        write /proc/sys/vm/scan_unevictable_pages 0
        write /proc/sys/vm/stat_interval 1
        write /proc/sys/vm/swappiness 100
        write /proc/sys/vm/vfs_cache_pressure 100
    
        # Increase readahead buffers on MMC devices
        write /sys/block/mmcblk0/bdi/read_ahead_kb 0
    
        # CPU Scaling
        write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 384000
        write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq 384000
        write /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq 1674000
        write /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq 1674000
    
        # Configure Performance
        write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor performance
        write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor performance
    
        # Entropy
        write /proc/sys/kernel/random/write_wakeup_threshold 2048
        write /proc/sys/kernel/random/read_wakeup_threshold 1195
    
        # I/O
        write /sys/block/mmcblk0/queue/rq_affinity "0"
        write /sys/block/mmcblk0/queue/scheduler "bfq"

    ________________________________________________________________
    Disclaimer: I am not a developer, just a regular user like YOU that have found a way to improve the Tablet and would like others to benefit by sharing the information.
    I am not the creator of any ROM, Recovery or App mentioned or used. All credits goes to the developers than have worked and provided the best ROMs there is for our Tablet and there are way too many to mentioned, but everyone know who they are! Thanks a lot to all of YOU (Developers for the HP Touchpad)!
    Special Thanks:
    @flintman for all his work creating TWRP Recovery and the many customs ROMs with the latest PIE.
    @elginsk8r for developing and maintaining Evervolv ROMs, currently PIE.
    * The stock Kernel has been modified to provide more RAM and a higher frequency.
    5
    Hey everyone so i tried both versions now 7.1 and 8.1 with every different skz including the stock ones.
    With the current settings Hearthstone will play on 8.1, updating the files.
    All versions crash when trying to play ff9 or hearthstone. I even underclocked and changed voltages literally every setting possible and nothing stops it from crashing. Having the swap file or not dosnt matter or stock kernel or skz kernel 1.7ghz. Ive underclocked the gpu to stock nothing works to keep either of these builds stable. I really need some help here as it seems only cm11 4.4 nightlies and jcsullivans works fine and does not crash on heavy load.
    I have done all those testing, but none of that are the issue and I just found out about 2 days ago by applying changes to Android 9.
    I actually think it is the 3.4 kernel in general that it causing this as no matter the overclock or settings it crashes. If anyone here has experienced this please lend a helping hand. Thanks everyone for your time.
    For the record, the Kernel is stable and solid and the ROM is not the problem. The issue is how Android is designed to work, as an operating system is the worse ever created and I will explain why.
    In my understanding the Operating System ( OS ) should give the best use of the hardware detected and provided by the Kernel. It should some how manage to accommodate the resources for an App to run. I use Hearthstone to test my settings, if I can play the game successfully then the settings are correct. Android is not designed to take in consideration the amount of RAM available, the system resources been use, the CPU utilization. It does not manage anything, everything is done with manual settings by applying KSM modules low memory killers. Everything is by killing process to make another one run and those settings the user must decide what to enter, is a mess.
    And the worse of all the settings that create lags and Apps not running, is the Dalvik Virtual Machine.
    Android Apps are written in Java and to get around the licensing with Oracle the codes run using the open source Dalvik Virtual Machine. Basically there is a Virtual Machine running the App codes than then uses the RAM to run. The settings for the Dalvik Virtual Machine are manually enter in the build.prop located in the /system partition.
    All settings are specifically enter for each specific Device, according to the screen size and RAM available, is preset from factory.
    By changing the following, the Apps will behave completely different or not work at all. It can have 8 GB or RAM, but if is set to minimum it will work as a low memory Device.
    dalvik.vm.heapstartsize=
    dalvik.vm.heapgrowthlimit=
    dalvik.vm.heapsize=
    If you do a search you will find all kind of settings by users claiming that the settings they have changed work better, but because is specifically to only the Device or amount of free RAM available it does not work for others. In the case of the HP Touchpad, it never came with a default Android and the numbers have been a guessing formula and it changes with every ROM and also the amount of install Apps.
    How does this affect the Apps?
    If after the ROM is install there is 350 MB of free RAM and the dalvik.vm.heapsize= is set to 350, then when the App that required more RAM try to run, the heapsize will grow to 350 MB , but that is the free RAM which is taken and then no actual RAM to be use and it crash or close.
    But if the Dalvik settings are set low then it will barely work, even if there is 8 GB free RAM.
    That is the reason that some Apps does not work for everyone as every user has different Apps installed providing a different amount of free RAM.
    Is very difficult to have the perfect Dalvik settings for a low device as Android process are working in the background and it only takes a 20 MB process to launch for an App to crash or not work at all.
    If Android will automatically detect the amount of RAM entered in the App manifest (settings) and adjust the Dalvik Virtual Machine size and dropped unnecessary process to free RAM then more apps will work on every device, but it does not work that way, all settings are manually enter per device.
    Hopefully I explained the issue correctly and attached are the screenshots taken using Android Pie (9) with open gapps Pico. Hearthstone plays perfectly as you can see I have progress on the game, I will provide all the flash files for everyone to achieved the same results, but I am testing and improving.
    4
    Any news about settings for the lineage build ? Thanks.
    There is going to be big news for lineage build and all the listed ROMs from this guide.
    I have been optimizing the Kernel and found extra RAM (Memory) that has been excessively reserved for no use at all and settings that makes the Tablet run slower. All ROMs have it set up that way. I will provide the new setting as HpTp_MAX_ for all the ROM's that the Kernel can be properly re-compile.
    The Tablet will work even faster and smoother than now, with an average of 100 MB of extra RAM.
    That is the reason that I have not provided the settings for Lineage, I am redoing them all.
    The attached screenshot is from Evervolv 9 Pie flash with Super Open Gapps showing 931.9 MB of RAM, that is even more than the RAM available in WebOS.
    3
    Well reasoned. Like I said, different strokes for different folks. I'm not going to debate. Use my kernel, don't use it, whatever.
    We are here to debate in a positive constructive way, to share our point of view and provide options. Nobody is right or wrong, but two brains think better than one and that is part of a debate. The Kernel and Ramdisk provides 90% of all the settings as you know I have posted guides on how to do it all, but is confusing and asking too much for a regular user to do, the best we can do is provide the users and easy way to use the Tablet to its maximum capabilities and at the same time is a learning challenge on how to get things working on a extremely low antiquated resource device by today's standard.
    Look I had to learned how to play this game, ( I am not a gamer) just to prove that Android 9 with a swap partition with my suggested and posted settings works.
    Click Here for How to Play HEARTHSTONE® by Blizzard Entertainment on HP Touchpad
    3
    Thank you for taking the time and update your kernel to 9, this are my comments:
    It does boot and works, even have access to the SDcard.
    I have made changes to the swap settings that will improve performance, is only on the Ramdisk and can easily be added.
    But this modules are still active on the Skz kernel and are not available anymore on the Stock Pie Kernel by Flintman and that is what I have done all my testing and performance with. Attached are the screen shots of the settings that are still active, plus the 3D GPU settings are not set to full frequency.

    That's because I'm not defaulting to your settings. It's still up to the user to decide what they want. They can easily set those parameters with Kernel Adiutor or any other kernel tuner. Not everyone considers particular parameters as "optimized". Your's are for video performance; personally, I set mine for battery life. Different strokes for different folks.