[KERNEL] [9.x] BlackScreen (for the Pro3 aka zl1, zl0, X727,X720,x722)

Search This thread

Viper The Ripper

Senior Member
Nov 6, 2012
2,473
1,247
OnePlus 3
Samsung Galaxy A6

mosimchah

Senior Member
Dec 7, 2014
4,211
9,486
LeEco Le Pro3
ASUS ROG Phone 3
Hey @mosimchah , first of all thanks for you amazing work in AICP, BS Kernel and the whole android development here :good: . I've a related question, do you think it'd be possible to port 4.4/4.9 kernel from ZUK2 (snapdragon 820 device too) and boot it into other SD820 devices?

https://github.com/LineageOS/android_kernel_zuk_msm8996

Greetings! ;)
As I said before, we would need a newer bootloader, z2 has an Oreo bootloader, they weren't able to boot it at all with mm either until zuk updated it for them, glad you like my work
 

Viper The Ripper

Senior Member
Nov 6, 2012
2,473
1,247
OnePlus 3
Samsung Galaxy A6
As I said before, we would need a newer bootloader, z2 has an Oreo bootloader, they weren't able to boot it at all with mm either until zuk updated it for them, glad you like my work

Thank's it was clear ;) , I was meaning "other SD820 devices" as op3/t (Updated to offical Android 9.x) e.g. just wondered if it was possible :silly: . We don't have any 4.4/4.9 kernel port running on our op3/t either, I remember in those old days it was a pain to port kernel 3.x to our beloved gts-5830, maybe it's not as easy as it seems to build a bootable kernel, but it would be great to have the 4.x enhancements :fingers-crossed: .

Thank for your time and keep
 

TechDriver

Senior Member
Aug 4, 2018
73
53
Podolie
Is it possible to change default cpu scaling governor permanently and keep it even after unroot?
Example: interactive => conservative
 

TechDriver

Senior Member
Aug 4, 2018
73
53
Podolie
Only if you make your own init.d script or if you make your own rom build

Made init.d script, placed it into /system/etc/init.d but it didn't work at boot. It worked only with Kernel Adiutor init.d emulator. How to make it work?

Script:

#!/system/bin/sh

# Set Scaling Governor

GOVERNORbig="conservativex"
GOVERNOR="lionfish"

echo $GOVERNOR > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo $GOVERNOR > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
echo $GOVERNORbig > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
echo $GOVERNORbig > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
 

beeduq

Senior Member
Nov 12, 2010
244
38
Maniitsoq
Honor 7
LeEco Le Pro3
The latest blackscreens OC 6.6.1 and 6.5 were capped to 1708MHz BIG and 1401MHz LITTLE. I've tried AICP and AOSiP both 9.0 Android. Tested with Kernel Auditor but can't get max them.
Oh, I'm at LEX722.
 

twistyplain

Senior Member
Nov 21, 2011
423
188
Nairobi
I'm wondering why the overclock on modern CPUs is so modest. I remember I had a huawei U8800 that had a stock frequency of 800Mhz but I could safely overclock it to 1.8Ghz. So why cant there be a safe overclock beyond a few mhz on modern SoC's?

Sent from my LeEco Le Pro3 using XDA Labs
 

mosimchah

Senior Member
Dec 7, 2014
4,211
9,486
LeEco Le Pro3
ASUS ROG Phone 3
I'm wondering why the overclock on modern CPUs is so modest. I remember I had a huawei U8800 that had a stock frequency of 800Mhz but I could safely overclock it to 1.8Ghz. So why cant there be a safe overclock beyond a few mhz on modern SoC's?
With the current overclock it heats up pretty fast and then has to throttle right away so the device doesn't get damaged, if it was overclocked even more it would heat up even faster and thus would throttle faster which would make the overclock effectively useless, blame leeco for a bad hardware design
 

twistyplain

