yashsingh1/xdaforums huggingface dataset:
[Galaxy Note II Original Android Development] squicky:
:good: I'm out of thanks, but good advice :)

---------- Post added at 06:40 PM ---------- Previous post was at 05:51 PM ----------

Different wakelocks needs different approach, but I'm very chaotic person so took me some time to understand it. I was losing my mind over it :p Earlier I couldn't get deep sleep probably because either some synchronization issue was in place or something was trying to send data either over wifi or mobile data connection. This was my situation on Original AGNi kernel and steps with Flight Mode helped me then to get Deep Sleep.

Now that I'm back on v13e I had done the same steps, but they didn't work at all. NO DEEP SLEEP. I've set everything in the MOD like you've shown here :https://xdaforums.com/showpost.php?p=71031575&postcount=6307&nocache=1&z=3790270649004186

Even though Eclipse v9 is using busybox 1.23.0 git, but without installing 1.24.1 I still was having errors in busybox. So now I had no error about busybox in Catlog, but still couldn't get Deep Sleep.

I've checked BetterBatteryStats -> Kernel and turns out that wakelock is now not *sync* /com.android.calendar/com.google/eM-ADDR like when I was using Original AGNi kernel, but it's AudioOutLock - 94%. So i thought for a moment and I have plugged in my earphones. Few moments later AudioOutWakelock was fixed and I had Deep Sleep :).

That's the story of my life... at least a few days of it :D

Now what's left is "only" to find proper settings and UV to get rid off SOD and I'm gonna be totally happy :D

I'm starting with +80 for UV Sleep Mode if I don't get SOD then I will try 70,60 and so on.

I don't know how loop is switching settings for Deep Sleep from settings in Awake state. System sends some "awake" or "sleep" message and loops switches settings accordingly or maybe loop is waiting for some low frequency like 200-300MHz and then switching settings for "sleep" and if frequency is higher than 300MHz switches back to "awake" settings?

I'm assuming that the answer to this is the first option ("awake" and "sleep" messages from the system) and that would mean that without Deep Sleep state working properly (like in my condition) your loop wouldn't work correctly and it would be almost 100% sure to get system freeze or SOD right?

UPDATE: Looks like AudioOutWakelock needs to be released by connecting my headphones on every restart, to have working Deep Sleep.
[Galaxy Note II Original Android Development] MCT_:
[MENTION=4539857]squicky[/MENTION]

Honestly, instead of that would be something to do with the Mod, I have a half hour trying to translate your text.

Start with the fact that I write for two pages in a row.

UV sleeping mode = default

If you have a problem with "wakelock", unplug it and remove the script, you know where he is.

You still get SoD ?

Try GPU +75 UV.

Or two values to adjust the parameters of the CPU UV.

I also write about it, on two pages.

I didn't offer you to handle all 19 values, are only 2, it is not difficult.

Try this and you will be happy.
[Galaxy Note II Original Android Development] squicky:
I thought that SOD was caused because UV for Deep Sleep was set to low and you've said that we can raise it to +70 or so, because in Deep Sleep phone is not loosing energy.

In my earlier post I've written that I set UV for Deep Sleep to +80 and for now I'm not getting SOD, even after 2 restarts which is like miracle concerning past couple of days.

+80 UV Deep Sleep is the only thing I've changed in this configuration you gave us: https://xdaforums.com/showpost.php?p=71031575&postcount=6307&nocache=1&z=3790270649004186

There UV Deep Sleep was -20. You tell me to change it to OFF(STOCK), so I will do it, but I'm pretty sure it will end with SOD.
[Galaxy Note II Original Android Development] MCT_:
GPU +75 UV.

CPU -UV and DEFAULT = for ondemand, conservative, powersave values the same.
[Galaxy Note II Original Android Development] squicky:
Which script?
[Galaxy Note II Original Android Development] MCT_:
On screenshot catlog:

https://xdaforums.com/showpost.php?p=71236818&postcount=6404

I'm wasting time when rewriting the message several times.

It is harder for me than writing scripts.

Because I use a translator.
[Galaxy Note II Original Android Development] squicky:
I did it a few moments ago and it was working a couple of minutes. Now I've connected phone to charger and guess what... SOD :p I told you it would end like this.

I'm going back to my settings which didn't give me sod.:cowboy:
[Galaxy Note II Original Android Development] MCT_:
I just now think I need to do a video shoot or flash every Rom, that would do final build.
[Galaxy Note II Original Android Development] squicky:
You told me what to change and I changed. I got SOD and it's still my fault.

