yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
[MENTION=4399618]nijel8[/MENTION] - default kernel configuration leaves small cores up and down busy thresholds completely without any configuration - they are all set to "0"

I have created corresponding entries in "init.qcom.power.rc" under heading " # Configure core_ctl" with the following entries:

with them in place small cores frequency gets to be much more stable and predictable Please include them in (or something else to your liking) in next rom release :)
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Zola III:
[MENTION=2473722]mat9v[/MENTION] take a good look at the last two tunables. That is interactive governor and they are missing in version implemented in our kernel. ?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Zola III:
Duble post - deleted...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] oatcooky:
Ah, tuning is something that's easy to get addicted to :) I've switched back to the stock hotplug config, setting min big cpu to 0 caused a lot of lag in Firefox.

I'm still getting this weird Bluetooth bug: I try to pair the phone with a Bluetooth keyboard and the phone hangs on the Bluetooth devices screen. I can only pair devices by going into safe mode.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] kurodoll:
first of all thank you for the great rom as usual :)

second. not really a probelm but is anyone else experiencing facebook crashes? i mean like everytime i click the notifications tab in the app it crashes. it also crashed outside the app once.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] troyinjapan:
I think discussions like this are 100% on topic because it deals with issues on this rom. I hope it will also branch off into a step by step tutorial or simplified, practical advice for the rest of us that find it interesting but above our technical abilities. We're all here to learn and give feedback. Please continue.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] RomanGeorg:
All right, I join you!
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
In about a week, after I finish testing, I plan to make few specifically configured kernels with various profiles for maximum performance, power saving and some more in the middle. I hope Zola III will join me and I will make one with his settings :) For now a lot of testing awaits to gather battery data.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] pepfapeste:
I recommend you use friendly for Facebook... The official app s*cks :rolleyes:
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] AmokPL:
looking forward to it
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
I had a "black screen of death" - no reaction from the phone to power button or touch sensor. Screen remained black.

Logs below.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Zola III:
Come on admin you can do better than this providing at least time stamp.

cgrups management had a nervous brake down all around & pore thing just got mixed up in head to much & stop responding. As we have had similar reports tied to various conditions on various ROM's including firmware someone should look around in kernel tree what's wrong about it, that is in we can first confirm how its happened more often.

It starts like this "W/ActivityManager( xxx): Failed setting process group of xxxx to 0 (or 1)" so search for it in logs.

By the way mat this is worsest one I seen so far you have all usual processes bricking. I only don't know why kernel panic didn't jump in.

It's more detail described hire:

https://groups.google.com/forum/m/#!topic/android-kernel/TGRNgQgLXfI

By the way coment at the end of the discussion is a workaround that fixes it (hopefully their is a better fix in the meantime).

Happy hunting.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] oatcooky:
I had plenty of the black screens of death happening on TheStrix's Lineage, almost to the point of making the phone unusable. This happened with the latest 7x and 6.12x firmware. I've only had a BSOD once on this ROM.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] keithleyson:
hi guys, may I know how I can make the icons to be circular like in the Pixel? I have installed the Pixel Launcher but majority of the icons are not circular.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] i04055:
Use nova launcher, and install Android N icon....
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
Not a programmer here, not going to poke in kernel innards. I may see an error but I will not even try to backtrack it into kernel sources :)

Heheheheheh, Kernel was so afraid of my reaction that it would not panic until I finished battery life testing :) Or maybe it could not find a core to panic on since 7 of 8 were turned off most of the time :) (get it startrekkers?)

Oh btw, yesterday battery life tests concluded that 1 small core and 0-4 big cores combo is not very battery efficient, clocked 13.5H of sot while performance was only so-so (89k points). Today started another control round of testing and probably on sunday will start 2 small cores and up to 4 big cores (with 1 big cores online all the time - basically your favorite config).
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Zola III:
You are a system administrator & you know that timestamp mean a lot when you search for something in pretty long log.?

I didn't back track it either just indicated where problem lies and possible workaround (because that patch if not already implemented is a workaround & nothing else). I particularly don't like work arounds but direct (good, quality coded) solution for a problem but I am afraid that is beyond me (though I asked around). See from time to time kernel logs for a same flow please (as it also influences your testing and would be nice to know for certain is it there and how influenced & permanent). I am a bit of everything, I don't code any more (for a long time) and I don't commit but used to control commits (as far as I culd regarding my knowledge), test and cetera (from all things I did beeing a forum admin whose by far the worst for me).

