yashsingh1/xdaforums huggingface dataset:
[Nexus 6  Original Android Development] doitright:
I had a short exchange with him about his work on rng, and it looks like the speedup can be attributed to buffering and asynchronous read[ahead].

From what I can tell, the issue with both hw_random and hw_crypto seems to be in looping over very short I/O's. I.e., think of the crypto hardware as being massively parallel with a fixed processing time. The "qualcomm blob" approach for working the hw_crypto apparently throws 1000x the data at the crypto hardware per run compared to the android/vold/dm_crypt approach. I.e., 512 kB per run vs 512 bytes.

This one here is apparently part of it; https://android.googlesource.com/ke...ry-3.10-kitkat-wear/drivers/md/dm-req-crypt.c

*however*, I've also seen reference to a qualcomm blob version of VOLD, and some other blob libcryptohw.so

See;

https://android.googlesource.com/kernel/msm/+/e6304b0351b612a5bc1111fdb09a98114223b202

*note where that commit comes from, and also the fact that it has not been added to kernel.org source. Not clear whether it was submitted or not, but kernel.org rejects all code that only works in conjunction with blobs.

Edit... although... https://github.com/AOKP/system_vold/commit/65032d6c9b1d0be3c430dd15ba6d875e1a86b086

I think we might have enough code to make vold.

But note that it is referring to libcryptfs_hw, and also cryptfs_hw.h.

Edit again...

We might just have enough.... https://github.com/dtsinc/DTS-Eagle...oid-device-qcom-common/tree/master/cryptfs_hw

Another edit.

With CAF this time;

Vold with hw crypto: https://www.codeaurora.org/cgit/qui...ld/tree/cryptfs.c?id=LA.BF.1.1.1-01210-8x74.0

Kernel with dm-req-crypt: https://www.codeaurora.org/cgit/qui...=LA.BF.2.1_rb1.10&id=LA.BF.1.1.1-01210-8x74.0

Device with cryptfs_hw: https://www.codeaurora.org/cgit/qui...n/tree/cryptfs_hw?id=LA.BF.1.1.1-01210-8x74.0

Think that will do it?
[Nexus 6  Original Android Development] Smallsmx3:
Latest test seems to be equal to or greater than the last test
[Nexus 6  Original Android Development] oak:
I agree.
[Nexus 6  Original Android Development] Imoseyon:
Ah yeah dm-req-crypt is compiled in stock kernel but is not used since sw crypto overrides hw crypto. Remember, I re-enabled hw crypto (which runs dm-req-crypt) but it was horribly slow still, and even with all the optimizations it didn't match sw crypto (especially with NEON instructions).

