yashsingh1/xdaforums huggingface dataset:
[Oppo Find 5] El-Nath:
I just made some changes and decided to test it out, because I've been reading a lot about UV-UC, whether it actually conserve more battery or just a placebo effect. My rule of thumb when doing something is "Seeing is believing", with that set of mind I've added 81mhz freq into the kernel, in a hope it'll reduce heat (prolonging the devices life) and energy consumption when idle thus conserve more battery, since from what I've read across XDA, UV-ing will only allows up to 2% of battery saving, so why not UC-ing it + UV-ing it ? (Lower freq - Lower energy consumption and vice versa)

Changes on testbuild are :

- Added 81mhz

- re-Added some freqs to smoothing the cpu-scaling

- Sync w/ Oppo update 2014-02-10 svn6337(Most notable patch is "optimized BT module to improve battery performance")

- Added WQ_POWER_EFFICIENT for power oriented workqueue ( more about WQ_POWER_EFFICIENT)

I usually got 4.++ hrs screen on time and 1day w/o charging, with a side note that I usually got that after settling the kernel for 3-4 days of usage, and please do remember this is my testbuild, if you decided to flash it and experiencing some instability, please let me know.

Link: (Only for OMNI/Asylum)

- OMNI-BIDJI-v.02fa-testbuild
[Oppo Find 5] hsasshofer:
I installed the testbuild and so far everything seems ok. I have to get used to using S2W (after having had enough troubles to switch to D2W when omni included the OS gestures :p). Can't say much about the change in battery usage after a few hours, but I wonder if the 81 MHz really make a difference, as they will consume less but the phone will run longer when woken by a timer due to the reduced speed. Personally I will rather not lower the frequency, but of course I did it now for testing (see attached screenshot). Will test BT in the afternoon and let you know if anything pops up during the coming days.

Thanks for all your efforts!
[Oppo Find 5] El-Nath:
i'm sorry, I forgot to mention it's s2w-only :( , and yes that's the idea behind the low freqs, I wanna see how much impact it will gives us, on term of conserving battery power "is it worth it or not". About scaling from lower freq to higher freq and vice versa, I believe this is where a governor plays an important role.

Next after 3-4 days after seeing how it goes, I'll try to implement what's mako bedalus' been using, he claimed that by increasing the bus speed of lower freqs it'll allows max fps on lower freq, and it'll reducing the needs of higher cpu freq (I believe this is what race-to-idle all about), so what we gonna get is less power consumption, less heat, because we're using lower freqs instead of higher freq, but I still have to test it out, since what if I don't play games or anything that needs fps, will it impact the power consumption to a negative or positive ? well that's another story tho, since I don't comfortable flashing anything on daily basis :p
[Oppo Find 5] raising_angel:
Hello, Will you Port this test Build for Color OS Too?

Inviato dal mio N1 con Tapatalk
[Oppo Find 5] El-Nath:
My testbuild for AOKP/OMNI/Asylum, is my daily-driver while waiting for an update to be synced from Kernel.org, and it may have some patches/testing features. For ColorOS, as I mentioned in my 1st post, is not my daily driver, I will only post it when I have time to test it, since switching roms sometimes messed up my phone :eek: ( I usually, spare 4-5hrs usage time for ColorOS testing)

The last testbuild for ColorOS already incorporated all updates from Oppo's source, but I do have a build that allow more than 50mv for UV-ing, also included some patches, but I haven't had time to test it out yet, and I will not post something that I haven't test it myself as I don't like the idea of having others as guinea pig :) , so my answer is no for the time being, and probably yes in the near future.
[Oppo Find 5] hsasshofer:
No problem, it says in the file name, so no surprises there. Actually I did prefer S2W anyhow when Omni did the switch :cowboy:
[Oppo Find 5] El-Nath:
Something I've been working on, a support for Synapes from Andrei.
[Oppo Find 5] jejecule:
Your last test build is working nicely. Thanks mate:thumbup:
[Oppo Find 5] El-Nath:
Almost there, gonna upload this when I get home

Just Added the new build

