yashsingh1/xdaforums huggingface dataset:
[TouchPad General] HP_TOUCHPAD:
By typing the following command using a Terminal emulator inside Android or by connecting the Tablet to a PC with adb shell:

free -h

It will show the available memory and the size of the swap partition.

The swap partition allows for Android to move data in RAM (memory) that is not using into swap, example:

Android could use about 800 MB or RAM, out of the 1GB, then there is 200 MB available.

If an App (example: youtube ) is open it will need about 200 MB or more to run, then data that is RAM is moved to swap (removed from RAM and copy to swap), creating more space in RAM for youtube to work, this is done without killing any service, just placed on standby. Once youtube is close then data from swap will be move again to RAM if need it. The swap partition helps any low memory device (PC, Tablet, smartphone ..etc..) run Apps or software that can not run do to limited RAM resources.

On the HP TP using Android it will allow for over 500 MB of RAM to be available to run any App that requires that amount and still be stable, with the trade off of waiting time to move data from RAM to swap and vise versa.
[TouchPad General] HP_TOUCHPAD:
If the Tablet has WebOS installed, it already has a swap partition of 400 MB ( all the HP TP had one originally with WebOS).

The only extra requirement is to have the /system partition to be 1.4 GB or larger in size to be able to flash 7.1.2, 8.1 and 9, to do so it must be done using the ToolBox or if you had Taylor installed then it can be extended inside WebOS.

Inside WebOS in a Terminal emulator type free and it will show the available memory and also swap of 400 MB.

Inside Android using a Terminal emulator type free -h and it will show memory with swap 504 MB , if it shows 0 been use then the system has not started swapping yet and only will if need it. The flash files provided on this guide must be flash in order to enable Android to recognize the swap partition and use it.

If the Automatic_Wipe_All_and_Create_Android_with_Swap_Partition.zip will delete WebOS and create an Android only system with a 500 MB.

This guide and all the settings are design for Android to share the swap partition from WebOS, that way users that want to keep WebOS can do it and are not force to remove it.

The swap partition can be share by Android and WebOS with no issues, in WebOS is 400 MB and now in 100 % Android is 500 MB, the extra 100 MB does not provide more memory, but with a WebOS install the Tablet will have lower read and write speeds, this is not due to the swap but how the layout of the partitions is done.

To manually create the swap partition, the original from WebOS must be deleted it and that will break WebOS, do not do that.

Do not flash that file if you want to keep WebOS, just make sure you flashed the appropriate Optimized settings that has the proper CPU frequency from the guide.
[TouchPad General] unmesh59:
It looks like I might have deleted WebOS and forgotten that I had done so since it is no longer showing up as a selection under moboot

While running Android, "free -h" shows Swap: 0 0 0

TP Toolbox shows the following partition sizes:

media 1112

cm-cache 256

cm-data 26000

cm-system 1536

What next?
[TouchPad General] HP_TOUCHPAD:
From the partition sizes it does shows too much space allocated to cm-data 26000 and too little for media 1112, it does look as you may have wipe out WebOS using the ToolBox using the Data Reset.

The ToolBox was design to create Android partitions but without swap as WebOS had it, but it was not implemented in any old ROM to use the swap partition on Android.

If you want to convert the HP Touchpad to a 100% Android Tablet with swap, then flash the Automatic_Wipe_All from this guide and then flash any ROM as listed on here, is very simple the only thing you need to do is download the files and flash them in the listing order.
[TouchPad General] unmesh59:
I did a full wipe and install as you suggested but I have only 128MB of swap reported by Android 7.1.2

TP Toolbox shows the following partition sizes:

media 504

cm-cache 200

cm-data 26624

cm-system 1952
[TouchPad General] HP_TOUCHPAD:
The Automatic_Wipe_All will create a 504 MB swap partition guarantee with no errors.

How did you check the size of the swap partition?
[TouchPad General] HP_TOUCHPAD:
The ToolBox does not show the swap partition, it was not created to see any other partition other that the one you listed, the basic Android partitions.

As you can see the media partition is 504 MB (USB_MEDIA), the other 504 MB is allocated to the swap partition a combined total of 1 GB.

Do not use the ToolBox to check partitions, expand or resize after flashed the Automatic_Wipe_All.

