Spookcity / ROMS-G800F

10 stars 0 forks source link

Spookcity_Kernel-N #12

Closed Spookcity closed 4 years ago

Spookcity commented 7 years ago

Just a place to share your experiences with the kernel. Let me know about any bugs or problems you experience. Also share any features you may want to see included in future builds. Git repo XDA thread (Although I may create a new one for the Nougat kernel. I'm still unsure of the best route to go) Test builds will be posted here

ghost commented 7 years ago

Thanks for posting it here too! I hope you didn't find it too unreasonable.

As for the new XDA thread: I'd definitely create a new one, just for the sake of clarity. But as you may have noticed, I may be exaggerating the clarity a bit too much ;).

I'm so sorry that I can't test the kernel, but I've fallen in love (sort of) with XOSP and I'm not using Nougat at the moment. I do switch ROMs often so I might be using Nougat some time next week so I'll try it out then. However, I have been using XOSP for 8 days already, which is almost a new record for me.

By the way: should I reference people on XDA at the thread for your kernel to this thread so they can stay informed for new test builds?

Spookcity commented 7 years ago

@StanNL No,not unreasonable at all. I'm still trying to figure out this system a little,but I do like it and its a good idea! I have already referenced the test build on the XDA thread,so hopefully some people can try it out and let me know if all is OK.

Maybe XOSP Nougat will come to our device soon! You said nico_vo was going to work on it if I'm not mistaken. If not, I will give it a go after I try to build CosmicOS.

ghost commented 7 years ago

@Spookcity

No,not unreasonable at all. I'm still trying to figure out this system a little,but I do like it and its a good idea!

That's great, thanks! By the way: I always use FastHub on my phone which is a beautiful XDA (edit: I meant GitHub ) app. It wouldn't work for posting builds of course since you still have to do those from your PC, but when posting comments it works great! (By the way: it isn't available through Google Play atm due to copyright issues, so you'll have to install it through GitHub via your browser, you can find it here )

I have already referenced the test build on the XDA thread,so hopefully some people can try it out and let me know if all is OK.

Oh I didn't even notice, but that's the whole problem with XDA, because you have to check everything manually and you don't get notifications (unless you get quoted). That's what this is for!

Maybe XOSP Nougat will come to our device soon! You said nico_vo was going to work on it if I'm not mistaken. If not, I will give it a go after I try to build CosmicOS.

Ooh that would be great! Nico indeed tried it after he installed Linux. However, he had an error while downloading sources. He told me he was going to ask you last week, but I think he's too hesitant (or he's too busy).

Oleggluk commented 7 years ago

The new kernel works well for RR N 5.8.2. I want to see, voltage control, various governors, lowering the minimum frequency. (Google Translate)

Spookcity commented 7 years ago

@Oleggluk All of these features are planned and most should be fairly easy to achieve. I plan to try voltage control as well,but I need to look into this some as I'm a little unsure how to implement it and I don't want to cause major problems! At this point I'm just really glad that I set up anykernel2 properly :D

Oleggluk commented 7 years ago

I'm ready to test any attempts to change the voltage, even to break my phone)) (Google translation)

Spookcity commented 7 years ago

Thank you @Oleggluk. I will test first though as I would feel really bad if my kernel destroyed anyone's phone. Hopefully I'll have some time this week to research voltage control some and see what happens.

AndiVR46 commented 7 years ago

Hi , i tested the Kernel N in Lineage OS 14.1 since saturday - no issues so far

kernel

Spookcity commented 7 years ago

@AndiVR46 Good news and thanks for the feedback! There is one issue that was pointed out to me and that I also have....Recorded audio is very distorted. I'm going to try to look into this soon. I've only tested this on AEX and I'm unsure what Rom the other person who experienced this was using,but if you get a chance, test this out for me. I'm nearly positive it's not ROM specific,but still wanna be 100%

AndiVR46 commented 7 years ago

i can confirm it... The recorded sound is very scratchy at mine, but at my GFs S5mini (LOS 14.1) with the ,,old'' kernel 3.4.39+ sounds CLEAR ;)

Spookcity commented 7 years ago

Thanks a lot for testing. I figured as much. More than likely this going to be caused by one of the MANY Linux kernel patches I applied. I'm going to try to disable a few flags in the build. Use a different toolchchain to see if that fixes it before I go slowly over all of those kernel patches. That'll be fun lol