See you around. ?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
Yeah, like being Windows system admin has anything to do with parsing Linux kernel logs :) I know what they are, can parse statements in them but further then that, not really. I can use profiling apps to test performance, to track narrow points in execution pipeline, on Windows I can analyze logs and find faulty services and so on, but Linux or rather Android is a hobby for me and so far that hobby never included compiling kernels (well I did some of that few years ago when I was setting web servers on Debian) or patching apps. Btw, I think I found a simple way to eliminate screen impact on sot - take energy used by time taken, then remove that amount from battery size to tell how much energy was used by rest of system. With wi-fi not used and LTE on all the time at the same signal level I can much better track cpu power use.

Anyway I'm afraid that CPU power use is still only a fraction of total power use, going by last test numbers: idle used 906mAh, screen used 1284mAh, and voice calls 280mAh = totals 2470mAh - and that is 58% of total power used according to battery page - where did the rest of power go? Various system services (google services, android os, lineage os) + cell standby (4%) and wifi (1%) It is a bit hard to interpret how much of that was used by CPU and consequently how much my modifications to cpu policies do impact battery life. Do you have any thoughts about that?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] RomanGeorg:
Are you sure that the system properly considers how and where the spent battery? Maybe there is distortion?

---------- Post added at 12:47 PM ---------- Previous post was at 12:37 PM ----------

To find this out, all changes to test under the same conditions, for example when fully charged to run some benchmark for 1-2 hours, then make the changes, charge the device completely and re-run the benchmark. To compare the results.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
Can't really state that I know if the measuring is in any way correct - but even if it is not then at least it is repeatable, I mean screen will use the same amount of power over time at the same brightness no matter the test run - I do not need absolute numbers, I only need repeatable numbers.

Can't really do that, battery tests should be from 100% do say 10%, can't really start demanding benchmarks because they throttle cpu and i can't guarantee repeatability in case of throttling. And what about people that use hardware protection, battery packs and even simple silicon wraps for the phone, they dissipate heat differently and my tests would not be comparable. Granted they would be comparable between runs of my phone config but not any further. Lastly, I do not have time to keep the phone in my hand for 15 hours, starting tests like a robot :)

To further clarify, all tests being done are at 50% brightness without automatic controls.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] RomanGeorg:
And the other is not necessary! Having done these tests you will be able to understand whether it makes sense to spend the time to configure the processor?? If the difference is 1-2% then it's pointless, but if the difference is 5-10% or more, then it is necessary to continue the experiments!
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Siputih:
Yes, it does :)
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Zola III:
You can gain around 9~12% 15% at best of average SOT by optimising CPU frequency scanning & hot pluging. On msm the RAM frequency scaling is tied to CPU frequency so it also determines the GPU output. Is it worth it? Everything above 3% is considered as good & above 10% huge improvement.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
Exactly that, 10% is still enough to take time testing.

Screen takes about 30% of energy, running at 50% brightness, LTE data and voice is very variable, but let's say 1GB of data for one charge (that is how much data I use) and 90 minutes of calls in 2 days means about 20%, idle + apps + system makes the rest and that is mostly CPU.

I remember WiFi transfers eating battery like ice cream - 70GB of data over 2 hours took about 20% of battery so I think WiFi doubles energy expenditure (phone was hot as hell at the end there).

So if I were to shave 10% of 70% total battery use then it would be very nice :)
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] oatcooky:
One more bug, the log files in /sdcard/wlan_logs can get huge if you don't delete them every couple of days. How do I turn this logging off?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] kyler084:
I too would like to know how to stop these logging, that's 120mb used in logs in 3 hours after a fresh install, this constant writing to storage can't be good for performance...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
https://github.com/nijel8/android_d...mmit/0c09ab3c42b95c88be9a4b281416d4d2f1664f67
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
So hopefully in next compilation? I hoped that we can control that in Developer section, there are some settings pertaining to logging and WiFi.

In a meantime, you can install Cron Sheduler app from Playstore and input following line:

It will delete those logs every hour - it's not the best but if log size bothers you it can help.

PS. this program may require BusyBox to be installed - I'm not certain because I have it already.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
Yes it is.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] paarkhi:
Thanks but I was asking about VoLTE? (Voice over LTE).

Please check the screenshot
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
Sorry. my bad, seems that I had a case of blindness :)

I have no network to test on but it seems that the rom supports VoLTE:
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] oatcooky:
This Bluetooth bug seems to be on all Lineage versions. If I have no devices paired, then discovering and pairing a new device works fine.