I don't know what the script you showed me has to do with AudioOutLock. I will remove it too, but I don't see any sense in this.
[Galaxy Note II Original Android Development] MCT_:
Give me a link to your Rom if it doesn't require a firmware bootloader.

Eclipse v9 ?
[Galaxy Note II Original Android Development] elsaedy:
realy no sod with cpu max sleep 1704 and uv sleep+40 ..no SOD ...

my setting is....

1.cpu awake ondemand

2.cap sleep ondemand

3.cpu max awake 800

4.cpu max sleep 1702

5.cpu uv wake -80

6.cpu uv sleep +40

7.gpu 108

8.gpu uv -100

9.vfc 90

10.background value 100

11..........

i chose all value that can make sod but with cpu max sleep1704 and uv sleep+40 no no no sod

but the problem is deep sleep only
[Galaxy Note II Original Android Development] squicky:
Took me a while to find it :)

Here you go: https://mega.nz/#!GpxXiRAC!UZqDwWbqhEEmmJTahPqZblswENAivnDvcxhXC19ij7I
[Galaxy Note II Original Android Development] elsaedy:
itis eclipse...we all here use eclipse v9...mct only use stock....so loop work good for him or he cannot found the bug ..he not on eclipse to found the problem
[Galaxy Note II Original Android Development] squicky:
1. Your phone doesn't go into Deep Sleep?

or

2. Your phone goes into Deep Sleep but is loosing much energy?

If 1 you should check for the longest running wakelock in BetterBatteryStats --> Kernel.

If 2 I have no idea.
[Galaxy Note II Original Android Development] elsaedy:
no it go to deep sleep but lost alot of powe....i lose about 15%on6hours..

first time i flash v13 i had 30m on 4% sot and abou 9 hours with 0.0% battery but after restart i got sod so i change some setting
[Galaxy Note II Original Android Development] squicky:
[MENTION=3132251]MCT_[/MENTION]

I've removed 020_SWACTIVITY from init.d.loop and phone still didn't go into Deep Sleep.

Deep Sleep only works for me when AudioOutLock is released. I do it by connecting and disconnecting earphones to the audio out in the phone.

I've checked this method 5 times already and it works every time.

Maybe there is some incompatibility between apps I have in my ROM and your kernel MOD. I don't know, either way AudioOutLock was not troubling me with Original AGNi kernel (there was other wakelock problem, but I've described it in detail earlier today).

What does "unplug it" as in "unplug it and remove the script" means? Half of the time I'm confused cause I can't decipher the words from your translator.
[Galaxy Note II Original Android Development] MCT_:
1) Try, no SoD :

"1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 [B]738 725 713[/B] "

2) Freezing, to change the Wallpaper:

3) Deep sleep:

A new build tomorrow.
[Galaxy Note II Original Android Development] squicky:
:good:

1) Done. (but I should also disable UV for Deep Sleep and set +75 for GPU UV?)

2) You get freezing on lock screen with bubbles or when you really change wallpaper (I'm asking cause I don't know if it's not a translation problem again)

3) Good for you. I still play with connecting and disconnecting earphones.
[Galaxy Note II Original Android Development] elsaedy:
please try deep sleep for long time .i need to chose ondemand for wake and sleep...and i want to use uv sleep to -
[Galaxy Note II Original Android Development] MCT_:
Yes, in the new build +75 in sleep mode it default for all -uv gpu.

Fixed in the new build.

Well, I'll try.

But now at least get a "default" without SoD for ondemand...conservative and without errors.

Then -uv.
[Galaxy Note II Original Android Development] squicky:
With +75 UV GPU and stock UV for CPU Deep Sleep and values you have provided I got SOD on lock screen.

You have clean fresh ROM with minimum apps I guess, so maybe it is possible for you to unlock the phone, for me it isn't possible - I got instant SOD and I don't use bubbles or any other animations on lock screen. I'm using the most simple one from the Lock Screen menu.
[Galaxy Note II Original Android Development] MCT_:
SoD on lock screen does not happen, it's freezing (about which I write above).

By choosing your own picture for Wallpaper.

After saving the values script, wait a little bit.

Then repeatedly press the "power" button, happens debugging and use...

2.30 am, I sleep ... everything else tomorrow...
[Galaxy Note II Original Android Development] squicky:
OK, so I have freezing every single time with these new settings.

Maybe your idea about making a video manual is not so bad after all. Seeing what to do in action would be worth more than thousand words.

And it would eliminate confusions from translator.