AndiVR46 commented 7 years ago

with pleasure... hope you can fix it.

Oleggluk commented 7 years ago

I found a very serious problem! After some applications (games), the smartphone does not see the headphones and outputs the sound through an external speaker. The same problem was previously at the core of DJ_Steve, he could not solve it. (Google Translate)

Spookcity commented 7 years ago

@Oleggluk Thank you for letting me know. So strange. It almost has to be related to the Linux kernel patches. I thought that I solved that on my previous kernel build for MM ROMS by replacing one particular file. Hopefully I can do the same this time around. If not and it is caused by the kernel patches, I may just release a kernel, for the time being without the patches, so it would still be 3.4.39. Hopefully I'll have some time this weekend to mess around with it and try to figure out what's going on.

AshVo925 commented 7 years ago

I finally got this rom on after slim6 but am hoping not to regret it,so far i actually kinda love this rom,will update as it happens

Spookcity commented 7 years ago

@AshVo925 Hey thanks for joining in! I'm a bit unsure,but I think you're speaking of slim 7 as I remember you posting in that thread. If so, I don't think you'll regret it. It's a nice ROM and I never noticed any major issues with it. Hope it works out for you!

ghost commented 7 years ago

I'll install the new kernel, now that I'm using XOSP 7.1. However, are there any real benefits at this point?

Spookcity commented 7 years ago

@StanNL Yeah,there should be. Even though I've yet to add any features, I've patched the Linux kernel (to 3.4.105 in this build) I've added many optimization flags to the build and I've built it with my ct-ng build of Uber toolchain,so it should hopefully be at least a little "snappier"

Also, there is a huge benefit for me as I really want to make sure there's no issues with just the patches,toolchain and optimizations before I start adding things :D

ghost commented 7 years ago

@Spookcity Alright, thanks for the update! Good luck with adding the features you want.

AndiVR46 commented 7 years ago

Hi, i test the new 3.4.105 Kernel with LOS 14.1 build of zytrix78 (7.1.2), the recorded audio issue seems to be solved when i compare the audio of my GFs 3.4.39 one with mine...

Spookcity commented 7 years ago

@AndiVR46 Thanks a lot for the feedback! I really hope that's the case. My recorded audio also is good,but who knows. This will make it a lot easier if all of the audio issues are solved in this build cause then I know it's one of the last 8 Linux patches,as opposed to trying to sort through 60+ patches!

Oleggluk commented 7 years ago

Hey. For a long time I wanted to ask how to fix this error. Battery stats service no controller energy info supplied. This is on all custom firmware of our device. Can some file not be properly configured or missing? (Google Translate) screenshot_20170508-140744

Spookcity commented 7 years ago

@Oleggluk I think that is the case yeah. I'm not positive,but I believe that it's related to a power_profiles.xml.

Oleggluk commented 7 years ago

Where is he located? Can it be edited or extracted from the original firmware?

Spookcity commented 7 years ago

@Oleggluk I think its part of the framework. You would have to use apktool to decompile the framework.res and pull the power_profile from there. Then you could edit it. And recompile the framework. I think there may be something related in the kernel as well,but I believe this error is due to the devices.

Oleggluk commented 7 years ago

I decompiled framework.res, there is such a file there. It is he?

Here you can not use this format, put it in the archive. power_profile.zip

Spookcity commented 7 years ago

@Oleggluk I can't see that file,but its probably correct. I think it should be located with framework/res/res/xml/power_profile.xml I can't help much with what to edit to fix this though. I've never looked into really.

Oleggluk commented 7 years ago

I pulled the same file from the original 6.0.1, they are identical. Any other ideas?

Spookcity commented 7 years ago

@Oleggluk Hmm,interesting. Not off hand. I'll have to think a little. I'll let you know if I come up with any.

Oleggluk commented 7 years ago

There is an interesting topic. https://forum.xda-developers.com/android/apps-games/app-spectrum-kernel-manager-users-t3601542 . Maybe you should try adding to the kernel? (Google Translate)

Spookcity commented 7 years ago

@Oleggluk Interesting. Thanks,I'm always happy to get ideas and suggestions. Especially with a link. I will look more into that when I get home later. I've been working on adding synapse support to my kernel,which I've been able to do. Getting the backend setup so it works properly may be another story. I'm just not sure how much time I want to spend on it. We shall see.

