yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Zola III:
In short yup. But it's not all that simple; it won't show up on any build that has all small core's running & it simply isn't migrated to big cores, but you noticed a load of error messages regarding how power hal didn't menage to aquire spinlock on time before IRQ migration happened. The question is would migration happen in the first place if spinlocks worked as expected? This brings us up to why most people disabled any kind of hot plug on recent builds but that certainly isn't solution & it's a dumb thing to do as possibilities for any of this happening on a big cluster are rather very small so at least it's possible to hotplug control it. I do understand how all of this should be randomly met condition but it's beyond me how some people don't have any problems with it (including yourself) & some have it frequently. That I just can't understand.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Maybe b/c I am soo simple user, no load on cpu, just braowsing. I also don't have any sh*t installed like magisk, dolby, viper etc... Everything that comes stock is running, nothing in background is disabled, power profile is the default one. I don't care for battery to mess around with all these things. Why should I... We have the biggest battery in the world... Phones are made to work, not save power and save the planet... And everything just works.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Jerry08:
Well your wrong on all small cores enabled it still will happen just way less frequent. I was hoping for kernel with fixes but commits you brought before will not work as files has different code. It still seems a core_ctl problem.

So my idea for nijel8 is to bring different hotplug? Maybe that would be solutionsl.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Zola III:
Nope it's not core ctl problem nor exclusively a hotplug one, it's a msm IRQ balance demon problem which naturally multiply with hotplug. So let's instead stop migration of the IRQ's that tend to cause problems (which is much better by all means then disabling hotplug. So edit the system/vendor/etc msm_irqbalance_little_big.conf & add to:

IGNORED_IRQ=20,39 IRQ 200 which is for network so that it looks like this:

IGNORED_IRQ=20,39,200

Flashable zip is probably coming shortly.

By the way reed this:

https://android.googlesource.com/ke...d-mmc-hacks/Documentation/networking/cxgb.txt

We need logcats to properly Extend the list.

All do its not particularly elegant solution (but workaround) it's probably much better than chasing ghosts or disabling either hotpluging or IRQ balance demon entirely (which other's are doing).
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] valerio.tosti:
Hey nijel8, can i flash the 3g fix on helium too?

Thank you
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
My rom never needed any additional fixes to flash. It's all in it. What's the point of fixing things if I don't implement them in the rom if confirmed working. I am not like anybody else here just building whatever I see on github.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Well, still no one gives feedback on how disabling core_ctl helps with data issues...

Let's try something easier. Flash this in recovery https://www.androidfilehost.com/?fid=529152257862727309

And please be more cooperative and post feedback... Looks like I care for your issue more than you do...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] valerio.tosti:
Thank you nijel8.

I haven't had any problems before with this rom.

This is the first problem i had.

Thank you again
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] FutureGamerz:
I'm experiencing quite serious lag with the camera. Doesn't matter which app I use. Photos may not even show up in gallery after that as if it wasn't taken.

Anyone else with similar issue?

---------- Post added at 10:45 AM ---------- Previous post was at 10:13 AM ----------

It seems ok without fixes on my side. Had some problem with WiFi last night but it could be my home WiFi that's giving up.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Haven't heard camera complaints for a looong time. Something's wrong on your side for sure.

BTW using sd card for camera by any chance? If yes switch to internal storage...

Edit: Never mind... Just tested sd card and it's fine. Thought it might be that famous sdcardfs again. Definitely something's wrong with your setup...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] ioy:
Your ROM plays nicely indeed, but there is again the same glitch: the tool Tasker is closed from time to time, in spite of excluding it from battery optimization list, after closing it every time look into Accessibility settings and is excluded there too, and every time toggle it back.

Please help.

HELIUM, LOCKED bootloader, [ROM][UNOFFICIAL][7.1.2][HYDROGEN/HELIUM]LineageOS 14.1 r.05-14-2017 by*nijel8
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] FutureGamerz:
Guess will take some time to do a reflash and see how it goes.

Thanks
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
That's why I don't use tasker directly anymore. Other tasker things don't work on nougat too. Make app with App Factory from the tasks/profile you need and it would work as expected.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] TheGeekRedneck:
I too am having problems with the camera. I can usually get one or two pictures off and then it won't take pictures anymore. Backing out of the app and relaunching it gets you a "Cannot connect to camera" error followed by a FC. Only fix seems to be to reboot until it does it again. This is using the LAOS stock camera app. Having flash turned on seems to aggravate the symptoms, but that could be placebo effect...