I also exchanged a few PMs with a guy who contributed to crypto code (mainline or codeaurora, can't remember) and he spent a day or two on qualcomm's hwcrypto and couldn't make it perform well enough either.
[Nexus 6  Original Android Development] old_fart:
Am now running with the 1.8.5 and re-doing ( grunt ) the dozen odd belch maaks . . . No change ( outside statistical variation ) worth mentioning . . .

It's just my opinion, but it seems to be using 'less' battery while cranking thru these pretty things . . .oooh . . . ah . . .
[Nexus 6  Original Android Development] beyeond:
Sorry if this has been covered but I always have issues when it comes to adb related stuff. I'm having trouble opening lkconfig. Please see attached picture. Any help is appreciated.. I'm sure it's something simple that I'm just missing.
[Nexus 6  Original Android Development] jackpollard:
What emulator are you using it does not look like it has super user, when you did su it usually goes to root

Try terminal emulator and make sure it asks for root
[Nexus 6  Original Android Development] old_fart:
Does not make sense. More info please ! . Are you rooted ( supersu installs after the install of : rom and gapps ) ?

---------- Post added at 03:16 PM ---------- Previous post was at 03:12 PM ----------

I was trying to get a ( DARK ) theme to work and was getting nowhere . zero . nado . zilch . . . . And then a light bulb ( small - i'm a dim wit ) went off and i remembered i'm running 1.8.5 and not euphoria's version of 1.8 ! ! !
[Nexus 6  Original Android Development] beyeond:
Yes I'm rooted and when I type su it gives me the little pop up msg about terminal emulator being granted permission.
[Nexus 6  Original Android Development] DatDude123:
Weird because it's not working. Your prompt should change.

D
[Nexus 6  Original Android Development] jackpollard:
Try this app just for kicks; https://play.google.com/store/apps/details?id=jackpal.androidterm&hl=en

Also, if you go to settings, there is a SuperSU line after printing, does it show your emulator as having root?
[Nexus 6  Original Android Development] beyeond:
Yes it does.

When trying to install the app you linked, I'm getting a 505 error. Maybe I need to do a wipe and flash my ROM/kernel? I'm on a Slim build if that means anything.

Thanks for the help.

Edit- I also got the 505 when trying to install Facebook messenger. I forgot all about it cause I was kinda happy to have an excuse not to read FB messages.

Those are the only times I've gotten the error.
[Nexus 6  Original Android Development] DatDude123:
Sounds like GApps maybe with Play Store issues. I select his link and it takes me straight to Terminal Emulator.

D
[Nexus 6  Original Android Development] jackpollard:
Hummm, that is really odd. I'm on BlissPop and I've not heard this as an issue. Interesting if you look --> http://xdaforums.com/nexus-6/orig-d...imlp-alpha-t2961275/post57678889#post57678889 #792, others have had the same issue.

And like DatDude123 suggested, make sure you have the suggested gapps and load it all up.

You may want to take a backup, then do a clean wipe and reload it. Hope that works.
[Nexus 6  Original Android Development] beyeond:
Thanks guys will report back after wipe, clean flash etc

---------- Post added at 08:01 PM ---------- Previous post was at 07:58 PM ----------

...lkconfig working through ROM toolbox terminal emulator. I completely forgot I had that installed.

I'm still not sure why Facebook messenger won't install, but at least I know why terminal emulator wouldn't.
[Nexus 6  Original Android Development] jackpollard:
Sweet! Make that backup!!! I don't know how many times it saved my butt. Glad it worked.
[Nexus 6  Original Android Development] Imoseyon:
Yeah I use Terminal Emulator by Jack Palevich. It works well. You can also configure it so you become superuser automatically when shell launches (via Initial command).
[Nexus 6  Original Android Development] beyeond:
Thanks. I see now that it wouldn't install because I guess ROM toolbox already has it included.

I know that it isn't kernel related, but by chance do you have any idea why attempting to install Facebook messenger gives me that 505 error?
[Nexus 6  Original Android Development] Imoseyon:
Sorry man can't help you there... Most likely not kernel related. :)
[Nexus 6  Original Android Development] beyeond:
Yeah I'm sure it's not, thank you anyway. Gonna backup/wipe/reflash tommorrow. I dirty flashed a couple ROM updates and I also think my gapps package is pretty old.

On my s3 I used to run a non xda kernel by a guy with the initials C.G. I'm sure you know who I mean. When he disappeared I think I had recalled him mentioning your kernel, and I'm really glad I tried it. Great work, my friend.
[Nexus 6  Original Android Development] DatDude123:
Lol. I remember him and those kernels. Still follow the G+. In other news you know his right hand man Nine Inch Nails died? Sad.

Sorry for OT OP.

D
[Nexus 6  Original Android Development] beyeond:
Yeah sorry, don't wanna derail but I still follow the g+ but barely ever check it. Very sad and surprised when I heard.
[Nexus 6  Original Android Development] Imoseyon:
Man I am a total noob when it comes to social media... I have no idea who you guys are talking about...
[Nexus 6  Original Android Development] DatDude123:
Old school Anthrax kernel crew.

D
[Nexus 6  Original Android Development] Cy_n_ic:
Chad goodman. I moderated the VirusRom website and he was in our crew there. Good guy.
[Nexus 6  Original Android Development] beyeond:
His kernel was removed from xda so he moved elsewhere. Again, sorry for the derail. I probably shouldn't have brought him up but it is good to see his work hasn't been forgotten by everyone. I'm completely happy with lean kernel and if he endorsed your work, that's saying a lot IMO.
[Nexus 6  Original Android Development] nobnut:
Sorry for the delay, here is a log.
[Nexus 6  Original Android Development] mclisme:
Hi guys, is the vibration setting implemented yet in lkconfig? I thought I had read it was arriving with 1.8. It can still be done through Trickster I suppose?
[Nexus 6  Original Android Development] doitright:
When you were making those tests, did you actually implement the VOLD changes and the library? Or just enable dm-req-crypt in the kernel? It requires all three to operate. Vold *will not* use dm-req-crypt without the vold patches, AND compiling vold with CONFIG_HW_DISK_ENCRYPTION := true, AND PRODUCT_PACKAGES += libcryptfs_hw.
[Nexus 6  Original Android Development] Imoseyon:
Got it. I think I have this fixed in v1.9 which should be released. Send me a PM or email if you'd like to test it before it's released?

v1.9 will have it.

Ah... no I didn't use new vold binary. I do remember talking to at least another developer about qualcomm vold but I don't know if he was successful or not. I also vaguely remember confirming that at least a function or two was being used from dm-req-crypt, when I force enabled hw-crypto (this had to be done in DT files) though.
[Nexus 6  Original Android Development] doitright:
I would like to know exactly what the details are of what you tried.

Edit: Looks like CM12 has all the pieces available. The libcrypto_hw library is in the android_device_qcom_common repo. Shamu, however, does *not* appear to have the needed build flags defined. They appear to actually be using hwcrypto for oppo/oneplus one.
[Nexus 6  Original Android Development] Mervingio:
v1.9 will have Faux Sound......?
[Nexus 6  Original Android Development] fitz420:
That would make my day[emoji6] [emoji6] [emoji6]
[Nexus 6  Original Android Development] old_fart:
Wow, I don't think I have "ever" read a post where a member is asking the OP ( who has done a ton of fantastic work . . . for free ) to show me exactly what you're doing. . IMHO . . . It doesn't sound right . . It doesn't seem right .

.

( and I have been reading, hopefully assisting other members for many years )
[Nexus 6  Original Android Development] knitler:
I read it as "tell me what you did so I can try and help"
[Nexus 6  Original Android Development] Imoseyon:
Like I said it's been a while. I just took a quick look at the qcrypto branch I was working on and it includes stuff like multi-core support, updated dm-req-crypt to CAF, ce frequency overclock, etc. I think the end results were still far less than sw crypto. It would be great to find out how CM12 hw crypto performs with the vold change. But remember, the shamu DT files prevents hw crypto from being activated all together, so they need to remove those override entries first.

--- a/arch/arm/boot/dts/qcom/apq8084.dtsi
+++ b/arch/arm/boot/dts/qcom/apq8084.dtsi
@@ -686,16 +686,12 @@
qcom,msm-bus,name = "qcrypto-noc";
qcom,msm-bus,num-cases = <2>;
qcom,msm-bus,num-paths = <1>;
- qcom,use-sw-aes-cbc-ecb-ctr-algo;
- qcom,use-sw-aes-xts-algo;
- qcom,use-sw-ahash-algo;
qcom,msm-bus,vectors-KBps =
<56 512 0 0>,
<56 512 3936000 393600>;

Nope, but I've asked Euphoria devs to send me a pull request for fauxsound for me to review the changes.
[Nexus 6  Original Android Development] Mervingio:
Did you think the kernel with FS help on audio calls music etc... this drive me crazy when got a call and volume is low but can't do much about it.
[Nexus 6  Original Android Development] Smallsmx3:
CM12 has an audio boost option built in for phone calls
[Nexus 6  Original Android Development] Imoseyon:
v1.9 is up: https://github.com/imoseyon/leanKernel-shamu/wiki/Lollipop-ChangeLog

This is a huge update, with the biggest change being the power aware cpu scheduler. This feature is somewhat experimental (although it's been tested by various people quite a bit), please report here if you notice any performance or battery related changes. More on this below.

I've also completely refactored lkconfig to be more robust (including "lk" symlink). In addition, lkconfig now includes vibe strength config and cpu scheduler powersaving option.

What is Power Aware Scheduling?

Somewhere between Linux 3.4 and Linux 3.10, mainline Linux contributors pulled power savings feature (“sched_smt_power_savings”) from CPU scheduler, probably because it never worked well anyway. And there’s been multiple RFCs to replace it with something better but none has been incorporated, and honestly I wouldn’t hold my breath.

I picked one of the implementations for leanKernel v1.9, written by Alex Shi (intel). This is the same implementation some of you tested in leanKernel v1.8.3. Both Franco and I (we talked offline) like this implementation because it’s simpler and less likely to cause issues moving forward.

Power aware scheduling will basically attempt to “pack” small tasks into the “leftmost” CPU cores (ie. starting cpu0) to keep the other cpu cores as idle as possible, instead of spreading them evenly across all online cores. Theoretically this should produce higher power efficiency, although I think the jury is still out. Also, theoretically performance should take a tiny hit (when powersaving mode is enabled) but I haven’t noticed any in my own testing. To take full advantage, you need to enable “powersaving” mode - you can do this via lkconfig.
[Nexus 6  Original Android Development] old_fart:
Cool, I went into 'system monitor and I can see it go down to basically using just 'one' core ! In the 3C Tool app, I can see only core one ( not zero ) jumping up half way for a blink. I'm in power saving mode and it really looks like it'll be doing just that !
[Nexus 6  Original Android Development] Mervingio:
Thanks I will check only CM official or CM based too?
[Nexus 6  Original Android Development] akellar:
Anybody find a solution or cause of sensor_ind wakelock?
[Nexus 6  Original Android Development] poczynek:
Oh any update on getting it to work with the new theme engine? Great update too - and sorry for being another person asking for more things!
[Nexus 6  Original Android Development] akellar:
In the changelog
[Nexus 6  Original Android Development] bmwh0r3:
As soon as I boot with any ROM, lk 1.9 seems to not recognise my vzw sim. Install a ROM without lk and its fine. Anyone else experience this?
[Nexus 6  Original Android Development] Cy_n_ic:
I would suggest flashing your rom first and booting into android before applying a kernel. How would you know which one is the culprit otherwise?
[Nexus 6  Original Android Development] bmwh0r3:
Flashed same ROM without lk and it booted fine. Try flashing lk 1.9 and lose sim connection
[Nexus 6  Original Android Development] Cy_n_ic:
Very well. Im glad i got away from cdma. You guys seem to have alot of issues with data. Sorry i couldnt help and good luck
[Nexus 6  Original Android Development] Imoseyon:
Yup. BTW, special thanks go to [MENTION=2110625]inzaghi75[/MENTION] and [MENTION=680750]sir*mez[/MENTION] for testing a gazillion different versions for the theme engine fix. :)

You know this isn't the first time I heard about this issue from vzw users. From what I can remember, maybe going to airplane mode and back will fix it. Unfortunately I have a sprint device so I have no idea what the issue could be - it doesn't seem like it's pandemic to all vzw leankernel users, otherwise there would be more reports. If someone can pull dmesg after boot, I might be able to diagnose and fix the problem.
[Nexus 6  Original Android Development] flyinj54:
Were you on version 1.8 without issues or did you just flash lk for the first time? Only reason I ask is because after flashing lean kernel for the first time and I'm on VZW it takes literally 4 to 5 minutes to pick up signal and then it's fine from there on out. I just flashed the latest 1.9 over 1.8 with no issues with signal or SIM card. Enabled power saving mode in LK config will see how it goes. Doesn't feel too bad as far as performance goes. Slight speed difference of course it could be placebo.
[Nexus 6  Original Android Development] Cy_n_ic:
Im trying out power save as well. No noticeable drop in performance really at all. But i run with animations all off and things always seem snappy. Battery drain kinda early to tell right now but i can confirm my phone didnt explode or melt so i got that goin for me which is nice :)
[Nexus 6  Original Android Development] arcanexvi:
Really? 1.9 caused my phone to grow wings and the USB port is pushing out flame like an afterburner. I assumed this was just a result of the overhaul. New features and all...

In all seriousness, it's running fine. No issues to report. I've got performance mode disabled so I'll let you know if I have any issues but so far so good.
[Nexus 6  Original Android Development] NikWillOrStuff:
Hmm, my RGB LED stopped working... I was using light flow pro in direct mode, root mode, running all commands with root (the only way it worked previously)

I had the same issue with franco.kernel and that's why I tried this kernel instead, and it worked great before. but I don't see anything in the 1.9 changelog that would've broken the LED. perhaps it was the cyanogenmod update?
[Nexus 6  Original Android Development] merouleau:
I can confirm the LED issue. LK v1.8 + CleanROM 1.2.5 + Light Flow worked fine, after flashing LK v1.9, the LEDs don't come on. I just flashed LK v1.8, and the LEDs work again.
[Nexus 6  Original Android Development] Imoseyon:
I'll look at the LED issue first thing in the morning
[Nexus 6  Original Android Development] poczynek:
LED working fine here with 1.9. I'm using baked in LED that comes with Blisspop Rom. Saves me installing Light Flow and works great.
[Nexus 6  Original Android Development] funcrusher:
I don't use it myself, but I've read about having to uninstall/reinstall Light Flow and set it up again after installing a new kernel. Not sure if that's still the case or the reason for your issue..
[Nexus 6  Original Android Development] fitz420:
I am unable to get the wake gestures settings to stick with lkconfig. Everything else sticks with no issues. I set them to off, and they default back to auto no matter what I do. Am I doing something wrong, could it be ROM related
[Nexus 6  Original Android Development] natezire71:
Hate to be "that guy", but this is something outside of lk's scope. Search the thread, as there is an init.d script you'll need to add to get that setting to stick.
[Nexus 6  Original Android Development] doitright:
Thanks. I'm going to dive into this with both feet next week (my phone will finally be in my hands on Sunday...).
[Nexus 6  Original Android Development] Franzie3:
I was one of those getting the weird signal issue after flashing. I never checked the airplane mode thing, but i'm flashing shortly so i'll check. Usually after 4-5 minutes it comes up and everything works fine. I kinda just flash and forget and let everything settle in before i start playing.
[Nexus 6  Original Android Development] old_fart:
Quick battery drain report :

8 % used in eight hours and 37 minutes. phone radio is the biggest sipper with 36 % - - - followed by wifi_active with 28 %

.

Question : Is it a kernel thing -or- a rom thing to draw less current from the radio and wifi ? . Hmmm. h/w is h/w is h/w . . . I understand google did not publish many h/w drivers because qualcomm / motorola / lenovo did NOT fork them over . . .

.

Hmm, about a week ago I asked ( Francisco Franco ) if he could fold back two cores running to only one core running . . . And here we are now idling on only one core . . .

.

And me too, I haven't see a LED lately. But wasn't it that you "HAVE TO" go re-install the LED app if you change / update anything ?
[Nexus 6  Original Android Development] shelooga:
no LED here since going from 1.8 to 1.9. ive been on pure 3.97. even tried uninstalling/reinstalling light flow. no dice. but using powersave im getting insane battery life, so i can wait for a fix instead of going back to 1.8!!
[Nexus 6  Original Android Development] Imoseyon:
hmmm.. this is puzzling. I'm not seeing any issues with LEDs. Of course I am only using lkconfig to configure the charging LED. Can someone send me a logcat while running lightflow?

As for the gesture control, that's also working for me and sticking at boot (also using lkconfig).
[Nexus 6  Original Android Development] flyinj54:
Running latest with powersave enabled. Great results. 16 hours up time 3 hr 10 min sot and 50% battery life left. Wow I'm truly impressed. Right now normally I would be looking for a charger.
[Nexus 6  Original Android Development] Cy_n_ic:
On gesture control. I believe he speaks of using something other than defaults. Such as, instead of sweep2wake working in all directions it only works with a swipe to the right. Thats what i do and the init.d script was always needed to make it stick.

Has this changed? Lkconfig shows the same options so i assume its still that way
[Nexus 6  Original Android Development] ggmask:
By "powersave enabled" do you mean you're leaving Lollipop's Battery Saver mode on all the time?
[Nexus 6  Original Android Development] Cy_n_ic:
I believe he speaks of the latest addition to the kernel. Power saving mode for cpu scheduler.

Iv been running with that option enabled and im not noticing drastic battery savings but its still early for me. By the time i head to work i have around 90% coming from a full charge and im still on par with that. Durring the day i will find out more regarding idle drain. By no meams have i found any reason not to enable it though. Still snappy and smooth
[Nexus 6  Original Android Development] magnum870:
I believe he means the new kernel level powersave mode that imo added in with 1.9
[Nexus 6  Original Android Development] old_fart:
Hey [MENTION=3357040]Imoseyon[/MENTION], do you need to 'contract out' and explain to those jokers over at qualcomm how to get their cpus to NOT over heat and slow down ? ? ?

http://www.androidpolice.com/2015/0...agon-810-from-the-next-flagship-galaxy-phone/
[Nexus 6  Original Android Development] flyinj54:
Yes new powersave funciton built into kernel.
[Nexus 6  Original Android Development] merouleau:
Ok, attached is a zip with logcats of me running the LightFlow "Test" function on my "Calendar apps (all reminders)" notification for 1.8 and 1.9. In each case, I started the logcat, pressed Test, waited for the five second countdown with screen on, allowed the alert to fire, pressed the "close" button in LightFlow, and ended the logcat.
[Nexus 6  Original Android Development] Mervingio:
Once got Faux Sound on LK I'm done like my S3 days with LK too!
[Nexus 6  Original Android Development] bmwh0r3:
If I knew how to pull said dmesg after boot, I would definitely. I'd love to help anyway possible. I don't have the time or smarts to do what any of you devs do but appreciate all you guys do.

I've used lk since 1.2 without issues. Flashing it after ROM was already up and running or as a clean slate. 1.9 just won't play friendly for me. 1.8 flashes fine. But the moment I flash 1.9, I'm being told to insert a sim
[Nexus 6  Original Android Development] ggmask:
Hmm, I don't see a powersave option in Trickster for CPU, but I do see a powersave mode for GPU, is this the one we're talking about: http://i.imgur.com/ZhgPjm9.png?1

What app is everyone using to control this kernel?
[Nexus 6  Original Android Development] adrman:
I'm just using lkconfig from terminal.
[Nexus 6  Original Android Development] ggmask:
Alright, I did the same via Terminal App, I wish there were options in a GUI format though. Rebooting will revert any changes made in lkconfig right?
[Nexus 6  Original Android Development] akellar:
No, it tells you right in lkconfig that settings persist