Spookcity commented 7 years ago

@Oleggluk Here you go

Oleggluk commented 7 years ago

"Kernel su-hide," is this going to help pass security? (Google Translate) https://www.xda-developers.com/lineageos-change-log-9-jelly-as-the-default-browser-kernel-su-hide-and-more/

Spookcity commented 7 years ago

@Oleggluk I don't believe so as Magisk hide seems to work on some other devices. There is a kernel patch by sultanxda that also has helped many other devices pass. I tried and it didn't work. I will look a bit more at that link though.

Edit: If I can find the kernel patch I will add it to my kernel build though if I'm able as it does help with security.

Edit2: This is the patch I'll try to patch and build tonight or tomorrow and see the outcome.

Oleggluk commented 7 years ago

@Spookcity This kernel supports zRam? And how to set it up? (Google Translate)

Spookcity commented 7 years ago

@Oleggluk I have not done or set up anything with zram. I believe I can do this as a init patch inside anykernel2 though. I will look more into it. I had it planned anyway. Maybe next test build.

Oleggluk commented 7 years ago

Kernel test6, did anyone notice strangeness with charging? The phone is faster charging.

Spookcity commented 7 years ago

@Oleggluk I have not noticed that,but I will try to pay closer attention and see..Better faster than slower though, right? :D

Oleggluk commented 7 years ago

@Spookcity Fast charging is good. The main thing is not to discharge quickly. I'll watch it. Is there news about the new TWRP?

Spookcity commented 7 years ago

@Oleggluk Indeed! As far as TWRP,if ayke doesn't have a new build out sometime soon and I have the time I will try to build an update.

Oleggluk commented 7 years ago

Unfortunately the core test6 is a large discharge of the battery. Who has the same?

Spookcity commented 7 years ago

@Oleggluk Very strange. I haven't really noticed this. The only reason would be the 1500mhz CPU frequency I think,because that's all I changed from test5. It was only a few changed lines of code as well to unlock those frequencies as Samsung already has them there. It was just a matter of getting them to be used. I'll keep an eye on my battery life.

Edit: I enabled zzmoove's input boosters as well,but I'm pretty sure I did that for test5

ghost commented 7 years ago

You mentioned adding 1.6 or even 1.7 GHz to this kernel, but I was wondering how high this thing can go? I'd like to test basically anything, even if it's untested, since I am willing to do everything that improves performance, even if it's at cost of battery life.

AshVo925 commented 7 years ago

I second StanNL,now that I'm accustomed to this rom I would love pushing it to its limits,battery life isn't much of an issue for me either.. oh btw,which kernel for AICP anybody recommends?

Spookcity commented 7 years ago

@StanNL and @AshVo925 I'm unsure how far it will go. I would assume 1800 would be the max. Doesn't mean it would be stable at all though. I am going to try and see though. Sadly,I have time now and was planning on it,but an open SSL update completely broke my arch Linux,so now I need to spend this time hopefully fixing this. Oh how I love and hate arch lol

ghost commented 7 years ago

@AshVo925 Well, there's only one kernel for AICP (of any other Nougat ROM), which is Spookcity's kernel!

ghost commented 7 years ago

@Spookcity 1.8 GHz would actually be pretty decent for a modern phone. So if you could ever make that possible for our device, that would be awesome! I have no clue how Linux works (on PCs), so I wish you the best of luck with resolving your issues, since I won't be of much help

AshVo925 commented 7 years ago

Lol sorry I completely misunderstood my own words there,I would love to max out my phone is all StanNL,thanks for pointing out my mistake and thanks for all the hard work Spookcity, I'll try to test as much an assist you all in any way I can😅

ghost commented 7 years ago

@AshVo925 Well, I was able to completely understand your comment, but with my comment, I was referring to your last sentence:

By the way, which kernel for AICP anybody recommends?

Spookcity commented 7 years ago

@StanNL Thanks, I will try my best. I hope it will work and be relatively stable as well. As far as my Arch Linux problem,luckily I have 3 partitions my root,home and a separate one I that keep ROM sources on. I had to completely reinstall the OS,which is annoying,but I haven't lost much thankfully. Now I just need to get things setup...again.