Latest build, latest firmware. Helium 128GB

I suppose with my luck lately it could be signs of hardware failure... LOL
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] siliverst:
I also have problems with the fv-5 camera on the last build. Always used this camera, never had such problems. The camera saves one photo and no longer takes pictures, or freeze, or does not save photos. Dirty flash from the previous build. Rolled back to 29.04, there are no problems.

Hidrogen 32.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Zola III:
After you learn how to read learn how to take logcat's & send them.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
I think I know what's the camera problem and it's completely my fault:(

I meesed up camera cpuset, basically camera deamon has no reserved cpu's on latest build. Caught my mistake while routine checking kernel log after build was uploaded and shared... Didn't think it's critical but apparently it is... Later I fixed it and that's what I run and have no such problems....

Sorry guys, will be fixed this weekend along with some what I think worthy performance and battery tweaks. Will be really small in size patch... Just boot.img and some config files.

Wait for it in a day or two.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] troyinjapan:
This solved the problem completely.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] ljhsquall:
Attached a logcat.

Set min and Max CPU to 4 and 2. Also flash this file you provided in recovery. WiFi still intermittently have very high ping. Strange thing is Clean flash back previous 29 Apr version also have this issue now.

Do you have older builds like your first 7.1.2? If I remember correctly, I don't have wifi issue on that build for me then I dirty flash to 29 Apr, also no wifi issue. Now clean flash 29 Apr build and issue appear. Maybe working before due to dirty flash from your first build...

Also to note, I tried RR 5.8.3 and same issue exist, so maybe the issue is on all lineageOS based?

I will try MIUI official see if WiFi works fine..
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] T.kum1993:
this used 25% of battery overnight
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] T.kum1993:
Clean flashed now it works okay, thank you. Love your rom.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
That's all I needed, to confirm it works. I ran some battery draining apps to test it but nothing appeared in there and I was thinking to remove it. It'll stay...

[MENTION=5174634]ljhsquall[/MENTION]

I don't have other old builds.

Also can you run this command in terminal emulator when this issue appear and post result:

ifconfig

Edit: also show me the result of this command:

cat /proc/irq/178/spurious
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] borgami:
Can you get multi windows on this image?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] paradise-san:
I'm experiencing random reboots (about 1-2 per day), most of them when the phone is idle. Never happened with your past releases. I did a clean install with everything correct when you launched the last update. But, the strange part is, in the first days I didn't have random reboots. What may be happening?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
I don't know, you tell me... Search for how to take last_kmsg log and get back to me...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] paradise-san:
The log came empty. Will try again if it happens again.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Run su first...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] paradise-san:
I did... The first time I forgot and it denied, then I used super user. Does the inbuilt root work as SuperSu?

I tried first sudo -s, gave an error, didn't recognize the sudo command, but recognized the su command (my Linux knowledge is a bit rusty after 8 years without using it). So i wrote:

su cat /proc/last_kmsg > /sdcard/last_kmsg.txt

It then worked, but the log came empty.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] obermotz:
Where do you change the per app power settings? I am also looking for this option but can't find it to save my life.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] jpph:
try su enter and then the cat command
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] paradise-san:
Did that before writing the command to create the log. It didn't say anything, only accepted the command.

Anyway, the most strange is that the phone only had these issues when was idling (I figured it had rebooted because it asked for my PIN again) or, in one instance, when waking up after idling for a long time. When I'm using and abusing it, there's no problem at all. It has been streaming Spotify through Bluetooth from 4G for hours, before that ran benchmarks, everything normal and stable.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] pepfapeste:
Awesome battery! (clean flash, stock settings)
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Skalexs:
Could we decide when the alert triggers?(if it have a pre-value defined)
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Should be:

su -c "cat /proc/last_kmsg" > /sdcard/last_kmsg.txt

BTW "su" command doesn't show any output, just giving you root access...

Nope... Google knows better what is power hog app.. That's how it works... Sounds iPhone-ish...:)
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Guys, everybody... flash this patch for your device. I really need as much feedback as I can get about this one.

Behind the scene me and [MENTION=4232632]Zola III[/MENTION] are scratching our heads and trying to fix these performance/battery issues showing up from nowhere.

Please, help us to help you!!!

Important:

Please, leave it as is and do not mess configuration with any kernel apps for the time you test it. Reset your changes if any or "disable apply on boot". It is important to see how you feel your device with the patch default cpu/power confiuration. We need to know where we are now and are we heading the right direction.

