yashsingh1/xdaforums huggingface dataset:
[HTC One Mini 2] stkl:
GApps Micro for 7.1 is roughly 180MB, about the same as for 6.0. 13MB should be the Pico package. If you got 700, it's definitely one of the bigger distributions.
[HTC One Mini 2] tryllz:
Great, thanks..
[HTC One Mini 2] city2026:
Sometimes network speed seems to be slow
[HTC One Mini 2] multiwirth:
1 GB ram isn´t enough for today.

But the ram managment isn´t perfect on this device.

It´s not this rom only.

all CM based roms (haven´t tested any other) from CM11 to this version had ram managment problems.

In CM11 it wasn´t a big deal, there was enough free ram.

But now I have huge problems to launch big apps.

Compared to my Samsung Galaxy S3 which has also only 1GB ram, it seems to be not a problem to run big apps.

Both are runnning on LOS14.1

However, I switched to an better phone which rocks with 2 gb ram and a much faster cpu.
[HTC One Mini 2] Marvbox:
AS long as the phone is not broken...

AS long as nightcore still have fun on the work has, i will use the device double gratefully!

By using with brain.exe or brain.tar.gz, we have a couple years fun with this device.

I think i'll even get one more 4 reserve. :victory:

i have lucky wise only two small problems: Loudspeaker to quite by calling, and connection by calling is sometimes very slow.
[HTC One Mini 2] multiwirth:
Everything I can see is the fact, that ram is very important these days.

Anyways, 1gb should be enough to run LOS14.1.

My Samsung Galaxy S3 is very similar to this device.

It has a 1.4 Ghz low end cpu and also only 1GB ram.

But the big difference:

It runs much better for some reason.

Not in cpu perfirmance but in ram management.

The mini 2 iften freezes for a while.

Playing a large game doesn't even allow me to swipe down the statusbar.

On s3 no problem.

