yashsingh1/xdaforums huggingface dataset:
[Galaxy Note 4 Original Android Development] :
I'm really short in time so i'll just respond fast and come back later when I have time/after testing.

basically regarding the modems - I had a nexus 5 before and a samsung galaxy s2, and an S4. from battery drains with those devices always one of the first suggestions from devs was to change the modem, but not to a one that came with the kernel but to the one that gives you the best reception(bc of the explanation above- better reception the phone searches for the cell tower a lot less). for example in the US you have ATT Verizon etc, and its a huge place(same as europle etc) every company/country has a modem that works better with it and therefore there is less battery drain. for example here is the thread I used to download modems for when I was using my S4: http://xdaforums.com/showthread.php?t=2192025 as you can see there are dozens of modems for each devices. same thing was for my s2.

''Choosing right modem can make a huge difference as it affects reception, data speed, stability, battery life etc.''

And for when I was using the nexus 5: http://downloads.codefi.re/autoprime/LG/Nexus_5/Modems

not sure if it helps but just to give the idea.

regarding the throttling- I was using stock and it was too hot so took it down to 60 and it really throttled the phone. I looked at the temps and at about 50-55c it started throttling slowly and the device was warmish(kinda like its always) and at 60c it went completly slow and was stuck at 300Ghz until it went down to 50c. can't say for sure but I don't remember but from my feeling it wasn't like that on TW, and the phone was cooler/didn't throttle as much just from using fb app from example. but i'll check and come back with more data in a few days!

