[ROM][T320][T325][UNOFFICIAL] LineageOS 17.1 | Android 10.0 Q 20210419

Search This thread

genericfu

Member
  • Apr 11, 2015
    32
    34
    I got solution. change "ro.config.low_ram=true" to false.
    also i recommend change zram size. like 40~50%

    For those of you looking to try these tweaks:

    Disabling Android Go mode (enables split-screen, PIP, multiple users): ro.config.low_ram is a parameter in the build.prop file. Here's a guide to editing build.prop using ADB on a PC.

    Editing the zram size:
    You need to edit the file fstab.qcom file in the path /system/vendor/etc/. The method is essentially the same as editing build.prop.

    Find the line that reads:
    Code:
    /dev/block/zram0                                    none            swap    defaults zramsize=25%,max_comp_streams=4,swapprio=10,notrim

    Replace "defaults zramsize=25%,max_comp_streams=4,swapprio=10,notrim" with " defaults zramsize=50%,max_comp_streams=4".

    I've made both of these changes successfully, although I can't tell if the zram change actually has any effect on performance. Would be interested to hear what others are seeing.
     
    For those of you looking to try these tweaks:

    Disabling Android Go mode (enables split-screen, PIP, multiple users): ro.config.low_ram is a parameter in the build.prop file. Here's a guide to editing build.prop using ADB on a PC.

    Editing the zram size: You need to edit the file fstab.qcom file in the path /system/vendor/etc/. The method is essentially the same as editing build.prop.

    Find the line that reads:
    Code:
    /dev/block/zram0                                    none            swap    defaults zramsize=25%,max_comp_streams=4,swapprio=10,notrim

    Replace "defaults zramsize=25%,max_comp_streams=4,swapprio=10,notrim" with " defaults zramsize=50%,max_comp_streams=4".

    I've made both of these changes successfully, although I can't tell if the zram change actually has any effect on performance. Would be interested to hear what others are seeing.
    Any reason for getting rid of swaprio and notrim? I would probably just change zramsize only, but I haven't tried it.
     

    genericfu

    Member
  • Apr 11, 2015
    32
    34
    Any reason for getting rid of swaprio and notrim? I would probably just change zramsize only, but I haven't tried it.

    I just used the exact parameters that were linked to in the post.

    Removing swapprio or notrim shouldn't make a difference.
    • swapprio sets which swap partition is preferred if there are multiple swap partitions. But this device only has one swap partition (source).
    • notrim disables TRIM operations on the selected partition. Based on some googling, it appears that the Linux kernel handles TRIM for swap partitions, so there's a good chance the notrim parameter in fstab doesn't do anything in this case (source 1, source 2).
     

    Pacote-san

    Senior Member
    Apr 2, 2008
    168
    28
    I just used the exact parameters that were linked to in the post.

    Removing swapprio or notrim shouldn't make a difference.
    • swapprio sets which swap partition is preferred if there are multiple swap partitions. But this device only has one swap partition (source).
    • notrim disables TRIM operations on the selected partition. Based on some googling, it appears that the Linux kernel handles TRIM for swap partitions, so there's a good chance the notrim parameter in fstab doesn't do anything in this case (source 1, source 2).

    The post you linked says nowhere to remove notrim or swapprio

    It just says to change zram to 40-50% so there's no need to remove the other values.
     

    Yxo 6o6uka

    Member
    Dec 14, 2018
    8
    3
    >> change "ro.config.low_ram=true" to false
    This is a brilliant find, thank you @Garry050 ! Super helpful to get the useful features back.

    >> also i recommend change zram size. like 40~50%
    Mulled over it and elected not to pursue, respectfully. In fact, I rather disable zram if could do it via config (short of rebuilding the kernel). zram gives u ability to run more things or bigger things at the expense of cpu and therfore battery. I rather prioritize better performance (less cpu overhead, more uncompressed ram) and battery life over ability to run more apps concurrently. I'm ok with an OOM kill if running too much at once. Although haven't seen it yet, if happens will clean up memory and restart. A good primer: https://forum.xda-developers.com/t/info-what-is-zram-and-how-does-it-work.2023568/#post-34877656

    >> Is there any way to get the IR Blaster to work?
    It works in a specific use case - https://play.google.com/store/apps/details?id=ir.remote.smg.tv&hl=en_US&gl=US with a Samsung TV. Works inconsistently tho. Could be app, tv, or perhaps issues in the T320 port - don't care to investigate as there are better remote control options.
     
    • Like
    Reactions: pocketrule
    • Like
    Reactions: genericfu

    genericfu

    Member
  • Apr 11, 2015
    32
    34
    The post you linked says nowhere to remove notrim or swapprio

    It just says to change zram to 40-50% so there's no need to remove the other values.
    I didn't say in the post; I said "linked to in the post." If you look at it closely, it links to a github commit showing an fstab.qcom file where the other two values have been removed from the zram config.

    You obviously don't have to remove them if you don't want to, but as I mentioned, they probably don't do anything.
     
    • Like
    Reactions: pocketrule

    genericfu

    Member
  • Apr 11, 2015
    32
    34
    Mentioned in the reddit post, but try turning off Audio FX, or at least virtualizer. I'm not sure I was having the exact same problem, though.
    Nice tip! Turning off AudioFX fixed glitchy audio in a couple of games for me. This is on the Dec build without headphones. I don't remember ever turning it on, so I'm guessing it's on by default (and probably shouldn't be).
     
    • Like
    Reactions: pocketrule

    genericfu

    Member
  • Apr 11, 2015
    32
    34
    >> also i recommend change zram size. like 40~50%
    Mulled over it and elected not to pursue, respectfully. In fact, I rather disable zram if could do it via config (short of rebuilding the kernel). zram gives u ability to run more things or bigger things at the expense of cpu and therfore battery. I rather prioritize better performance (less cpu overhead, more uncompressed ram) and battery life over ability to run more apps concurrently. I'm ok with an OOM kill if running too much at once. Although haven't seen it yet, if happens will clean up memory and restart. A good primer: https://forum.xda-developers.com/t/info-what-is-zram-and-how-does-it-work.2023568/#post-34877656
    FWIW, I did some more reading on zram and it looks like Fedora Linux recently changed their default zram setting from 50% to 100% of physical RAM size. Chrome OS, which used to ship on a lot of devices with 2GB of RAM, sets zram to 150% of physical RAM size (source 1, source 2).

    I'm not saying any of these values are what's best for the Tab Pro, but a value in the 50% range doesn't seem crazy to me.
     
    • Like
    Reactions: pocketrule

    Top Liked Posts

    Our Apps
    Get our official app!
    The best way to access XDA on your phone
    Nav Gestures
    Add swipe gestures to any Android
    One Handed Mode
    Eases uses one hand with your phone