yashsingh1/xdaforums huggingface dataset:
[L Speed] Paget96:
#android #LSpeed

New stable version!!!

v1.4.29

OK folks, I'm here to represent our Dynamic virtual memory which works based on screen state.

The thing I'm trying to make here is dynamically control device cache and give significant battery and performance improvements.

Also there's improved doze service, it should improve your devices idle state.

Thanks for support, cheers.

Changelog:

- Updated battery improvements

- Updated RAM manager (method for setting up minfree)

- Updated Doze

Better sleep on some devices

Go faster to idle on idle_maintenance

- Updated Extended IO queue

Using much longer queue than default

- Removed Entropy section (changing cause security failures)

- Updated Services

- Added dynamic virtual memory

- Removed write deferral timer

- Removed kernel tweaks

- Added virtual memory tweaks

- Set page cluster to 2 (4 pages per time)

- Improved su shell (spend less time on su if not needed)

- Updated profiles and profiles UI

- Updated Russian translation

Play Store:

https://play.google.com/store/apps/details?id=com.paget96.lspeed&hl=en

Join beta channel on Play Store:

https://play.google.com/apps/testing/com.paget96.lspeed

Follow L Speed on Google+:

https://plus.google.com/communities/114615858954464149084

Follow L Speed on Facebook:

https://www.facebook.com/LSpeedAndroidOptimizer

Follow L Speed on xda-developers:

https://xdaforums.com/apps/l-speed

Join L Speed discussion on Telegram:

https://t.me/LSpeed

If you want, you can also donate me using this link:

http://paypal.me/Paget96

or simply disable adblocker and support me over ads inside the app :D

Play Store:

https://play.google.com/store/apps/details?id=com.paget96.lspeed&hl=en

Thanks for the support :D
[L Speed] D1stRU3T0R:
Is it just me or doze notification isn't working? I didn't restarted for now...
[L Speed] :
Working great for me on Android 8.1, did you accord lspeed to modify system settings?
[L Speed] Paget96:
Well everything is possible, just open L Speed again, and track notification for few hours :D
[L Speed] Hpsgill:
Can someone explain which is better dynamic virtual memory or virtual memory tweaks?
[L Speed] :
To make a long story short dynamic virtual memory is a balance between battery and performance who is based on screen state and virtual memory is more if you want to choose for more battery only or for more performance only but you should try dynamic virtual memory.

PS : I'm testing dynamic virtual memory since few days and I'm obtaining better results so far.
[L Speed] gh0stzk:
Last stable working fine at the moment
[L Speed] Paget96:
Awesome, keep reporting ;)
[L Speed] D1stRU3T0R:
Notification working, but just after a restart.
[L Speed] Paget96:
how after restart???
[L Speed] D1stRU3T0R:
I updated lspeed, and notification wasn't working in any way, but when I restarted my phone everything was ok!
[L Speed] jugoslavpetrovic:
Maybe something like whole system-device info including bootloader, radio and vendor versions
[L Speed] holymoz:
noticed this on dynamic vm

screen on (supposed performance):

dirty expire 1000

dirty writeback 2000

screen off (supposed battery):

dirty expire 2000

dirty writeback 3000

on virtual memory tweaks on performance:

dirty expire 100

dirty writeback 200

on virtual memory tweaks on battery:

dirty expire 2000

dirty writeback 3000

so there is a discrepancy of values in performance mode between dynamic vm and vm tweaks? thanks
[L Speed] DiamondJohn:
I do not use L-Speed directly, preferring my own cut-down boot scripts. but follow the thread and have read the GitHub script.

One thing I recently noticed, was that in the /data/data/com.android.providers.media/databases.external.db (an SQLite Database) there is a table called "log", which even though its only 278 odd records, it may be an extra source of teeny-tiny improvements. This was simply one table I came across by accident. There may be many more of these types of tables that get filled and never used in day to day scenarios.
[L Speed] Paget96:
Ok :D i can do it.

Yes that are values :)

Don't need to be the same ;)

But it does nothing, i mean to device performances or so.
[L Speed] :
There's no command for that.

Only way is with adb I think.
[L Speed] icysnowy:
Could you explain for me what flag tuner actually does, after I enable it my battery life extends so much. May flag tuner makes my device instability. Thanks for your L speed.
[L Speed] DanGLES3:
It disables some OEM restrictions on multitasking,ram management so it becomes less agressive and can improve battery life,also it only causes instability on low ram devices or if u open alot of heavy apps at once.
[L Speed] Paget96:
What about adding a install location???