It might be only me(hopefully not or i'm insane ;:p) but i'm positively sure that with CM12 the phone is warmer then TW even when surfing the web for 10 minutes straight.
[Galaxy Note 4 Original Android Development] gekkehenkie11:
I asked several times for a logcat from people, since this never happened to me personally. Up to now nobody sent me a log, so there's no way I can even look into this.
[Galaxy Note 4 Original Android Development] disL:
I will provide you with that as soon as possible. It's 3:22 AM now in Finland so I'm off to bed. Will flash tomorrow and try to replicate the error. I'll be back for more info.

Thank you for your great work in advance!
[Galaxy Note 4 Original Android Development] gekkehenkie11:
Again, show me just 1 single Samsung image that comes with a different modem version as kernel version. I don't care what other devs say. Modem and bootloader really might not be kernel independent at all. Samsung NEVER mixes versions and that's for a good reason. It's because a modem and bootloader are designed to work with a single kernel. To give you an example, when Samsung released the LP kernel for the 910F, Slayher tried it on his 910T too. Everything seemed to work but one thing and that was that the brightness slider didnt work anymore. Then we found out that it was due to the bootloader: if I flashed back the old bootloader with the new kernel, I had the exact same problem ! Then flashed back BOB4 and the slider worked again ! So that proves that Samsung doesnt care about compatability with the partitions from older versions. And why should they ? They distribute everything in 1 single image, kernel, bootloader, modem and system. Why should they even care about compatability with older versions if they distribute everything in 1 single image anyway ?

Tell me what I should do to reproduce this since I've not seen this myself.

Just put on a temperature overlay (for example via app 'cpu temp') and watch the temperature.

Now do that 30 minute test, on both CM and TW and let's compare results !!
[Galaxy Note 4 Original Android Development] :
sure thing mate. i'll comment next time after doing it!
[Galaxy Note 4 Original Android Development] gekkehenkie11:
Good, I highly suggest to have a Temperature overlay (via app 'cpu temp) for example) and CPU usage overlay (via TREPN for example), so you can both monitor the temp and cpu usage during the tests, so we can compare everything correctly: temperartures, CPU usages and battery usage.

Again, I did this quite a few times and everytime the winner was CM12. But do try to prove me wrong please :)
[Galaxy Note 4 Original Android Development] finallau:
w/o BOB4 and sammy bootloader for 910G, I guess this is the end for the battery life..??

Is there any dev working on 910G for CM?
[Galaxy Note 4 Original Android Development] gekkehenkie11:
I'd suggest to flash both modem and bootloader from 910G december. Theoretically there might be compatability problems but I think you should be allright with those.
[Galaxy Note 4 Original Android Development] gekkehenkie11:
BTW you didnt use Vision kernel ? I just saw your post in the Vision Kernel thread. I just tried his latest kernel, the current Vision kernel version doesnt seem to do a good job throttling there, not sure why, but it shut down 3 of my 4 cores very quickly already causing a huge performance hit. Again, don't post in this thread if you use a 3rd party kernel like Vision, if you installed Xposed or even use another CM based ROM, things like that please (not directed to you but more in general).

Anyway I just compared touchwiz, it seems to throttle slightly less than the default settings in the kernel I posted, you could try setting the throttle temp to 82 ipv 80 C, that seems to be more like Touchwiz throttle behaviour.
[Galaxy Note 4 Original Android Development] Spunkybob:
Hi All,

Loving CM12 on my note 4 910G.. so much smoother to use but I do miss some of the Samsung apps (can find alternatives in the play store)

One thing I really wanted to work was viper4android but was having a lot of trouble getting the driver to install.

After much searching I was able to get it to work using the below method.

1. Turn off AudioFX and disable the app from settings.

2. Install busybox free from the play store Here.

3. Install SELinux Changer app from Here. (Apparently this app is banned from the play store)

4. Open SELinux app and press the permissive button.

5. Open busybox and let it detect your system fully and then press install. Once install is successful you can remove the busybox app if you want.

6. Install viper4android

7. Run viper4android and choose which driver to install (I choose high quality)

Reboot your phone, run viper4android and check settings -> driver status and check that the driver is installed OK.

If this works for you please give me a thanks.
[Galaxy Note 4 Original Android Development] than33:
Look.... I personally don't have any battery problems. Cm acts like it should and main battery drainer is screen. On TW rom it was system and it drained 30% of battery.

I was only trying to help you find bugs.

I tried to find where that strange thing happen and I think I found it. First of all touch boost goes to 1.5ghz on your rom not to 1190mhz. It sticks to 1190 when you don't use your phone, don't touch and cpu usage is 3%. But I know how it works. It looks like there is no way down for cpu when it goes to 1190mhz. It can only goes up and then goes lower only if it skips 1190mhz which happens almost all the time.

My second observation is that 1.5ghz is too much for touch boost. It goes up and soon goes into 1260. I set it for 1260 and still works without any lag.

Edit:

I found that sampling down factor is set to 100000 which probably sets something like maximum available value, because with 100000 it means 40000 sample time multiplied by 100000 before it goes down. This gives us almost blockade to going down. It is going down anyway so I think that there is maximum value like 10 or something. This parametr is definitely something you can call switch for performance or battery save. With default 1 it goes down MUCH quicker and interactive governor works as it should. No lag of course. With 100000 it was keeping really high frequency even with 10% cpu usage.
[Galaxy Note 4 Original Android Development] suutsch:
Hi,

I come from Touchwiz, made CF Auto Root, flashed TWRP. When I now do a FR and wipe caches, nothing happens when I try to install the ROM. TWRP immediately restarts. When I reboot the system, I'm getting a naked Samsung-System (Factory Reset indeed). I restored my nandroid-backup.

Do I have to make Format Data (and type "yes") for clearing everything? I have the CM-ROM and the GAPPS on my external SD.
[Galaxy Note 4 Original Android Development] haryp2309:
Try advanced wipe and clean dalvik, cache, data and system

Then install the rom

Maybe your rom zip is broken

And what is FR?

Sent fra min SM-N910F via Tapatalk
[Galaxy Note 4 Original Android Development] :
I did use vision with CMremix but only used the default kernel when switched to CM12 to try the thermal solution you made( ofc with no exposed as well)
[Galaxy Note 4 Original Android Development] finallau:
Is it compatible with 910G?
[Galaxy Note 4 Original Android Development] suutsch:
I tried indeed to clean all (dalvik, cache, data, system and internal storage). Is this a known behaviour of TWRP? It checks the MD5 Sum and after it, TWRP restarts.

Can I flash another Recovery through TWRP or do I need to use ODIN for it?

FR-> Factory Reset.
[Galaxy Note 4 Original Android Development] haryp2309:
OK then try advanced wipe

Sent fra min SM-N910F via Tapatalk
[Galaxy Note 4 Original Android Development] suutsch:
Take a look at my edited post one site before. I tried this, but that changed nothing in its behaviour.
[Galaxy Note 4 Original Android Development] mystertom:
How can I increase volume through Bluetooth output?
[Galaxy Note 4 Original Android Development] haryp2309:
Extract this and then flash the zip file inside the extracted folder: http://xdaforums.com/devdb/project/dl/?id=12057

Remember! Dont flash the zip you download! Flash the zip INSIDE the zip you download ?

Sent fra min SM-N910F via Tapatalk
[Galaxy Note 4 Original Android Development] gekkehenkie11:
Ok, still waiting on your 30 minute test results !
[Galaxy Note 4 Original Android Development] bidav1:
There is no doubt that battery life is poor on cm12.. Not during deep sleep but rather on when using the device. Here I lost 7% in very short time while surfing the net. My battery drains completely in 4-5 hours of daily use while on tw it takes 8-9 hours and ive tested it going back to tw.

No xposed or other kernel.

http://codeviewer.org/view/code:52e1

Here is a random log from now
[Galaxy Note 4 Original Android Development] suutsch:
There is no zip in it. The zips content are 3 folders, a boot.img and 3 other files.
[Galaxy Note 4 Original Android Development] gekkehenkie11:
First of all, both on Touchwiz as CM12 the CPU goes to 1.73 ghz when you touch the screen, from what I understand it's Lollipop that does that to ensure smoothness. The kernel itself scales to 1.1 minimum I think. But I just checked again, it's exactly the same on Touchwiz as Lollipop.

About the ' sampling down factor', what are you exactly talking about ? Which Sysfs node ?
[Galaxy Note 4 Original Android Development] Batfink33:
Did you use Trepn profiler to find out if you had any rogue apps? and also, disable the various Google Services which have been know to cause wake locks and heavy drain?
[Galaxy Note 4 Original Android Development] disL:
Okay. So. My contract is frozen cause I forgot to pay a bill :D Could somebody that has data connection issues PLEASE give gekkehenkie11 a logcat plz!
[Galaxy Note 4 Original Android Development] gekkehenkie11:
Did you use my kernel that I posted, including intellithermal ? What did you exactly do and what hardware features had you enabled, what brightness settings etc ? And can you do the exact same on TW to compare ? If you explain me exactly what you did, I'll try it myself too, both TW and CM.
[Galaxy Note 4 Original Android Development] bidav1:
I am using your kernel yes. With intellithermal. Auto brightness on both tw and cm, no special features enabled everything just default. Tw keeps the battery much longer with the same apps I tried it few times.. During deep sleep they are almost the same, tw is slightly better but when working with the phone the difference is huge. Im on 66% now after less than 1 hour of some browsing and phone calls. Never happens on tw!
[Galaxy Note 4 Original Android Development] Li-Pol:
Which services are you talking about?
[Galaxy Note 4 Original Android Development] Batfink33:
It's been mentioned hundreds of time on the Battery thread and there's an article by XDA about it. Its system update service I believe it called. There's also many more services that cause drain. If you're getting a lot of drain (during sleep) it's more than likely caused by a rogue app or services wake lock.
[Galaxy Note 4 Original Android Development] gekkehenkie11:
If you tell me what apps you used, what hardware features you had enabled and for how long I will try the same on both TW and CM12.

And are you sure you installed both my app and the new kernel I posted ? You are not using xposed, other ROM like CMremix, other kernels etc ? And you gave and saved root permissions to the new version of the mdnie app ? (like if you switch HBM on/off it doesnt ask you again for root permission ?). This is very important ! Without having saved root permission to that NEW version of the mdnie tuner (like I posted together with the boot.img), you won't have intellithermal activated. It's easy to test whether intellithermal is even activated, just use a temp overlay via for example 'cpu temp' app and use a CPU speed overlay via TREPN and do something cpu intensive, cpu speed should slow throttle above 70 C.
[Galaxy Note 4 Original Android Development] gekkehenkie11:
Also post the output of: adb shell dumpsys batterystats > out.txt (after you have adb installed).
[Galaxy Note 4 Original Android Development] Li-Pol:
Thank you for useless answer :good:
[Galaxy Note 4 Original Android Development] haryp2309:
I think he means this tread: http://xdaforums.com/android/general/guide-extreme-battery-life-t3095884

Check post #5

Sent fra min SM-N910F via Tapatalk
[Galaxy Note 4 Original Android Development] bidav1:
Don't have adb, will look into it later. I posted battery stats log in previous post. As for all your questions the answer is yes:)
[Galaxy Note 4 Original Android Development] gekkehenkie11:
That output is useless. Please post screenshots from betterbatterystats. And even better, use that adb dumpsys that I posted. I'm pretty sure you have some rogue service or app messing up your phone, while you blame the ROM. If you've done everything like I explained, battery usage should be better than TW and nowhere near 33%/hour !!
[Galaxy Note 4 Original Android Development] Batfink33:
Use the app Trepn Profiler to see if there's anything using CPU cycles that you cant see with stock Android.
[Galaxy Note 4 Original Android Development] bidav1:
i'm not trying to blame anyone:) not you, not samsung and not CM. just trying to understand what's wrong.

When i clean install TW and let google auto install all the apps from my account, the battery is perfect.

when i clean install CM and let google auto install all the apps the batter drains very quickly. please note that there are many users complaining the same.

I don't have ADB installed i need to look into it when i have some time and i hope i will this weekend.

I don't see any strange process, all seems normal in battery stats. i even removed some apps
[Galaxy Note 4 Original Android Development] Batfink33:
Give TW a day or 2 and the background drain really kicks off. When I install TW, I get wakelocks and drain from the start. Using better battery stats it shows the phone does not deep sleep, I have to install servicely and disable services, hibernate apps before it deep sleeps on TW. After a few days, there's all sorts of bloatware running in the background. Not commenting on this CM Rom but that's my experience everytime I install a TW rom.
[Galaxy Note 4 Original Android Development] ROBSONMEG:
do we still need To flash boot. img and gps fix with today's nightly? 06/30 cheers rob
[Galaxy Note 4 Original Android Development] gekkehenkie11:
You come into this thread saying there's no doubt that battery life on cm12 is poor. You however have no proof at all to back up your statements. From all the tests I have done time after time turns out cm12 has no battery problems at all. Look at the thread for the official samsung rom, tons of people complain that they only have 3 to 4 hours sot. So according to your reasoning there is no doubt battery life on tw is poor?
[Galaxy Note 4 Original Android Development] oscarfish86:
[MENTION=3296134]gekkehenkie11[/MENTION], I have made catlog text file showing the MMS fault in G, what is best way to get it to you?

Otherwise, absolutely love this ROM, leaps and bounds faster and I really do not see the battery problems people have been having.

My biggest gripe with buying new phones honestly has to be waiting for cyanogen mod ha ha!
[Galaxy Note 4 Original Android Development] gekkehenkie11:
Yes, like I said before, once it's merged I will tell it here. I'm still travelling, will arrive at home saturday, so will probably be some time next week when I'll merge it.
[Galaxy Note 4 Original Android Development] gekkehenkie11:
I justy read your post again. So you're complaining that the battery life is bad and because you only get 4-5 hours SoT ? LOL. And then you claim you get 8-9 hours SoT on TW ? Man that's just impossible, unless you using very low brightness and limited CPU speed.

This is the data as supplied by Samsung. The numbers are ma/hour

screen.on=76

screen.full=223

bluetooth.active=101

bluetooth.on=1

wifi.on=1

wifi.active=487

wifi.scan=239

dsp.audio=38

dsp.video=250

radio.active=126

radio.scanning=23

gps.on=1

radio.on=8.3

cpu.speeds:

2649600=362

2572600=335

2496000=293

2457600=284

2265600=245

1958400=198

1728000=169

1574400=162

1497600=137

1267200=116

1190400=108

1036800=95

960000=87

883200=66

729600=59

652800=54

422400=42

300000=34

cpu.idle=5.2

Now the battery capacity for our Note 4 is 3220 ma. So to do a sample calculation, let's say you run the screen at full brightness, so that's 223 ma/hour. Let's say your CPU averages during screen on time at 1.19 ghz, so that's 108 ma. and you have your telephone on, at 8.3 ma. So that would be 223+108+8.3 = 339.3 ma/hour. So in this circumstance your phone would be able to achieve 3220/339.3 = 9.5 hours screen on time.

However unfortunately you won't reach this. Why ?

First of all, CPU speed tends to be higher than 1.19. Like said, Android pushes CPU speed to 1.73 ghz already when you touch the screen and many applications demand much more. Rendering a QHD screen just consumes a lot of CPU speed.

Secondly, the data supplied by Samsung are averages. Many webbrowsers have a white screen as background. White costs a lot more energy. I did some tests, like I pointed out earlier and at full brightness, a white screen eats about 340 ma already !

Thirdly, look at WIFI, that's a huge power consumer, actually WIFI is, contrary to popular believe, number one power consumer as you can see. Not while it's idle, then it only takes 1 ma. But once active, it burns a whopping 487 ma/hour !

And then there are things like difference in radio signal, the worse the signal the more power it consumes.

So let's say you're wifi is continually active, you're using a web browser, mostly white screen at full brightness, while you have bluetooth active and you're playing a song. Let's say CPU is averaging 1.9 ghz and of course you have telephony available (=radio on). So that would be per hour:

487 + 340 + 101 + 198 + 8.3 = 1134.3 ma. That would mean your battery will be dead in 3220 / 1134.3 = 2.8 hour already !

So, as you can see, there are 3 mayor factors when it comes to battery life:

1) Wifi, both usage as scanning. So, turn wifi off when you don't need it or use mobile data instead