If I have devices already paired, searching for new devices in the Bluetooth screen causes an immediate freeze. No touch input works but the network monitor in the status bar still works.

How do I get a crash log for this?

Edit: maybe related to using a Pebble watch and running the Pebble app (https://jira.lineageos.org/browse/BUGBASH-17).

Edit: SOLVED!!! If you're running the Pebble app, disable Privacy Guard for that app and then Bluetooth pairing works fine. I'm so happy now :)
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] paarkhi:
Thanks again for the reply, I read that the ROM supports volte but my original question was does it also show the icon in the statusbar.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] aaryan45:
It doesn't shows icon!
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] paarkhi:
I'm on closed beta Android 7 Helium 7.1.19, do I still need to flash the firmware "firmware-HELIUM_7.0-MCh-6.12.29.zip" or "firmware-HELIUM_MDG-7.1.5.zip" ?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] troyinjapan:
I used firmware-HELIUM_MDG-7.1.5.zip.

Look on page 65 for my post about exactly what I did.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] paarkhi:
What firmware were you coming from?

Were you on Marshmallow of Miui.eu or MIUI Nougat?

I'm on Nougat and already on 7.1.19? Should I need to downgrade it to older version of Firmware? Just trying to understand.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] aaryan45:
No! If ur on 7.1.19 then no problem! No need to downgrade! Just Backup Boot.img in TWRP! And Restore It! For No Network Issues!
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] carnby24:
can someone please tell me why adopted storage is still not working?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Maybe nobody cares about it...!?

Anyway, keep seeing this issue reported and nobody giving any details like card size, brand, model, logs, what exactly is happening, how do you know it's not working, etc... So dug up an old SanDisk 2GB card and tested it... And guess what... IT'S WORKING no problem (see attached screenshots) despite the slow card warning at the end... Card is formatted to f2fs and completely readable as storage card in TWRP file manager and as MTP on PC.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] carnby24:
Hmmm...So I guess it supports only UpTo 32gb cards?

---------- Post added at 11:10 AM ---------- Previous post was at 11:01 AM ----------

I'm using SanDisk 64gb card high speed
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Maybe, I might test my 64GB Samsung EVO+ card if I am in a mood moving data around...

EDIT:

Well... still works with no issues so my guess is sd card quality or something for bigger size cards...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] carnby24:
Wow really..arghhh

---------- Post added at 11:34 AM ---------- Previous post was at 11:33 AM ----------

By the way what phone are you using?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
it's in my signature...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] carnby24:
No wonder...I'm using mi max...I think Xiaomi didn't even enable it hardware wise...I still can't use it even with 32 GB high speed
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
HYDROGEN is Mi Max
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] carnby24:
But why isnt it working on my phone??
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
I have seen many things not working on other phones but everything works perfectly fine on mine. I must be one lucky bastard...:cool:
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] carnby24:
Yes you are...Lucky I mean
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] troyinjapan:
I was coming from Xiaomi.eu weekly rom, Marshmallow, rooted and Xposed.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] paarkhi:
Thanks for the reply, You were on Marshmallow and I am on MIUI Nougat build 7.1.19., I'd better ask the developer.

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

[MENTION=4399618]nigel8[/MENTION], Do I need to flash the firmware if I'm on MIUI Nougat 7.1.19?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Skalexs:
Yes, you'r
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] RomanGeorg:
I am the second!!! :D ;)
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
Works for me too:
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] troyinjapan:
My SD card works.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] carnby24:
Hmmm weird is yours the 32 GB one or the 128 GB version?

---------- Post added at 07:22 PM ---------- Previous post was at 07:21 PM ----------

By the way..You used adb or the storage option to adapt?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] troyinjapan:
I don't understand the question. Helium, 3/64GB and a Samsung Samsung microSDXC 64GB EVO+ Class10. I didn't do anything special. I put it in my phone and it just works.

Man, I love this ROM compared to the Xiaomi.eu ROM I was using. Everything just works.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] carnby24:
I'm on 3gb/32gb version Xiaomi mi max...

---------- Post added at 07:28 PM ---------- Previous post was at 07:27 PM ----------

Okay ..I'm gonna try the adb method to adopt..Will feedback if it works tonight

---------- Post added at 07:59 PM ---------- Previous post was at 07:28 PM ----------

This is what I get after format as internal
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
Try to format it as vfat in PC. Then insert into phone, it should at boot ask what to do with the card as shown in ss that I posted earlier, selest to be able to store apps and it should show the button to format the card. Do that and it should just work, it does for all of us. I think the key is to have it preformatted on PC.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] carnby24:
Okay...trying now