Thank you for today and have a good sleep.
[Galaxy Note II Original Android Development] MCT_:
Can add a fourth, or slightly above, those that exist:

1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 900 738 725 713 "

Try...

Thank you.
[Galaxy Note II Original Android Development] squicky:
Now I got freeze, then screen went off then on, then freeze again. But this time I managed to go behind lock screen. Phone is reacting strangely.

When I'm touching the screen or move anything with finger everything blinks and goes back and forth. Not really usable this way. But it's better than before you added the fourth value and still no sign of SOD, but blinking like crazy :p

UPDATE: After restart and changing those values again similar situation but this time there was no blinking. Wallpaper in TouchWiz didn't load, Lock Screen had troubles with animation. In the end screen went black... SOD.
[Galaxy Note II Original Android Development] MCT_:
Well, at least you know how to do it and how it is sometimes excruciatingly painful :) for participating in the development process (And you say that ready to throw your device out the window, because of the loss of deep sleep).

I think you are confusing the concepts of SoD and Freeze.

I have to get a restore backup of your ROM 4.4.2 that he would have helped me in my work.

Rom 4.4.4 in any case, I'll do it myself when I choose a time during the day.

Just a little patience.

And during this time, you can try a bit the max value of freq for sleeping mode ~ 1600, 1200...

Because at that time the device wakes up, it will lift the value max freq as a shot ~ 1800 this may be the cause of freezing.
[Galaxy Note II Original Android Development] squicky:
CPU Max Freq Sleeping Mode 1600

1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 838 825 "

and

1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 900 738 725 713 "

Freeze

CPU Max Freq Sleeping Mode 1200

1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 838 825 "

and

1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 900 738 725 713 "

Freeze

CPU Max Freq Sleeping Mode 1000

1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 838 825 "

Almost instant Freeze on Lock Screen

1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 900 738 725 713 "

Freeze but it wasn't instant

CPU Max Freq Sleeping Mode 800

1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 838 825 "

and

1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 900 738 725 713 "

Freeze

I can try other frequencies but I don't know what you are trying to achieve going lower than 1000 for CPU Max Freq Sleeping Mode

Out of curiosity I've set GPU Undervolting to value I was using for 5hours during the night which is -25 and with

1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 900 738 725 713 "

it works for now with CPU Max Freq Sleeping Mode 1600 . But I still don't know why did you need +75 for GPU UV.

Either way with -25 GPU UV it works. So I'm gonna leave it this way for as long as I don't get freeze or SOD.
[Galaxy Note II Original Android Development] MCT_:
[MENTION=4539857]squicky[/MENTION]

Work and no Freeze.

Fixed Dev AGNi for device 4.4.4:

### Quick_boot
service quick_boot /sbin/quick_boot.sh
class core
user root
oneshot

/sbin/quick_boot.sh "max freq 1600"

New build ...
[Galaxy Note II Original Android Development] elsaedy:
yessss.iam waiting
[Galaxy Note II Original Android Development] squicky:
[MENTION=3132251]MCT_[/MENTION]

I'm writing it here again, because you might have missed it on the previous page:

"1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 900 738 725 713 "

it works for now (about 30 minutes already) with CPU Max Freq Sleeping Mode 1600 but GPU UV is set to -25, not +75. No SOD, No Freeze.

Question:

Powersave is better than Ondemand as Deep Sleep governor?
[Galaxy Note II Original Android Development] MCT_:
Mod v13f

1) For correct operation of the packages required DYNAMIC FILE SYNC.

2) For users of 4.4.4 and governors "ondemand, conservative, powersave" only -10UV.

Everything else is for users of 4.4.2.

For other governors, UV function will work as before.

IMG_v4.5.5-FULL-MOD.R1_MODE_EPS.v13f_4.4.x_STOCK.zip

===========================

[MENTION=4539857]squicky[/MENTION]

I saw, but still offer +75 and it is installed by default for sleeping mode.

Here you will answer me to this question.

I few minutes ago installed this Rom and Mod Kernel.

Frankly, I general doubt that the definition of this paragraph will be accurate enough for Eclipse.

First, the data is updated with a huge delay (sometimes he jumps through % charge).

Secondly, the mA of operation do not generate.

And the solution to create the white background, it seems to me a failure for 4.4.4 at this stage of development.

High %hours consumption.

..If you want to know my opinion, the governors and the suppression voltage will not help him.

If only he didn't use the amendment SI 2018 CGPM, which I highly doubt )

But you like it, and I do not argue.

There is still some sort of Rom you would like to use to adjust the governors "ondemand, conservative, powersave" ?