Senior Member
Nov 21, 2011
423
188
Nairobi
With the current overclock it heats up pretty fast and then has to throttle right away so the device doesn't get damaged, if it was overclocked even more it would heat up even faster and thus would throttle faster which would make the overclock effectively useless, blame leeco for a bad hardware design
Yeah. I definitely blame Leeco for this poor thermal performance. The sd821 got a lot of praise for its ability to stay cool but that's definitely not true for the pro 3. My next project on this phone will be cracking it open and putting some premium thermal paste and see how much better it gets. This phone throttles way too soon and too hard.

Sent from my LeEco Le Pro3 using XDA Labs
 
  • Like
Reactions: slgooding

slgooding

Senior Member
Oct 6, 2011
718
242
West Lafayette
OnePlus 7 Pro
Yeah. I definitely blame Leeco for this poor thermal performance. The sd821 got a lot of praise for its ability to stay cool but that's definitely not true for the pro 3. My next project on this phone will be cracking it open and putting some premium thermal paste and see how much better it gets. This phone throttles way too soon and too hard.
Let us know the result!
 

Redhawk2000

Senior Member
Jun 1, 2016
846
463
Have a zl1 now with a busted screen. Using it just as a hotspot. Recommended kernel settings for max battery life just to handle that service?
 

mosimchah

Senior Member
Dec 7, 2014
4,211
9,486
LeEco Le Pro3
ASUS ROG Phone 3
Have a zl1 now with a busted screen. Using it just as a hotspot. Recommended kernel settings for max battery life just to handle that service?
I would start with seeing if it can work okay with the powersave CPU governor, that would be the best for battery life if you're only using the phone as a hotspot, if it needs more CPU power though I would go with the impulse governor, for the io scheduler go with noop, for the gpu governor I would use simple ondemand, and that's probably it
 

orsonbear

