yashsingh1/xdaforums huggingface dataset:
[X 2014 Original Android Development] notanoob:
Do you use a router which has Mac binding? Meaning access is provided based on Mac
[X 2014 Original Android Development] jejeh:
As i told ealierer my wifi is also broken on v1.1

Back on v1 and restored a nandroid and wifi works again.
[X 2014 Original Android Development] nithin1992:
[MENTION=4825505]kraatus90[/MENTION] Can you perhaps make a build with just stock+savoca color module? If it fixes all issues some people are having then you can start adding only features which are needed as beta releases, push to stable once we've tested it?
[X 2014 Original Android Development] kraatus90:
sure, but it won't help that much as there's nothing changed regarding wifi driver in current v1,v1.1 versions. i will do a basic build later today if it fixes the problems than i'll make it my new base for future builds. thanks for suggestion :good:
[X 2014 Original Android Development] leninke:
I didn't find MM factory image that's why I flashed Lollipop :)

---------- Post added at 11:04 AM ---------- Previous post was at 11:02 AM ----------

I have an old Linksys. When I first installed this kernel I didn't have any problem with WiFi,so I have no idea what can be wrong.
[X 2014 Original Android Development] Mennpiko:
Hi [MENTION=4825505]kraatus90[/MENTION],I would like to learn how to add and modify kcal kernels as you do, to make one for CM13, I can advise a tutorial please, thanks.

Enviado desde mi XT1092 mediante Tapatalk
[X 2014 Original Android Development] kraatus90:
update

ok so here's a test build, just with kcal and everything else is 100% stock. this is for people who are having problems with wifi.

install stock boot image and su before this

https://www.androidfilehost.com/?fid=24369303960686977

if you know how use to github, then you just need to cherry-pick these commits. and than add "CONFIG_FB_MSM_MDSS_KCAL_CTRL=y" to the defconfig file. for github just watch some videos on youtube. it's kinda too lengthy to explain everything and my english isn't that good. so i can't make a tutorial ,sorry for that.:(

for reference - http://xdaforums.com/android/software-hacking/dev-kcal-advanced-color-control-t3032080
[X 2014 Original Android Development] nithin1992:
I can test this out but I didn't have WiFi issues. I'll report once I've flashed this.

EDIT: Flashing this has been a mess for me unfortunately. Had to go through quite a bit to get this to work, including a factory reset. There are issues with the installer. you'll probably have to look into it, remove dependency of stock rooted kernel, inject necessary changes to ramdisk

EDIT1: Are you using a AnyKernel packaging?

http://xdaforums.com/showthread.php?t=2670512
[X 2014 Original Android Development] leninke:
I installed the test kernel, still no wifi :(. I have uploaded the logcat to my drive. https://drive.google.com/file/d/0B8EF518UMlM8NzUydDl6djZyUmc/view?usp=sharing
[X 2014 Original Android Development] kraatus90:
wifi driver isn't inbuilt in the boot.img so if you just flash boot.img , wifi won't work. also if i make a boot.img with 2.52su's ramdisk modification it will not work for those who are using newer su.

i'll make a second test build with cm13's wifi driver today , let's see if it works ( it will be inbuilt to the boot.img) .:o
[X 2014 Original Android Development] notanoob:
Thank you , I understand what you say but your last test zip contained files for etc folder relating to wlan , I was asking to omit that.
[X 2014 Original Android Development] kraatus90:
sure :o
[X 2014 Original Android Development] kraatus90:
ok so this is the last try from me because im out of ideas. i tried with cm13 wifi drivers but it doesn't work :(. so here's another test build)

this time you have to do a little work , first make a full backup than follow this -

1. download and fresh install VICTARA_RETEU_XT1092_6.0_MPE24.49-18_cid7_CFC.xml.zip regardless of your model ,from here

2. root using root-boot-6.0-xt1092.zip and su2.52 from here .

3. flash this test build v2 in twrp from here .

after this don't install any xposed framework or adblock etc. until you boot after installing test build. you can do all that later.

