yashsingh1/xdaforums huggingface dataset:
[TouchPad General] HP_TOUCHPAD:
TWRP Recovery only function is to flash ( install ) or back up, is a set of commands ( busybox ) that is loaded into Memory and none of the changes are permanent.

To flash any ROM is best to use the latest 3.2-1, and in regards with Automatic_Wipe_All. I tried it using and old Recovery and it worked with no issues. But if the user has an old Recovery it can easily flash TWRP 3.2. But always experiment, try what you have in mind, because something else will come out of it that you were not expending, that is how the Automatic_ Wipe_All came to be created an experiment using TWRP. !

Take a look at this youtube video from one of my guides, is HD and must be seen on a PC to see it all clear.

It shows the Ramdisk, been copied from the /boot partition into Ubuntu, running inside the Tablet as chroot, the first step is to change the read and write and the second is for the CPU frequency. Once you have it set up unpacking and packing takes seconds. I did not know it could be done inside the tablet and yes all settings to the boot/ ramdisk can be done inside the Tablet by running Ubuntu.

Click Here for youtube video on Ramdisk changes demo.
[TouchPad General] smithylovestouchpad:
Yeah, I'm an old softy for a Moboot background and the /boot volume is too full to allow it to be installed. A while back Flintman created a smaller version of TWRP 3.0.2-0 to free up room in /boot. I have since flashed 3.0.2 and copied the background I wanted into /boot and everything fits. I even went to their website and they are up to version 3.3.1, but we would need someone like flintman or someone who knows how to compile it for the TouchPad. However, not that big of a deal for me. When I'm done playing around with Pie and any other update HP-TP uploads, I'm going to restore the backup of Sullin's CM11 I made before starting with this and go back to using that. Don't know if you saw my posts stating the issues I had with CM11 using this optimization. With CM11 I can have any app and tweak I desire without worrying about battery drain. I have found using the forbidden Battery Monitor widget that this Pie Rom only draws -4mA when asleep. But, periodically, it goes crazy and starts drawing -200mA and has to have the A6 reflashed with TPTB. That may be why HP-TP wants it plugged in and charging all the time.

Smithy

---------- Post added at 03:15 AM ---------- Previous post was at 03:11 AM ----------

TWRP Recovery only function is to flash

[MENTION=8005714]HP_TOUCHPAD[/MENTION]

Did you know that TWRP is up to version 3.3.1-0? Wonder if you can get Flintman or Shumash to compile if for the TouchPad? Or do you know how to do that? That's four updates since 3.2.1:

3.3.2

* adb backup fixes

* OTA style update zips will now install automatically without prompting for decrypt

* minor tweaks to handling date/time on Qualcomm devices

* updates to some language translations

3.2.3

* Fix automatic installing of OTA zips on encrypted devices

* Remove SuperSU from TWRP

* Support both md5 and md5sum file extensions when doing MD5 checking for zip files

3.3.0

* Merge AOSP 9.0 r3 (Dees_Troy)

* Use ANDROID_ROOT variable instead of hard coding to /system (CaptainThrowback)

* Decrypt FBE on 9.0 and metadata decrypt (Dees_Troy)

* vold decrypt updates (CaptainThrowback and nijel8)

* Support vibration on LED class devices (notsyncing)

* Metadata decrypt support for Pixel 3 (Dees_Troy)

* Support rotating the display via build flag (vladimiroltean)

* Reboot to EDL mode button (mauronofrio)

* Support MTP on FFS devices (bigbiff)

* Update FDE decrypt to support keymaster 3 and 4 (Dees_Troy)

* Detect mkfs.f2fs version to properly format on f2fs partitions (Dees_Troy)

* Allow TWRP to use md5 and sha256 checksums for zip installs (bigbiff)

* TWRP can use /data/cache/recovery and /persist/cache/recovery on AB devices with no cache partition (bigbiff)

* Switch part of advanced menus in TWRP to use a listbox of options (Dees_Troy)

3.3.1

* Fix selinux issues during formatting - dianlujitao

* Various fixes for toybox and toolbox builds - CaptainThrowback and bigbiff

* Flash both A and B partitions when installing a recovery ramdisk - Dees_Troy

* Add option to uninstall TWRP app from /system - Dees_Troy

* Create digest for subpartitions - bigbiff