I'm using gapps nano
[HTC One Mini 2] xxxmadraxxx:
The odd thing is that, even though I've been having these really bad slow downs, I've never (according to a couple of system monitors I've installed) hit the RAM limit. The phone seems to consistently have between 15% - 25% RAM available. Also, (in one of those previous posts, linked to above) when I looked at how much RAM the various camera apps were using, it was negligible.

I'm thinking that, at least in my case, a lot of the slowness is owing to the amount of disc I/O the OS is doing on an SDCard (adopted as internal storage) which is, relatively speaking, quite slow. Of course, that disc activity could be indirectly related to the relatively low amount of RAM. Android may be caching more data and more often than it would be if more RAM was available. But my hunch is that it's the writing of that data to a slow SDCard that's the problem, not the caching of data itself. As I said previously, the phone seems to be running a lot faster with the SDCard removed and only using internal storage.

Anyway, since I posted last, the new U3 SDCard has been delivered. So I'm going to try that now. I'll report back with news of my success, or to eat humble pie --as appropriate!
[HTC One Mini 2] Andruxcx:
Any help will be appreciated

Can my camera issue be caused by snapchat or maybe something else? it kills the camera completely not even the flashlight works. untill i delete or disable the stock camera app and do the tedious process that i described earlier. Please guys im in despair :eek:
[HTC One Mini 2] moins1:
For me opening the camera app takes about 4 seconds - however after taking a few photos (one about every two seconds) it gets quite hard to close the app again. (The symbols at the bottom don't want to appear) Howeve since I don't really use the camera, because the quality is too bad for most things anyway, that's not a big issue for me.

By the way, I've never had the "select a sim card problem".
[HTC One Mini 2] xxxmadraxxx:
But how long before it actually becomes responsive?

I usually see the on-screen image [of whatever the camera is pointing at] appear within about 4-5 seconds too. But it then takes further time [over 40 seconds as measured on one occasion yesterday!] for the various GUI elements [icons, grid, shutter button, focus rectangle, etc] to appear on top of that and for the camera to actually be ready to take a shot.

That's exactly what I'm seeing. The icons at the bottom either pop-up and then hide again so quickly that I don't have time to click on one. Or I manage to click on one, but nothing happens for a few seconds, then the screen goes black [for just about long enough for me to start wondering if the phone has actually crashed], before the camera finally quits.

Unfortunately, as this is my girlfriend's phone and her only camera, it is a big issue for us. The quality of the images it produces is perfectly acceptable for web use, so I don't have any problems on that score.

That one didn't bug me too much at first, as it's just a quick tap to clear the dialogue. But having to constantly do it is starting to get a bit irritating. Especially as it's so "unnecessarily dumb".

Seeing as it seems to be triggered by any momentary dropout in mobile signal, you'd have thought that the Android/LOS developers would have included a simple check [pseudocode]:

if phone == dualSimModel
showSelectSimDialogue
else
useSimCardA
[HTC One Mini 2] beatjost:
Also problems with closing camera, also it takes a long time until it is ready and crashes sometimes...
[HTC One Mini 2] tryllz:
The in-built music app crashes on creating a playlist, bug I suppose as NOT able to create a playlist
[HTC One Mini 2] nailyk:
I sawed some device using a swap trick. Do you know if sIII use this?

IDK if you have a trash partition to put swap on but the other way could be to make a swap file.

A small batch script can handle this easily and, """maybe""" improve performance in despite of emmc use.

Also every device have their own blobs. Maybe samsung camera, modem, wifi, etc. daemons-blobs use a bit less ram than HTC?

cc: [MENTION=7570463]nightcore500[/MENTION]

P.S. If you use swap, dont forget to set swapiness to 100%. (I can find the commit if you need it)
[HTC One Mini 2] xxxmadraxxx:
I really think the RAM issue is a red herring. It happens for me with no other apps running and about 25% free RAM. Looking at a process monitor, the camera app I've tried were using negligible RAM. I mentioned some figures in a previous post:
[HTC One Mini 2] stkl:
Just go ahead and try it out. Swappiness is set to 70 at the moment with 256MB of available Swap space (in ZRAM). Min_free_kbytes is set to 3140. I just finished latest build with security patch level 2017-06-05, will try around after flashing.

You might just change the settings on the fly executing (with su rights via terminal or ADB)

echo 100 > /proc/sys/vm/swappiness

Activating a swap file on internal also a possibile on the fly. Partiton obviously requires a little more. Think I might try to figure out if some combinations of swap partition and ZRAM...

Doesn't make a noticable difference from my impression. Given the actual usage, even a value of 20 should not be a big deal.

Also note that the memory consumption mehtioned in the system settings pane is not an accurate representation of the real memory usage, just an averages. Watching the consumtion via ADB the system claims around 805MB usage (without buffers) and 200MB of used swap without not a single app active in foreground.
[HTC One Mini 2] nightcore500:
Since a few days I have now also the camera problem. I will look at this problem this weekend.

[MENTION=6979267]nailyk[/MENTION] Yes, we use a ZRAM partition with around 260MB space. Pages written to these partition are compressed and stored directly in memory itself.

Swapping into a file on the internal storage or on a SD Card is not a good idea. This can kill quickly the internal EMMC or the external SD Card through the constant writing while swapping pages.

EDIT: stkl was faster :D
[HTC One Mini 2] stkl:
OK, interesting. I just created a 256MB Swap file on the internal memory and disabled the ZRAM completely (swappiness = 60). HTC Camera app (latest version) is responsive within 2s, even when opened from e.g. WhatsApp.

I think a dedicated Swap partition would be worth trying while disabling ZRAM (or maybe reduce it to 128MB and giving it a lower priority).

If anyone wants to try out, here are the commands (most of this is gone after a reboot, but still be careful and know what you are doing - you need su rights)

# Create file (adjust location as desired)
touch /data/swapfile

# allocate 256MB of space
dd if=/dev/zero of=/data/swapfile bs=1M count=256

# Limit access to Root
chmod 600 /data/swapfile

# Make it a swapfile
mkswap /data/swapfile

# Activate swap with priority 10 (ZRAM is -1)
swapon -p 10 /data/swapfile

# Disable swap in ZRAM
swapoff /dev/block/zram0

# Verify what you've done
cat /proc/swaps
[HTC One Mini 2] xxxmadraxxx:
Cool! --I hope you can find the cause. Apart from the camera issue, performance of the ROM is definitely acceptable, so I'd like to be able to keep using it, if at all possible.

BTW --I had literally just plugged the phone into my laptop to fire up ADB and flash the original stock ROM, when I got email notification of your reply in this thread. So, if you do manage to fix it, that will have been a very narrow escape!

---------- Post added at 19:47 ---------- Previous post was at 19:32 ----------

I'm confused here.

The inner workings of Linux memory aren't my strong point, so forgive me if i'm talking rubbish. But, my understanding is that zRAM is like a swapfile, but in RAM [ie. fast]. So why would allocating less zRAM, or disabling zRAM completely and moving to an on-disc swapfile [ie. slow] improve performance?

[Quite apart from the potential wear and tear to the SSD / SDCard that disc-based swap would entail]
[HTC One Mini 2] stkl:
Yes, swapping to EMMC kind of solves the performance issues. And yes, there is a high tradeoff in memory lifetime.

ZRAM is a compressed block of RAM. While the underlying storage is fast, there is obviously a - usually acceptable - overhead of CPU load while (de)compressing the data. It is thus slower than native RAM.

Using a larger ZRAM block consumes a larger block of the available uncompressed memory (obviously), which increases the overhead due to a constant (de)compression. So one has to find the balance point here.

I just tried to figured out the other extreme (100% disk swap) to get a feeling for performance on this device. Maybe the truth is somewhere inbetween (128-192MB of ZRAM with 128MB of lower priority disk swap maybe?)

The worst situation is that data from the memory has to be removed from (Z)RAM completely, because there is no memory left, so enabling an additional disk cache (swapfile) holding well-structured data, that could just be copied to RAM when needed), might still improve performance.
[HTC One Mini 2] xxxmadraxxx:
Thanks for the explanation!

So forgive another possibly dumb question. But how would a swapfile on a fast SDCard perform, compared to placing it on internal storage?

Fans of this thread will know that I recently upgraded the SDCard in this Mini2 from U1 to U3. Given that a U3 card is designed for shooting 4K video, it should be able to shift a lot of data in/out pretty quickly. And it's also not such a big deal if an SDCard's lifespan is reduced, as it's easy [and cheap] enough to replace.

I'm wondering whether setting up a swapfile on that SDCard might help things?
[HTC One Mini 2] nailyk:
swap use ROM storage to extend RAM.

This will *highly* reduce the ROM life.

However Linux kernel is smart enough to put only 'sleeping' memory areas into, specially with sappiness at 100%. That is a lot of read/writes anyway.

About zram we had some lost of performance on our 'high' devices (2&3GB).

Maybe worth to try without, and with a big amount?

Also IIRC there is a kernel option to compress ram directly, this will remove a layer and maybe improve performances? Never tried this.

Just my 2 cents, I dont own memul.
[HTC One Mini 2] stkl:
I don't have a U3 card here, just a U1 installed (SanDisk Ultra). Copying zeroes to a 100M file results in the range of 70-110MB/s on internal MMC, 20MB/s on external SD (FAT formatted as external media).

If you want to try (commands as posted above) I'd be interested in the (subjective) results. It's not only the SD performance, also the controller.

I will try some variations of memory compositions over the next days to collect more impressions than just opening a camera app a few times.
[HTC One Mini 2] xxxmadraxxx:
I'll give it a go tomorrow and report back. How are you measuring your write speeds, etc?

The card is a U3 SanDisk Extreme and claims to be good for 'up to 100MB/s'. But, as we know, the phrase "up to" pretty much nullifies everything that comes after.
[HTC One Mini 2] stkl:
My recent numbers were just the reported speed of a simple

dd if=/dev/zero of=/file bs=1M count=256

Definitely not a representative number, but should be enough for a quick comparison.

My current config I will try over the day: No Swap, no ZRAM.

Can't tell a big difference right now in basic usage, RAM consumption hovering around 780-810MB, just as before, performance about the same, maybe a tiny little bit smoother.
[HTC One Mini 2] tryllz:
Is it possible to view root and system files from within the LOS file browser instead of having to install Root Explorer.

Thanks..
[HTC One Mini 2] Andruxcx:
Ok i have found a workaround for my camera issue. https://xdaforums.com/galaxy-s3/general/camera-fix-cm11-samsung-galaxy-s3-t3322993 - this is what i use now and whenever the issue occurs i just wipe the camera app data and soft reboot the device. This camera app also seems to be pretty fast on my device.

---------- Post added at 10:34 AM ---------- Previous post was at 10:21 AM ----------

oh nvm. istill gotta wipe both caches but its better than anything ive tried
[HTC One Mini 2] xxxmadraxxx:
OK. Some more from me:

* First of all, here's a logcat of the camera launching:

https://pastebin.com/6mQ8RNPn

According to the timings in that, it took around 22 seconds on this occasion.

* Here's the result of the dd test:

1|memul:/ $ cd /sdcard
memul:/sdcard $ touch swapfile
1|memul:/sdcard $ time dd if=/dev/zero of=swapfile bs=1024k count=256
256+0 records in
256+0 records out
268435456 bytes transferred in 3.680 secs (72944417 bytes/sec)
0m03.72s real 0m00.01s user 0m01.00s system

....which I make just a smidgeon over 69MB/s*

I've got the SDCard adopted as internal storage, so I'm not sure how to differentiate between built-in and SDCard when running the dd command? The above was run from `/sdcard`, which I assume is the actual SDCard.

*72944417 bytes/s / 1048576 = 69,56521701812744 MB/s
[HTC One Mini 2] stkl:
69MB/s would be about perfect, suspiciously close to internal though... Not sure what the exact mountpoint is, the output of "mount" (without any options) should clarify.

In addition I want to share my experience of today's memory config...

Config:

* ZRAM disabled

* Emergency Swap file on internal storage (128MB, Swappiness 0 - only swap to prevent crash)

* Logging script to monitor RAM and Swap usage every 5 minutes

Testbed:

* 12 hours of normal usage: Surfing (Chrome), messaging, stock ticker. Using GoogleNow and Gboard.

* Some photos for tests sake

* Short navigation test (Navigon)

Results:

* Performance slightly better than default

* No crash, freeze, reboot, ...

* Camera acceptable (5-10s til usable, photos immediately)

* Swap has never been touched

* Memory consumption between 630 and 815MB

From my point of view no need for ZRAM here, memory management seems good enough without. Can anyone confirm that the often named S3 also has no ZRAM active?
[HTC One Mini 2] Andruxcx:
For the camera app im using it takes about3seconds to launch. Sometimes a bit more
[HTC One Mini 2] stkl:
Launch = Ready to use?

Both the stock and the HTC camera app take about 3-5s to launch (live image and buttons visible, camera focussing), but at least 5 additional seconds until I finally can take a photo. Once reached that state it's no problem to shoot 10 pictures in a row without significant delay.

I'm totally fine with that, there are other apps that are much more important for me than taking a picture every 5 weels or so.
[HTC One Mini 2] nightcore500:
The S3 (GT-I9300) also has ZRAM active. Configured to about 420MB memory space.

https://github.com/CyanogenMod/android_device_samsung_i9300/blob/cm-14.1/rootdir/fstab.smdk4x12

The Moto G (3rd generation) also has only 1GB installed and is also based on the msm8226 platform. ZRAM is also configured here.

https://github.com/LineageOS/androi...26-common/blob/cm-14.1/rootdir/etc/fstab.qcom

The same with LG, Sony, Huawei etc.
[HTC One Mini 2] Andruxcx:
If not on a fresh boot then about 3 to launch and 2 to start using it
[HTC One Mini 2] stkl:
OK, seems I messed up with the Samsung codenames and ended up in the D2 project (which apparently has 2GB of RAM), where no ZRAM is configured (https://github.com/LineageOS/android_device_samsung_d2-common/blob/cm-14.1/rootdir/etc/fstab.qcom)

Nevertheless the system runs at least as well without, than with 256MB... Did't think of that, but that's today's experience for me...

PS.

I increase to 384MB of ZRAM swap with swappiness 60 some minutes ago. Not that much of a difference after a quick test, but the HTC Camera app v7 is usable about instant (~1s). I will try to use that setting for a day (tomorror) and report back.

PPS: Can't we agree on any other benchmark than the camera? I'm tired of taking pictures from my desktop ;)
[HTC One Mini 2] multiwirth:
The ram usage is almost the same on both devices.

I didn´t configure a swap partition or a swap file.

Don´t know if there is an swap option by default.

Is there a way to check this?

ZRAM is set to 400 by default (boeffla kernel)

---------- Post added at 08:09 PM ---------- Previous post was at 08:04 PM ----------

@nightcore500

Would it be a big deal to add an optional overclock to the kernel?

The desire 825 has the same SoC but runs at 1,59Ghz.

Since the battery life is very great (even with a old battery 78% capacity left) there is some space for overclocking and performance improvements.

Also a GPU boost would be not bad.

There are some heavy apps which runs playable if I overclock the gpu from the galaxy s3 just a little bit.

from 533 Mhz to 600 without overvolting it.

Maybe we can get similar results on the mini 2?
[HTC One Mini 2] stkl:
cat /proc/swaps

from Terminal shows stats about current swap stats for each available block.

If you're using the official ROM there shouldn't be swap other than ZRAM.
[HTC One Mini 2] multiwirth:
No swap file/partition but zram.

Screenshot attached
[HTC One Mini 2] stkl:
OK, that confirms the 400MB ZRAM from the sources.

I did run my memul with 384MB ZRAM, Swappiness 60 over the day and have to admit the performance is better than before. Apps become responsive faster, average memory usage dropped about 640MB.

Interestingly our default of 256MB performs worse than 384MB and also worse than no ZRAM at all (at least for basic usage). Seems a moderate value is not quite in the butterzone. In terms of swappiness I couldn't determine any noticable difference between 60, 70 and 100. Maybe a tiny lag on app start with 100, but not worth any argue.

After 2 days of testing, my voting is increasing the ZRAM.

I don't have any real "high apps" instsalled. Maybe navigation, which uses a lot of CPU, but seemingly does not need a lot of memory though. [MENTION=5614382]multiwirth[/MENTION] could you name any app (preferably free and from Play) as a measure that runs well on the S3, but not well on the Mini 2?
[HTC One Mini 2] multiwirth:
The app "Mobile Legends" is very large and runs better on the galaxy s3.

Maybe caused by the gpu but if I try to open the recent apps menu, the mini 2 needs ways too long to open it and freezes for a while.

The galaxy S3 needs also some time to response, but maybe 5-10 seconds, not a half minute :D

For testing I downloaded Pokemon Go on both on them.

I remember someone had problems with this device in the cm13 rom.

First:

The login screen appears much faster on the s3.

It´s the first run of the app on both devices.

After that, I can´t log in due to an identification check error.

Don´t know why, maybe caused by safetynet ? All Nintendo apps use safetynet to identify if the device is modified (root, custom rom, bootloader unlock and so on).

Maybe Niantic is using this aswell after the big Pokemon Go Bot community and cheaters.

I tested this game for 5 mins after it was released in the past and it was playable on the galaxy s3.

But I had no gps signal and uninstalled it.

I´m not a mobile gamer aswell.

Only a few apps (mostly emulators > with controller)
[HTC One Mini 2] stkl:
OK, that's definitely way beyond my normal app scope, but I gave it a try with my adapted 384MB ZRAM config.

* First startup got a little messed up, because I had to install Play Games first...

* The start animation shows ~5s after tapping the icon.

* Loading a level around 25s (3s to 50%, stays there some time anf finally 3s from 50 to 100).

* Once loaded the game itself seems playable, no major lags. Tutorial dialogs response immediately.

* Swiping in the status bar during a fight takes about 2s, closing the app about the same.
[HTC One Mini 2] nightcore500:
I can confirm that the performance is better with an increased zram. With the next release, we change to the 384MB. Thanks for your work [MENTION=1199534]stkl[/MENTION] :)
[HTC One Mini 2] Andruxcx:
My device started crashing recently. whenever im in a certain app the phone freezes and then just restarts
[HTC One Mini 2] nightcore500:
Please post your last_kmsg. You can find the file under /proc/
[HTC One Mini 2] Andruxcx:
Ok
[HTC One Mini 2] nightcore500:
[MENTION=8229529]Andruxcx[/MENTION] Was your last reboot caused by a crash?
[Fire Q&A, Help & Troubleshooting] BeeWall:
When I was taking it apart according to the ifixit instructions (no idea why, I just like taking things apart), I accidentally ripped the small black ribbon at the top. That is the digitizer ribbon, correct? Also, I think I damaged the orange ribbon attached to the display. I found this item on Amazon. Would this have both the ribbons I need, and if so, how would I go [MENTION=1999961]about[/MENTION] replacing the screen? If not, does anybody know of something that would work? Thanks in advance.
[Fire Q&A, Help & Troubleshooting] crazyates:
FIxed.
[Fire Q&A, Help & Troubleshooting] BeeWall:
Changed it. Thanks.
[Huawei Watch] Carmanen:
Hi, i have a problem with Play Music app after AW 2.0 update. On 1.5 i was able to download music to my watch by selecting Play Music from watch and then "Play on wear" which showed all the albums i have on my phone or selecting Play Music from my phone and in the settings there was a Android wear section and there was "manage downloads" but neither is now available on 2.0 :/ So you can't download music to your watch anymore or is it changed and i just can't figure out how to do it now with 2.0? Please, can someone help me?

Btw, all my music are transferred by using PC from my original cd's to my phone so no albums bought from Google Play. Maybe after AW 2.0 update, downloading music to my watch only supports music bought straight from Google Play which would suck :(
[Huawei Watch] Badelhas:
I am very interested in this also since I use the smartwatch to listen to music directly from it with Bluetooth Headphones when I'm at the gym. If it doesn't work I won't be updating it.
[Huawei Watch] Carmanen:
Seriously guys, no one else uses Play Music to download some tracks to their Huawei Watch from phone? :eek: Why the hell it was changed in AW 2.0 since it worked so well on 1.5?
[Huawei Watch] MrGusano:
I have same problem!! I use my watch for running with bluetooth headphones! Looking for a solution. This is a big mistake from Google! another one!