What do you think?

- Auto

- Internal

- External

Merry Christmas ;)
[L Speed] Kevin Saiza:
[MENTION=5514152]Paget96[/MENTION]

Recommend good settings for lspeed to increase ui smoothness without much effect on battery life. My soc is Snapdragon 625.
[L Speed] martyfender:
Is this in reference to Androids adoptable storage or Apps2SD's options of the same?
[L Speed] D1stRU3T0R:
Man use whatever you want, lspeed is already simplified so every newbie can understand it.
[L Speed] :
Yeah there's everytime a description to tell if there's an impact on performances or battery...
[L Speed] duttyend:
Dear Paget96,

Happy new year to you and your family!

Thanks a lot for the updates of the app!

Could you please update the github repository because it is very outdated?

Have a great day
[L Speed] martyfender:
Isn't that the case because he changed to a closed source license?
[L Speed] Paget96:
Yeah, something like that :)

Happy new year :)

It's old script version of L Speed, source is now closed :)
[L Speed] CLPose:
You could take a look at https://xdaforums.com/apps/l-speed/l-speed-share-setup-t3561854 to see if someone suggested a configuration that suits your needs. ;) If not, you can play around with L Speed and then upload your configuration to others like you. :highfive: Thanks and good luck!
[L Speed] joey118:
What's about adding a CPU governor changer?
[L Speed] TheRealIntence:
This would be very cool because i think most of the users are using kernel Adiutor or other kernel managers next to lspeed just for changing the gouverneur so having this option in one application would be very cool
[L Speed] DB126:
Been requested numerous times. Simplified governor tweaks are a L Speed strong point yet this core functionality remains MIA.

Maybe give it a sexy name like "cosmic governor swapper" to complement "dynamic virtual memory".
[L Speed] Paget96:
I have managed L Speed to use so little RAM while it's in background. Also there is battery save at that point.

Stay tuned, release is right beside the corner ;)

We also have a group on facebook ;)

https://www.facebook.com/groups/169281933668021/

Thanks for support
[L Speed] Paget96:
Update will be here within 45mins.

Stay tuned guys. :)
[L Speed] Paget96:
#android #LSpeed

New stable version!!!

v1.4.30

Changelog:

- Improved battery life on idle

- Reduced app RAM usage

- Improved services RAM management

- Updated Russian translation

Play Store:

https://play.google.com/store/apps/details?id=com.paget96.lspeed&hl=en

Join beta channel on Play Store:

https://play.google.com/apps/testing/com.paget96.lspeed

Follow L Speed on Google+:

https://plus.google.com/communities/114615858954464149084

Follow L Speed on Facebook:

https://www.facebook.com/LSpeedAndroidOptimizer

Follow L Speed on xda-developers:

https://xdaforums.com/apps/l-speed

Join L Speed discussion on Telegram:

https://t.me/LSpeed

If you want, you can also donate me using this link:

http://paypal.me/Paget96

or simply disable adblocker and support me over ads inside the app :D

Play Store:

https://play.google.com/store/apps/details?id=com.paget96.lspeed&hl=en

Thanks for the support :D
[L Speed] DB126:
Swing and a miss. Observations regarding Dynamic Virtual Memory (DVM):

- L Speed memory use while running in background is commendably low

- device reliably enters doze with DVM active; but ...

- device does NOT enter deep sleep with DVM active significantly increasing idle power consumption (>5% per hour; normally <0.5%)

- DVM dirty ratios and centisecs do not make sense for an Android device

- the same values are used regardless of on board memory

The above observations come as no surprise. Doze and deep sleep are not the synonymous; persistent background tasks spoil the later.

While setting dirty ratios & centisecs is a bit of art there is hard science behind the values chosen by most manufactures for mobile devices. The values used by DVM are more suitable for a large server with tons of memory and a reliable UPS.
[L Speed] :
I have 0% idle with dvm it's probably coming from your device so before bulliying the app be sure of what you are saying.

But maybe you can give us more details about your problem like Android version to begin...
[L Speed] DB126:
Quite confident in tech assessment; not a matter of opinion or something that needs communal review. Rather impressive "0% idle" on your device. Assume that refers to drain rate which translates to infinite battery life when idle. Cool.

I think L Speed should return to its roots by providing easy laymen's access to obscure Android settings rather trying to get cute with dubious tweaks that go against established norms. Then again, I suppose that's part of the appeal.
[L Speed] :
When I say 0 I say below 1 so it can be 0,5...