Senior Member
Jun 24, 2011
849
500
I have not tried yet (I suppose I can't manually change governor without root permissions, then I can't 'coz I can't use root due the "safety required" apps I use) but if I choose the embedded Power Saving mode the governor is automatically changed to another or is it always the default one? (on AICP 14)
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 30
    ################################################################
    BlackScreen 6.4​
    ################################################################

    Changes:

    1. Did a fresh rebase on android linux stable
    2. Updated to Linux 3.18.136
    3. Latest caf tag and wifi driver
    4. Some updates from @AgustinLorenzo
    5. Some updates from lineage

    telegram group: https://t.me/BlackScreenKernel

    Thanks to @Quavosh for the amazing banners, I updated the op with them, check them out

    Download:
    Regular build:
    https://www.androidfilehost.com/?fid=1395089523397914221

    Overclocked build:
    https://www.androidfilehost.com/?fid=1395089523397914222

    24
    ################################################################
    BlackScreen 6.5​
    ################################################################

    Changes:

    1. Did a fresh rebase on android linux stable
    2. Updated to Linux 3.18.139
    3. Latest caf tag and wifi driver
    4. An update from @AgustinLorenzo and @shivatejapeddi to block more wakelocks
    5. A bunch of updates from codeworkx

    telegram group: https://t.me/BlackScreenKernel

    Download:
    Regular build:
    https://www.androidfilehost.com/?fid=1395089523397956777

    Overclocked build:
    https://www.androidfilehost.com/?fid=1395089523397956778

    23
    Code:
    /*
    * Your warranty is now void.
    *
    * I am not responsible for bricked devices, dead SD cards,
    * thermonuclear war, or you getting fired because the alarm app failed. Please
    * do some research if you have any concerns about features included in this ROM
    * before flashing it! YOU are choosing to make these modifications, and if
    * you point the finger at me for messing up your device, I will laugh at you. Hard. A lot.
    */

    Blackscreen.png

    ABOUT:
    BlackScreen is my custom kernel made for custom aosp/caf roms
    This started as just being the kernel in my aicp builds, but as more and more users of other roms started using it I realized I should make a separate thread :)

    ====================================================================================================
    BlackScreen is meant to give you great battery life and performance (depending on how you tune it), essentially I tried to optimize it for everyday usage (gaming, media consumption. browsing the web, all that stuff), I'm not aiming to have the highest Antutu score (although it is very high, it's just not my focus), you see benchmarks don't really reflect actual everyday usage.
    The main thing that I do is port good features and optimizations from the various OnePlus 3/3t kernels (they have many great kernel devs and a lot of their work can benefit us too), I also optimize the kernel settings and stuff like that

    BlackScreen is based off of the android linux stable kernel by @nathanchance (He takes caf and upstreams it to the latest from linux stable), with the bringup from @codeworkx, I do my best to keep it up to date with lineage, and Android Linux stable
    Downloads.png

    https://www.androidfilehost.com/?w=files&flid=285063

    Note:
    The -oc zip is simply an overclocked version of the regular build

    Install.png

    In twrp go to the install page, flash the zip, and reboot

    Features.png


    • CPU:
      Interactive governor
      Ondemand governor
      Conservative governor
      Powersave governor
      Performance governor
      darkness governor
      Lionfish governor
      nebula governor
      wheatley governor
      lionheart governor
      bioshock governor
      impulse governor
      Alucard governor
      ConservativeX governor
      Elementalx governor
      Nightmare governor
      Smartmax governor
      Yankactive governor
      Despair governor
      blu_active governor
      Optional overclock
      Voltage control
      Screen
      kcal
      Backlight dimmer
      I/O:
      Improved deadline
      improved cfq
      bfq
      sio
      fiops
      tripndroid
      sioplus
      zen
      maple
      Virtual memory:
      various optimizations ;)
      zram
      zswap
      entropy:
      some optimizations
      tcp-algorithms:
      bic
      westwood
      htcp
      hstcp
      vegas
      scalable
      lp
      veno
      yeah
      illinois
      hybla
      Misc:
      fsync toggle
      Many more optimizations
      Several wakelocks have been blocked
      Added the ability to tweak the thermal throttle settings for the CPU (be very careful with this)
      USB fast charge
      faster unlock
      improved network performance
      Option to enable/disable gentle fair sleepers
      Option to enable/disable software crc control
      vibrator intensity control
      arch power savings
    Thanks.png

    Quavosh for the amazing banners
    darkobas
    codeworkx
    Sultanxda
    Franco
    Flar2
    dabug123
    GalaticStryder
    nathanchance
    KuranKaname
    DD3Boh
    There are many more


    Telegram group:
    https://t.me/BlackScreenKernel

    Source.png

    Regular build:
    https://github.com/AICP/kernel_leeco_msm8996/tree/p9.0

    Overclocked build:
    https://github.com/mosimchah/kernel_leeco_msm8996/tree/p9.0-oc
    23
    ################################################################
    BlackScreen 6.2​
    ################################################################

    Changes:

    1. Did a fresh rebase on android linux stable
    2. Latest caf tag and wifi driver
    3. Updated to Linux 3.18.131
    4. Fixed quick charge (credit to @sdv22)
    5. Lots of updates from @ThE_MarD (bug fixes, idle drain, lots of stuff)

    telegram group: https://t.me/BlackScreenKernel

    Download:
    Regular build:
    https://www.androidfilehost.com/?fid=11410963190603894332

    Overclocked build:
    https://www.androidfilehost.com/?fid=11410963190603894331

    19
    ################################################################
    BlackScreen 6.3​
    ################################################################

    Changes:

    1. Did a fresh rebase on android linux stable
    2. Updated to Linux 3.18.132
    3. Some updates from @AgustinLorenzo for performance and battery life and bug fixes
    4. Some updates from lineage

    telegram group: https://t.me/BlackScreenKernel

    Download:
    Regular build:
    https://www.androidfilehost.com/?fid=11410963190603907192

    Overclocked build:
    https://www.androidfilehost.com/?fid=11410963190603907193