HYDROGEN:

[PATCH]_lineage-14.1-20170515-UNOFFICIAL-hydrogen.zip​

HELIUM:

[PATCH]_lineage-14.1-20170515-UNOFFICIAL-helium.zip​

Run it for a while and tell me how it feels regarding overall performance and battery life. Also does it help with any WiFi/Mobile data issues you have experienced before?

THANK YOU FOR YOUR COOPERATION!:good:

PS: Camera lag/save should be fixed with this patch as well...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] jokai_sor:
Flyme

Please nijel8 or someone else, check Flyme for MI Max

https:________//drive.google.com/open?id=________0BxrejnIxkk8iLXF6VC1HbWlBM28

(delete ______)

or from here: https:___________//4pda.ru/forum/index.php?showtopic=_____________768829&view=findpost&p=61487863 (older version)
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
You are kidding right?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] jokai_sor:
I'm serious:(

Of course if you have time for this.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] d3rd:
observations on my helium (with patch)

- UI felt much smoother

- No camera lags for me

will observe battery life and see how it goes...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] SakitJiwa:
flash got this error log in my helium

script succeeded: result was [Done...E:unknown command []]

I:Updater process ended with RC=0

I:Legacy property environment disabled.

I:Install took 1 second(s).

Updating partition details...

I:Data backup size is 5730MB, free: 44313MB.

I:Unable to mount '/usb-otg'

I:Actual block device: '', current file system: 'auto'

...done
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Just ignore it... Couldn't figure out where this error comes from. Some invisible character in updater-script I suppose. Will fix it... some time... if I don't forget...:)
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] SakitJiwa:
ok, still observed what different after flashing
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] oatcooky:
Do I have to wipe data if I'm flashing from TheStrix Lineage? I was thinking of removing the package check in updater-script.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Zola III:
No, only cache.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Arti42000:
[MENTION=4399618]nijel8[/MENTION]

On your newest build, I have no problems with reboots/lags/perfomance/mobile data/wifi/tethering and so on, using default 2+1 configuration on hydrogen 3/32
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] kevinpunk:
This is happening a lot ....

My device is hydrogen and i did a clean install...

Any recommendation on how to fix this ???
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] ljhsquall:
Flash your latest patch same issue with WiFi still.

hydrogen:/ $ ifconfig
rmnet_ipa0 Link encap:UNSPEC
UP RUNNING MTU:2000 Metric:1
RX packets:332 errors:0 dropped:0 overruns:0 frame:0
TX packets:592 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:445361 TX bytes:179735

wlan0 Link encap:UNSPEC
inet addr:192.168.1.101 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::b2e2:35ff:fe72:109/64 Scope: Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:11392 errors:0 dropped:0 overruns:0 frame:0
TX packets:10901 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8103359 TX bytes:1872031

rmnet_data7 Link encap:UNSPEC
inet6 addr: fe80::eabb:14b7:a7c:10fe/64 Scope: Link
UP RUNNING MTU:1410 Metric:1
RX packets:7 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:517 TX bytes:710

dummy0 Link encap:UNSPEC
inet6 addr: fe80::6cbd:f9ff:fe49:ea66/64 Scope: Link
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 TX bytes:210

p2p0 Link encap:UNSPEC
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 TX bytes:0

lo Link encap:UNSPEC
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope: Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:1041 errors:0 dropped:0 overruns:0 frame:0
TX packets:1041 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:79733 TX bytes:79733

hydrogen:/ $ cat /proc/irq/178/spurious
count 11088
unhandled 0
last_unhandled 0 ms
hydrogen:/ $
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] pepfapeste:
I got this error on my hydrogen

BTW, I feel smoother UI, but I don't want to jump to any conclusions,so I will test it in depth
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Zola III:
Just disregard that error, it's OK...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Just making sure... Running the patch?

Maybe, if I know what the error is. I can't confirm it so it's not a general issue.

Can't see anything wrong in log and the commands output. Not a IRQ issue, no dropped packets, everything coming is processed by the phone. Next step check your AP configuration, internet provider etc. Don't think this issue is on the phone side.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Arti42000:
Nope
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] troyinjapan:
Flashed patch and GAPPS just in case on Helium 3/64 version. No problems. More information after running it for a few days.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] oatcooky:
Harfix and this Lineage have working UPNP servers like with BubbleUPNP, but those servers don't work under TheStrix Lineage. Anything kernel specific that allows UPNP to work?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] jpph:
reflashed 05.14 + firm 7.5.11 +your patch. I think LTE issue is gone. Will confirm with usage
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] FutureGamerz:
Camera lag seems alright thus far. Will feedback over time.

