• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[KERNEL][E5823] GreenKernel for Nougat (stock ROM)

Search This thread

Wenro

Senior Member
Oct 10, 2014
110
22
Sweden
Hello! :)

I'm also having issues with USB not being detected. I hear sound on connection, but no recognition and no charge. USB Debugging, MTP etc is on. Same with different cables.
Flashed kernel through TWRP, also re-did it to see if it fixed. I have the drivers. Not sure what next to check?

I searched "USB" in this topic and tried finding a solution, but to no avail. Should I try an earlier version?
I managed to get charge from wall when device was off.

32.4.A.1.54
recovery_suzuran_220218_2.img
Magisk v17.1
Latest Kernel in Nightly


Regards,


EDIT: Manage to get Flashmode and Fastboot connected, so it's nothing wrong with cable or ports....
 
Last edited:

trax7

Senior Member
May 15, 2012
952
344
Hello! :)
...
EDIT: Manage to get Flashmode and Fastboot connected, so it's nothing wrong with cable or ports....
How did you flash the kernel? Fastboot or TWRP, its meant to be flashed through TWRP as it goes with additional stuff (like the mtp drivers).
 

Wenro

Senior Member
Oct 10, 2014
110
22
Sweden
How did you flash the kernel? Fastboot or TWRP, its meant to be flashed through TWRP as it goes with additional stuff (like the mtp drivers).

Yeah, through TWRP.

TWRP through Fastboot
Kernel through TWRP
Magisk through TWRP

Latest GreenKernel, I put that entire zip on SD-Card, flashed boot_E5823_Enf to boot.

I considered trying maybe LineageOS, but I kinda liked this, and the kernel itself. So if I could get this working that'd be awesome. :)

EDIT: Managed to get charge from wall. So only PC connectivity remains. All the drivers have worked up to this point so I don't know why they wouldn't now, but how would I go on reinstalling them all?

EDIT2: Still managing to get power from wall, it kinda varies sometimes. I would like to get the USB PC connectivity working but for now I suppose it's not a dealbreaker.
I've gone ahead installing Xposed and a couple of modules, also Magisk modules, and it seem to run well. When all the setup is done I'm eager to see how it performs battery/performance wise.
 
Last edited:

n00b0815de

Member
Nov 3, 2017
8
0
USB functionality

@Ampull: Although I don't want anyone to experience these USB issues: Glad to hear that I'm not the only one. And I fully support the description.
 

Wenro

Senior Member
Oct 10, 2014
110
22
Sweden
@Ampull: Although I don't want anyone to experience these USB issues: Glad to hear that I'm not the only one. And I fully support the description.

Yeah. It sucks but I have a way to get around it so it's not like I'm stuck with a worthless phone. However, I don't want to blame the kernel but of course I find it odd it's not working now. It varies, some people had NO issues whatsoever, but I did find a some having the USB problem. One guy managed to solve it, but he had flashed it from flashtool, not TWRP, once he did through TWRP it fixed. I have re-flashed couple of times without success. Didn't see any reply from the others solving it, just that one guy.

I'm no expert either, no knowledge how to find out what is really causing it, no knowledge how to build/edit/customize kernels. For now I'll roll with it, but always looking for a cause. :)
 

Wenro

Senior Member
Oct 10, 2014
110
22
Sweden
Bluetooth seems to be affected as well. I was going to play music through Spotify over Bluetooth but it's completely quiet. AUX works, phone sound works.
 

Wenro

Senior Member
Oct 10, 2014
110
22
Sweden
@Ampull, write in the terminal "lsmod" and give the result here.

Hey! Sorry, never used terminal here, this is what outputs
87y2tfM.png


Sorry if I misunderstood. ;)
 

Wenro

Senior Member
Oct 10, 2014
110
22
Sweden
You have no additional modules loaded and therefore USB and BT does not work.
Install the kernel via TWRP.

I did install the kernel via TWRP as stated above, followed the exact steps provided by @trax7

EDIT:
Originally Posted by trax7
How did you flash the kernel? Fastboot or TWRP, its meant to be flashed through TWRP as it goes with additional stuff (like the mtp drivers).

Yeah, through TWRP.

TWRP through Fastboot
Kernel through TWRP
Magisk through TWRP