What command did you enter or where in Android 7.1.2 do you see the 128 MB?

To check all the partitions using LVM (Logical volume management) is the only one that will report all the partitions correctly in the Tablet.

Boot into TWRP/Recovery

Touch (( Mount))

Select Boot ( first on the list ) make sure is check. Go back to Home screen.

Touch on (( Advance ))

Touch on (( Terminal ))

and enter the following command:

[SIZE="4"]/boot/usr/sbin/./lvm.static lvs[/SIZE]

press enter ( the symbol on the right size of space bar after the dot )

It will show all the partitions.
[TouchPad General] unmesh59:
The 128MB was the total size of swap shown by the "free -h" command in terminal app in Android

Running your command shows a swap partition of 504MB
[TouchPad General] HP_TOUCHPAD:
Did you flashed the Optimized setting zip file for the ROM that you are using that is posted on this guide?

The 128 MB is the ZRAM swap file that was used on older ROMS.

Can you described how you installed the ROM?
[TouchPad General] unmesh59:
First, I installed Automatic_Wipe_All_and_Create_Android_with _Swap and let it reboot etc

Then, from TWRP, the Evervolv 7.1.2 ROM, the 1728 optimized setting file, then opengapps, then keyboard fix, then SuperSU

Rebooted into Android, went back to TWRP and flashed FLINTMAN TWRP 3.1.0

All files were from the links in the OP
[TouchPad General] HP_TOUCHPAD:
Are you using any Kernel app to make any changes?
[TouchPad General] unmesh59:
No kernel apps were used

Flashing the new Optimizer file gives total swap of 504MB!
[TouchPad General] HP_TOUCHPAD:
Thanks for reporting that it worked for you, those files are exactly from this guide. I will double check the 1728 if there is any error on that version as everything is possible.

If the stock ROM is use and the Optimize files not flash then, Android will not see the 504 MB swap partition and will work as before using zRAM a 128 MB swap file in RAM, making the CPU work harder to compress and decompress the data that it places on the zRAM swap. The zRAM was created for low RAM devices that could not get a swap partition, is a work around that was used since the beginning on HP TP, but as the Android versions increase the RAM consumption, it made it worse
[TouchPad General] unmesh59:
I'm pretty sure I flashed the Optimize file but there is always the possibility I did not the first time around. Thanks for offering to take a look.
[TouchPad General] HP_TOUCHPAD:
I just check the 1728 version and the swap partition is listed on the fstab:

/dev/store/swap	swap swap defaults swapprio=1, 0 0

If that line of code is not added in the fstab.terderloin file located in the Ramdisk, Android will not see the swap partition and will not be use.

It is always a good idea to double check, as we are humans and by mistakes is how we came to be.
[TouchPad General] smithylovestouchpad:
Last time I asked back on May 5th, you seemed positive about getting this working. Not so much now?

Smithy
[TouchPad General] costy11:
I have Pie all installed and running fine. My issue is that all videos MKV w/ DTS audio, stutter and dont play properly on it now. I am using VLC and have tried other players but have not found one that will work.

They worked fine on Evervol 7.1.x

Any way to fix this or does anyone have another player that works?
[TouchPad General] stuartbdavies:
I followed the OP instructions to the letter but found that all three ROMS perform poorly on my Touchpad.

Even before loading any apps, the interface is very laggy.

After loading apps from the store, it gets worse and some apps such as Microsoft Edge won't even run.

Could it be that some versions of the Touchpad just won't run Android?
[TouchPad General] HP_TOUCHPAD:
@smithylovestouchpad I have been busy and also creating an universal swap setting to use on all the ROMS starting with Kitkat to present.

The kernel has the swap module which is the only thing need it to use the swap partition. I will not be able to do any work this week, but hopefully by the end of the month I will have the guide updated including Kitkat and Lollipop.
[TouchPad General] HP_TOUCHPAD:
@stuartbdavies, Questions:

Are you still using WebOS with the other ROMS?

What CPU frequency did you flashed?

If you are not using WebOS, I am assuming that you flashed the Automatic_Wipe_All and the swap partition was successfully created.