2) The screen. White consumes way more than black and a bright screen way more than diminished brightness

3) CPU speed. Every time you touch the screen Android pushes your CPU to 1.7 ghz. And many apps just demand full CPU speed. You can use Faux clock to lower the cpu throttling temperature or just set a lower max CPU speed in Faux clock.
[Galaxy Note 4 Original Android Development] gekkehenkie11:
Also note how you could drain your battery by playing youtube video:

1) Video DSP: 250

2) Audio DSP: 38

3) CPU active, depending on background apps, let's say 198

4) WIFI active, because youtube streaming and background apps seeing that the screen is on, so transferring data like facebook, whatsapp etc: 487

5) Full screen brightness: 340

5) Radio 8.3

= 1323 ma, so you could get LESS than 2.5 hours youtube streaming over WIFI !! Of course this is worst case scenario, your screen most likely wont be fully white and your WIFI wont be continually transferring data and you might not be using full brightness at all. But just to give you an idea, 4-5 hours SoT is just perfectly normal !

Starting to see now what's happening here ?

Or let's say a more realistic scenario using youtube video playback:

1) Video DSP: 250

2) Audio DSP: 38

3) CPU active, depending on background apps, let's say 87 on average

4) WIFI active half of the time 243

5) Full screen brightness but average whiteness: 223