Latest GreenKernel, I put that entire zip on SD-Card, flashed boot_E5823_Enf to boot.

EDIT2: So did I follow a step wrong? I put the entire zip, not unpacked. Not sure how the modules didn't follow since the kernel is flashed on the phone.

Dropbox -> Kernel 27.08.2018 RC11 g7d6767d

Kernel-version
3.10.108-perf-g7d6767d
[email protected] #1
Mon Aug 27 03:41:29 MSK 2018
 
Last edited:

trax7

Senior Member
May 15, 2012
952
344
I did install the kernel via TWRP as stated above, followed the exact steps provided by @trax7

EDIT:


EDIT2: So did I follow a step wrong? I put the entire zip, not unpacked. Not sure how the modules didn't follow since the kernel is flashed on the phone.

Dropbox -> Kernel 27.08.2018 RC11 g7d6767d

Kernel-version
3.10.108-perf-g7d6767d
[email protected] #1
Mon Aug 27 03:41:29 MSK 2018
Yes, you have to flash the whole zip, not just the boot.img :)
 
  • Like
Reactions: Wenro

Wenro

Senior Member
Oct 10, 2014
110
22
Sweden
Yes, you have to flash the whole zip, not just the boot.img :)

So, first flash the entire ZIP and that's all, you don't have to flash the separate boot to boot?

EDIT: Well, it worked. It seems to be working as it should now. I just don't understand why someone didn't tell me I did it wrong when I provided the exact steps I did? :laugh: :laugh:

Since I'm not a regular phone rooter, flasher etc, I didn't get that part.. :silly:
 
Last edited:

trax7

Senior Member
May 15, 2012
952
344
So, first flash the entire ZIP and that's all, you don't have to flash the separate boot to boot?

EDIT: Well, it worked. It seems to be working as it should now. I just don't understand why someone didn't tell me I did it wrong when I provided the exact steps I did? :laugh: :laugh:

Since I'm not a regular phone rooter, flasher etc, I didn't get that part.. :silly:
The zip flashes the img inside. A lot of zips can do that, it's so ubiquitous, hence the opportunity to miss it when explaining. Flashing zips through TWRP also is generally accepted to be by default and if there's a need to flash an img file, we generally say so or just say that it can be flashed through TWRP *and* Fastboot.
I'm glad it all worked out for you in the end and everything is fine. :)
 
  • Like
Reactions: Wenro

Wenro

Senior Member
Oct 10, 2014
110
22
Sweden
The zip flashes the img inside. A lot of zips can do that, it's so ubiquitous, hence the opportunity to miss it when explaining. Flashing zips through TWRP also is generally accepted to be by default and if there's a need to flash an img file, we generally say so or just say that it can be flashed through TWRP *and* Fastboot.
I'm glad it all worked out for you in the end and everything is fine. :)

Yeah, it all got to me at that point. Just a complete misunderstanding from my side.

Thank you!

And thank you @GreyLeshy for the kernel, and sorry that I doubted it when I was doing it all wrong :) :good:
 

n00b0815de

Member
Nov 3, 2017
8
0
I just re-did all steps. Flashed via TWRP and saw the update messages (Firmware, USB,...).
When doing the lsmod, I get a plausible result (see attached screenshot).
But still no USB connectivity.
I'm at a loss.... Could anyone please help me?
 

Attachments

  • lsmod.jpg
    lsmod.jpg
    56.9 KB · Views: 89

Wenro

Senior Member
Oct 10, 2014
110
22
Sweden
I just re-did all steps. Flashed via TWRP and saw the update messages (Firmware, USB,...).
When doing the lsmod, I get a plausible result (see attached screenshot).
But still no USB connectivity.
I'm at a loss.... Could anyone please help me?

Do you get charge like normal through wall outlet? So you can rule out that the USB is actually working, and also try different cables.

If this is working you seem to be in the same boat as I was in, but you seem to do it right. Is it the latest Nightly you're flashing?

Kernel 27.08.2018 RC11 g7d6767d.zip
 

n00b0815de

Member
Nov 3, 2017
8
0
Do you get charge like normal through wall outlet? So you can rule out that the USB is actually working, and also try different cables.

If this is working you seem to be in the same boat as I was in, but you seem to do it right. Is it the latest Nightly you're flashing?