Changes :

- Added Synapse Support (Andrei App from Playstore - the infamous Perseus creator)

- GPU Voltage Setting (Can only be tweaked with Synapse)

- Intelli-Plug sync w/ Faux latest

- Intelliactive sync w/ Faux latest

- Intelli-thermal sync w/ Faux latest

note:

- Synapse can be run with other Tweaking App, but first make sure to reset the other tweaking apps config.

- Tweaking support w/ Synapse is WIP, almost all tweaks can be done, but some tweaks are not yet implemented.

- Try look into Synapse Info about PVS in regard how much harm you can done to your device

Links :

- BIDJI v.0.2g w/ s2w (21/04)

- BIDJI v.0.2g w/ OSGDT2W (21/04)
[Oppo Find 5] hsasshofer:
Just tried the new version, but Synapse says "No UCI support detected". Any idea what I'm doing wrong?

Gesendet von meinem Find 5 mit Tapatalk
[Oppo Find 5] El-Nath:
I think I messed up the script, but can you tell me what rom are you using ? is it Omni, AOKP or Asylum-Omni ? and what version you're trying to use, so I can reproduce the problem
[Oppo Find 5] hsasshofer:
Sorry, my bad. It's Omni (installed via OTA) and Synapse 0.30. Looks very strange, but I deleted and reinstalled and also tried to clear the data.

Gesendet von meinem Find 5 mit Tapatalk
[Oppo Find 5] El-Nath:
Assuming you have already rooted, try this :

- Install newest busybox

- uninstall Synapse

- reflash the kernel

- Install Synapse
[Oppo Find 5] hsasshofer:
Yes, there are some SELinux denied accesses for Synapse in dmesg, but I don't have time to look into it right now, will check in the evening. Anyway, great kernel! I'll stay with Trickster Mod for the moment ?

Gesendet von meinem Find 5 mit Tapatalk
[Oppo Find 5] jejecule:
Working great on Asylum Omni, nice job mate:cool:
[Oppo Find 5] hsasshofer:
Ok, I wanted to know ;)

Synapse wants uci executable on the path, which it isn't. So I copied it from /res/synapse to /system/xbin and changed its mode to 755. Now Synapse seems to perform :)

EDIT: I realised it is expected in /sbin otherwise backup doesn't work e.g., but then I would have had to enter more mount options :p

Gesendet von meinem Find 5 mit Tapatalk
[Oppo Find 5] hsasshofer:
Forgot the proof...

Gesendet von meinem Find 5 mit Tapatalk
[Oppo Find 5] javier.pc:
Just updated to latest Omni nightly (0422) and installed the gesture & dt2w version from 21/04. After this, I've installed Synapse and it runs with no problem, no need to copy anything.
[Oppo Find 5] El-Nath:
Do you encounter the same problem like hssasshofer ? where Synapse won't work due to "no UCI support detected"

Hopefully not, or else something is really messed up when I modify the script. :fingers-crossed:

Nice, you finally got it working, well yes on Andrei Synapse's wiki it was written that UCI needs an executable path and should be symlinked into /sbin or /xbin < this actually should be done automatically when flashing the kernel (but now I'm facing the same issue as yours on ColorOSdone :o )

Nice, have fun fiddling with it :o

Note :

So what is the deal behind Synapse anyway, well right now only with synapse we can control our GPU Voltage (I've set the default not to OV but to UV instead, because as for now I'm still not going to OC the GPU), not only that, lots of other option can be implemented with it, like setting max screen off freq/cpus (already under advance setting on rom, but hell I add it anyway :silly: ) , C-states (can only be tweaked via Fauxclock, but now we can play with it), I've put PVS info under Information tab, in a hope when someone tries to tweaks their cpu they can refer to it, 0 > 4 = on freq table will be Slow - Normal - Fast - Faster.
[Oppo Find 5] hsasshofer:
Hi

Yes, strange, I see the commands in the script, but they don't seem to execute. /data/ak is also non-exisitant (at least after booting). No idea how I could help you debug that...