After flashing the ROM and boot into Android, it could take 15 to 30 minutes to finish the setup. It is best to just leave it connected to WiFi and charging for hours.
[TouchPad General] stuartbdavies:
Is my Touchpad able to run android?

I understood that Automatic_Wipe_All gets rid of WebOS so I flashed the following zips in order:

Automatic_Wipe_All

ev_tenderloin-7.1.2-nightly-2017.11.03

1620_Performance_Evervolv_7_1_2_Nougat_Boost_Optimize

open_gapps_arm-7.1-pico-20190614

Flash_after_open_gapps_Evervolv_7_1_2_Keyboard_fix

SR5-SuperSU-v2.82-SR5-201771001224502

I have also tried 1836 and 1728 Performance patches with a clean install each time, but still got the same very laggy performance.
[TouchPad General] BGrosse:
Can you please provide an output of the LVM check (lvm.static lvs) in TWRP command line? I would also recommend to not install SuperSU as long as you have problems like these. Just install the ROM, maybe also without gapps. Just the naked ROM. But at first we have to make sure that your partitioning is correct.
[TouchPad General] stuartbdavies:
Here are the partition details from the terminal command:

LV	VG	Attr	LSize

cm-cache	store	-wcmao	200.00m

cm-data	store	-wimao	26.00g

cm-system	store	-wcma-	1.91g

media	store	-wimao	504.00m

swap	store	-wcma-	504.00m
[TouchPad General] BGrosse:
OK, looks good so far. What about a new installation without root and gapps? Maybe you can make and upload a video with your poor performance when you jump in the settings, swiping the dashboard left and right, starting some apps and so on. Maybe your expectations are a little bit too high. And please remember: you cannot expect ultrasnappy performance from an 8 year old dual core with only 1G of RAM with the newest OS which the tablet was also never made for.

But let us test one thing after the other. First please install the ROM from scratch without gapps and let us know how it behaves. If it is OK, then install gapps and test again. If it is NOT OK, you can try another gapps package (another date) and test again. If it is OK, log in to your gapps account (without downloading apps) and see if it lags this time. This time the performance will go down of course, because the TP has to do hard work, especially everytime it is switched on / waked up. But it should only take a few seconds and it should be fine to go then.

Let us know please.
[TouchPad General] Makesh986:
Really appreciate you guys for your dedication and efforts you have put in to fine tune and breathe in new life into 8 years old tablet. I have already upgraded my touchpad to evervolv 7.1.2 a year back but stopped using it as it was very laggy and not functional with its performance.

But last week I saw this post and wanted to give it a try. I had flashed the files as per the instructions with 18xx cpu frequency files. I am really stunned by the performance of the tablet now. I never seen my touchpad running so fast. As brand new. Thank you. :good: :)
[TouchPad General] HP_TOUCHPAD:
@stuartbdavies Your tablet is properly partition I would like to add from [MENTION=2155402]BGrosse[/MENTION] recommendation.

if the user flashed the Open Google Apps (Pico) and after finished the set up in the Welcome Screen and boot into Android, then the Library files will get updated and any other Apps, it could take very long time for everything to be completely set up. It is best to let the Tablet charging and connected to WiFi, when everything is updated then open all the apps to set them up which will take more time. For example google updates will be happening while the user is using any app and will make it feel very slow. From the testing I have done, all google apps even Earth works, it may not be as responsive as the latest Device but is useful.
[TouchPad General] stuartbdavies:
Thanks very much for your help and advice with this issue. FYI - Evervolve on its own worked fine and even with Gapps pico installed it was Ok. I found the Gapps keyboard fix for Evervolv was causing lag and keyboard feeezes and actually isn't needed with the Gapps pico anyway. However, even without it, the TP became laggy shortly after I'd loaded a few apps from the store and signed into a few accounts. I hoped the issue might have had a simpler solution and I'd get a few more months use out of my creaky old Touchpad. However, I think cost/benefit of solving this issue is not good and so I've decided to upgrade instead.