Thanks [MENTION=4399618]nijel8[/MENTION]
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] T.kum1993:
One thing I noticed for sure after flashing patch is that phone is heating more while charging.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] sarthakwarlock:
CPU scaling is more aggressive and all cores are active and share the load relatively... ( CPU frequency is boosted aggressively as you touch, that's why no UI lags) mine don't overheat while charging also 45° or less temp for battery is common (on QC 3.0).. Also it's not recommended to use device while charging.. You will keep taping screen which will keep cpu frequency high, eventually temperature will rise.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Zola III:
While input boost is active the touch input boost is disabled... Don't want to comment future.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] sarthakwarlock:
COOL :good:
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] kevinpunk:
How to provide you the log for this error?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] pichai:
Helium's update cycle Lineage OS15 are new! Helium and lineage OS are synchronized update?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Zola III:
ROM side is synced to the latest source available on the bild date & same for all builds & devices. The kernel side and other device specifics settings are individual and tied to builder/maintainer (developer). Build cycles (dates) aren't the same for official - un-official one's. & so much regarding Lineage.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] FutureGamerz:
I think better referred to as Touch boost and input boost. Touch input boost is like hybrid and confusing :D

But am not really sure of the difference. Is it one is always on steroid and the other one only pump in when needed.

hmm...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] sarthakwarlock:
Input boost lower sampling rate and boost frequency to improve responsiveness.

sampling_rate - Measured in uS , this is how often the kernel look at the CPU usage and make decisions on what to do about the frequency. Higher values means CPU polls less often. For lower frequencies, this could be considered an advantage since it might not jump to next frequency very often, but for higher frequencies, the scale-down time will be increased.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] T.kum1993:
Mi max helium nigel8's LineageOS
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] ljhsquall:
I too hope is not phone issue, but I have another Samsung S5 which doesn't have this wifi issue. I have also tired on another 2 different wifi (office wifi and mobile Hotspot) and both occasion seems to have same issue for me :(

I think the problem is the majority of users will not notice this issue because there is actually no dropped connection. It something like my phone wifi stop receiving data for a while then continue as usual like pausing the data transmission, thus causing high latency.

It is especially noticeable on apps that are latency dependence as a sudden high latency will result in momentarily freeze. Stuff like browsing, downloading or even transferring file over network will not be interrupted. However the when the issue occurs, I can see a drop in the connection speed then increase again to normal.

I attached a ping result that I did for about 3 mins, you can see that there is 3 occasion that the latency is way above 1000ms.

I don't think it's the issue with your rom now because I tried 5.8.3 RR and Miui Global beta 7.5.11 both I got same issue.

Only last thing I can think of is my phone hardware fault :(

But can you or anyone did a pingtest for few mins? Just want to know if this is really a hardware issue for me.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
I see the similar ping output, thou with my data usage behavior don't feel it... Don't know what might be the issue.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Zola III:
Catch the log, I want to take a look.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] azizak:
This is my statistic. %90 battery performance. http://cloud.tapatalk.com/s/59222c3522443/Screenshot_20170522-030732.png?

http://cloud.tapatalk.com/s/59222c55aa734/Screenshot_20170522-030740.png?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Thanks, guys, so far battery looks good.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Here... Remove .zip extension(size upload limit), ping request are logged too so you can see response time rising here and there. Some of them are happening just after IRQ178(wlan_RX) is migrated to another cpu but don't think it's related...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Tysovwik:
Testing your new setup, compare to last one this is snappy and fast (as well as I test it for a few hours)

All cores hotpluged and always online (4 little + 2 big) with low Freq (400 MHz) defently works better.

Btw, hotplug settings disappear from the kernel auditor app, is it disabled ?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Zola III:
Yup, no hotpluging whatsoever & core's are jumping pretty wiled so it is snappy but it also consumes 2x energy resulting in 22~25% less SOT.

Question for you is how much previous build whose slower & dose it worth additional 2~2.5h SOT?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Tysovwik:
Needs a few days of testing to answer. Mb a week. In my case im charging the phone every 2 days. Hope this setup will not change anything :)
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] borgami:
Is there a way of displaying the charging current when i'm charging my phone?