EDIT: Come to think of it (I'm not that deep into Android)....

Does this assume /data is already mounted, other it will probably leave /data/AK untouched. If the synapse init script is already there, fine, otherwise it will not be copied.
[Oppo Find 5] El-Nath:
Yes It will create /data/ak/ and extract the needed script to symlink the uci , and If it not try reflashing the kernel because it should be there, I'm still trying to get it work since this is a fork from AK-Anykernel (mako's) to make the Synapse work.
[Oppo Find 5] hsasshofer:
See my edit above. I don't get the "busybox data /data" line...

Gesendet von meinem Find 5 mit Tapatalk
[Oppo Find 5] hsasshofer:
I'm now quite sure that there is a small glitch in the updater-script. I took the plunge and edited it as follows

########################################
# Mount clean and install data files #
ui_print(" > Installing data");
#run_program("/tmp/busybox", "data", "/data");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/userdata", "/data");
delete_recursive("/data/ak");
package_extract_dir("data", "/data");
set_perm_recursive(0, 0, 0755, 0755, "/data/ak");
unmount("/data");
ui_print(" >>> Done.");
ui_print("");

and put it back to the kernel ZIP. Installing this will get Synapse running correctly from /sbin

Maybe this got lost at some stage between the first test version you posted (did not check) and the current one. Please let me know if this also helpd for your ColorOS problem.
[Oppo Find 5] El-Nath:
Already tried that one before, and still a no go, lol I give up for now, I need some sleep :eek:

By the way If any of you were using s2w version, here is the testbuild I've been using, I just add more options to Synapse, Almost all tweaks that are available in Trickster/Fauxclcok/you-name-it, now can be done via synapse, and the most important tweaks (for me) that still on WIP is getting Governor setting and Thermal core freq scaling.

And for note, please do not rate Synapse with bad rating, because if anything act funky during your tweaks it probably my fault.

Link

- OMNI-BIDJI-s2w-v.0.2ga-testbuild
[Oppo Find 5] hsasshofer:
Just a quick question, when loading Synapse has a strange screen, it's OK after finishing the startup. Is that expected behaviour?

Gesendet von meinem Find 5 mit Tapatalk
[Oppo Find 5] eoghan2t7:
Guys I don't no if I doing something wring but I flashed the kernel above on AOKP and I see the FIND splash screen for a few seconds then it goes to a black screen with just the backlight on, no boot animation or anything. I tried to pull logs but adb wouldn't work so I tried to pull the kernel log via recovery and it wasn't there. Any ideas?
[Oppo Find 5] El-Nath:
Yes it is, I might have done something when implementing Synapse, but It should be okay, I'm gonna try using the stock kernel to see whether it has something to do with the kernel or the script.

Aww shoot..I haven't test it on AOKP and no you've done nothing wrong. It's my bad, because I've been fiddling around with the script to get Synapse working (got the same issue with ColorOS due to wrong cmdline, prolly the same issue), I'm sorry for this and thank you for reporting it, I'll try working it on AOKP.

By the way guys, on a side note since Synapse Implementation is a WIP, and can cause you some uneasiness when using it(everything is working tho), please use another tweaking apps, I just don't wanna ruin it's rep because of some silly things I've done when implementing it.
[Oppo Find 5] hsasshofer:
Hey, don't worry, this is fully understood! That's why I asked here and not at the Synapse G+ page! You're doing a great job, many thanks for your efforts again!

Gesendet von meinem Find 5 mit Tapatalk
[Oppo Find 5] El-Nath:
Got it, I think AOKP has just switched to CM's based, right ?

:) thanks, as for now I'm still trying to figure out the logic on online/offlining/throttling the cpu/core when a certain temp has been reached
[Oppo Find 5] eoghan2t7:
Yeah I think so I'm not 100% sure though.
[Oppo Find 5] El-Nath:
Yep, AOKP now using CM CAF-based Kernel commit:64849b6005cc9e7f6ebcf2a0812bef5a1e9ee431

# Kernel
-TARGET_KERNEL_CONFIG := aokp_find5_defconfig
+TARGET_KERNEL_CONFIG := cyanogenmod_find5_defconfig