Smithy
[TouchPad General] HP_TOUCHPAD:
Is great to search and always learn, but also we must know the limitations of each device. Android is extremely fragmented and the HP Touchad has its very unique limitations. Not all updates are required or need it, AMAZINGLY it works better than anyone expected !

The intention of this Guide is to provide a way for those special users that would like to get the most performance from the Tablet and not be concern of customization or use it as a smartphones but as a laptop ( PC ). Is very simple if the most important for the user is to conserve battery, have the tablet under power and limitations with performance then use it like always, the original flash files are provided. If the user wants to get the most out of it and use Apps that have never been able run on the tablet until now using the latest updated ROM and Apps, then use the Universal Optimize swap settings. But is impossible for anything in the Universe to perform faster using less energy, it is only a myth available on Android devices, settings that make it work faster and better with minimal battery drain. In reality those settings prevents the full usage of power ( or cap ) the device components.

The attached screenshots are of Evervolv 7.1.2 with the Rom_Reducer and Universal Optimize Swap settings applied. Creating a basic ROM with all the functionally minus the BLING BLING. It reports more than 600 MB of free RAM and it sure does perform like never before and that is with Pico Gapps and the Game HearthStone.

Is all up to the user: Do you want to play HearthStone on the Tablet or have it graphically customized with a HearthStone Theme?

It can be use either way, but not both at same time !
[TouchPad General] anonxlg:
I tried installing evervolv 7.1.2 and i'm getting a boot error:

Not sure what I did wrong, from the error, something wrong with the uImage?

(not sure if this is a factor, but i did resize the partitions manually)

(im also on moboot 0.3.5 if that matters)
[TouchPad General] HP_TOUCHPAD:
Are you using WebOS?
[TouchPad General] anonxlg:
yes, keeping webos

i just wiped and tried installing cm12.1 and i'm getting the same error message, however, in the moboot menu, i see an option to boot CM and evervolv now

fairly certain something is wrong with the contents of the boot partition
[TouchPad General] HP_TOUCHPAD:
The /boot partition is full and the uImages were not able to be fully copied.

Do you know how to manually clean boot?

It can easily be done using TWRP.

mount /boot then select file manager go to boot and deleted all the uImages. (from Android ROMs )

Then reflash the file and it will work.
[TouchPad General] anonxlg:
yeah, was thinking of doing this, thanks for confirming

booting really slowly now into evervolv
[TouchPad General] HP_TOUCHPAD:
When flashing any ROM boot uImage into /boot, it will be copy even if there was not enough room available. The file file will be partially copied and it will show in the moboot menu, but it will give an error at boot. There is no need to reflash the ROM, just clean up boot then flash the Universal_Optimize_Swap_Settings and that's all.

WebOS's users must clean up boot manually, but if is 100 % Android as in this guide then use the " Clean_ Boot_Remove_All_ROM_Files.zip" from the flash the ToolBox into Boot section. Boot will be clean and any Universal_Optimize flash files can be flash.

Evervolv takes time to boot for first time, just wait until the letter's animation stops.
[TouchPad General] anonxlg:
new issue:

somewhere along the way, either the /media/ or /data/ got wipe because all my files I was going to flash is gone

(i save all my android flash files under /Download/, i'm not sure how the partitions work, but my Titanium back up folder is still here, and my TWRP folder and its backup is gone)

also, when 7.1.2 started, it's asking me to mount a 'virtual usb drive' but it needs to be formatted first (i didn't format)
[TouchPad General] HP_TOUCHPAD:
The download folder will get wipe when installing a new ROM.

Files needs to be place on the Virtual USB, Or USB Media, Micro SD card ( it goes by all those names )

In all the ROMs at first boot will ask to set up the virtual drive ( DO nothing ) just clear it, ignore it, is all set up and works.
[TouchPad General] anonxlg:
ok, i think i got it mostly working like how i want it

the real test for me is how well the battery drains (and battery drain when idle with screen off)

I want to fix my /media and /data partitions

Right now I'm not sure what files are on which partition. I have duplicate download, image, TWRP, titaniumbackup ...etc folders.

My media partition is like 12gbs (5gb full) and my data partition is like 16gb (5gb full). I'm not sure how to consolidate the data.