Furthermore, Danijel is experieciend enough to know if it's good or not and all the lspeed functions are always tested before being added but nobody told you to use it but personnaly I'm on Android 8.1 with an ABC rom wich normally means fully optimized but I continue to use lspeed as I see significant improvements on both battery and performances.
[L Speed] DB126:
There is a big divide between '0' and '1'. 0.2%/hr idle drain is considered rather good for most android devices whereas 0.8%/hr and above generally suggests a fitful slumber.

Never suggested that you or anyone should stop using L Speed which offers a collection of interesting knobs and dials. If positive results are measurable and reproducible then go for it.

My comments were focused on DVM in particular as implemented in the latest "stable" release.
[L Speed] :
Yeah so can you explain a bit more about what's wrong with DVM
[L Speed] DB126:
Initial post highlighted the issues/concerns which should be recognizable by those familiar with the material (developers). For others I suggest a objective assessment of device behavior with and without DVM active.

The biggest issues IMO:

- use of persistent background task regardless of footprint

- VM parameters that make no sense on an Android device

Both contributed to a negative experience on two test devices which came as no surprise.

The thousands of developers that work on Android gizmos are not fools (well, at least not ALL of them). Shared science is a benefit to all and how the ball gets moved forward. Not a fan of reinventing the wheel just because it seems interesting.

Going to step away from the conversation as it is likely to get ugly. Said what needs to be said. Moving on.
[L Speed] :
Ok thanks a lot for explained what's wrong and I agree with you for saying that manufacturers are testing well what they release.

I think Danijel will remove it if he agree with you as he already did on the past for things that he concluded that there were useless.

Have a nice day!
[L Speed] Paget96:
As we all know, everyone is free to do anything :)

We give a shot for almost all good ideas, we should try them, if it's not going well, we'll remove it, simple :)

Thanks for a bit of discussion, that's what i want to see, is it good or not, one device is not enough for testing (I'm talking here for me only) so that's why i have you all.

Good night, sleep well, we'll see tomorrow what to do here, maybe adding some modifications.
[L Speed] joey118:
Good idea..you should add ui tweaks as well..l speed does improve my phone performance very well but animation very sluggish :o
[L Speed] DB126:
Huh? Since when does flushing cached data to permanent storage equate to improved performance (whatever that means) except in unique 'I/O blocking' scenarios which are exceptionally rare on Android? Gotta love the internet ...
[L Speed] DB126:
While the concept of DVM is intriguing I do not believe it can be effectively implemented given the huge variation of device types, Android builds, kernels and personal configs within the user community L Speed caters to.

A more realistic and potentially beneficial suite of static (not dynamic) tweaks to dirty ratios and writeback timings that favor data integrity (ie: minimizing chance of data loss if device crashes), 'performance' or a balance might be a wiser path. This design would better align with other L Speed controls and allow users to pick the setting that works best for *their* device and workflow. Misc tweaks such page cluster, leases, highmem, etc. could be rolled into this control although I'm not sure any of those have a demonstratable benefit with typical Android workflows.
[L Speed] Paget96:
I agree with this, i'll see what i can do with it in next 5-7days. Maybe we'll have few betas, who knows.

I can just say, stay tuned, I'll write the progress.
[L Speed] Paget96:
I need logcats for doze service for device which being used for at least 5h.

Grab filtered logcat with "L Speed doze service"

Provide it here or telegram or facebook page/group (don't forget to mention android version)

Thanks, have a nice day :)
[L Speed] martyfender:
I am in need of clarification. Filtering in Matlog for L Speed doze service, yields nothing. Filtering for lspeed, does.

In Logcat Exteme I can do a per app logcat which should yield the same results as Matlog, above.

I'm not sure how to filter for services?
[L Speed] Paget96:
Use catlog instead. :)
[L Speed] martyfender:
Lspeed crash on lspeed app launch. This is on the V1.2.0 tablet not the V3.0.4 tablet in my signature. With Magisk 15.2 instead of SuperSU.

UPDATE: I also have app launch crash on the newer tablet in my signature.
[L Speed] Paget96:
Compiler problem, try wiping dalvik cache, it'll work fine. :)
[L Speed] Paget96:
I need a little bit of help from Android M users.

Open your terminal emulator and type:

su
dumpsys deviceidle -h

Screenshot that part and send me here. :)
[L Speed] gh0stzk:
Here paget. RR rom 6.0.1
[L Speed] D1stRU3T0R:
P8lite stock(modded) rom, C432B620 Android 6, EMUI 4.0.3, kernel 3.10.108, Magisk 15.3
[L Speed] koniii:
Alcatel OT 4013k