Oh dear, I've never knew they've moved from AOSP to CM, because I've been using Omni this whole time, well I should remove AOKP from the thread title then.
[Oppo Find 5] eoghan2t7:
[emoji24][emoji24][emoji24][emoji24][emoji24][emoji24][emoji24][emoji24][emoji24][emoji24][emoji24][emoji24][emoji24][emoji24][emoji24][emoji24][emoji24][emoji24][emoji24][emoji24][emoji24][emoji24][emoji24][emoji24]

No worries omni here I come again lol.
[Oppo Find 5] El-Nath:
New build - BIDJI-v0.2h

a worth to mention changes are :

- Sync to the latest 3.4.88

- Adjusting L2 speed

- I/O Scheduler BFQ v6r1 > BFQ v7r2

- Tune Intelli-Thermal Temp Limit, Freq Throttle 90 > 60, Core Offline 80 > 75

- Adjusting Voltage Settings, Down to 600 mV - Up to 1450 mV, to accomodate more UV-ing / or OC-ing

- Other can bee seen on git

Rework on Synapse are:

- Add CPU Online/Offline Status under CPU Tab

- Add Temperature Tab which Includes, CPU Temp Status

- Add Battery Tab which Includes, Batt Temp/Status/Fast-Charge Option

- Add Extra Free KBytes Control under Memory Tab

Have fun fiddling with it :o

- OMNI/ASYLUM BIDJI v.0.2h w/ s2w (26/04)

- OMNI/ASYLUM BIDJI v.02h w/ sog-dt2w (26/04)
[Oppo Find 5] Kamaal:
Same here with Omni (28/04 nightly) and BIDJI v.0.2h w/ OSGDT2W (26/04) but it doesn't came to a normal status, just freeze with that strange screen... :(

May be something related to the ART runtime?
[Oppo Find 5] AngryHapposai:
Exact same for me on any of the S2W versions, and I don't use ART, just Dalvik. :(

Also using latest Omni Nightly, but it did the same on every earlier versions.

Didn't really feel like reporting this, since you stated that the Synapse integration was still a WIP.

Plus, I can still tune the undervolting options using the Performance menu which comes with Omni.:good:
[Oppo Find 5] jejecule:
Hi,

it's working on my build, screen flickers when opening the app but then it's fully functional.

Cheers
[Oppo Find 5] javier.pc:
Same here, it works well.

Tapatalkeado desde mi Find 5
[Oppo Find 5] hsasshofer:
Strange, working nicely on yesterday's nightly here. Does a logcat show anything?

Gesendet von meinem Find 5 mit Tapatalk
[Oppo Find 5] AndreiLux:
What OS are you guys running? Seems like an Android issue with hardware composition. I actually don't have a background in the loading screen so that might be the issue here.
[Oppo Find 5] hsasshofer:
Does your Synapse screen show "Loading" or "No UCI support detected"? Maybe you have the same problem I had, check if /data/ak exists and holds files. If not I can try the patch of the ROM I did earlier for 0.2h, just let me know.

We all seem to be running OMNI in one of its latest nightly versions. But El-Nath said it could have something to do with his scripts (uci I assume), as long as its only cosmetic I don't see much of a problem here... Anyway we do not blame Synapse, it's a wonderful tool also for our Find 5.
[Oppo Find 5] Kamaal:
The Synapse screen is showing "No UCI support detected", sorry i didn't noticed before. And I have no /data/ak folder…

I totally agree, i'm just curious to know. If you can explain the patch you used, i'll be glad to try it and see.

Have a good day!
[Oppo Find 5] hsasshofer:
Ok, let's try the following (This can nicely ruin your data, be it due to an error by me or you! WARNING! There be DRAGONS!):

Download or transfer the Kernel ZIP of your choice to your PC (you probably can do this on your phone too, but I would not want to)

Open the ZIP file

Navigate to /META-INF/com/google/android/

open updater-script with the text editor of your choice