5) Radio 8.3

That's still 849.3 ma, so that's still only 3 hours and 45 minutes !!
[Galaxy Note 4 Original Android Development] bidav1:
Gekke,all this is very obvious. I am talking about General all day use.. For me tw is much longer battery life. No YouTube, moderate WiFi use etc. Anyway you seem to be very defensive, and its allright.. Ill try the rom again in some time. Thanks for your help
[Galaxy Note 4 Original Android Development] gekkehenkie11:
Sorry you're going onto my ignore list as of now. No matter what I explain to you, you keep insisting things are better on TW yet don't have any data to back up your statements. You posted some useless piece of output that contained no info at all (for example it showed that it only drained 8% unlike the 33% you mentioned, whats even up with that), yet you are 100% sure you are right and that it's the ROM that uses more than TW. Without any data or analysis, you dont even have ADB installed !!

Until you show me some numbers and data you will be ignored as of now. Goodbye and enjoy Touchwiz with 8 hours Screen on Time, big fat LOL. I have better things to do than to respond to trolls like you.
[Galaxy Note 4 Original Android Development] haryp2309:
What if the phone is locked? (Sleep)

Sent fra min SM-N910F via Tapatalk
[Galaxy Note 4 Original Android Development] gekkehenkie11:
radio on: 8.3