I'm going to do the final build v14.
[Galaxy Note II Original Android Development] squicky:
I didn't have time today to play with v13f. It's working for 3 hours now.

On your default settings with Powersave as Deep Sleep governor everything was working for about 30 minutes and then I got SOD.

Then I have changed this governor for Ondemand and for now everything is ok...

Well it's a bit slow to wake when receiving call, but I don't mind.

UPDATE: This settings were good for almost 4 hours, but now I have SOD when connected to charger, so I will try my previous settings which worked all night.

I'm very happy that I don't need anymore to connect my earphones on every restart to get Deep Sleep :victory:

Question: You have told me to set (plus)+75 for GPU UV and that it's a default value, but when I have flashed v13f in MOD Agni Control app there was (minus)-75 for GPU UV.

So which one is correct plus 75 or minus 75?

I know that Eclipse v9 is not perfect from technical point of view, but it was the most complete custom Samsung 4.4.4 ROM for N7100 when I was flashing it.

I like the features it's got and that there is a chance for v10 in the near future.

Discussion in developer topic is still very active too.

If I would have to choose a new rom to play I think I would select this ->

https://xdaforums.com/galaxy-note-2/development/rom-resurrection-remix-t3532859

But some features are still not working correctly, so I'm waiting until it's more complete.

Good to hear.

You've done very good job.

Although I can't achieve results you've got on stock ROM because I'm on Eclipse v9 I'm still very grateful that you have invested time and effort to help improve the way MOD kernel works in Eclipse v9. :good:

---------- Post added at 10:30 PM ---------- Previous post was at 10:09 PM ----------

@MCT_

I don't know if it's a good idea or not, but developer of Eclipse is now gathering materials for a new version and you are finishing your MOD, so...

If you had some time maybe you could give him a few hints to make Eclipse v10 more compatible with you kernel MOD?

Look here for contact -> https://xdaforums.com/showpost.php?p=71237850&postcount=11979

But of course it's your decision and whatever you will do I would respect that.
[Galaxy Note II Original Android Development] MCT_:
[MENTION=4539857]squicky[/MENTION]

And after the selection of the governor, press again -10UV (button -10UV of experimental use mechanism).

max freq for sleeping mode = 1800MHz.

(if you are at a loss because of a post# 6451, it different things).

GPU UNDERVOLTING:

AWAKE +100 | SLEEPING +100

AWAKE +75 | SLEEPING +75

AWAKE +50 | SLEEPING +50

AWAKE +25 | SLEEPING +25

AWAKE default | SLEEPING default

AWAKE -25 | SLEEPING +75

AWAKE -50 | SLEEPING +75

AWAKE -75 | SLEEPING +75

AWAKE -100 | SLEEPING +75

Well you see, the Mod uses only three people elsaedy, squicky and MCT_ )

Let people work in peace, and so enough work from Rom Eclipse.

Surfaceflinger native, another classification.
[Galaxy Note II Original Android Development] elsaedy:
mct plz guide me..how get good sot and good deep sleep...guide me with all setting ...any setting can i use for both sot and deep sleep .....i will make what you say exactly
[Galaxy Note II Original Android Development] MCT_:
You two years of acting like a helpless child.

When will time. or ?

[100% 90% 80% 70% 60% 50% 40% 30 20% 10% ...] = -10UV is that all you got.
[Galaxy Note II Original Android Development] elsaedy646:
what is that....30m with 0.0% on sleep and bbs twll me that 0%deep sleep...i have or havenot dewp sleep
[Galaxy Note II Original Android Development] MCT_:
Show the same screenshot when you have ~30% battery.

========================

In the process of developing:
[Galaxy Note II Original Android Development] elsaedy:
we hope deep sleep work on this version
[Galaxy Note II Original Android Development] MCT_:
Hm.. well, what would you knowingly did not hope, here you the code:

/system/etc/mct-frc/007_UV

#!/system/bin/sh
# ;)

/sbin/busybox sh /sbin/rootrw

ACTIVITY="`cat /sys/power/wait_for_fb_sleep`"

if [ "$ACTIVITY" == "sleeping" ];
then
printf "1447 1400 1397 1397 1288 1238 1200 1150 1113 1097 1050 1047 988 963 938 947 913 900 888 " > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table
fi;

STATUS="`cat /dev/cpuset/mod-mct-monitor/checker-governors-status/governors-status-tmp`"