Change the following line run_program("/tmp/busybox", "data", "/data"); (roughly at the center of the file) to mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/userdata", "/data"); (check the code below)

Save and update the ZIP

Transfer back to the phone and flash

Check that you have /data/ak with files in there after a reboot

Start Synapse

Enjoy (hopefully)

I don't want to upload a patched ZIP, this is El-Nath's thread not mine, but if you feel unsure, I can PM you a patched version (let me know if S2W or DT2W)

########################################
# Mount clean and install data files #
ui_print(" > Installing data");
#run_program("/tmp/busybox", "data", "/data");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/userdata", "/data");
delete_recursive("/data/ak");
package_extract_dir("data", "/data");
set_perm_recursive(0, 0, 0755, 0755, "/data/ak");
unmount("/data");
ui_print(" >>> Done.");
ui_print("");

Any responsibility for errors is mine, any loss yours :p
[Oppo Find 5] Kamaal:
Thank's a lot, man!!!

Now is my hard-working-time, so i guess i'll try during the afternoon (i need my Oppo fully functional for now).

I'll tell you later if my Oppo will survive to the battle against "my fingers on the code." ;)
[Oppo Find 5] El-Nath:
I think it's related to our rom/kernel here (Omni 4.4 KK), since the artifacts-garbled loading screen text are not showing on ColorOS (4.2 JB)

but by turning on "Disable HW overlays" under developer option, it will remove the artifacts and leave only the garbled loading screen text.

and I wanna say thanks for the Synapse, it's awesome :victory:

That's weird, completely weird, well I've just tried it with the latest nightly from Omni (29), full wipe, flash, and got it working without any extra work. But if the modified script from hsasshofer works, i'll change my script accordingly, and LOL /me wants a Dragon...gimme one :laugh:

Don't worry about reporting anything, because without it, I just think everything working just fine.
[Oppo Find 5] hsasshofer:
You're welcome, glad it helped! :cool:
[Oppo Find 5] Kamaal:
And the winner is..... hsasshofer!!!!

Ok, now is working!

And, again, thanks man!! :good:
[Oppo Find 5] hsasshofer:
Ok, here you go :cyclops:
[Oppo Find 5] AngryHapposai:
And as expected, after a full wipe, Synapse works just fine without having to modify the kernel script. :)

Well, I guess that two solutions to a problem are better than just one. :good:
[Oppo Find 5] SCORRPiO:
[MENTION=4420868]El-Nath[/MENTION]

Thx for this brilliant kernel for OMNI ROM

I use this to undervolting my Find 5 :)

I'm undervolting my Find 5 and test this with Antutu Benchmark and it's work fine.

(CPU: 0,081-1,512MHz GPU: 400MHz) Resultate: 20464 Points

It's very smooth.

Intelli-Plug and Eco-mode is activeted.

My Voltage:
[Oppo Find 5] hsasshofer:
WiFi problems

I do not know if it is Omni, the Kernel, or maybe just my phone - with today's nightly I cannot get a connection with my WiFi - at least not automatically. My logcat contains:

I/qcom-wifi(23606): /system/etc/init.qcom.wifi.sh: MAC patching failed - retry
I/mac-update(23607): Found MAC address 8C0EE3B729EF
I/mac-update(23607): Failed to open /system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini: Read-only file system
I/mac-update(23607): mac-update terminated by exit(2)

and WiFi stay off. Trying to turn it on will not suceed (but yield the above message again).

When I connect with ADB as root, mount /system rw and call mac-update from the shell it will patch the MAC address (I assume, at least it does not complain). When I then reboot, WiFi is operating again.

According to the Omni changelog there were WiFi changes but not after the 27th, which I should have had installed before. Any ideas? :confused:
[Oppo Find 5] Toisan:
Does it work with Pacman ROM?

Gesendet von meinem Find 5 mit Tapatalk
[Oppo Find 5] Kamaal:
I'm sure is Omni, I had to go back to the 30 april nightly (same kernel, same settings, same data) restoring a twrp backup of the system to have my wifi connection back again.
[Oppo Find 5] javier.pc:
I've installed latest omni (0504) and kernel version 0426 s2w and no problem with wifi, everything it's ok.