after this if your wifi still doesn't work thn im sorry there's something wrong on your end. because all builds i've done works for me and my friend's xt1092. so i don't really understand why it's not working for some people. if this was a problem with everyone then i could understand but only some of you are having problems. :( good luck.
[X 2014 Original Android Development] likurik:
This is my experience with this kernel
[X 2014 Original Android Development] rufik:
I can see some problems with wifi in your logcat:

01-17 19:49:34.880 D/WifiService(1822): setWifiEnabled: true pid=3021, uid=10144
01-17 19:49:34.880 E/WifiService(1822): Invoking mWifiStateMachine.setWifiEnabled
01-17 19:49:34.881 D/WifiStateMachine(1822): setting operational mode to 1
01-17 19:49:34.881 E/WifiHW (1822): User build,dont Start logging service.
01-17 19:49:34.881 E/WifiStateMachine(1822): Failed to load driver
01-17 19:49:34.882 D/WifiStateMachine(1822): setWifiState: unknown state
....
D/WifiService(1822): Client connection lost with reason: 4

I don't know if it's worthy...but could get fresh logcat and dmesg?

And I've got some idea - could you try to play with switching on/off bluetooth and airplane mode?
[X 2014 Original Android Development] notanoob:
Well I have given up the ghost now with this . I can't connect to WiFi at office due to Mac binding but WiFi works at home !

I am not sure who can fix this but I did exactly as you said and still Mac changes.

Until we find so great dev to look into it I guess you can continue to add stuff to 1.1 it's been good for me [emoji4]
[X 2014 Original Android Development] rufik:
And maybe there is a problem with /persist partition or w"prima" folder corruption?

http://xdaforums.com/showthread.php?p=48911459#post48911459
[X 2014 Original Android Development] notanoob:
I did try that with the wlan2 zip but it did not boot
[X 2014 Original Android Development] rufik:
wlan2.zip contains files for /system/etc/firmware/wlan/prima folder. Maybe it's required to take a look into /persist partition and their permissions?
[X 2014 Original Android Development] Vinnom:
I recommend to you guys to take a look at this

http://xdaforums.com/showthread.php?t=3032171

Enviado de meu XT1097 usando Tapatalk
[X 2014 Original Android Development] Vinnom:
Oh

I have two things about Synapse to report.

First, it won't load things after reboot, so I have to restore my saved profile by my own. And the second comes here, after restore a saved profile, the app won't start, so you have to apply things manually :/

I grabbed a logcat with its errors, but since I'm on phone I can't upload right now. When I'm on my pc, I'll upload it :)

Enviado de meu XT1097 usando Tapatalk
[X 2014 Original Android Development] juangcardoso:
A simple question. Where did you find the defconfig for stock Moto X 2014?
[X 2014 Original Android Development] kraatus90:
here -

https://github.com/MotorolaMobility...se-victara/arch/arm/configs/msm8974_defconfig

ps- im currently testing a version which is almost same as franc's nexus5 r79 kernel. hopefully i'll update once i'll solve wifi bug.
[X 2014 Original Android Development] juangcardoso:
Thank you! :D

---------- Post added at 02:58 PM ---------- Previous post was at 02:45 PM ----------

