[Q] NoLED instead of screen off - Android Q&A, Help & Troubleshooting

Hi, as title says, i would like to replace screen off mode on my N9005 with app NoLED. App has option to always show clock when screen is off and its jumping on the screen, so (i guess) it won't burn my pixels. Turned off LockScreen (keygard), so after pressing power it turns off screen and few seconds after that it shows jumping clock (if enyone knows how to remove that few second delay it would be great, tried to launch every single NoLED app activity with Tasker and Secure Settings plugin and no luck). App also shows app icons when there is notifications. Long tap on icons opens their app, also, triple-tapping screen "unlocks device" (closes app). App can be also closed with single physical button click, so i plan to change that with Xposed Additions to double or triple tap (for security reasons).
Battery saving part:
Using FauxClock app set performance profile for NoLED with:
-min and max cpu freq: 300MHz
-cpu governor: powersave
-gpu max freq: 200MHz
-gpu governor: msm-adreno-tz (haven't changed, don't know which is the best, other options are: performace, simple_ondemand)
-Eco mod enabled
Is there more things to tweak for battery save?
I keep wifi and gps always on, and turn on bluetooth, data and nfc just when i need them. Plan to change wifi scan interval with tasker, also, use Intelli3G to turn 3G on just when data is enabled. Used System Monitor and noticed that, when NoLED screen is active, processor, most of the time, runs on 1 core (300MHz as set) and on 60% and up, is that ok?. Note 3 has AMOLED screen, so, i hope it won't drain my battery. Screen Brightness is set in app on 20%.
Most important question is: will these settings damage my phone in any way if i use them for a longer time?
Also would like to hear your suggestion for battery saving.
Thanks in advance.

Related

set cpu settings

what is the best setting for our SGA?
There are no best settings!
It depends on how you use the phone & how you want it to behave. You can use it to improve performance or to save battery or both.
Hit thanks if I helped!
well, u can use some profiles.
press profiles tab, then add profile.
in that select a profile for screen off and set the max to a lower value as we dont use the phone wen the screen is off. This saves some battery. priority:100
create another profile for incall and set the max to a medium value. priority:99
and another profile for temperature>44, set a medium value. priority:98
another profile for charging usb. max slider at medium value. priority:97
profile for battery<21%. max slider at medium value. priority:96
profile for battery<6%. max slider at lower value. priority:95
note: min for all profiles set the lowest. untick stay awake in settings => development.
This is wat i use
and do you see any improvements of the battery life?
camoll said:
and do you see any improvements of the battery life?
Click to expand...
Click to collapse
Yes definitely.
so how long does your battery last?
denclaud said:
so how long does your battery last?
Click to expand...
Click to collapse
well the setcpu settings which i suggested r jst a part of saving battery. U may get few hours more battery. But if u really want to save battery, here is wt i do
-Battery calibration has to be done. "Battery Calibration" app for the calibration:
https://market.android.com/details?i...=search_result
-I use "Juicedefender ultimate"(Just google it and get a pirated copy if u dnt want to buy) - set to "Balanced" profile: (there is a free version, too). Bt ultimate is the best
-"Autostarts" is great for preventing useless apps from autostart. Use it to disable apps wich wil autostart.
-"Auto memory manager" is a great replacement for "Task Killer"( Task killer just kills all apps so they could start again in the background - useless!) Use it in "agressive" mode, apply the mode once and forget about it (and task killing):
-DISABLE automatic syncing and background data!
To save battery, turn off wifi & bluetooth when you are not using them.
- Install APNDroid, to easily switch 3G/EDGE data off when not needed (still allows you to receive MMS messages when data is off, and has a widget)
- Set your screen to the minimum brightness that you can (but so that the display is still bright enough to use)
- Turn off "Power Saving" in display settings (actually uses more power than it saves 9 times out of 10)
- Use auto memory manager
- uninstall 3D gallery(uses lot of battery). instead use "quickpic"(very very fast for viewing images)
-Exiting apps using the back key, home key put the apps to background task.
-use setcpu profiles wich i suggested
I do all of this, and I can get up to 2 and half days(sometimes 3 days) use without charging
Things that will drain your battery the most (highest power usage):
- Wifi
- Bluetooth
- 3G/EDGE
- Screen
- Phone calls
thanks man lets see if this will work.

Saving battery on my Android device?