if [ "$STATUS" == "intelliactive" -a "smartassV2" -a "zzmoove" -a "lulzactiveq" -a "yankasusq" -a "pegasusqplus" -a "pegasusqpluso" -a "hotplug" -a "pegasusq" -a "performance" ];
then
exit 0
fi;

SUM_ON="`cat /sys/class/power_supply/battery/capacity`"

if [ "$SUM_ON" -lt "100" ];
then
printf "1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 [B]738 725 713[/B] " > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table
fi;

SUM_ON="`cat /sys/class/power_supply/battery/capacity`"

if [ "$SUM_ON" -lt "80" ];
then
printf "1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 [B]738 725 713[/B] " > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table
fi;

SUM_ON="`cat /sys/class/power_supply/battery/capacity`"

if [ "$SUM_ON" -lt "60" ];
then
printf "1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 [B]738 725 713[/B] " > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table
fi;

SUM_ON="`cat /sys/class/power_supply/battery/capacity`"

if [ "$SUM_ON" -lt "40" ];
then
printf "1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 [B]738 725 713[/B] " > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table
fi;

SUM_ON="`cat /sys/class/power_supply/battery/capacity`"

if [ "$SUM_ON" -lt "20" ];
then
printf "1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 738 725 713 " > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table
fi;

exit 0
fi;

/sbin/busybox sh /sbin/rootro

I think it can make even a child (provided a large amount of free time).

Adjust your device to your taste and color.

And tell me the test results.

Because I'm using 4.4.2 on an ongoing basis.

Code for my device + ondemand, uv sleeping mode:

SUM_ON="`cat /sys/class/power_supply/battery/capacity`"

if [ "$SUM_ON" -lt "20" ];
then
printf "1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 [B]838 825[/B] " > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table
fi;

I don't have time for this.
[Galaxy Note II Original Android Development] elsaedy:
copy this code on uv mct with root explore or what?
[Galaxy Note II Original Android Development] MCT_:
Root Explorer :good:

Replace contents and save (delete .bak).

Permission 777:
[Galaxy Note II Original Android Development] elsaedy:
ok..with this code ...which governor choose for slepp....ondemand or any other?..
[Galaxy Note II Original Android Development] MCT_:
see >

=========================================

if [ "$SUM_ON" -lt "30" ]; < This value is the percent of battery charge 30%.

if [ "$SUM_ON" -lt "30" ]; < Ie less than 30%.

printf " " < value UV.

============================

if [ "$SUM_ON" -lt "20" ]; < Ie less than 20%.

printf " " < value UV (Not recommended to change).

============

You need to create a seventeen similar codes (well, nine at least from "default" to "-80mV"), ascending sort:

You try to create at least one of them ~ (default) or -80mV.

And we hope deep sleep work on this version.
[Galaxy Note II Original Android Development] elsaedy:
what can i do for sod and deep sleep...i hate ondemand
[Galaxy Note II Original Android Development] squicky:
[MENTION=3132251]MCT_[/MENTION]

New ROM: https://xdaforums.com/galaxy-note-2/development/rom-hyper-rom-unique-t3567369

I'm downloading it now.

What do you think, all 4.4.4 ported ROMs will be so troublesome with MOD kernel as Eclipse?
[Galaxy Note II Original Android Development] MCT_:
I repaired a system partition and increased the update surfaceflinger, added reseter developer AGNi.

Perhaps Eclipse will work much better.

The fact that there is no standardization for custom Rom.

For one reason or another, its characteristics differ.

A high-level script language, also the background in the system if selinux_police of broken.

Different errors.
[Galaxy Note II Original Android Development] elsaedy:
​

waiting...our hero de mct....

---------- Post added at 09:02 PM ---------- Previous post was at 09:02 PM ----------

​

waiting...our hero dev mct....

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

​

waiting...our hero dev mct....
[Galaxy Note II Original Android Development] MCT_:
You've already adjust script uv ?

I look forward to when you finish the adjustment.
[Galaxy Note II Original Android Development] squicky:
This HYPER-ROM is crazy! :) It's like having 2017 device :D
[Galaxy Note II Original Android Development] elsaedy:
i already replace the script but have sod with uv sleep off defulat and with -80 and cpu max 1600 on sleep.....i told you befor that i must use cpu max sleep 1704 or 1800 and uv sleep above +40 or +40 to force sod ...itis for me.
[Galaxy Note II Original Android Development] MCT_:
Don't create forget to backup efs partition.

How you do it, if the latest build uses only one value for all uv in sleep mode (for ondemand, conservative, powersave) ?

All values UV in sleep mode one, which is used in Rom 4.4.2 and 4.4.4 Rom only -10UV.