Kernel 27.08.2018 RC11 g7d6767d.zip
First: Thanks for the reply.
Yes, the phone gets charged.
Yes, latest nightly.
I really don't know what else to do...
 

Wenro

Senior Member
Oct 10, 2014
110
22
Sweden
First: Thanks for the reply.
Yes, the phone gets charged.
Yes, latest nightly.
I really don't know what else to do...

Bluetooth working? Do you hear the USB connecting to your PC or completely dead? I heard sound but nothing came up when I had issues.
 

Attachments

  • _20181017_213254.JPG
    _20181017_213254.JPG
    44.5 KB · Views: 64
Last edited:

trax7

Senior Member
May 15, 2012
952
344
First: Thanks for the reply.
Yes, the phone gets charged.
Yes, latest nightly.
I really don't know what else to do...
Did you flash the *whole ZIP* or just the image?
You need to flash whatever you downloaded in TWRP, no extracting, no taking files out or in, just download the zip, copy to phone, flash zip in TWRP. It works. For everyone. :)
 

Wenro

Senior Member
Oct 10, 2014
110
22
Sweden
I have had 3 reboots now, during call. Phone just dies, red light flashing 3 times and then rebooting. Once a while ago, and nothing since, but now again yesterday and once just now.

How do I go on about looking up the reason behind this? :)

Regards,
 