Can please you help me again? Haha :(

When I try to set the defconfig you pointed to me I get the fallowing error:

juangcardoso@UbuntuPC:~/Desktop/Project/Victara/linux$ make msm8974_defconfig
fs/Kconfig:109: can't open file "fs/kernfs/Kconfig"
/home/juangcardoso/Desktop/Project/Victara/source-victara/scripts/kconfig/Makefile:99: recipe for target 'msm8974_defconfig' failed
make[1]: *** [msm8974_defconfig] Error 1
Makefile:501: recipe for target 'msm8974_defconfig' failed
make: *** [msm8974_defconfig] Error 2

Did you know any fix?
[X 2014 Original Android Development] kraatus90:
are you using motorola stock source ? you need to merge f2fs sources too from here -

https://github.com/MotorolaMobilityLLC/motorola-kernel
[X 2014 Original Android Development] juangcardoso:
Yeah, I'm using and I already merged these sources but It didn't worked and stay missing these files!

Edit:

I'm using just Marshmallow sources for victara stock.

Should I use these Lollipop files you pointed too?
[X 2014 Original Android Development] Vinnom:
Here are the files I grabbed after Synapse collpases
[X 2014 Original Android Development] kraatus90:
no , marshmallow one , i forget to choose mm branch.
[X 2014 Original Android Development] juangcardoso:
Ok, I'll try it! Thanks for the help and sorry for the lots of questions... You're the only one Stock Kernel's for Victara I know :/
[X 2014 Original Android Development] kraatus90:
haha i know that feel , i had to do lots of reading too before i made my kernel. better option is just build a basic kernel for a device which has already 3-4 custom kernels. i practiced it on moto g's kernel than when i learned enough i took renderbroken's cm12 kernel sources and after that i tried building motox 5.1 kernel based of his sources. when i was pretty confident about it i made mm kernel and tested it for 2 weeks than i made this thread. so its kinda lengthy learning process for a noob like me.

as for the synapse problem , i can't fix that because i don't know how to. i just looked here to how to add a device in order to get it to work. that's all.:(
[X 2014 Original Android Development] juangcardoso:
I merged the files as you say and get these sources in my table:

https://github.com/MotorolaMobilityLLC/kernel-msm/tree/marshmallow-6.0.0-release-victara

https://github.com/MotorolaMobilityLLC/motorola-kernel/tree/marshmallow-6.0.0-release-victara

https://github.com/MotorolaMobilityLLC/motorola-kernel/tree/marshmallow-6.0.0-release

And with these 3 sources I keep receiving the same error as you can see:

juangcardoso@UbuntuPC:~/Desktop/Project/Victara/source-victara$ make msm8974_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
fs/Kconfig:109: can't open file "fs/kernfs/Kconfig"
/home/juangcardoso/Desktop/Project/Victara/source-victara/scripts/kconfig/Makefile:99: recipe for target 'msm8974_defconfig' failed
make[1]: *** [msm8974_defconfig] Error 1
Makefile:501: recipe for target 'msm8974_defconfig' failed
make: *** [msm8974_defconfig] Error 2

I'm forgetting any sources or another thing?
[X 2014 Original Android Development] Vinnom:
Ah, no problem. I think I'll try to use kernel adiutor, then

Enviado de meu XT1097 usando Tapatalk
[X 2014 Original Android Development] Membrillo007:
Do you have working WiFi with 1.1 update? (i haven´t tried yet)
[X 2014 Original Android Development] Vinnom:
Yes and on the last build too. Never had Wifi problems on this kernel

Enviado de meu XT1097 usando Tapatalk
[X 2014 Original Android Development] kraatus90:
https://github.com/kratos090/kernel...42a3ec799291b081ddf2400d1c23b/fs/f2fs/Kconfig

check if this file is same in your source , i think you'll need to delete some lines. i can't remember how i got it fixed :p
[X 2014 Original Android Development] juangcardoso:
This is the problem... The folder fs/kernfs not exists.
[X 2014 Original Android Development] nithin1992:
Just putting this out here, in case anyone has some spare time to configure this for our device. Seems like once we figure out the exact settings to use on our device, the battery life gain is quite significant.

http://xdaforums.com/nexus-5x/general/guide-advanced-interactive-governor-t3269557
[X 2014 Original Android Development] kraatus90:
it doesn't need to,

try this for incluing f2fs,

https://github.com/kratos090/kernel-motox2014/commit/ee649c8743960d93a489103793915bf7f4c87c79

or delete that 109th line from fs/kconfig file .

oh i remember now, when you merge f2fs from moto source , don't replace fs/kconfig file .
[X 2014 Original Android Development] Vinnom:
Thanks, I'll test it later and report about my results

Enviado de meu XT1097 usando Tapatalk
[X 2014 Original Android Development] Membrillo007:
Which version are you using now? test2.zip or v1.1?
[X 2014 Original Android Development] juangcardoso:
Yeah, I did it and worked partially. Now I get the fallowing error:

juangcardoso@UbuntuPC:~/Desktop/Project/Victara/linux$ make msm8974_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
drivers/usb/gadget/Kconfig:881:warning: defaults for choice values not supported
***
*** Can't find default configuration "arch/x86/configs/msm8974_defconfig"!
***
/home/juangcardoso/Desktop/Project/Victara/source-victara/scripts/kconfig/Makefile:99: recipe for target 'msm8974_defconfig' failed
make[1]: *** [msm8974_defconfig] Error 1
Makefile:501: recipe for target 'msm8974_defconfig' failed
make: *** [msm8974_defconfig] Error 2

Any trick here?
[X 2014 Original Android Development] Vinnom:
v1.1 :)

As I got no issues regarding wifi, I didn' try the test zip

Enviado de meu XT1097 usando Tapatalk
[X 2014 Original Android Development] kraatus90:
you can find some fixes here.
[X 2014 Original Android Development] Vinnom:
I configured it and it really works hahaha

I can create a script later, so I all the changes I did, can be easily applied.