Which partition is mounted to /sdcard1/?
[TouchPad General] HP_TOUCHPAD:
Media is share between WebOS and Android. Data is only for Android use ( Apps ).

You are using WebOS and it needs media to work. That is a drawback when having both, each needs to have a separate partition to work. If is set up to use Android only then media will be 500 MB and the rest to data.

Be careful when reducing the media partition to be use for another partition, make sure there is empty space and back up the data from it.
[TouchPad General] smithylovestouchpad:
Thought you might like to see this. Using the dreaded Battery Monitor Widget this what Pie is getting while asleep, -4mA.

Smithy
[TouchPad General] HP_TOUCHPAD:
Thank you for providing technical information on battery consumption while in deep sleep.

As you know I installed Pie with Super Open Gapps and it has been working perfectly, with all the google apps ever created and the tablet does extremely well in deep sleep and even with WiFi on.

I have youtube open with music, I will stop it and place it on deep sleep, next day I turn it on and press play and immediately the video starts playing. I have been doing that while charging and off the charger for a full day.

I have never done testing or recording the energy usage or use any monitoring app so I do not know anything about it. I am sure from your background and knowledge that you can explain if the -4mA reading is a good result compare to all other ROMs, what is the ideal?

How long will it take to drain all the battery of the tablet at full charge in deep sleep using -4mA?

How many days?

What is that electricity usage compare to?

The only thing that I can say, is that when the Tablet goes into deep sleep is control by how the developer applies the settings in the Kernel, is not a setting on the ROM, but the Kernel itself.

Waiting for your details explanation, thanks in advance !
[TouchPad General] anonxlg:
I know that storage options in android has changed, but it's weird that it was seamless in 4.x and works completely different in latest androids.

If the media partition is for shared storage for webos and android, why don't the people that's made the touchpad android only just remove /media/?

now that i'm thinking about it, I don't understand why my /data/ partition was wiped (unless i did it accidentally), I've done this process many times and the /data/ partition isnt part of the wipe process.

Now my 2 cents on evervolv after a dayish of testing:

- when it works, it's pretty smooth

- random lockups, the tablet becomes totally unresponsive -> it will either work itself out (like waiting a minute...) or you need to turn off the screen and wait

- touch sometimes stops working (I play a game where you have to hold a press and during that hold, it would unregister the press as if I removed my finger)

- haven't encountered random reboots yet @ 1728mhz (i'm monitoring the cpu clocks somewhat and it seems like it never downclocks when the device is on), cpu usage is constantly at 60-100% when you do anything (example, opening settings menu)

- no concrete comment on the battery yet, but I can tell for sure that it won't be able to beat 4.0.3 with my custom settings/kernel (it can have 0-1% drain overnight, so like 8-12 hours), but that's the price you've gotta pay for updating to a more modern android, and i've come to terms with that

- i still like the 4.0.3 combo status+navigation bar for the tablet for factor/size (that plus battery drain was why I never bothered to update the tablet)

- can't tell if swap is making a difference -> it very well could be the fact using a higher android negates the benefits vs using more optimized 4.x builds

- i wish i had another touchpad so I can test out Jcsullins cm 12.1 + 11