Salud.
[Oppo Find 5] Kamaal:
Tried with latest omni, same problem with wifi connection: I can't even be able to switch on the wifi.

Strange behaviour...
[Oppo Find 5] yl1504:
Also no problems here using latest OMNI nightly and latest Kernel with d2tw! Everything works fine!
[Oppo Find 5] El-Nath:
I'll try to look into it, I'm still on 29th build /Asylum ? , if I may ask, for those who cannot connect to Wifi, did you guys do some tuning/tweaking on the kernel or just leave it as it is ?

And what about using the stock kernel, are you experiencing the same issue ?
[Oppo Find 5] Kamaal:
Ok, got it!

I tried to flash latest omni build without your kernel and all went fine.

Then I flashed your kernel with the script mod suggested by shasshofer and voilà the wifi was OUT, no connecion at all, impossible to switch on.

Re-flashed the latest omni, downloaded again your kernel, flashed it and now all is working fine!!! But the strangest thing is that also Synapse is working, without mods!!!

Ok, I'm gonna take a good coffee.
[Oppo Find 5] hsasshofer:
Ok, during my lunch break, I installed the latest Omni nightly without your kernel. No problems with WiFi. Then I flashed the kernel - still everything ok :good:

But - basically that was what I expected... Because the failure was not being able to insert the WLAN-MAC into "/system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini" (where newer versions of Omni expect it) during startup which of course lets WiFi fail. I assume the standard kernel handles this correctly and the file exists thereafter. As /system does not seem to be mounted RW during your kernel's startup the file remains functional and so does WiFi. When I flash your kernel from /sdcard/OpenDelta/FlashAfterUpdate the standard kernel never boots up and WCNSS_qcom_cfg.ini does not get updated, hence WiFi fails. That's at least my idea :silly:

I wonder if this could also explain the difference in behaviour with others.

BTW, the latest update of Synapse from the Play Store starts without screen corruption! :)
[Oppo Find 5] El-Nath:
Yep, I can confirm it, by flashing the newest Omni via System Update and flash Bidji directly after it, will break the wifi. The workaround when flashing via system update is try to let it boot first, then reboot to recovery and flash bidji.

As for new build, I'm still waiting for newest vanilla kernel from kernel.org to be synced.

And let's thanks Andrei for the Synapse, yay.

New Build v.02i, Changes are :

- 3.4.89

- Set Default max at 1.5Ghz

- Tuning the L2 (again, to get a balance power saving - performance)

- Some patch from Interactive gov into Intellactive gov

- Some patches from CAF

Links

- BIDJI-v.02i-s2w (07/05)

- BIDJI-v02i-dt2w-sog (07/05)

Note on Omni

- By flashing omni via OTA and flash this kernel afterward will break the wifi, the workaround is just to let it boot first and then restart to recovery again to flash this kernel, if its still not working, try restarting your phone.
[Oppo Find 5] natrinicle:
Doesn't look like it does Toisan :(

I just tried with Pacman 4.4.2 and it showed the Oppo logo and flashed Find across the screen before going blank with the backlight on.
[Oppo Find 5] El-Nath:
Like what I have stated on my first post, I'm using AOKP/OMNI kernel source to build the kernel, and since PAC/AOKP(now) using CM-based kernel, then I pretty sure this kernel won't work on those roms (PAC/AOKP/CM), maybe you can try using Faux's.
[Oppo Find 5] natrinicle:
Was worth a shot to try it even if it's based on different roms (I've seen things that were supposed to be incompatible work in the past), especially where I only lost a few hours for my phone to backup and restore.

The Faux123 kernel is here for anyone else looking: http://www.oppoforums.com/threads/find5-jb4-1-x-stock-ui-uv-sound-hybrid-linux-3-4-may-31.2743/ I'm backing up my phone to test it now.
[Oppo Find 5] El-Nath:
Just added a tuneable settings for governor in Synapse, now time to take my coffee and look into the script that I messed ?