But it is good that it get tested for individual cases, as its behaviour depends on usage, apps installed and more.

Just to you guys have an idea, after my last full recharge, I have a SOT of ~45 min and battery juice only decreased ~10% with brightness set to ~50%.
[X 2014 Original Android Development] nithin1992:
That'd be great. Please do,so the others have a base to work and we can have a good set of settings ready for our device as well!
[X 2014 Original Android Development] thomstrack:
Very good. I was reading this task by little.

You can share your settings? Need not necessarily be a script, just post them here. :D

Thanks.
[X 2014 Original Android Development] Vinnom:
I tested furthermore and it is not really fully optimized yet. Though it is really good for battery right now =)

I wrote a script, but as I don't know how to write them to work in init.d, it will need to be applied manually (using terminal emulator is just fine).

Just download the archive and remove its extension (.txt). Save it do sdcard and run in terminal emulator:

su
sh /sdcard/profile

If you want just to take a look, just open the file without running the script ^^

I recommend to take a look at the guide, however, so you can understand the values that I put there and to understand more of the proccess to make this changes. Right now I can't, but later I'll try to make a short version of the guide that is better applied to us (his guide is based on Nexus 5X, different cpu - little.BIG for example).

Oh, please keep Multiple core power save disabled. It is, in fact, bad for battery save and I'll explain it later on the other post that I'll write =)
[X 2014 Original Android Development] JimYoung:
[MENTION=4699730]Vinnom[/MENTION] I follow the steps above but I got this error
[X 2014 Original Android Development] Vinnom:
Are you using interactive? I don't think so hahaha the guide was only to tune interactive governor

Enviado de meu XT1097 usando Tapatalk
[X 2014 Original Android Development] JimYoung:
Yep, I'm on interactive governor. I've only modified screen saturation using kernek adiutor.
[X 2014 Original Android Development] Vinnom:
Idk why, but I cannot send a screenshot. Here is my terminal output

u0_a134@victara:/ $ su
root@victara:/ # sh /sdcard/profile
/sdcard/profile[15]: can't create /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: Permission denied
/sdcard/profile[17]: can't create /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq: Permission denied
1|root@victara:/ #

Only min and max freq it couldn't change and it is easily solved by changing in kernel adiutor. (Min=300MHz, Max=1728MHz)

Later I'll try to correct this thing about mim and max, but the script won't find the directories if your current governor isn't interactive. I'll solve it later too :)