(i also forgot to try and see what happens if I flash magisk.. I know hp_touchpad thinks it wont work due to our boot partition, but i'm curious)
[TouchPad General] HP_TOUCHPAD:
Magisk does not work for the Tablet, Super Su listed on this guide works perfectly for all the ROMs.

Also Xposed Framework works with no issues.
[TouchPad General] smithylovestouchpad:
Well, I'm getting tired of playing with DU's Pie. Gonna switch back to Sullin's CM11 and install everything except Pico Gapps and see how the Rom behaves. Any problems I should be aware of with installing Gapps later? I don't think so, but does not hurt to ask.

Smithy

---------- Post added at 11:07 PM ---------- Previous post was at 11:03 PM ----------

-4mA is outstanding. You could easily go 4 to 5 days asleep. Just remember what I said about this Rom, you never know when it could jump to -200mA and that would drain your battery very quickly, probably in a day or less. So beware of that.

Smithy
[TouchPad General] HP_TOUCHPAD:
I have not experience any jump of energy consumption on PIE. Also I do not have any monitoring Apps or anything that could trigger such usage, which is not recommend to use. But I do have notice very few times that a Tablet will turn on by itself, even if there is no Android installed. For some reason something triggers a wake up when is completely OFF with only TWRP flashed. I have seen it, the Tablet turning on and displaying the moboot menu and eventually into TWRP. It could be a hardware issue, and it maybe one of the reason the infamous dead battery as it will turn on without the user knowing.
[TouchPad General] schwatter:
Try my setup from post #310. I was always unhappy.

Since then my device is still snappy.
[TouchPad General] HP_TOUCHPAD:
As I have found out, there is no set up that will work and this is the reason why:

Not all users understand the basics of computing and how a low resource device must be use.

The Tablet has 1 GB of RAM, only 500 MB is allocated to run Apps which by today's standard is nothing.

Every single byte of free RAM makes a difference. An specific set up will work for you as you know the limitations and can manage to get the most out it. For others they will try the set up, plus the extras Apps and settings that always had use. They got used to a certain interface and way of use it, it does not matter how improve or new a ROM is, they expect to use it as old ROM. This is not related to just the Tablet, but all devices including Desktop Computers. The same old software is use with no updates but wants to use the latest or add more to it, thinking that because it has always worked it should do so with anything that gets install. I can install and run games that originally never ran on the Tablet, and now it does. But the user wants to install every app to track down how the internal of the tablet is working.

I have done testing of the ROM_Reducer for all the listed ROMs on this guide and will post the flash files.

It will trim the ROM and provide all the hardware functions Wifi, camera, Bluetooth (per ROM), but without the stock Apps and the Bling Bling from Android. It will provide 600 MB free RAM on average, which will make the Tablet faster and run Apps that required the extra memory. But again the same will happen, users will load it up and then ask why is not working for them !
[TouchPad General] smithylovestouchpad:
You realize that has been no activity in that thread since November, 2018. And Sullins pretty much abandoned the TouchPad years before that . I'll take my chances with a Gapp-less install.

Without an app like Battery Monitor Widget, you have no way of knowing what kind of battery usage is going on when your TP is asleep, not to mention you say you keep yours on charge all the time anyway. If my TouchPad with Battery Monitor Widget installed can record -4mA drain while the tablet is asleep, I'm not going to be too concerned that it is going to cause any excessive usage. You saw the screen grab I uploaded. That kind of battery drain is outstanding. I have just grown weary of all the negatives that come with Pie, no mic, no MTP, can't get the TP to charge from a HP wall charger(works perfectly on CM11), have to charge on a TouchStone, no "install from unknown sources", Home button does not work at all and the list goes on an on. So I am off to install CM11. Far as I am concerned best Rom ever compiled.

Smithy
[TouchPad General] HP_TOUCHPAD:
Lollipop is a great ROM with its on issues as all of them, but the best of all is that users can flash any ROM at any given time easily, just a flash file and the tablet will never get Brick. But only if is forgotten on deep sleep and not charging, then the battery will drain completely and takes time to bring back, which users think is Brick.
[TouchPad General] HP_TOUCHPAD:
HP Touchpad User Guide ( Manual )

Click Here to Download the PDF User Guide

On Chapter 2 Charge the Battery:

Charge your device whenever you can. Charge it overnight.

Shut down the device completely when you won’t be using it for an extended period of time.
[TouchPad General] HP_TOUCHPAD:
I am currently testing the ROM_Reducer for all the listed ROMs.

It came to my attention that DU PIE battery was draining faster than the rest as previously mentioned by [MENTION=9896613]smithylovestouchpad[/MENTION].

I did a adb shell ( top ) command to see all the process and CPU % been used.

The process vold was active and using one CPU core to 99.3 %, causing the battery drain. Attached is the screenshot from PC.

A search on the net pointed to one of the pages on XDA:

https://xdaforums.com/showpost.php?p=63153541&postcount=7674

I added the suggested changes to the ramdisk:

service vold /system/bin/vold --blkid_context=u:r:blkid:s0 --blkid_untrusted_context=u:r:blkid_untrusted:s0 --fsck_context=u:r:fsck:s0 --fsck_untrusted_context=u:r:fsck_untrusted:s0
class core
socket vold stream 0660 root mount
ioprio be 2

The following link has new Settings that can be flash to any PIE installation, if anyone would like to test it. I am testing on two tablets, but it takes times for the process to activate at a certain time. Hopefully this will resolve it, but have no clue if will !

Click Here for the PIE Test Files to flash
[TouchPad General] tpuserhp:
First, I want to thank [MENTION=8005714]HP_TOUCHPAD[/MENTION] for all the optimization works on touchpad.

I went back to Evervolv 7.1.2 from the pie roms. I also found the lockups and touch issues as you described after working on touchpad for a short time after startup.

This afternoon, I installed Kernel Adiutor and set low memory killer profile to Very Agressive. After that, I don't see those issues again. The idle apps storage might be freed up sooner and might take longer to load next time. But then, you don't experience the issues with the current active app. You might want to give the agressive/very agressive low memory killer profile a try and see if it helps.
[TouchPad General] HP_TOUCHPAD:
.

Low Memory Killer is the opposite of swapping. Then you should install the Original Stock with swap disabled and run it like before. Nothing will be swap and process and Apps gets kill.

Take a look at this video to understand how Low Memory Killers works.

Click Here for Understanding Android memory usage (Google I/O '18)
[TouchPad General] tpuserhp:
Thanks for the memory usage doc. The original stock rom does not have the tcp buffer 6MB changes. Which tcp parameters should I modify myself?
[TouchPad General] HP_TOUCHPAD:
All the listed ROM have a 6MB tcp buffer, compared to the 2MB stock. It seems to me that internet browsing and video plays better.

I do not know how it will behave with the regular stock as there is less memory available with no swap.

The changes is located on the init.tenderloin.rc in the ramdisk.

# 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

I made the changes to the Stock version of 7.1.2, it can be download here:

Click Here for the stock Evervolv 7.1.2 6MB tcp buffer version

I am still applying changes to the posted settings, when done all ROM flash files will be updated and also the settings with all the changes will be posted.
[TouchPad General] tpuserhp:
I've found your modified rom has better browsing/streaming performance. Thanks for the modified stock Evervolv 7.1.2 6MB buffer version. I will try it later today. Thanks
[TouchPad General] HP_TOUCHPAD:
Your welcome, the goal is to have the HP TP perform its best no matter what it takes !
[TouchPad General] tpuserhp:
Hi HP_TOUCHPAD. Your modified Ramdisk settings for tcp buffer changes work great.

Currently I'm using very agressive low memory killer profile and 120mb of zram. I opened 17 apps, including chrome, google home, vlc, matlog,etc. Free memory could go down to 14 MB. The active app was performing ok. A bit slow in switching app when stressed. I'm ok with this setup. A copy of memory usage is attached.

Update: works good without zram. Just using low memory killer profile now.
[TouchPad General] HP_TOUCHPAD:
The Tablet is running as before, like a smartphone but with a bigger screen. It will work for Apps that requires about 400 MB or RAM, keep in mind the zRAM is use to place cache data, not to run apps.

With a swap partition , Android has 500 MB to use and nothing gets killed. Apps like Google Earth, Stree View, Maps, youtube, Chrome, plus all the other small apps can be open as well, like file manager, clock calendar.

Also Games like Pinball, Race Run 3D, HeartStone can also be play in 7.1.2.

With all the flash files available, it only takes one flash to apply any setting you want swap or not !

Is your choice to use the Tablet as you want it !
[TouchPad General] tpuserhp:
The random lockups without using low memory killer were giving me issues. Not sure it is related to slow io to swap partitions or kernal problem, sometimes I cannot turn off the screen as it is not responsive. I have to wait and keep trying.
[TouchPad General] HP_TOUCHPAD:
Slow io could be on Tablets that are using WebOS and Android, as the partitions are not optimize same as the swap partition. If the Tablet is not using dual boot, and a freeze occurs that the screen can not be turn off then it could be related to the CPU frequency, try flashing a lower frequency. If the screen is not responding to touch the user can check if the system is working by pressing the volume keys, it will come show on the screen. Then tab power to place on stand by, wait 3 seconds and wake up, all should be working. That is the issue that I am aware of, and how to work around it.
[TouchPad General] schwatter:
Mh, when i read all this, it looks like the tcpBuffer

caused the slow down problems after i installed

opengapps. [MENTION=8005714]HP_TOUCHPAD[/MENTION]

Do you changed the tcpBuffer when you switch

your setup from optimizedsettings.zip to

universaloptimizedsettings.zip?