Thanks again for your help.
[TouchPad General] smithylovestouchpad:
What is it exactly you want? I continue to use J.C. Sullins CM11 and my TouchPad is perfectly usable. No, it's not Pie, but if you want a usable TouchPad, install CM11. I have a Pixel 2 running Pie and yes there are cute little bells and whistles and of course it is smokin' fast. But my TouchPad running Sullin's build is my go to tablet. It just simply works. And like someone said earlier, a 8-year-old tablet with a 8-year-old Qualcomm 1.2 Ghz, dual core Snapdragon processor, and one gig of Ram, is never going to be a blazin' beast, but it gets the job done. And the more advanced, demanding builds you install are going to drag it down. I'm glad HP-TouchPad has found happiness on his tablets and applaud him for his work. I can't say that every TouchPad is going to work as well as his using his method. If he ever puts up the files to try out Sullin's CM12, I'll give it a try, but I suspect I will end up going back to CM11. About the only thing I can think of on CM11 that works marginally is BlueTooth. Certain devices will connect and others won't. Videos play, the mic works, I can browse the Internet, send and receive email. There may be other things that don't work, like certain complex games and the like, but I'm happy with what mine does.

Hope you read this and don't relegate your TouchPad to the dust bin just because it won't run Pie.

Cheers,

Smithy

---------- Post added at 03:01 AM ---------- Previous post was at 02:57 AM ----------

Almost forgot, the camera works too. BTW, you said Evervolv with Pico Gapps worked fine. Do all the features that you want work on that install?

Stay with that!!

Smithy
[TouchPad General] yoormaw:
bluetooth issues

Hi all, I saw this thread a few days ago and am very excited by your work... so I dug out and dusted off the old TP, stuck it on charge for 3.5 days and IT CAME BACK TO LIFE....from the system time it would appear it hasn't been on since 2012 :(

I am going to try this from scratch and am happy to help report any findings when I do. I have no interest in keeping anything on the TP, so I will be doing the complete wipe, but before I do, can you tell me if you have fixed the bluetooth issues with the PIE ROM ?

thanks in advance, and GREAT WORK !!

#theTPisdeadLonglivetheTP
[TouchPad General] HP_TOUCHPAD:
I will be posting all the new ROM files very soon.
[TouchPad General] HP_TOUCHPAD:
[MENTION=9896613]smithylovestouchpad[/MENTION]

I just finished the CM 11 by J.C Sullins here are the files that I will post soon:

https://www.mediafire.com/folder/aoilbcbsu44lj/

You will be amaze the difference using the Swap partition. Here is screenshot with the latest Chrome, Maps Youtube and RunRace 3D Game open.

The ROM version to use:

https://androidfilehost.com/?fid=24269982086997323
[TouchPad General] yoormaw:
great thanks. which version is recommended for the best bluetooth (to a UE BOOM speaker) performance? V7, V8 or the CM11 ? I will report back in a few days.
[TouchPad General] HP_TOUCHPAD:
I can not give you any recommendation for Bluetooth as I have never use it, even on WebOS. I am more of a "Wire" user, but try the CM11 for now. I will provide files to enable the swap partition to all Android ROMS version.

1. Flash the Automatic_Wipe_All

2. Flash the ROM:

https://androidfilehost.com/?fid=24269982086997323

3. Flash the lowest Frequency 1674_CPU, first to Setup tablet, then flash the Highest your Tablet can handle:

https://www.mediafire.com/folder/aoilbcbsu44lj/

3. Flash the Pico open Gapps

Reboot and set up the Tablet, that is all you need to do!
[TouchPad General] HP_TOUCHPAD:
Lineage 11 Kitkat by Milaq is now Optimize to use the swap partition.

Milaq is keeping this perfect ROM updated constantly, last update July 1, 2019 !

Make sure the Automatic_Wipe_All has been flashed.

1. Flash this ROM version:

https://milaq.net/dl.html?f=android/tenderloin/cm-11.0/lineage-11-20190701-NIGHTLY-MLQ-tenderloin.zip

2. Flash the CPU frequency for your Tablet and includes the files to optimize the ROM for swap.

https://www.mediafire.com/folder/7pxws7y227csf/

3. Flash the Pico open Gapps.