ViperOS 3.1.1

Nougat 7.1.2
[L Speed] Peacemaker69:
Hello Paget96, Zdravo

I've installed everything that you written in the first page. My device is rooted with SuperSU. The problem is that have more lags than before. No smooth UI etc...

It remains the same with more lags. I see no difference at all

Maybe my device is not supported with L speed ?

Device is: HTC one M9+ on marshmallow 6.0 with stock rom

Maybe you have the answer... Waiting

Cheers!

P
[L Speed] martyfender:
I've done that already, in fact, some what frequently.
[L Speed] martyfender:
nextbook ares 8a v1. 1.1 magisk 15.3 root.
[L Speed] perrsona1234:
[MENTION=5514152]Paget96[/MENTION]

I wanted to say THANK YOU for Your amazing hard work You've put into this app. It's GREAT.

While in deep sleep, with communication modules disabled, battery saver turned ON & localisation set to "Battery saver" - I have a REALLY GREAT battery life! It drops 1% per 9 HOURS!

Once again THANK YOU!

My phone: Xiaomi Mi4 LTE-CT 2/16

ROM: Official AOSP Extended 4.6 (Android 7.1.2).

GApps: OpenGApps - Pico variant.

Launcher: Nova Launcher Prime 5.5.2 + Sesame Shortcuts <- everyone TRY IT! It's good AF.

Icons: Paper Icon Pack <- very nice icon pack.

ROOT: MagiskSU 15.2

CPU governor: conservative

Brightness level: Automatic.

Also: I don't use any of this social apps - instead I'm using links to mobile websites. Those "apps" in folders are just links to mobile websites.

It's really good to use phone in this way: using links instead of this ****ty apps like Facebook or so...

If you want a good browser, I recommend You all Brave Browser (in Play Store) - it's:

-fast

-simple

-based on chromium (and Chrome browser interface)

-built-in ADBlocker

-can play videos in backgroud (Youtube, etc.)

-supports Google's Instant Apps

And some screenshots below:
[L Speed] Paget96:
It's really nice to see this after long time :)

Share L Speed with your friends ;)
[L Speed] DB126:
This is GREAT practice and one I have consistently recommended, especially with resource hungry social media. Might also want to check out Hermit (available in Play store) as an alternative/extension to browser links. While I typically use the latter sometimes a particular website works better with Hermit.

---------- Post added at 03:26 PM ---------- Previous post was at 03:03 PM ----------

Set profile to 'performance', reboot and observe behavior for awhile. If things are better you can use other controls to fine tune behaviors. If no noticeable improvement the problem lies beyond the reach of L Speed. Likely a resource hungry app or otherwise overloaded device. Only so much an optimizer can do.
[L Speed] Peacemaker69:
Thanks for reply. I see now after while working with few restarts and cleanup the dalvik cache etc... I notice a bit smooth transition etc... Nice, now I'm happy with.

Another thing, I notice that in my app some settings are missing... IS that normal because of it's update or maybe is missing because of my kernel or framework ?
[L Speed] DB126:
L Speed will only show settings applicable for your device, kernel and ROM.
[L Speed] holymoz:
Asus zenfone 2 stock 6.0.1
[L Speed] perrsona1234:
[MENTION=5514152]Paget96[/MENTION]

I have a little request for battery section of the app:

can You add a toggle for automatically turning ON the built-in Android battery saver after reboot ?

Thank You,

best regards.
[L Speed] MrJonsonJangles:
Phone: Sony Xperia Z3

Rom: Existenz Marshmallow Version 5.6.5

Android Version: 6.0.1
[L Speed] martyfender:
Just curious, why doesn't lspeed ask for storage permissions? It does ask for system permissions in the battery section.
[L Speed] Paget96:
Storage is for saving profiles on your storage for sure.

System permission is for smart battery saver and it states(for toggles wifi, bluetooth...)
[L Speed] Paget96:
Fstrim got small changes:

- Check for all "trim-able" mount points

- Trim all "trim-able mount points

Changes available after next beta update (+ much more ^^ )
[L Speed] Paget96:
Read :D

https://xdaforums.com/apps/l-speed/poll-add-application-manager-t3734982
[L Speed] phoberus:
Here the logs about the doze.

Restarted the phone today morning, but somehow the logs are a little bit shorter.

Oneplus 3T

Android 7.1.2

sultanized Resurrection Remix Rom

latest Magisk und L-Speed

(more info about device in zip)

edit:

if you need a longer log, I can send you one tommorow
[L Speed] Paget96:
I need longer :)
[L Speed] Paget96:
#android #LSpeed

New beta version!!!

v1.4.31-beta1

New features!!!

To help improve battery life, battery saver reduces your device's performance and limit vibration, location services, and most background data. Email, messaging, and other apps that rely on syncing may not update unless you open them.

- If enabled, battery saver will be enabled now and on boot

- System battery saver turns off automatically when your device is charging.

Set the battery percentage needed to automatically enable battery saver

Percentage can be between 0–100.

Fstrim got small changes:

- Check for all "trim-able" mount points

- Trim all "trim-able mount points

Changelog:

- Update doze service

- Updated notification text and icon color

- Updated light doze optimization

- Added ability to revert light doze defaults

- FStrimm updated (trim all trim-able mounts)

- Updated virtual memory tweak profiles

- Updated dynamic virtual memory

- Added enabling battery saver now and on boot

- Added battery saver trigger level

Play Store:

https://play.google.com/store/apps/details?id=com.paget96.lspeed&hl=en

Join beta channel on Play Store:

https://play.google.com/apps/testing/com.paget96.lspeed

Follow L Speed on Google+:

https://plus.google.com/communities/114615858954464149084

Follow L Speed on Facebook:

https://www.facebook.com/LSpeedAndroidOptimizer

Join L Speed discussion group on facebook:

https://www.facebook.com/groups/169281933668021/?source_id=1503157226676471

Follow L Speed on xda-developers:

https://xdaforums.com/apps/l-speed

Join L Speed discussion on Telegram:

https://t.me/LSpeed

If you want, you can also donate me using this link:

http://paypal.me/Paget96

or simply disable adblocker and support me over ads inside the app :D

Play Store:

https://play.google.com/store/apps/details?id=com.paget96.lspeed&hl=en

Thanks for the support :D
[L Speed] phoberus:
I update and reboot now. Will post the new logs tommorow evening
[L Speed] martyfender:
On two of my older devices, older than the one listed in my signature, the system battery saver trigger level is not fuctioning properly. I have it set on both to 15%, have also tried 20% and the battery saver is still on all of the time, unless the devices are plugged in. if any logs would be useful I may be able to get some later, but I have to leave and work on some computers for someone, for some time, today.

Here is a catlog logcat with lspeed system battery turned on, filtered for lspeed entered in the search window, in catlog.

Another after a second reboot.

Full logcat:

https://pastebin.com/XeXMCvGT

UPDATE: when unplugged now, the smart battery saver toggle slider keeps getting turned off on its own, randomly. Right now it is turned on at 98% battery level. Noted by the fact that the orange shows up at the top and bottom status bar.
[L Speed] martyfender:
A second, beta update, with the same version number, as the previous one today: 1.4.31-beta1, was silently pushed out to the Play Store.
[L Speed] Paget96:
Signature problem, i had to push one more.
[L Speed] DB126:
[MENTION=5514152]Paget96[/MENTION] - heads-up: appears a change to laptop_mode may be needed in "Virtual memory tweaks".

For weeks I have puzzled over the way various devices responded to virtual memory tweaks applied outside L Speed - specifically dirty ratios and write back thresholds. In short, the devices were not behaving as expected. Turns out laptop mode was the culprit. I had to refer to Linux kernel documentation originally penned in 2004 (!) and then extrapolate findings to Android.

Two previously unknown (to me) things happen when laptop mode is set to any value other than 0:

- dirty background ratio is ignored as a trigger asynchronous write backs

- any I/O activity will trigger a full destaging of ALL dirty blocks

The result on Android is that all dirty blocks are typically written to permanent storage at the (non-zero) interval specified by laptop mode (eg: every 1 sec) regardless of whether the dirty ratio and/or write back timeout thresholds are met.

There is sound reasoning for this behavior on self contained (battery powered) hosts with rotational storage. It makes no sense with mobile devices that use eMMC.

In the best case scenario responsiveness may improve because the cache is always being destaged reducing the chance for a synchronous write lockout (typically perceived as 'lag'). However, this should rarely occur on a properly tuned device with relatively fast eMMC storage. The more likely scenario is a reduction in SOT due to increased I/O activity.

tl;dr: laptop_mode should normally be set to zero on an Android device.
[L Speed] raptorddd:
in govtuner i have conservative on big cores and small blue active. when in use does having 2 different governors change values. i think i tried and conservative doesnt change. also governor is named blue active. just like in govtuner app it detects big and small and separate governors.

thanks