cpu idle: 5.2

= 13.5 ma/hour. Let's say 8 hours sleep, so that would be 8 * 13.5 = 108 ma. So that's 108/3220 = 3.3% it should lose overnight, but that's best case scenario, with all hardware features disabled and your phone really being asleep and good radio signal so that the radio doesnt need to do any scanning (which drains battery)

Although I must say I'm not 100% sure on that 'cpu idle' mode ... Not sure if Samsung meant there cpu online but not active (is that even possible ? I dont know) or CPU offline .. I guess it must mean the latter (CPU offline but in 'standby mode') cause the cpu either seems to be offline or running at 300 mhz minimum. So I guess 3% overnight drain can be considered as normal figure.
[Galaxy Note 4 Original Android Development] haryp2309:
Isnt it possible that the tw rom has 8 hours then? [emoji53] i remember i used alexndr rom with 7-8 apps without any mods. I Unplugged it from charger at 7 am. I came home 8-9pm. I remember having around 25 percent with battery. (Was very impressed) but i was bussy the whole day so i didn't use it so much. Just checked clock, listened to music, and just checked fb some times. Nfc off, bluetooth off, wifi on, 4g off, auto brightness.

Anyways cm rom is always much more interesting than tw [emoji23] and the battery is OK in this rom. And this rom runs very smooth too. Pure cm is the only aosp rom which is stable enough for note 4. [emoji6]

Sent fra min SM-N910F via Tapatalk