Done!
[TouchPad General] smithylovestouchpad:
OK, time to ask some questions. Just checked https://opengapps.org/ and pico gapps is not available for CM11, Android 4.4.4. So where do I get the pico gapps? Once I do have it, currently, my tablet is running CM11. TWRP 3.1 is installed. So I flash " Wipe All and Create Android partitions with Swap" first. What does this leave me with? Is my "boot" partition still in tact? Is my CM11 still there? Maybe it would help if you explain exactly what happens when someone flashes " Wipe All and Create Android partitions with Swap". Do I have to flash CM11 if it was already installed? Second, you say flash " Boost Optimized settings with preset CPU Frequency". It looks like there a different "Boost " for each Rom. Where is the "Boost" file for CM11?

Thanks,

Smithy

---------- Post added at 10:12 PM ---------- Previous post was at 09:53 PM ----------

OK, I figured out why Android 4.4 Pico Gapps was not available. I had not selected ARM. So that part is fixed. I now see the files for the "Boost" step too. So I guess I am back to wanting to understand what condition my TouchPad is left in when I flash the " Wipe All and Create Android partitions with Swap" file. Is my "Boot" partition still there? Is TWRP 3.1 still there? Where do I copy the Rom, Boost and Pico Gapps to from my PC? Explaining exactly what "" Wipe All and Create Android partitions with Swap" does, what it deletes, what it creates, what I am left with when it is done, would be very helpful.

If I flash the fastest boost file and that is too fast, can I just flash the next slower file or do I have to start over?

Thanks,

Smithy
[TouchPad General] duh1:
I bought two all those years ago. One is about as up to date on WebOS as possible, even dual booting LuneOS, an updated WebOS, which started off promising but whose last stable build was Nov 2018. The other is actually brand new sitting lonely in the box taking up space. Looking forward to watching your journey, and taking the wrapper off the new one...
[TouchPad General] smithylovestouchpad:
So you have never installed any version of Android on a TouchPad? You say as up to date on WebOS as possible. Support ended so long ago. What is out there since HP dropped support? Or have you just been using it with what you had installed before support disappeared? Personally, I liked WebOS. I just wasn't willing to stick with it after support disappeared. I stayed dual-boot WebOS and Android for a while until it became fairly easy to completely remove WebOS and dedicate everything to Android. J.C. Sullins made that possible.

Cheers,

Smithy
[TouchPad General] anonxlg:
Do all you need to do is to flash one of those (kernel?) files in order to get swap working? (aka install android normally, last step flash one of those files?)

In the first post, it's mentioned that system needs to be 1400mb and TWRP needs to be 3.1, is this only true for 7.1.2+?

also, I did a quick search to see if anyone has magisk working, I see some mention of it in the 7.1.2 thread.

magisk was recently made to work on android down to 4.2, i'm wondering if magisk will work with these old builds.

This is what i'm thinking of doing:

1. update twrp to 3.1

2. wipe my current android and install 4.4.4 (via toolbox)

3. resize system partition to 1400mb (via toolbox)

4. set up android (flash gapps, add google account, flash magisk and whatever modules work on it)

5. flash kernel to enable swap
[TouchPad General] duh1:
All kinds of little hacks and kludges that kept the TP running for a while at a time over the years. Replacement app archives and repos, OAuth2 Google sign-in, calendar and email services updates, RSS news feeds, time servers, new webkit browser builds, and whatever else they came up with at WebOSNation and PivotCE. I think that switching from SSL to TLS finally had them stumped.

I never bothered installing Android, even though the work done to hack it in there with each successive version was spectacular, mainly due to the performance issues I saw everyone was having by not having a swap partition. Now hopefully the device can run smoothly enough to be a daily driver and not just a curiosity...
[TouchPad General] HP_TOUCHPAD:
You are very welcome!
[TouchPad General] HP_TOUCHPAD:
Implementing the swap partition with the provided settings is basically how WebOS was running on the Tablet.

Is an old device but enabling the swap partition and removing LMK, KMS and other settings helps to get the most out of it.
[TouchPad General] HP_TOUCHPAD:
The irony to all this is that from the very beginning Android is able to share the swap partition from WebOS and it did not need it anything extra to provide more free RAM available. It could be an extremely fast Tablet back in 2012 with Android, well now it is !
[TouchPad General] HP_TOUCHPAD:
The settings to enable Swap are in the Ramdisk and the swap partition must be created first. The files that I provide for each ROM enables the swap the kernel is the same.