Enviado de meu XT1097 usando Tapatalk
[X 2014 Original Android Development] BootloopedMillennials:
Were you able to get go_highspeed_load to stick? On CM13 (with it's kernel) for whatever reason it reverts back to 50. Everything else sticks.

We need separate thread in general about this. It does work even with that one issue.
[X 2014 Original Android Development] kraatus90:
you need to delete power.msm8974.so file in system/lib/hw . in order to change interactive governor settings.
[X 2014 Original Android Development] BootloopedMillennials:
Didn't work. It stuck on reboot but after a few minutes reverts back to 50. Put back to 75, exit Kernal Auditor, and back in it's back to 50. It's unusual that everything else sticks.

In CM13 the file is called power.default.so.

I need to ask do you ever plan on developing a kernel for CM13. Compared to your kernel it's very limited.
[X 2014 Original Android Development] JimYoung:
On stock, deleting that file on system/lib/hw stuck all parameters including go_highspeed_load
[X 2014 Original Android Development] BootloopedMillennials:
Thank you. Confirms it's CM13 and not kernel auditor issue (original thought). Checked that file didn't somehow repopulate and it didn't. They must have another override buried elsewhere.
[X 2014 Original Android Development] Vinnom:
With synase, the behaviour was the same you described. After I unistalled ukm and synapse and use Kernel Adiutor, I could keep it at any value I want.

Now I don't have this behaviour anymore, but I don't a idea why it is solved for me, as I didn't remove any files like [MENTION=4825505]kraatus90[/MENTION] suggested

Enviado de meu XT1097 usando Tapatalk
[X 2014 Original Android Development] BootloopedMillennials:
Maybe hotplug issue? I notice this Krait kernel is not using MPDecision, it's the only choice on CM13.

I was looking through your txt file of settings. For interactive we don't have these options accessible sync_freq, up_threshold_any_cpu_freq, up_threshold_any_cpu_load, scaling_max_freq, and scaling_min_freq.
[X 2014 Original Android Development] Vinnom:
Maybe, but Idk for sure.

Scaling_min_freq and scaling_max_freq isn't interactive related, so I found it strange you don't have that options

Enviado de meu XT1097 usando Tapatalk
[X 2014 Original Android Development] BootloopedMillennials:
I'm a dummy. Those scaling frequencies are just CPU Max and Min Frequency. Didn't have to set them in CPU Governor Tunables.

Not to jinx myself but using your 90 value for go_highspeed_load is seeming to stick.....for now.

Enough of me bothering y'all about CM13. I am jealous of this kernel.
[X 2014 Original Android Development] kraatus90:
i think kernel Adiutor has some issues on this device, because not only interactive gov but cpu-boost settings don't stick either.

edit : seems like cm13 is getting a fix for gov settings.
[X 2014 Original Android Development] Vinnom:
In fact, I choose go_hispeed_load to be 90 just because the settings isn't fully optimized and was trying to avoid stuttering, but today I have time, so I'll fix that

Kernel adiutor isn't a great app =/ it has some issues, not only in this device. But it makes things easier to monitoring frequencies and to change some things ^^
[X 2014 Original Android Development] BootloopedMillennials:
Thank you. The new cm13 gov setting changes didn't help but step in right direction. Noticed cpu boost issue in kernel adiutor too, disabled them.

Cool! Mine was optimized well (for my setup) but worthless with it going high speed at 50% load.

Kernel adiutor has issues but I support it because it's open source.
[X 2014 Original Android Development] Vinnom:
Now, I'm trying to configure it right, but for some reason (idk have any idea why) min and max freq keep reverting back to 1881600, a frequency that isn't not even supported and I can't change it.

I thinking about doing a full wipe, but i don't want to =/ hahahahah

EDIT: Forget it, I enabled VDD restriction without noticing --'
[X 2014 Original Android Development] Vinnom:
I could finally finish the script to interactive governor. The only problem is that I didn't tested it enough, so please don't be mad if it isn't really optimized.

Another thing, I don't know how I can make it work in init.d and so, be applied at boot time. Please, if anyone knows how to, do it and share with us, or at least teach me or share where I can learn it ^^

For last, I could reproduce the error of applying the script to phone. Apparently, the file is saved with the wrong code format (the reason is unknown to me. I'm editing it with gedit, so it was to be save in UNIX format, which Android is compatible). To solve it, just open the file with your file explorer (in my case Root Browser), then save the file (there is no need to edit anything. Just open and save).

Download it from here.

My hotplug settings:

Min core any time: 2
Max core any time: 4
Core boosted: 2
Max core screen off: 1
Boost Lock duration: 2000 ms
Down Lock duration: 1500 ms
Fast lane load: 400
Offline load: 40
IO is busy: 1 (just for hotplug)

A short version of [MENTION=5886947]soniCron[/MENTION] guide is coming soon ^^ I'll just point out what I did and why some settings was set as it was =) it very similar the way to configure, as his guide doesn't cover only one device, but the governor itself. But their device follow little. BIG cpu design, ours don't and I think that it is the only difference that matters xD

And of course, thanks to him I understand better the way interactive works ^^

PS: I told you guys to leave multiple core power save disabled. In this script, I already do that. The reason why, is because the power efficiency is dependant of voltage square, as said here at second post. Basically, if the frequency stay at high values longer, it will cause more battery leak, as voltage keeps getting higher if frequencies are getting higher. So is better to have 2 or 3 cores at lower frequencies than having just one core at higher frequency. And if the task is too heavy, all cores will be used any way. So, multiple core power save isn't battery friendly as it looks to be =P
[X 2014 Original Android Development] Jostian:
ok, weird, I'm using the kernel as is, no kernel mod app installed but sometimes when trying to unlock the phone the SIM card screen pops up and I need to re-enter my sim pin... ?? any ideas, is the stock kernel available just in case? thanks
[X 2014 Original Android Development] nitsua98:
The download link for the kernel is down.
[X 2014 Original Android Development] Vinnom:
It isn't. Works for me here. What version did you try to download?
[X 2014 Original Android Development] nitsua98:
I just clicked on the link that says download and it says file not found

Edit: nvm, had to open in desktop mode for some reason
[X 2014 Original Android Development] Vinnom:
Enjoy =)

EDIT: I didn't see your edit hahah
[X 2014 Original Android Development] colourfuldays:
Sorry, i just did what u say but i still got issue.can u help me?THX!