---------- Post added at 08:31 PM ---------- Previous post was at 08:27 PM ----------

Wait..im using windows...whats vfat...exfat?

---------- Post added at 08:42 PM ---------- Previous post was at 08:31 PM ----------

Nope..still hows as SD card corrupted.....even after format as fat32...any other format to format to?

\
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] carnby24:
I get the error when formatting..Any gurus can help?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Jerry08:
You're using RR so wrong thread I guess.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] carnby24:
Errrrr....Gosh..damn... Sorry..But I changed to RR bcos the same problem on my lineage ROM as well
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Yours is formatted as regular storage, not adopted... not the case here...

...and you are on RR so why are you in this thread? Take your issue over there. As you can see no adopted storage problems here...

...looks like strictly RR issue to me... And gurus needs logs with that error which tells exactly where this error happens. Toast won't do. Get a logcat and post it in RR thread. The guys will be happy to fix it.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] carnby24:
yeh..hehe..didnt notice the thread...but i restored my lineage OS version..same issue...will post the logcat later...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] dinhvtai:
Hi all,

Is there any way to add KCAL support (color setting) into stock kernel of this rom? I used to use Nebula one but performance and battery are not good if comparing with stock one.

https://xdaforums.com/android/software-hacking/dev-kcal-advanced-color-control-t3032080

Thanks.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
I don't do kernel mods.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] blockdude:
It's working very well on my Helium. Good job!

Just a few small things that don't work that I found:

-It can't play sound on webms that use what I think is probably vp9/vorbis as the codecs and it also lags on such videos in the beginning

-Headphone volume buttons don't work as expected (probably a keymapping problem). They do make the key backlight come on and even cause random events on the screen in some apps.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
It seems that the sdcard is somehow "broken". Use (on windows) MiniTool Partitition Wizard free (or some other tool that can delete partitions on sdcard) and recreate partition on sdcard - not format but actually delete and create new.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] carnby24:
Okay..will try that..windows did prompt something wrong with the sd card but since its still readable didnt bother
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nejcov:
Any options to use miracast on this rom, or I just dont know how to find it? And flashlight also not working. Bug?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Update posted in OP...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Edit /system/usr/keylayout/Generic.kl... Search for 257 and edit these two lines to:

key 257 VOLUME_UP
key 258 VOLUME_DOWN

I've been thinking to include this in my build but still not sure if all headsets are using those key codes...

Yeah, bug... but with your setup... Haven't heard of anybody else having flashlight problems.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] blockdude:
I already tried that and failed, but this time I got it to work. It's been a while since I have messed with android system files. Thanks anyways :)

I think you can safely include this fix though. I've seen the exact same fix in other threads as well, and there's an actual specification for this: https://source.android.com/devices/accessories/headset/plug-headset-spec.html . The fix works with my xiaomi headset (which claims to be "android compatible" which suggests that it is following the spec in the link) so it should work with anything. And these keycodes seem pretty far away from anything that would be used by keyboards or something.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] jpph:
Wlan logs gone, good:)

Seems that cpus goes down till 2 online only cpu! That should be good for battery :)

No bug encountered for now...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] sebr:
Thanks for keeping up the good work on this ROM! Just flashed it on my hydrogen together with latest firmware. No problems except Miracast / WiDi not working. Is this a known issue? As for some people it seems to work.:confused:
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Imtigr:
Hi,

Can anyone suggest how I'm able to switch off vibration when I use finger print to unlock my device?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] kyler084:
Battery is so good on my helium on latest version ! Good job I will show stats when I eventually run out its been 42 hours so far and I've still got 49 percent
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] i04055:
Which firmware do you use? Any custom setting in kernel adiutor?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] justln:
So, dirty flash will work fine? I'm still on the 01-29-17 build.

To be honest, I wish the update function in settings would just download your file and install it directly.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] neoavi7:
Yes, You can dirty flash without any issues.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] kyler084:
7.2.9 firmware and if you read the changelog to the latest build you'll see that custom CPU settings have been applied to it

---------- Post added at 12:12 PM ---------- Previous post was at 12:05 PM ----------

Will post screens later lol still got 30 percent
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] neoavi7:
I've dirty flashed on the same build. No issues so far, apart from that I'd to re-register finger prints.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] andjohn:
Everything is perfect in the new ROM. Thanks OP!