Hi All,
as I wrote in the subject I'm interested in NETLINK and [timerfd] wakelocks - what are these used for? I read through all XDA threads' all replies which containing these but none of them are explaining what are they used for, what are their own purpose and how come they can drain the battery of our devices. Can someone describe/elaborate them or point me to some Android related links? (I've really checked all XDA posts and at least the first 50 pages of Google+Yahoo+Bing+Yandex but all matches are for linux purely not Android specifically.. and yes, I do know how can I disable them using custom kernels and Kernel Adiutor/EX Kernel Manager etc.. I'm interested in their purpose and how the phone can still work - somehow - correctly without them..).
Thank you!
Bump - please, someone, answer my question.
+1
I need help with this issue too...my phone is awake 50% (with sreen off) due to these 2 kernels wakelock. Why my phone is affected by them and not other similar ones with same ROM?
Redmi 5 plus. Stock rom. 9.5.12
Same issue here on pixel XL (og) 8.1
As far as I know netlink is a framework used for inter-process communication (IPC). Some wireless drivers use netlink calls in order to communicate between user-space to Kernel.
One clear example I can think of is the bcmdhd driver for Broadcom Wireless chipsets (you can check the bdmdhd source code to find various netlink calls in there).
This read here is quite interesting, although not Android specific it will show what I am talking about.
In order to determine if your phone Wireless driver kicks off the NETLINK wakelock count up, you can keep Wireless off and disable background scanning. This will let you know for sure.
NOTE: As far as I can tell you can typically disable the wakelock of NETLINK with a blocker such as Boeffla Wakelock Blocker without noticable side effect, I have done this on my LG V20 Kernel and there are multiple other custom Kernels that follow the same route.
I been looking days for this Netlink wakelock and its hard to find out what it does... It also seem related to the eventpoll wakelock because both have around the same number of wakelock on my oneplus 6.
The numbers are always insane high like in the 100k + so would be nice if i could lower that down.
Related
Looking for some opinions/advice regarding my security/privacy needs:
A way to prevent MITM attacks when using public wifi points.
A way to prevent Android from phoning home with who knows what kind of info about me.
A way to prevent apps from stealing my info / tracking my movements and usage.
With regards to #1 I think I can do that by using a VPN. Question is which is better - flashing a rom like CYM 9 which has OpenVPN pre-installed - or I believe Entropy's kernel will allow us to use the OpenVPN app that is on the Market???
#2 - I originally thought that a VPN would work here too - Android still phone's home but with a fake IP. Problem is that Android will auto-connect before the VPN does. If we had a firewall app with profiles we could solve that problem but no luck so far. Next, I'm thinking that the PDroid app might solve this problem now that we have deodexed roms that will allow us to use PDroid. Possible issue here is that from what I can tell there are sometimes many Android parts grouped together into one ID so when you turn off network access for one you turn it off for all?? Last I'm wondering (I have never used custom ROM's before) if ROM's such as CYM 9 have already gotten rid of all the "phone Home" problems and therefore we don't need to worry about it at all if we use one of these ROM's???
#3 I think a combination of PDroid and a firewall will solve this issue.
Your help would be greatly appreciated!!
Some Kernels have disabled "unnecessary" logging and tracing functions, e.g. Speedmod.
1) What exactly are these logging, debugging and other functions?
2) Why do stock kernels have these functions?
3) Do they really thwart the system?
4) Are these functions only for human analysis or does Android make use of the logged data itself?
1) As far as I know these are tools the kernel uses to put errors/crashes into log files. It's a great way for developers to fix certain issues because users can extract these logs from the device and send them over or upload them in the forums.
2) I don't know if they have it. Anyways, I imagine that the logs created are useful for service centers / supporters if you've a software issue.
3) I'm using DorimanX kernel and you can disable all loggers. But I don't feel a performance increase nor does battery last significantly longer. As long as the kernel is stable this may be called fine tuning :b
4) I guess the system doesn't touch them. Not completely sure though.
Thank you for your reply.
Since you assert disabled logging would not save battery, what is it that the developers promote their kernels to be more power saving than the stock kernels? Not regarding underclocking or undervolting.
Let's take Speedmod again as an example. It is - of course among the brilliant work of other developers - known for its power saving qualities. But without touching anything of the conventional power loads (CPU, Display,...).
It's not all about overclocking and undervolting Just to name a few examples: Developers can alter the way how and when the CPU scales up - the governor is responsible for that. Or some kernels provide several schedulers or options to save battery in deep sleep. Take DorimanX as an example: You can activate "Auto WiFi" and set 30 sec for example. So if the screen is off for 30 seconds WiFi will turn off. If you've got a data plan you'll still receive WhatsApp/Facebook messages but it's more battery saving because WiFi doesn't drain anymore :b
So in general it's about a code-efficient kernel and how you tweak it
I don't know if this is the right place to post this thread but I can't see any feature request thread anywhere.
So as the title says, I would like to request a feature that is similiar to Smart Hibernation, except that it will avoid Dozing the phone if it detects any notification of application(s) added to its list.
Of course there should be an extra menu to add Smart Doze list. This way I don't have to disable Aggressive Doze everytime I cast something. I keep losing connection with Aggresive Doze on when I cast Youtube / other apps to Chromecast. Only disabling Aggressive Doze fixes it. (Yes I did put Youtube on doze white list)
Probably Smart Doze is not the right name but you get the point I'm using android 6.0.1 Galaxy Note 4
Thanks in advance!
Off topic : I think should we have a feature request thread? That way oasisfeng can read all the feature requests in one thread
threetwotwo said:
...I would like to request a feature that is similiar to Smart Hibernation, except that it will avoid Dozing the phone if it detects any notification of application(s) added to its list....
Click to expand...
Click to collapse
Assuming that I've correctly understood your addressed requirement, and my assumption might be wrong that would void everything coming behind, the requested feature/function is already available as one of the Xposed-based features; and actually working perfectly.
I'm well aware that not everybody wants to use Xposed for some reasons beyond the scope of the Greenify forum but I think it's simply that way that you can't get lots of functionalities if you're unrooted, you receive more power if rooted, but for some functionalities you ultimately require the Xposed framework.
Oswald Boelcke said:
Assuming that I've correctly understood your addressed requirement, and my assumption might be wrong that would void everything coming behind, the requested feature/function is already available as one of the Xposed-based features; and actually working perfectly.
I'm well aware that not everybody wants to use Xposed for some reasons beyond the scope of the Greenify forum but I think it's simply that way that you can't get lots of functionalities if you're unrooted, you receive more power if rooted, but for some functionalities you ultimately require the Xposed framework.
Click to expand...
Click to collapse
I guess you misunderstood? Let me rephrase my experience in points.
- My chromecast keeps disconnecting from my phone if I cast Youtube / other apps after a few minutes when screen is off
- Already put all casting apps to doze whitelist
- Can be fixed by setting Aggresive Doze off but I want to keep it on
threetwotwo said:
I guess you misunderstood? Let me rephrase my experience in points.
- My chromecast keeps disconnecting from my phone if I cast Youtube / other apps after a few minutes when screen is off
- Already put all casting apps to doze whitelist
- Can be fixed by setting Aggresive Doze off but I want to keep it on
Click to expand...
Click to collapse
Aggressive doze generally does not yield significant power savings relative to standard doze. Switch it off and profit.
threetwotwo said:
I guess you misunderstood? Let me rephrase my experience in points.
- My chromecast keeps disconnecting from my phone if I cast Youtube / other apps after a few minutes when screen is off
- Already put all casting apps to doze whitelist
- Can be fixed by setting Aggresive Doze off but I want to keep it on
Click to expand...
Click to collapse
I apologise; it's correct I clearly misunderstood. Lacking own experiences with chromecast or other casting apps and the apps not being part of my portfolio, I'm unable to test myself. Just imagine its utilisation, I currently don't understand why to greenify chromecast and the others at all. At least I didn't do that with applications I want them to run even if the screen is off like OsmAnd+, my mapping and navigation app for hiking and biking,and 15 (just counted them) others for various reasons. On average, I get a battery drainage of 0.5 - 0.7%/h, which is absolutely satisfying to me under special consideration that my devices is running and doing its job as advertised and required by me under all conditions. I never tried but personally doubt that I'd gain a lower drainage if I greenify the aformentioned applications.
Davey126 said:
Aggressive doze generally does not yield significant power savings relative to standard doze. Switch it off and profit.
Click to expand...
Click to collapse
On android 7.0+ maybe but on 6.0 Aggresive doze really helps a lot.
Oswald Boelcke said:
I apologise; it's correct I clearly misunderstood. Lacking own experiences with chromecast or other casting apps and the apps not being part of my portfolio, I'm unable to test myself. Just imagine its utilisation, I currently don't understand why to greenify chromecast and the others at all. At least I didn't do that with applications I want them to run even if the screen is off like OsmAnd+, my mapping and navigation app for hiking and biking,and 15 (just counted them) others for various reasons. On average, I get a battery drainage of 0.5 - 0.7%/h, which is absolutely satisfying to me under special consideration that my devices is running and doing its job as advertised and required by me under all conditions. I never tried but personally doubt that I'd gain a lower drainage if I greenify the aformentioned applications.
Click to expand...
Click to collapse
Nope, I don't greenify those apps either, I only greenify stubborn apps I got in my phone there are a few but I need them.
delete
threetwotwo said:
On android 7.0+ maybe but on 6.0 Aggresive doze really helps a lot.
Click to expand...
Click to collapse
Doze on the go (Xposed section) is the setting you want on Android 6 which is the default on Android 7.x and above. If Aggressive Doze is helping "a lot" then something else is happening under the covers. Whether it is worth pursuing is up to you.
Davey126 said:
Doze on the go (Xposed section) is the setting you want on Android 6 which is the default on Android 7.x and above. If Aggressive Doze is helping "a lot" then something else is happening under the covers. Whether it is worth pursuing is up to you.
Click to expand...
Click to collapse
Of course, but this does not relate to what I am suggesting / feature request.
threetwotwo said:
Of course, but this does not relate to what I am suggesting / feature request.
Click to expand...
Click to collapse
Smart doze isn't needed IMO; you have a specialized situation on an EOL Android base. Would rather see the developer focus on other progressive functionality.
Greenify isn't a 'doze tweaker' - nor should it become one. Plenty of other largely ineffective apps/modules/tools apps in that crowded space.
I'll step out of the ring now and allow your request to progress on its own merits.
Hello,
We have an Android SDK that many applications use for marketing purposes. Specifically, it allows to deliver personalized messages to their users based on geofences or bluetooth beacons detection.
We've dedicated tons of hours optimizing the thing so it does not drain user battery or annoys in any matter, however we are now facing a new challenge: Samsung Device Care (Samsung Maintenance).
As you may know, this application comes pre installed in (I think) all Samsung devices, and helps users to keep the battery consumption low by detecting apps that consume too much in the background among other features.
Our software behaves correctly in almost all categories, including battery consumption and background time execution, however the Samsung device care app sometimes shows an alert saying that the "application generates too many wake ups". In order to avoid this, we are being more aggressive by explicitly controlling the number wake ups when app is in the background, the only problem is that we are completely blind right now, as we don't know what is the threshold that Samsung Device care app uses to trigger this alarm.
I have decompiled the Samsung device care app, however the app seems to be written in C / C++, hampering the task.
I have also run tests for days in a couple of Samsung phones in order to see if I can trigger the alarm, so I can try to empirically found what the limits are, however I haven't been able to trigger any alarm, even though my testing code is requesting an AlarmManager callback every 30 seconds.
Finally, I have also opened a ticket in the Samsung Developer site, but no answer so far...
Do you have any idea where can I find this information? :crying:
I would like to ask a simple question from users who currently use Doze apps, Ex: the best is Franco's Naptime. (i know it's not updated since Feb last year)
Are they really working in Android 13? Would you recommend any other app or suggest any other battery save feature?
I use naptime on my 6a, 4a b4 traded back in, Moto G7, and G5+. So yeah...ever since Oreo iirc. Has all the features u want/need IF...U take a lil time to understand the doze works, the stages and terms {from pre-idle, idle to pre-light doze, light doze, Doze, Deep Sleep and my fav mistake, 'KTFO' mode Req. an annoyed owner to be simultaneously tapping, pressing and cussing for 3 min str8 and cluck like a chicken 3x. j/k...about the chicken anyway. Just pick one app for ALL your doze related tweaking.
Lots of battery apps 'dabble' in doze enuff to be helpful but none that I've seen that can go toe to toe for long and if its close (like w/ Battery Guru), then Naptime has an 'ace in the hole' with 'Doze Google Play Services' option accompanied by Franco's Doze 'Google Play Services' Magisk module which did get a recent (key?) update for A12. If u visit the Magisk mod you'll come up a great debate ov OG Google GMS doze vs. the 'Simplified' module and a few semi-heated exchanges while folks tryin' to what still works as of A12 when peeps started noticing worse battery 'mileage'. That's when I posted that I've always used Naptime (and Servicely), with BBS in the background.
Long story short...YES using a doze app will have u a nice chunk of charge. Battery Guru (w/root or ADB perms) will 'do' for the avg. user. For those that rooted and are known to exhibit 'geekish tendencies' will opt for $!.50 which includes his special doze sauce found in his magisk module, I 'SUSPECT' there's sumthin' diff. than other modules...or maybe it a combo and works with napetim's code?! I've never taken the time to do accurate, objective comparisons/tests. That being said, Naptime is more feature rich, 'fine tunable' with DEEP timing parameters - and also has saveable profiles too...thank fk. It about time naptime got a 'How to' write-up as it pertains to A11/12 & 13ish. I say '-ish' cuz I can no longer call myself a 'coder'.
Last things I 'coded' were in COBOL, FORTRAN, RPG II&III and 'some' Machine Code on IBM 'mainframes'...stuff most of u guys only seen in Computer History textbooks.
/end ramble
Zaxx32 said:
I use naptime on my 6a, 4a b4 traded back in, Moto G7, and G5+. So yeah...ever since Oreo iirc. Has all the features u want/need IF...U take a lil time to understand the doze works, the stages and terms {from pre-idle, idle to pre-light doze, light doze, Doze, Deep Sleep and my fav mistake, 'KTFO' mode Req. an annoyed owner to be simultaneously tapping, pressing and cussing for 3 min str8 and cluck like a chicken 3x. j/k...about the chicken anyway. Just pick one app for ALL your doze related tweaking.
Lots of battery apps 'dabble' in doze enuff to be helpful but none that I've seen that can go toe to toe for long and if its close (like w/ Battery Guru), then Naptime has an 'ace in the hole' with 'Doze Google Play Services' option accompanied by Franco's Doze 'Google Play Services' Magisk module which did get a recent (key?) update for A12. If u visit the Magisk mod you'll come up a great debate ov OG Google GMS doze vs. the 'Simplified' module and a few semi-heated exchanges while folks tryin' to what still works as of A12 when peeps started noticing worse battery 'mileage'. That's when I posted that I've always used Naptime (and Servicely), with BBS in the background.
Long story short...YES using a doze app will have u a nice chunk of charge. Battery Guru (w/root or ADB perms) will 'do' for the avg. user. For those that rooted and are known to exhibit 'geekish tendencies' will opt for $!.50 which includes his special doze sauce found in his magisk module, I 'SUSPECT' there's sumthin' diff. than other modules...or maybe it a combo and works with napetim's code?! I've never taken the time to do accurate, objective comparisons/tests. That being said, Naptime is more feature rich, 'fine tunable' with DEEP timing parameters - and also has saveable profiles too...thank fk. It about time naptime got a 'How to' write-up as it pertains to A11/12 & 13ish. I say '-ish' cuz I can no longer call myself a 'coder'.
Last things I 'coded' were in COBOL, FORTRAN, RPG II&III and 'some' Machine Code on IBM 'mainframes'...stuff most of u guys only seen in Computer History textbooks.
/end ramble
Click to expand...
Click to collapse
I humbly appreciate your detailed explanation.
Damn...was afraid you were gonna say that...smh
Well, you''l have be patient. I have a few gaps in my understand of how much of all things 'doze' is affected by kernel settings to kernel tweak apps to full on custom kernels.
Ofc they affect doze, in many possible ways...they don't just add features and nuthin else. Sposed to catch Fanco whens a min to do lil Q & A session tomorrow...he knows doze inside out and he's also done tons of kernel dev. ofc, Also know oner rom/kernel dev who can help me re: doze and kernels. Ttys...I'm beat...3:20am (damn missed it by an hr. noot! Tty
Got some brain pickin nQA tomoz 4 sure. Night all
Zaxx32 said:
Damn...was afraid you were gonna say that...smh
Well, you''l have be patient. I have a few gaps in my understand of how much of all things 'doze' is affected by kernel settings to kernel tweak apps to full on custom kernels.
Ofc they affect doze, in many possible ways...they don't just add features and nuthin else. Sposed to catch Fanco whens a min to do lil Q & A session tomorrow...he knows doze inside out and he's also done tons of kernel dev. ofc, Also know oner rom/kernel dev who can help me re: doze and kernels. Ttys...I'm beat...3:20am (damn missed it by an hr. noot! Tty
Got some brain pickin nQA tomoz 4 sure. Night all
Click to expand...
Click to collapse
That's awesome to hear that you connect with legendary Franco!
If possible pls ask him whether his app Naptime works with A13 and he's planning to release an update to the app. Thanks!
I'm still waiting for a confirmation of some sort. We're not like personal 'friends' per se...just exchanged a few emails on a few occasions. But yeah...not 100% he's all that active since like A10 dayz. But yeah, nice guy fwir...didn't mind questions.
Fwiw...Naptime is still effective on A13...just gotta be on the lookout for any other apps with similar features. If annoying when setting get 're-toggled'. basically undoing your tweaks. There's of few cool tweaks I like in BatteryGuru that that won't light up unless u also toggle to allow it to turn on android's battery saver and/or extreme batt. saver when dozed. One of the interesting setting is 'Advertise power saver' to all apps in hopes that they will in turn activate any power saving attributes or behavior within. I need to go digging round and test to see 'how' that might work and to do it myself without having to 'hand over the reins'. Being able to whitelist what you need and where you need it is a must imo....beyond just by battery optimization tho that's a biggie. Well, I'll try and post up if I find my ultimate combo of apps n tweaks n gettin' them to play nice together with my limited understanding of how it all works 'under-the-hood'...iow I'm not a coder/dev since ~90's.
nobody needs Francos trash app.
To each his own, there's more than 1 way to skin a cat. Just found Naptime can take care of doze n most all related tweak n option. And FKM is always good...one of the original 'OG' kernel flashers. How do u manage you doze/battery settings...somethin better, a combo of apps or all manually? I'm always up for bigger/better ways, to avoid trash that is...