Top Liked Posts

  • There are no posts matching your filters.
  • 23
    Green Kernel

    Features:
    • Latest CAF source
    • Support WireGuard
    • CPU voltage control
    • Adreno idler
    • KCAL Driver
    • Fingerprint boost tweaks
    • Available CPU governors: blu_active, elementalx, chill, electron, flash, interactive, ondemand, smartmax_eps, bioshock, powersave, performance
    • Available I/O schedulers: deadline, row, cfq, bfq, noop, fifo, fiops, sio, sioplus, maple, zen
    • Remove SafetyNet checks
    • DRM-Fix, Sony RIC disabled, DM-Verity disabled (ramdisk)
    • Built with Linaro Toolchain 7.2.1
    • Kernel for stock ROM

    Change log:
    Code:
    v1.12.70
    - Fix video recording
    - Updated WireGuard to 0.0.20180304
    - Upstream to 3.10.108
    - Driver update wlan to 1.141.67.32
    - Updating the USB Gadget subsystem
    - Add The NEXT generation (TNG) for Android Low Memory Killer
    - Printk and friends can now format bitmaps using '%*pb[l]'
    - Add Snapdragon Smart Protection and add service "seempd" (activation requires the edit framework)
    - Various fixes for stability and optimization
    
    v1.10.28
    - Updated BCMDHD driver
    - Updated WireGuard to 0.0.20180202
    - Minor update network protocol
    - swap: Fix value of SWP_FAST
    - A lot of changes to eMMC
    -- Added Command Queue Support on eMMC
    - Updated Binder driver
    - Updated TUN network driver
    - Built with Linaro Toolchain 7.2.1
    - Various fixes for stability
    - Lots of different subsystem changes
    
    v1.6.28
    - Use power efficient work queues
    - Update z3fold
    - Fix loading of the cryptographic module QTI HW (version 1.3 violated the module loading)
    - Various fixes for energy efficiency and stability
    
    v1.4.14
    - Updated crypto modules
    - Update LZ4 to v1.7.3
    - Update to LA.BF64.1.2.3_rb1.18
    - Add support WireGuard
    - Other changes for stability
    
    v1.2.31
    - Added I/O Schedulers: zen
    - Other changes stability
    
    v1.0.0
    - Added governor: Electron and Chill
    - Maximum frequency default 1651200 and 2016000
    - Other changes stability
    
    v0.9.9
    - Added eCrypt FS
    - Updated driver BT
    - Changed the frequency of the interrupt timer to 300
    - Other changes stability
    - Add support for 32.4.A.1.54
    
    v0.9.4 (hotfix)
    - Added eCrypt FS
    - Updated driver BT
    
    v0.9.3:
    - added RCU
    - initial fix MMC
    - added CPU governors: flash, blu_active
    - fix binder
    - fixes network
    - other improvements for stability
    
    v.0.8.7:
    - ZRam, return 512MB
    - Fixes for stability
    
    v.0.8.6:
    - Update to LA.BF64.1.2.3_rb1.17
    - Driver update wlan to 1.141.67.30 and FW 7.45.59.18 (r718509)
    - Added exfat file system driver (rejection of the built-in module)
    - Other fixes for stability
    
    v.0.8: 
    - Update to LA.BF64.1.2.3_rb1.16
    
    v.0.7: 
    - Minor enhancements and performance improvements
    
    v.0.6.5: 
    - The transition to opensource Core control driver instead of the built-in module
    - CPU voltage control
    - Updated WLAN driver to 1.141.67.29 and Firmware 7.45.59.17
    - Increased ZRam size to 768 MB
    - Add support for 32.4.A.0.160
    - Built with Linaro Toolchain 6.4.1
    
    v0.5.1: 
    - Added I/O Schedulers BFQ
    - Cancelled patch: "dts: msm8994-mdss: Enable power collapse on idle"
    
    v0.5: 
    - Added KCAL Driver
    - Added Qnovo QNS Interface (not exactly sure about the effectiveness)
    - Other improvements
    
    v0.4.2: 
    - Enable Governors Bioshock for A53
    - Enable I/O Schedulers Maple for internal memory
    - Enable Hi-Performance DAC
    - Enable Pstore
    - Disable Governors USERSPACE
    
    v0.4: 
    - Added Governors: Smartmax EPS, Bioshock
    - Added I/O Schedulers: FIFO, SIOplus
    - Added Fingerprint Boost Driver
    - Other minor improvements
    
    v0.3: 
    - init.d support
    - Enable State Notifier
    - Gentle Fair Sleepers Interface
    - Arch Power
    - Disabled CRC check in MMC for 30% extra performance with IO
    - Added Adreno idler
    - Added I/O Schedulers: Maple, Switcher
    - Other minor improvements
    
    v0.2: 
    - Disabled check SafetyNet
    - Added ElementalX Governors
    - Added I/O Schedulers SIO, FIOPS
    - Enabled TCP Westwood
    - Reduced Adreno minimum frequency to 180MHz
    
    v0.1: 
    - Added DRM-Fix
    - Sony RIC disabled
    - DM-Verity disabled
    - Release based on 32.3.A.2.33
    - Built with Linaro Toolchain 6.3.1 (compiler Google 4.9 outdated 2015)

    Downloads
    Dropbox

    Additionally
    To configure the kernel, use Kernel Adiutor.
    ROOT: Magisk + module init.d (for kernel v.0.6+)

    XDA: DevDB Information
    Green Kernel, Kernel for Sony Xperia E5823

    Contributors
    GreyLeshy
    Source Code: github.com/GreyLeshy/android_kernel_sony_msm8994_kitakami

    Version Information
    Current Stable Version: 1.12.70
    Last Updated: 2018-03-18
    _____
    TWRP 3.2.3 | Vulkan API for Adreno 430 | Media Config
    8
    Modification for 32.4.A.1.54

    Media Config:
    - Minor changes and adding support for VP9 HW.
    VP9 HW is not work, requires modification of the libraries.

    SoundMod:
    - Sensitivity of the microphone at a call is modified
    - Increased headphone volume
    - Added ZNR
    - Added Apt-X HD for Bluetooth
    - Enabled 24/96khz Bluetooth playback
    - Enabled 24/96khz Headphones playback
    - Enabled 24/192khz USB playback
    7
    Test kernel v0.9.6 for FW 32.4.A.1.54
    Change log:
    - Added changes made by Sony
    - Other changes stability

    The Kernel may contain bugs!
    Please report any identified malfunctions.
    6
    Kernel v0.9.3 (fw 32.4.A.0.160) goes into stable branch.
    6
    I publish the test kernel for 32.4.A.0.160.
    See Github to see what changes included.
    https://www.dropbox.com/s/bh4ok7v2zkju5n6/Green_Kernel_BETA.zip?dl=0

    And for best compatibility flash update fw WLAN/BT. https://forum.xda-developers.com/showpost.php?p=73357962&postcount=11

    Screenshot AnTuTu
    Screenshot_20170911-182726.png
    An_Tu_Tu_Benchmark_6.3.5_2017091120170910.png