So after some research and Googling, I discovered that "Killling" your app is only worse or has no effect for your battery life. Even using apps that "save" battery only harm it even more. I've been told these were the fundamental things to save battery ever since I even got my hands on a smart phone.. Guess I've been asking the wrong people.
So, what are real ways to save battery? I'm a heavy phone user, often surfing the net or watching Netflix on the go. Dimming my screen is not enough, are there any other techniques to prevent my phone from dying? I've got an Android 4.
If you're rooted:
Underclock
Undervolt
Change cpu governor/io scheduler
Flash different ROMS and kernels
Change your modem
And a few more.
Not rooted:
Use screen filter? Lol.
Update your firmware
Sent from my GT-I9100 using XDA
okmijnlp said:
If you're rooted:
Underclock
Undervolt
Change cpu governor/io scheduler
Flash different ROMS and kernels
Change your modem
And a few more.
Not rooted:
Use screen filter? Lol.
Update your firmware
Sent from my GT-I9100 using XDA
Click to expand...
Click to collapse
I am rooted, thank you for the info! I'll be looking into it~
Get bigger battery?
Turn thing off lol only kidding but turn off auto updates such as news etc
If you look at your battery stats, under settings, you'll see what uses the most battery. Usually I find that my screen uses around 70% of my battery, but if you have something else high on the list you might have a "rogue app" preventing your phone from going into sleep mode.
If your screen is the culprit you can only save 10% or so by throttling your CPU etc. The only way you can make real savings is by reducing screen brightness.
Easiest way to save battery is use gemini app manager to stop apps being able to autostart when you don't want them to as then you don't have the os having to kill off unused apps to make more free ram.
For example a lot of apps can autostart when your wifi goes on or off, when your 3G signal drops etcetera including things like facebook or google play. By changing auto start for such apps you don't have to run a task killer which also saves battery.
Dave
Sent from my LG P920 using Tapatalk
i use the aokp rom milestone 4 atm, and i also have come accross a fantastic battery app called "Badass Battery Monitor". its free and details very very specifically what apps are using the battery most.
I have managed to increase my battery by rooting out the apps i dont use that are using prescious power...
Also, turning off useless app permissions for apps theat really dont need them and work perfectly well without them will also save on power massively. for this i use "LBE Privacy Guard" works an absolute charm
I have widget where I can turn off Internet connection, set brightness, GPS etc. Internet stand-by mode uses damn much battery... And when you don't use Internet, you can put on 2G, it also saves battery.
This may not benefit you if you are a heavy user but I find the feature on my Droid 3 that turns off 3G after 15 minutes of inactivity saves battery and also saves data. Not sure if this is a standard Android feature or if it would even benefit you.
Here with LG P990 and I don't have option to turn off 3G aftre some minutes... but if/when you didn't need high speed you can choose only 2G network (for example when needed receive only notification): this save a lot your battery.
Moreover you can verify battery consumption to see if there are autostart apps from your vendor than have heavy power consumption (for me there was OnScreenPhone) and use gemini app manager as explained previously.
In the end you can find out custom ROM for your device usually optimized for smoothness and power consumption.
First apps I download when switching to a new Rom to get a little control on battery are
Adfree- Get rid of ads, they eat a bit of battery.
DroidWall- Control what apps are able to access Internet under separate "Mobile Data" and "Wifi" Conditions.
Screenfilter- Dim the screen below factory settings.
LED's hack- Turn off the Softbutton Backlights (home/menu/back/search), even though they don't seem like it may eat up your battery, it is an extra 'light' that's on, even though it may be minimal, it's still drawing power.
Also, It maybe just a Photon thing cuz of the Pentile display but I always use if not completely Black background image, a dark one because the 'lighter' or 'whiter/colorful' images take more battery, same reason I always look for 'Inverted' or black themed apps too.
Turn OFF any 'Haptic feedback' settings on your phone (Keyboard, Phone DialPad, Screen/UI Interactions, etc..)
For Calls (Ringtone) and Notification settings, don't have them set to 'Ring and Vibrate' or just 'Vibrate' because the Vibration Mechanism will eat alot if battery. Some may argue that the Notification 'Vibrate' setting and even the Haptic feedback (which does in fact use the phones Vibration mechanism) would not kill battery because it's a 'quick' or 'minimal' use (depending on use) and but if your keyboard had the Haptic feedback on, thinking of how many times your touch the keyboard for even on Text message, try will add up and help kill the battery.
Turn OFF any/all Homescreen/UI Animations
Turn OFF any Auto Sync setting and instead have APPS sync in a specified interval, (Of course Depending on how important the information that's being pulled like Email) , Could be set to like every 4 hours to sync an so on.
Manually input Date/Time settings instead of "Get network provided values" because it'll be one less thing pulling from Internet.
Set Screen Timeout to 30 Secs and Never have Auto-Brightness set, instead use a brightness toggle of some sort (Stock 'Power Control' Widget works well) to only have it as bright as you need to view in current conditions.
Open the Google 'Talk' application and uncheck the 'Auto log-in' setting, and then 'Sign out'. For some reason this always runs in the background and eats alot of battery.
If I think of more things ill post them
Hope these tips help, if they do don't forget to hit the thanks button thanks.
MoPhoACTV Initiative
There are many ways...
Switch on WiFi, 3G at only using, and close the not using application, decrease display brightness etc...
And if you root your phone, you may change CPU governor, or build.prop tweaks, script tweaks... Or change to custom kernel or custom ROM.
I forgot that 'LED's hack' is not available in the market anymore, I attached it below.
i hv just downloaded screen-filter lets c how that works...
Juice defender
Try JuiceDefender by Latedroid. It helps a lot to turn off things you don't need when you don't need them. Sorry I can't post the link- I'm new to XDA
my experience:
undervolting does not help much. you have to test a lot for only a little bit of improvement.
in my opinion you will not really remark it.
but what helps, i think, is set cpu speed, if possible. for example i use samsung galaxy s2 where cpu has max 1200mhz. i set max cpu freq to 800mhz. with a good rom (hydrogenics f.e.) android keeps running smooth with 800mhz and battery lasts noticeable longer.
I agree that undervolting doesn't help so much.
Like in up post, best thing to save Your battery is to change cpu power. You can also use diffrent cpu govenor : good for battery are smartassv2 and power save. Just need to have rooted phone and download app, fx. Antutu CPU Master or Set CPU. U can also make your cpu speed profiles.

[GUIDE][U]HotRod and Maintenance for Xperia U

Hello everybody, today I present my guide or actually the procedure of modifications presently installed on my Xperia U.
1. Grab your Xperia U (I presume it is bootloader unlocked, rooted and installed Stock ICS based firmware)
2. Battery Supercharging-
a. Let your battery charge to 100%
b. Unplug charger and Reboot into CWM and wipe battery stats
c. Reboot into system and use phone as normal until battery is exhausted. (Now your battery is calibrated)
d. For maintenance of life of battery pack thereafter, let battery drain to not below 10%
e. Always charge battery short of 100% i.e. 85-95%
f. Once in a month, shut down your phone at 30-60% charge, remove your battery, and just leave it outside the phone for an hour or so.
Be compassionate, as Gandhiji had said
g. If you want to recalibrate your battery, follow steps 2a-2c. Recalibration for Li-poly is not that essential, since it has no memory but you can do it once a month or after flashing a new ROM.
h. Never leave your battery discharged for very long. Your Li-Poly battery will suffer a deep discharge.
3. CPU Control
a. Download BrainsKernel or Munjeni's Kernel
b. Install it using flashtool or fastboot (i presume you know how to do so)
c. Download your favourite CPU Control App (setCPU, noFrills CPU Control etc.)
I recommend CPU Tweaks as it gives you info on both cores at the same time and also has the time graph for when CPU is asleep (setCPU lacks that)
d. My recommended governor setup-
[Try to use a governor with inbuilt hotplug technology (hotplug means ability to control cores i.e. turn of second core when not required and turn it on when required) Eg. Hotplug, Lulzactive, PegasusQ, Hotplug etc.]
For normal use-
LulzactiveQ 800/200 MHz
For Music(Screen Off)
OndemandAX 800/200 MHz
For Gaming(Dead Trigger etc.)
Ondemand/Hotplug 1000/200 MHz
TIPS-
Remember that most governors with a screen off profile(Smartass, LulzactiveQ, OndemandAX) built in have a wake frequency (CPU immediately jumps to that frequency when screen on) is around 500-700 MHz, so try too keep your Max CPU limit at 800 MHz to prevent screen on delay. This is required as Xperia U has no 600 MHz intermediate CPU step, it has only 400 and 800. 400 is below the wake frequency so capping CPU at 400 MHz will cause lag during wakeup.
For me, using LulzactiveQ saves more power than SmartassV2 or Powersave. This is due to the fact that LulzactiveQ shuts off my second core much faster and much more dynamically than SmartassV2 of Powersave.
LulzactiveQ has a screen off profile of setting CPU speed to around 200-400 MHz while OndemandAX caps it at 500 MHz.
So OndemandAX is better for music as there is no tearing in playback when screen is turned off.
e. If you want to forcibly keep one core off (NOT RECOMMENDED. USE A HOTPLUGGING GOVERNOR INSTEAD) use XCore. It works on Xperia U and Xperia P. Check out the Play Store for further details.
4. RAM Management (Android does this on its own, usually. But you can help it)
a. NEVER use a Task Killer. Android kills tasks much more dynamically than your brain does
b. Delete all bloatware you do not need. This will prevent some background processes from being run and it will save some RAM.
c. Do not use a separate app for Facebook unless absolutely needed. (XDA App is fine )
d. That widget, sitting on your homescreen, which hasn't been touched for the past 1 week can be trashed.
5. GPS Superiority (You'll never use AGPS anymore)
a. Download an app called FasterGPS from the Play Store.(needs root)
b. Open the app and choose you continent and region. If your region isn't there, choose the closest region.
c. Get your ass out in the open and get a lock in less than a minute only on pure integrated GPS.
6. General Tweaks
a. Go to developer options in settings and set Animation Scale to 0.5x
b. Get a good statusbar mod (I recommend Xperia Tab n Grid Jelly Bean).
Why? So that you turn off the WiFi and BT and Packet Data when not required. I wouldn't do that earlier as I was too lazy to go all the way to settings to do so. Now I use the notification toggles and save some power
c. Turn OFF your phone and then charge it.
d. Use Lux Dash, an app to control your brightness. At night, set it to sub-zero to save power.
7. Physical Tips
a. Get a case for your phone. Incase you drop it, it will protect your phone.
b. I know you're tempted to take your phone to the pot and have fun but NO. People have lost phones like that.
c. Every week, clean your phone with a spectacle cloth.
d. Do not overstress your phone, or else you risk your hardware. I know they are designed to face all this but as Gandhiji said, compassion.
Hope these tips help you and your phone

Strange android battery problem

Hello;
- I use android 4.3
- My battery comsumption is great when my screen off (1% during all night - 8 hours)
- I use greenify, freeze all user apps and 50 - 70% of system apps
- I use custom rom - kernel
- I did UV - UC - speacil governors
- I tried stock roms, different custom roms, kernel
- Nothing changed
- I do not play games
- I do not use heavy cpu using apps
- My installed apps are kernel control panel, better battery stats, greenify, greenify donation package, root explorer, supersu, uninstaller pro, app of my bank (i uninstalled it but nothing changed), wanam xposed (i uninstalled it but nothing changed)
- My screen light 20%
- Wi-fi off
- Bluetooth off
- Network 2G
- LED off
- All synch accounts off
- Internet data off
- Location services off
- Developer options - window animations off
* How i use my android phone?
- SMS messaging / 20 - 30 messages a day
- Phone calls / 20 - 30 minutes a day
- Internet surf / 10 - 15 minutes a day
- E-mail check / 2 - 3 times a day
Problem:
* My battery drains very very fast when screen is on
Questions go in the q&a forum, report your own post and ask a moderator to move it for you.
Everyone's battery drains fast with the screen on, at best you'll get 4 or 5 hours screen on time per battery.
If you're getting half that then search and read for the usual suspects and solutions.
Sent from my GT-I9300 using Tapatalk
Maybe you are using so many apps
Try boeffla kernel, use zzmoove with moderate or battery yank profile (or if performance is not a big thing for you user battery plus profile), don't undervolt it, just turn down the max clock of cpu to 1000mhz and max of gpu to 400mhz, also disable touch boost, logging and don't use swap.
Turn down your brightness, or use -5 auto brightness, enable CABC (content adaptive brightness control) undes sys settings>my device>screen>scroll to bottom.
With these settings you just have to have at least 4-5h of screen on time, if not, replace your battery.
Also, make 2-3 full charging cycles.
And if you tried the combination like i mentioned above, and you still cannot achieve that results, there is 100% that you have either battery hogging apps or a faulty battery.
Please charge your phone to 100%, and at 1-5% make a screenshot of better battery stats, it will be a better evidence in your usage.
lsalamun said:
Try boeffla kernel, use zzmoove with moderate or battery yank profile (or if performance is not a big thing for you user battery plus profile), don't undervolt it, just turn down the max clock of cpu to 1000mhz and max of gpu to 400mhz, also disable touch boost, logging and don't use swap.
Turn down your brightness, or use -5 auto brightness, enable CABC (content adaptive brightness control) undes sys settings>my device>screen>scroll to bottom.
With these settings you just have to have at least 4-5h of screen on time, if not, replace your battery.
Also, make 2-3 full charging cycles.
And if you tried the combination like i mentioned above, and you still cannot achieve that results, there is 100% that you have either battery hogging apps or a faulty battery.
Please charge your phone to 100%, and at 1-5% make a screenshot of better battery stats, it will be a better evidence in your usage.
Click to expand...
Click to collapse
* I asked about my problem in different forums, several times
# You are the first and also only person who spend his time to write a detailed answer
+ Thank you very much! Thanks a lot!
draligus said:
* I asked about my problem in different forums, several times
# You are the first and also only person who spend his time to write a detailed answer
+ Thank you very much! Thanks a lot!
Click to expand...
Click to collapse
No problem, forums are used for that, cheers.

[Kernel] [AOSP/TW] Plasma kernel Note4-1.21

Code:
Disclaimer: I am not responsible for any damage caused by or done with this kernel.
.
About
Welcome! Plasma kernel is a unique and specially tailored custom kernel for the Snapdragon variant of the Note 4. It is the product of my strange brain and the monkeys that reside within it. Plasma kernel is designed to be very flexible, able to cater to those who wish to miser every bit of power, as well as those who demand performance, speed, and fluidity. It combines some common features from brilliant developers around the world, along with a great deal of my own work. One thing worth mentioning is that unlike most other kernels, this one does not offer many CPU governors, as much work was put into its flagship governor, ZZMoove. Currently Plasma kernel is only for TouchWiz ROMs, but an AOSP version is already in the works. Thank you for your interest!​.
Screenshots
.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
..........
.
..........
.
.
General Features
Compiled with Linaro 4.9, tuned and optimized for Cortex A15
Initially based on Starkissed's (twistedumbrella) repo
All settings fully configurable with andreilux's free Synapse app
Mpdecision and thermald disabled
Additional I/O schedulers (noop, deadline, row, cfq, bfq, sio, fifo, zen, vr, fiops)
CPU under/overclocked to 268 MHz - 3,072 MHz
CPU voltage control
GPU under/overclocked to 166 MHz - 800 MHz
Simple GPU Algorithm
Charging control
mDNIe Hijack color control for KitKat
KCAL color control for Lollipop
Kernel Samepage Merging (KSM)
CRC control
TCP control
SELinux always permissive
Frandom
Rngd control
Stereo call recording
Fauxsound
Plasma Features
Extended LED control
Touchkey multipress lockout
Touchkey remapping at the driver level
Touchkey Flicks
Touchkey Slides
Turbo Home button
Plasma Simple Scaling Lock instead of Hardlimit
Optional kernel-level universal wakelock
Optional always-on voice detection tweaks
Optional always-on touchscreen (can wake from deep sleep)
Touchscreen reduced scanrate while sleeping to save power
TouchWake (my implementation)
Slide2Wake (my implementation)
Pull2Wake (my implementation)
Arc2Wake (my implementation)
PlasmaUnlock 2.0
MultiButton
Stem Gestures
Tactile controls (vibrate when touched with finger or S-Pen)
S-Pen adjustable minimum pressure (aka sensitivity)
S-Pen adjustable fixed pressure
S-Pen WorryFree mode
Detailed Plasma Features
ZZMoove: Plasma Edition
Heavily modified version of ZZMoove
Supports various low-level boosts that hook into all other Plasma features
Music detection to help avoid skips
Native Input Booster
Applies a different up_threshold and various other parameters when input events are detected
Dynamically restarts governor timer to instantly apply the requested boost
Can detect, restart, and change frequency within 1ms (according to Wikipedia, 1ms = the time for a neuron in human brain to fire one impulse and return to rest, 100-400ms = time for the human eye to blink).
Many, many other features to be documented later
Extended LED control
Full sub-LED control (RGB) allows you to calibrate to a beautiful white, since not all LEDs are the same and may exhibit ugly tints with factory settings
Adjustable global high and low power sub-LED brightness
Optional pulse (fade) style blinking
Adjustable blink timing
Customizable driver-level TouchWiz LED colors
High/low missed notification sub-LEDs color, defaults to white
High/low charging sub-LEDs color, defaults to white with a red tint
High/low charged sub-LEDs color, defaults to white with a green tint
Touchkey multipress lockout
If you find yourself accidentally pressing a touchkey, this feature can require a double or triple press. Useful for handing someone your phone and not having them accidentally press the Back button.
Touchkey remapping at the driver level
Touchkey Flicks
Quickly pressing and flicking up from either touchkey can perform 2 unique actions
No residual pass-through - meaning only your action gets performed, the touchkey press and any touchscreen input are blocked at the driver level
Supported by Automatic Media Mode
Optional crossed mode to offer an additional 2 unique actions
Touchkey Slides
Quickly slide across the touchkeys from either left or right for 2 unique actions
No residual pass-through - meaning only your action gets performed, the touchkey presses are blocked at the driver level
Only works while the screen is off
Can wake from deep sleep, but may be unreliable for now
Turbo Home button
By default the home activity is executed after the home button has been pressed AND released, which can introduce as much as 100ms of wasted time. This feature will immediately send an up-event as soon as a down-event is detected. Unfortunately this breaks the ability to press and hold the home button - however there is one workaround - another optional mode that will send the up-event, then immediately send another down-event, and whenever you lift your finger, that will provide the mating up-event. This will allow long-pressing the home button, but the downside is that it always must send a complete press before starting to hold.
Plasma Simple Scaling Lock
A very simple replacement for hardlimit
Locks governor name and min/max for anything but Synapse
Kernel-level control of back (flash) LED
Optional kernel-level universal wakelock
Optional always-on voice detection tweaks
Force screen on when activated - If you use a 3rd-party lock screen, you may have noticed "ok, Google" is acknowledged, but doesn't wake anymore. This will send a power-on event to mimic the normal behavior.
Turn power off on second activation (from screen-off) - This was a silly idea I had, but it sorta works. I was frustrated because after saying "ok, Google" and asking my question, the screen would stay on. When this is enabled, it will turn the screen off when you say "ok, Google" a second time. Example: Ok Google...what time is it in NYC?...[The time is 12:21 AM]...ok, Google...[screen turns off]. This obviously only works for things that don't require more input, in which case touching the screen will restore normal behavior. It's sorta cool though because in a quiet car you can ask a question to your pocket and then tell it to turn itself off.
TouchWake (my implementation)
When the screen times out you can wake it with a tap or button press. Functionality is like the existing, well-known TouchWake.
DoubleTap2Wake (see PlasmaUnlock)
Slide2Wake
Pull2Wake
Pull2Wake will wake your device when swiping from the top of the screen, to the bottom. If done slowly, you can use your fingertip to
Arc2Wake
Now part of Stem Gestures
Turn your phone on while grasping it - left/right arc with your thumb from above Home to the side
Touchscreen
Support for waking from deep sleep
Adjustable width for valid Slide2Wake/Pull2Wake to filter out false positives
Reduced scanrate while sleeping to save power
Support for detecting finger hovering (very buggy at the moment)
PlasmaUnlock (previously called PatternUnlock)
A kernel-based screen/input locking mechanism. It is designed to be as flexible as possible, from serving as a simple way (eg. DoubleTap2Wake) to augment your existing power-on methods, to a robust means of protecting your phone from prying-eyes. It features up to a 20-step lock pattern, verified against not only x/y coordinates, but also time between taps, and tap peak-width. Because it resides within the kernel, low-level access provides some unique features not found elsewhere, such as power key blocking, screen blanking, and locking that takes effect so early, it even blocks the boot-animation.
Can be on at all times, doesn't need a wakelock
No complex coordinates to set, the pattern recording feature accessible via Synapse makes creating your pattern easy
Up to 20 taps can be recorded
Mode for taps only, or swipes only (like connect-the-dots), or both
Taps are validated against x/y coordinates, optionally milliseconds between taps, and optionally width
Relative coordinate mode allows for abstract patterns to be input anywhere on the screen, as long as the display is in a portrait orientation
All detection methods can be independently disabled, achieving a variety of results such as:
Unlock with a sequence of wide-thin-wide presses anywhere on the screen, by turning off x/y coordinate and time validation
Unlock with one wide press at a specific spot on the screen, by turning off time validation and using absolute x/y mode
Unlocking with a simple double or triple tap anywhere on the screen, by turning off width validation and using relative x/y mode
Unlocking with a rhythm, by turning off x/y coordinate and width validation and using time only
Adjustable pattern entry timeout (so you don't have to wait for the normal Android screen timeout delay, which is usually at least 30 seconds)
Lockout mode
Can take effect at the boot animation
Locks the touchscreen, S-Pen, and disables USB data connections until the correct pattern is entered
Can also black the screen out. Besides obvious privacy reasons, it also has the potential to confuse/delay thieves.
Optionally disables the power and/or home button (three very fast power presses will always turn on)
When screen is on, power long-pressing is prevented
Option to automatically disable/restore lockout
When connected to USB
When connected to a defined safe WiFi SSID
Adjustable delay before relocking after the screen goes off
Tamper evident mode will flash the front LED when any attempt has been made to turn the screen on
Optionally block all LED activity while locked (to help give the appearance of a dead phone)
Optionally disables itself while on a call, then immediately relocks when hung up
Optional automatic home button press (so you always unlock to your home screen)
Optional delayed blackout restoration (when used with the automatic home button feature, this is so no one will see what app is in the foreground the instant your screen turns on)
Can automatically unlock for Touchwake
Option to coexist with Slide2Wake, Arc2Wake, Pull2Wake
Stem Gestures
A series of versatile touch gestures that are specially designed to be unintrusive. By existing within the kernel, the Stem engine is capable of blocking and restoring input events, allowing the gestures to be triggered and used without interfering with normal device usage. This iteration is a hybrid of previous Plasma kernel features "Arc2Wake" and "HomeUp".
Supported by Automatic Media Mode
Works in deep sleep
20+ customizable payloads delivered via VirtualKey engine
Tap2Repeat repeats last action when finger is lifted then put back down in the same place
Equal for right or left handed people
Gestures (some can have different screen-off and screen-on payloads)
High Left
High Right
Low Left
Low Right
Side Up Left
Side Up Right
Arc Spike Left
Arc Spike Right
Center Spike High
Center Spike Low
Center Spike Bottom
MultiButton
When enabled, pressing different combinations of buttons will yield up to 6 different payloads. This iteration is a version of the previous Plasma kernel feature the "Volume MultiKey."
16 customizable payloads delivered via VirtualKey engine
Combinations (each can have different screen-off and screen-on payloads)
Volume Up + Volume Down
Volume Down + Volume Up
Volume Up + Power
Volume Down + Power
Volume Up + Home
Volume Down + Home
Long-Press Mode
Supported by Automatic Media Mode
Combinations (each can have different screen-off and screen-on payloads)
Long-press Volume Up
Long-press Volume Down
Automatic Media Mode
Detects when music is playing, and overrides certain payloads with music-oriented ones instead (volume, track control, play/pause)
Allows for altered parameters in ZZMoove to prevent skipping, include when recording audio
Userspace Booster
Provides small boosts for common things, like the keyboard opening, files being transferred, incoming calls, packages being installed or updated, etc.
Adjustable frequency and core count boosts for:
New app starting
Scrolling in a list
Activity changes
Progress bar being shown (KitKat only)
S-Pen
Adjustable minimum pressure to help prevent errant input, especially when doing things like crossing t's or dotting i's.
Adjustable fixed pressure to effectively disable actual pressure input, to make writing easier for some people.
WorryFree mode that always disables the touchscreen and touchkeys while the S-Pen is out.
GPU
Adjustable minimum frequency while interacting
Adjustable minimum frequency while plugged-in
Nightmode
A very fast home button double-press will toggle nightmode (red screen)
Synapse
Set DPI to 640/480/320
Built-in support to apply the surround sound hack at 3 volume levels: stock, medium and loud
Changelog
v.1.00
Initial release
Installation
Download
Flash via recovery
Reboot
Optional: Install Synapse
Download
Plasma kernel 1.00 for Sprint Note 4 - KitKat (4.4.4)
Plasma kernel 1.00 for Sprint Note 4 - Lollipop (5.0.1)
Until I update this post, please see my replies in this thread for the latest versions (1.21 for CM-13, 1.20 for CM-12.1, and 1.17 for TouchWiz)
Known Issues
Lollipop (5.1.x)
Surround Sound mod untested
Donations
Developing Plasma kernel takes an enormous amount of time and effort. Features like MultiButton, PlasmaUnlock, and the Stem Gestures represent hundreds upon hundreds of hours of planning, testing, development, more testing, squashing bugs, and even more testing. If the functionality they offered were apps, each would be worth a few dollars in the store. But alas, they are merely free. If you find my work useful, consider helping your starving developer out and make a donation - it would be GREATLY appreciated! However, if you do, please understand that donations are reciprocation for all this existing work, and are not guarantees of support. It's not because I'm mean, it's because like all the other developers here, I do this in my free time, and sadly that is a very finite resource
Donate!​.
Credits
LoungeKatt (TwistedUmbrella), ZaneZam, AndreiLux, Faux123, Franciscofranco, Friedrich420, savoca, Yank555.lu, and many others.
A special thank you to bjrmd and everyone else who has helped test and support Plasma kernel on the Note 4
.
Source
Source code can be found on my github.​
XDA:DevDB Information
Plasma kernel, Kernel for the Sprint Samsung Galaxy Note 4
Contributors
ffolkes
Kernel Special Features:
Version Information
Status: Stable
Current Stable Version: 1.00
Stable Release Date: 2015-06-18
Created 2015-06-18
Last Updated 2015-11-25
Great to see you back, looking forward to trying it out!
Awsome great to see that you got this working with lp cant wait...
Sent from my SM-N910P using Tapatalk
Oe1 or ob7 fingers crosses
pbedard said:
Oe1 or ob7 fingers crosses
Click to expand...
Click to collapse
Works on my oe1!
Perfect for me- ob7--thanks.
Looking forward to the AOSP one for sure
Working well here on LP. Only issue I'm having, and I had it on the KK version as well and forgot to mention, is with smart stay. Proximity sensor isn't keeping the screen on like it should when looking at screen. Working on stock kernel, and another kernel I tried. Anyone else? Thanks for the update! I sure missed all the features of this kernel.
Sent from my SM-N910P using Tapatalk
Whats the securty thing always going off
See here
egodriver07 said:
Working well here on LP. Only issue I'm having, and I had it on the KK version as well and forgot to mention, is with smart stay. Proximity sensor isn't keeping the screen on like it should when looking at screen. Working on stock kernel, and another kernel I tried. Anyone else? Thanks for the update! I sure missed all the features of this kernel.
Click to expand...
Click to collapse
I've never used smart stay, but I will give it a try and see what's going on.
pbedard said:
See here
Click to expand...
Click to collapse
That is really weird. What ROM are you using? I've been using HybridX for KK and Notarized for LP and I have never seen a dialog like that before. When does it happen? When using Synapse?
Synapse never installed and im using the 0e1 stock rom
I am loving this kernel great job.
The settings inside synapse for this kernel is amazing. I had an antutu score around 40 but I'm sure that can be fixed once I get the hang of setting this up
OK, I love this kernal. The amount of options and tweaks are unbelievable. I loved this kernal on my note II and was disappointed when it fizzled out at 4.1.2
I have an issue with this build though. For some reason zzmove has never given me good results. It is good for battery life, but performance is bad. I could not find a good balance for this govenor on my Note II (AT&T) and my Note 4 doesn't like it either. I have tried many different variations of zzmove to no avail. It's a deal breaker on my phone.
Would you be absolutely opposed to using other govenors? Intelliactive and Alucard have worked the best for my phone (trltespr). Blueactive and Interactive Pro have also been popular on this device. Your choice of schedulers is great
Your work is much appriciated :thumbup:
Zzmove is giving me music skips while the screen is off. Anyone know what setup u should use to stop it
thatdudeaaron said:
Zzmove is giving me music skips while the screen is off. Anyone know what setup u should use to stop it
Click to expand...
Click to collapse
zmove scaling page---freq limit while screen off-- set to 2649
max freq while screen off and music plays--2649
min freq while screen off and music on--576
zmove hotplug page--max core while screen off--change to 2
my problem is that the music detection algorithm is not very accurate, so the "freq limit while screen off" is the setting that saves me.
TY
Kernel breaks proximity sensor for me. Running stick oe1 ROM. Any fix to this?
Oh well music still skips on zmoove governor
V12 turbo charged - Good Job ffolkes
Buckle Up Folks long post coming through.
For those that just want to get strait to the point Skip down to the Bold “Tweaking the governor” section.
This kernel has changed my opinion on what is possible with the note 4 from a fluidity stand point. I always thought that androids weakest points was scrolling performance, general fluidity, and speed, but this kernel along with the Noterized Rom with the Next Launcher 3d shell on top, makes my brothers iphone 6 plus seem sluggish.
I’ve been playing around with the lollipop version of this kernel before ffolkes officially released it (since version 18 and 18a). From my experiences with it, I have discovered the same thing that some of you have probably noticed: if left un-configured, it is painfully sluggish in some aspects but battery life is fantastic.
Unlike a lot of other kernels out there, I don’t believe that this kernel was meant to be left alone (ffolkes, please fee free to correct me if I am wrong on anything written in this post. This is your baby afterall, I am not the artist here). Honestly, there are so many options to tinker with, that it would be shame to simply leave it alone. This baby is a v12, turbo charged monster with a hidden Nitrous boost button just waiting to be pushed.
Some have asked for settings, So I am going to do my best share with you my experiences with tweaking this kernel thus far. Hopefully it will help someone.
A quick disclaimer with reference to my usage habits: I like to Glide. For me, my phone has to feel like the content on the screen is like a puck on an air hockey table or a hovercraft on water. I want no hard stops, as little friction as possible. I am obsessed with flicking things around on my screen and watching it glide to a slow, almost un-inhibited stop. The longer the glide the happier I am. My finger does not stay on the screen for more than half a second but If I do a full flick the content does not stop until 3 to 4 seconds later and it always a slow, gradual descent with no stutter or lag.
To achieve the above effect , 2 things need to happen. The application you are using has to be properly coded and configured, and the kernels governor needs to be tweaked.
Tweaking the applications:
Through my testing, I have found what I feel is a direct relationship between the applications dpi setting and scrolling/panning smoothness. How long it takes items to come to a stop after being panned or scrolled with a flick, seems to be directly related to the dpi. The lower the dpi, the longer the glide. I have narrowed my preference to three specific dpi settings:
345 – My personal favorite – you could set the entire rom dpi to this and get tablet mode for most apps and the text is still legible(to me), I could use this without exposed though you will have to user a different dialer and camera app due scaling issues.
380 – Text is much more legible (most will prefer this mode) and apps also tend to behave with much less stutter.
430 – Good Performance, Text is super legible but not to big but the air hockey glide effect only last about half a second.
Tweaking the governor:
Lets start with the touch-bootster
Sampling rate = 60000
Input Boost Punch Minimum Cores = 4
Input Boost Punch Frequency = 2649
Input boost Punch Cycles = 50
Input boost Up Threshold = 20%
Punch on Every Initial touch = enabled
Punch on All Touch Movements = enabled,
Punch on all S-Pen Movement = enabled,
Level 1 Batter Threshold & Master Switch = Disabled
For most, the above settings alone will remove almost all lag if you are using Noterized Rom or a Variant that uses it as a base ie Hybrid X (heck of a job also tx_dbs_tx). Just to let you know, with these settings, I can get 5 hours of web browsing along with and additional 40 to 60 minutes of web video streaming. If your video content is from the youtube or Netflix app, I can almost double the video streaming time when using Netflix, and almost triple it for google Youtube. I've gotten close to 8 hours of total onscreen time, even when pushing the touch-booster really hard with the above changes only.
To further squash out any lag related to general application load, change the following:
Down threshold While Screen On = 11%
Up Threshold while Screen On = 12%
Smooth Up threshold while screen on = 15%
Fast Scaling Up While Screen On = 4 Steps
Scale Blocking Cycles = Disabled
Scale Up Blocking = Disabled
By now if you still have lag then issue is either application specific, ROM specific, incorrect user settings or failed hardware. But if you still need more power and you don’t want an application to even think about stuttering, then go over to the zzmove hotplug page and change the following
*****Delays*****
Block Up Logic Cycles = Disabled
Stagger Up = unchecked
Block Down cycles = 5 cycles
Stagger Down = checked
*****CPU Core 2****
Up Block Multiplier = 0x(No delay)
Down Block Multiplier = 10x
Up Threshold = 10%
Down Threshold = 9%
Up Frequency Threshold = 422 MHz
Down Frequency Threshold = 345 MHz
*****CPU Core 3****
Up Block Multiplier = 0x(No delay)
Down Block Multiplier = 5x
Up Threshold = 15%
Down Threshold = 14%
Up Frequency Threshold = 652 MHz
Down Frequency Threshold = 576 MHz
*****CPU Core 4****
Up Block Multiplier = 0x(No delay)
Down Block Multiplier = 10x
Up Threshold = 20%
Down Threshold = 19%
Up Frequency Threshold = 806 MHz
Down Frequency Threshold = 729 MHz
God I hope by this point your still not lagging but if you are there the usual kernel lever tweaks that
1. include things like are things like:
2. enabling Dynamic Fsync,
3. disabling Error Correction,
4. Upping the GPU touch boost to 500, (very important for Noterized Rom or other variants that are fully Hardware accelerated(gpu rending forced + hardware acceleration) This is one reason I believe this rom can sometimes eat into batter life pretty quickly.
5. Increasing GPU Laziness to 8
6. Reducting the GPU ramp Up Threshold down to 300
7. Zram, Low Memory Killer, Frandom and all the other settings have pretty good guides out there to tweak accordingly.
Battery Life:
Tweaking battery life has to be done methodically. It should be based on each individually usage habits and should take into account the apps running in the background and available memory (low memory killer and Swapness should help out with this also)
Choose and Good Test Application - To start with I would find and use a good Application validate if there is lag and or stutter. This app should not be one the pushes the note4 to its max limit all the time, unless it is the primary app you use on the phone. Testing with such in app will have you tweaking your system to maximum performance all the time. At that point you could simply leave the settings that I gave you earlier as is and skip the rest this these sections. Those setting will get you maximum performance out of your phone when you need to running your hard-line application and still provide 4 to 5 hours of no screen time when you don't. when tweaked ffolkes version of zzmove can get you on-demand performance governor performance without the wasted power. You could just also switch to the standard performance or on-demand governor.
For the rest of us, when it comes to scrolling I would highly Recommend UC Browser(Can’t Sing it’s praises enough). Don’t just download the latest version. Not all versions are equall when it comes to scrolling performance and lag. I will include an APK in the post or link to their historical archives. There are three that I would recommend:
build dated 01/27/2015 - It is a web page eater. It is quick light and is stutter free if you are using a lollipop rom Based on Noterized. If on Kit-Kat it is not as smooth as the version listed below but still better than chrome, firefox or the Samsung browser, the new versions of dolphin might come close but still a distant second in scrolling performance.
build dated 06/04/2015 - about 5 to 10% slower on than the one above for java script performance but man is scrolling smooth on Noterized. If you guys remember the Old webkit browser on android 4.2.2, This one out does it and makes my brother want know how to get his iphone 6 to work like my Note 4 when it comes to website loading and smoothness. This version also has UC excellent Night mode with transparent background that makes things look even smoother when using dark themed wallpaper and has the added bonus of extending the notes battery life significantly. Keep in mind to achieve this performance, for me takes 345 dpi. 380 and 420 aren't bad either.
build dated 05/15/2015 - honorable mention goes to this build for its superb memory management. No crashes, hangs or forecloses with a variety of content for 2 weeks straight. remains snappy even though phone was never rebooted and memory never cleared. Was my go to until I started us plasma on lollipop and saw that I could have the best of both worlds and went back to the 01/27/build. the bruit force of the input booster will make anything that has a remote chance of being smooth, glide like butter.
The uc browser archives:
http://wap.ucweb.com/verlist/english_354/ucbrowser/145?uc_param_str=vepffrbiupla&from=U3-help&plang=
If using a web browser to determine lag and smoothness Desktop Mode mandatory for UC and the following Web Pages:
Yahoo.com – Stutter city because of the continuous loading of content ( you have to scroll for a good while, but once enough content has loaded you will see the limits of your browsers memory handling and allocation. This could also be a good benchmark for your io scheduler , and tcp congestion algorithm of choice.
Youtube.com – Same as above but content is heavier. Good test due to the fact that it will show you when you are not properly optimized, but reward you greatly if you are. You are either in the gutter or you’ve hit a strike.
Espn.com-Highly optimized well written code and template, should be smooth even though the content containers may load slowly. Again good test for tcp congestion. This site will also expose the performance delta between the 01/27 build of UC and the other builds mentioned.
Touch-Booster Battery Life - You need to tweak the touch booster settings to match how you interact with you screen. Some people flick there content always letting it glide and some people keep their fingers on the screen until they get to where they want to go. This alone will change how you optimize the setting for the touch booster to maximize battery life.
Using me for example, the settings listed in the touch-booster tweaks was custom tailored to me. Most of the time, I use my phone for web browsing, reading pdf files, and emails. As stated earlier, to interact with content on my screen, I flick on my screen and expect content to glide for as long as possible. On average, in UC browser (my browser of choice and the smoothest out there for scrolling performance) , even a light flick will last 1 to 2 seconds and if I flick content quickly enough, the content could glide along the screen for as long as 3 full seconds. Therefore I need my Input Punch boost to last 3 seconds just in case.
If My sampling rate is 60ms for the above stated situation, I need 50 cycles(Input boost Punch Cycles ) of the 60ms sampling rate to give me a total cycle time of 3,000ms, which of course we all know equals my 3 seconds. If I am someone who keeps my fingers the screen and rarely flicks then that’s a lot of wasted power for absolutely no reason at all.
To tweak touch-booster for , start with the settings I gave in the first section and reduce “Input Boost Punch Frequency ” until you begin to notice your first hint of lag on the above pages. One you experience lag increase the frequency by 2 steps from that point. Now reduce the number of active cores until you get lag again. Once you get lag, increase the core count by 1. Finally, decrease the power usage caused by the sampling rate by increasing the time between intervals by 5ms at a time. So from 60 to 65, then to 70. Once things start to lag, decrease the interval by 10ms
GPU Battery Life - In addition to the cpu touch-booster tweaks, flokes was even nice enough to include input based boosters for the gpu(freaking awesome by the way dude). He gave us the ability to under-clock the gpu to 166 when not in use (fingers off the screen) but giving us power for 1.5 seconds(hope this duration is tweakable in the future) of up to 800mhz. This is important for a Rom Like Notarized where gpu is doing most of the work all of time. The gpu is in use even for traditionally lite loads such as 2d work. I would recommend lowering the min frequency all the way down to 166 and capping the gpu somewhere between 266 to 300 if you are like and don't game much. if you get lag or stutter/jitter then increase the frequency one step at a time until the lag disappears from your application. You will get so much more mileage from steaming video like Netflix. The Adreno 420 is powerful enough to handle light loads without flexing its muscle, but will flex it anyways if not kept in check.
General Applications Performance and Battery Life - First you need to tweak the main up and down thresh hold for cpu load:
1. Increase the “Up Threshold while Screen On” by 10 until you notice your hint of lag in your application. 2. Once you noticed the lag or stutter decrease the “Up Threshold while Screen On” by units of 2% points until lag goes away.
3. Once you found you optimal number, increase the “Down Threshold while Screen On” number to a number 10 less than the “Up Threshold while Screen On”.
You can follow the same procedure listed above for the hot plug algorithm, Tweaking each individual cores up and down thresholds starting with core number 4. Once optimal threshold is set for core 4, test core 3 in the same manner then core 2. Once thresholds have been optimized, starting with the 4th increase the “Up Frequency Threshold” until you notice lag in your application. One you hit the lag frequency decrease your frequency step by 2 levels and then move on to the next core doing the same thing.
After achieving the optimal hot-plug and frequency thresholds for each core. You can then begin to explore power saving by adjusting the up and Down delays. Starting with Core 4 and working your way down, decrease “Down Block Multiplier ” in increments of 1 until lag is achieved. If no lag is achieved after getting to zero. Then your usage pattern is not effected by this and you can simply disable this feature for that core.
Normally I would not recommend introducing lag but from a power saving standpoint it also might be to your advantage to increase the “Up Block Multiplier ”. Starting with core 4 increase the number slowly until you begin to notice lag with you usage pattern. Do this for each core until you fine the optimal multiplier.
Other Power Tweaks – In my opinion remaining power tweaks can be done without effecting usage by much:
1. Sampling Rate Idle = 500ms – Decrease the number if you notice lag when try to interact with an application after having you finger off the screen for a while. I am not sure but I believe the input booster engine relies on this setting since it does not have a setting listed for poling in the governor(ffolkes correct me if I am wrong). If you notice that applications work great when you touch the screen and poorly when you don’t, you need to decrease the “Sampling Rate Idle Threshold(Frequency)” and/or “Sampling Rate Idle Threshold(load)” until its gone.
2. Sampling Rate Multiplier While Screen Off = 8x – The higher this number, the bigger the sampling interval when the screen is off. I love this feature. It’s given be great talk and music playback time when the screen is off. I don’t do it very much, but if I remember correctly I was getting less then 1 percent battery loss for an hours call with my sister(yeah she’s a talker).
Lastly, In my opinion, a good experience on the phone comes down to three pillars. The Rom it’s running on, the kernel, the Launcher, and then the Web browser. You already know about The Rom (Notarized), The Kernel(Plasma), and the browser Being UC browser. What I have not told you about is the Launcher. If you guys have not Tried Next Launcher 3D. Take it for a spin. If is not only full accelerated but it is full optimized for battery life. Even before I was using Plasma and the touch-booster. It was the only part of my note 4 I had never seen lag. The screen shot look Gimicky but when tweaked to your taste it can do a flat design like the other launchers with all the widgets and icon packs. The only difference is it does not slow down and does not eat your battery. Also no FC's. I am a stickler for smooth and this Launcher with Plasma and Notarized just plane burns.
Told you this was going to belong, but I am done. I would like to finish by Thanking Ffolkes for his hard work. This is not copy and past code folks. I have not even gotten talk about the rest of the settings in this thing like the gestures, multi-button and so on. This guy toils to bring a lot of these things to us. He's not just waiting for linux versions to do his releases. Considering the open source nature of android, I can’t state for sure that this is all his engineering but it sure looks like it. You tell me if you’ve seen this type of attention to detail and code command, in any other kernel. It’s not just him though I think SaintZ93 deserves more than a round of applause for fundamentally changing the base for all or our roms for the better. If Norterized is now base for our custom roms and I will accept no Less than Plasma for the kernel(People will, emulate, wait and see), Then the future looks Golden. Donate people. Think of it as taking the guy out to McDonald’s or for a pint of Beer and some fry’s. We all know he deserves at least that. Hope I am not breaking some type XDA rule with the length of this post.

Categories

Resources