yashsingh1/xdaforums huggingface dataset:
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] LordArcadius:
[IMG="ElectraBlue Kernel Banner"]https://i.imgur.com/zNw8Y5vh.jpg[/IMG]

Electrifying Android!​

About ElectraBlue Kernel

ElectraBlue Kernel was first introduced to Android One 1st generation devices. Now it is also available for Redmi Note 4. It is developed to unleash the full power of your device. This kernel is developed in a manner to give you a balanced blend between battery life and performance. I added various tweaks i.e. governors, i/o schedulers, hotplug drivers and various other patches and fixes from many great kernels. The kernel will get updates regularly with new features/patches/fixes. I am continuously trying to make it more better day by day. I believe in quality over quantity.

#include
/*
* I am not responsible for bricked devices, dead SD cards, thermonuclear
* war, or the current economic crisis caused by you following these
* directions. YOU are choosing to make these modificiations, and
* if you point your finger at me for messing up your device, I will
* laugh at you.
*/

Features

Compiled with Linaro 7.3.x Toolchain (Optimized for Cortex-A53)

Linux version 3.18.140

Android Oreo & Pie support

Latest CAF tag "LA.UM.7.6.r1-05300-89xx.0"

DTS Eagle

Significantly improved performance & battery life

sdFAT filesystem (supports ext4, vFat and others too)

WireGuard VPN support

Spectrum support

KCAL v2 colour control

Sound Control

Qnovo charging driver for maintaining temperature

Boeffla wakelock blocker

Kernel Sampage Merging (KSM)

Disabled CRC check (up to 30% faster I/O)

USB Fastcharge

Vibration intensity control

F2FS support

Governors : alucard, conservative, ondemand, userspace, powerspace, interactive(default), performance, electron

I/O Schedulers : noop, deadline, cfq, maple, fiops, sio, bfq(default), zen

Westwood as default TCP congestion algrorithm

Requirements

Must be on Oreo/Pie based ROM (MIUI not supported, only Lineage and AOSP based ROMs supported as of now)

Must be on stock kernel of your ROM

A custom recovery (TWRP) should be installed

How to flash

Download the zip file of kernel from given below link

Boot your device into recovery mode

Select ElectraBlue-xx-xxxx-xx-mido.zip file

Flash the zip

Reboot

Enjoy!!

Downloads

ElectraBlue latest build

Credits

- @abhishek987

- @The_Flash

- @akhilnarang

- @flar2

- @MSF-Jarvis

- @frap129

- @franciscofranco

- @Adesh15 (For sending some useful pull requests)

- @krasCGQ

- Kernel Talk Telegram group

XDA:DevDB Information

ElectraBlue Kernel For Xiaomi Redmi Note 4 mido, Kernel for the Xiaomi Redmi Note 4

Contributors

LordArcadius

Source Code: https://github.com/LordArcadius/electrablue_mido

Kernel Special Features:

Version Information

Status: Stable

Current Stable Version: 21.0

Stable Release Date: 2019-07-06

Created 2017-08-13

Last Updated 2019-07-06
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] LordArcadius:
Important Information

Getting Fruitloops(bootloop)? Bugs? Or any other issue? Then post here with logs! cause LOGS or GTFO.

Do read the OP before posting any question or any issue.

Do not ask same question again

Every included feature of this kernel will be given in the features section or in changelogs. Do not ask whether this kernel have this and that feature.

If you do not read OP or ask same question again then you'll be ignored.

For further discussions join our Telegram group:- http://t.me/eb_kernel

Happy Flashing!
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] exodius48:
Download link does not work
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] LordArcadius:
Link updated! Check now ?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] exodius48:
OK,now working. :good:

Btw, how to use F2FS with your kernel? :confused:
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] LordArcadius:
As usual! You just have to be on latest twrp. Flash my kernel then format your data and cache partition into f2fs format. For further information you should check YouTube videos.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] exodius48:
If I already on f2fs filesystem, then want to update my current ROM, do I need clean install the ROM or just dirty flash ROM as usual?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] PriPhaze:
You can just reflash boot.img of your current rom if you was using another custom kernel, then intsall this kernel and good to go. There's no need to dirty flash the whole ROM.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] exodius48:
Please read carefully my post!

I already installed this kernel with f2fs filesystem.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] rahulk096:
Will try... thanks
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Bluehacks:
Does it have kcal support??
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Nais Job sir, added to index!
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] acat550:
Can't wait to try! Thanks for your effort for the kernel!!!!
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] ayush.gl:
Usb fastcharging is there or not?!
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] LordArcadius:
You can do whatever you want mate. Basically every ROM for mido comes with the kernel that has f2fs support. It's upto you that you want to clean install your ROM or do a dirty flash. Flashing process won't be different for f2fs mate.

He's saying something else bro. He's already on f2fs.

Great!

I will add KCAL in next build ?

Thanks Sir _/\_

?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] ashish kkr:
What benchmarks does this rom give on antutu
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Shubho20:
It's kernel sir, not rom.:silly:
[General Accessories] jordi.id96:
YEELIGHT TOOLBOX

Requirements

Developer mode / LAN control enabled for each device.

Computer and Yeelight devices connected to the same local network.

.NET Framework 4.5 or later.

SlimDX End User Runtime (.NET 4.0) https://slimdx.org/download.php

Supports Yeelight LED (Color), Yeelight LED (White), Yeelight Lightstrip (Color), Yeelight Ceiling Light and Yeelight Bedside Lamp.

Downloads

Windows: https://drive.google.com/open?id=1uIRyFDb90kFlALWi6HIMVYjKCdDvgKGy
[General Accessories] jordi.id96:
CHANGELOG

https://drive.google.com/open?id=1y1G695C1ErY0AD8dOwrLQvG-Y1ZU2Nllp7IMnrSBN00

PRODUCT PAGE

https://thirdparty.yeelight.com/topics/236/yeelight-toolbox
[General Accessories] jordi.id96:
Other posts

forum.yeelight.com

en.miui.com

htcmania.com

Other apps

Yeelight Music

https://play.google.com/store/apps/details?id=com.jordigordillo.yeelightmusic

https://thirdparty.yeelight.com/topics/239/music-mode-for-yeelight

Feedback

https://t.me/joinchat/ACE0Dg-Txw-m7gVSCPfx3Q
[General Accessories] jordi.id96:
New version including movie mode: it detects the screen most common color and applies it to the selected device.

During this mode you can still control the brightness and minimize the program to tray, etc.

Feel free to make suggestions and bug reports.
[General Accessories] SelfTruck:
This looks really promising, I'm thinking about buying a yeelight strip for my desk.

Could you show some of the features in a video or something? I'm really interestend in the movie mode and how it holds up during general pc usage and gaming.

Also, are you planning on going open source with this any time soon?
[General Accessories] jordi.id96:
Updated to version 1.1.3.

Movie mode now works also with the white bulb, adjusting its brightness.

Performance and response times have been improved too. I've reduced flickering issues.
[General Accessories] jordi.id96:
Thank you!

I plan to add some screenshots and update the post when I have some time.

The movie mode works really well even in fullscreen games, the effect it creates in the room is pretty cool. During general usage I didn't notice any slowdowns. It could impact your framerate in games though, that depends on your pc hardware.

As for going open source, not for now. I might make a library though. Anyways, the Yeelight API is open.
[General Accessories] thetool:
On my Windows 7 PC, nothing happens when opening the file :/

.net v4.7 installed
[General Accessories] OldMighty:
my virus scanner is reporting a trojan in the .exe file on google drive. can someone confirm that its the case or a false positive?

virustotal#dot#com/de/file/d51723a0c893662dbb742a101abeb7b116d314783476f56e4a7d69b7869a0035/analysis/1507371349/
[General Accessories] jordi.id96:
Working on it. Happens to some people.
[General Accessories] jordi.id96:
I included the SlimDX dll so it could trigger your antivirus. The dll is open source and completely safe.
[General Accessories] jordi.id96:
Updated the app. Please tell me how many bulbs you have when testing the app.
[General Accessories] lurebat:
I have one bulb and I don't see it.

Please add the option of manually enterin gthe ip.
[General Accessories] kent193:
Hi,

I have 2 bulb, but i don't see it.

I have autorised the application in my windows firewall and bulbs are in same networks.

(Windows 10, bulb 1.4.1_57)
[General Accessories] jordi.id96:
I updated the app to 1.1.6.

I might have found the cause for the bulb scanning issues.

Please test it and leave your feedback.

Thanks!
[General Accessories] xnstad:
Just found this thread by googling, gave the last build a test and the program can't find mine either.

I have one of those fancy Xiaomi desk lamps and two yeelight color bulbs.

Yeelight bulbs are connected by WPA (tkip) and computer is connected directly to router by cable.

I can see the bulbs with IP scanners.

---------- Post added at 03:17 AM ---------- Previous post was at 03:05 AM ----------

Actually, I just didn't know you specifically have to enable "LAN Control" for each bulb in the Yeelight app on your phone.

In the new redesigned app, under "My devices", press the bulb and in the bottom right corner, tap the little arrow pointing upwards to open the expanded settings menu.

At the bottom in the expanded settings menu you should see a little lightning bolt that says "LAN Control".

Press this option and turn it on.

Repeat this for all devices you want shown in Jordi's app.

Worked for me!

---------- Post added at 03:33 AM ---------- Previous post was at 03:17 AM ----------

One more thing.

Initially, tweaking any of the parameters just made one of my bulbs turn itself off.

It was pretty weird because they both had the same firmware version, one worked and one didn't.

If you have this issue, update the firmware of the bulbs to the latest version from the Yeelight app.

Going from _52 to _56 had them both working flawlessly for me.
[General Accessories] jordi.id96:
Yes, you need to enable developer mode (now called LAN mode) for each device. Glad it ended up working!

---------- Post added at 03:33 AM ---------- Previous post was at 03:17 AM ----------

That is really weird. Never happened to me in any firmware version. Even weirder that only happened to one bulb.

Anyway, thanks for the tip and for your feedback!
[General Accessories] jordi.id96:
Published 1.1.7. Now it should work flawlessly even if your computer has multiple virtual network adapters. Please, provide feedback, thanks!
[General Accessories] cultinium:
Good work.

The app see my 4 light bulbs and my light stripe.

I can change the brightness and the color for my 5 devices, it works fine !

But when i try to use Movie mod nothing happen, and if i try to quit this movie mod the app freez. (SlimDX is installed)

If you have any idea !

Thank you.
[General Accessories] odie_schnitzel:
I get this error when I start it:
[General Accessories] Kubsonn:
Hi guys, I have problem with my bulb v2 color, Bulb can be visible only after turning it off and on for about 3 minutes, and it disappears - refreshing doesn't help. I tried on all versions of toolbox, do you have any idea how to fix this ?
[General Accessories] RocketFox:
Documentation? Specifically, for movie mode

Hi Jordi,

First off, thanks for the amazing app with Yeelight Toolbox. Really digging the additional control that I have over the lightstrip lining the back of my desk.

I've been fiddling with movie mode and was unclear on what some of the settings do. I searched this thread and the one on the yeelight forums, but couldn't come up with any real answers. Most of the settings are easy enough to understand just based on name (auto-brightness, average/dominant, refresh rate, etc).

The two that I could use clarification on are the Screen Color Picker/Zoom and the Screen Scanning value. What exactly are these defining?

If I understand correctly, I don't need to use the Screen Color Picker/Zoom for movie mode...seems like it's more for pulling a color from a static image. Is this accurate?

The screen scanning...well that I just don't get. Is it setting a percentage of the screen to scan for color? If so, from the center? Top right? Am I just way off and it's something else entirely?

Thanks for any insight you can give me!
[General Accessories] jordi.id96:
As you guessed, the screen color picker it's for static images. The zoom slider lets you be more precise when picking a color.

In simple terms, the more you decrease the screen scanning percentage, the more pixels will be skipped. Think of it as if your screen was compressed to a lower resolution, so less processing power is required to extract the average/dominant color, while losing accuracy.

Edit to clarify: it doesn't mean that just a portion of the screen will be scanned, let's say only tge top left, or just the center. All the screen area will be scanned, just less precisely
[General Accessories] patateitor:
Hi, I had to re-install my yeelight bulb again and now in the toolbox I see both the previous name and the new one. Obvously I can control my bulb only with the new name. How do I delete the old one? Why does it still show up?

Thank you very much.
[General Accessories] Its7up:
Quoting Jordi: "Look for the yeelight toolbox folder under %localappdata%\JGR and open the file user.config. Delete the devices there"
[General Accessories] Tux111:
[MENTION=5810398]jordi.id96[/MENTION] There will be other releases in the future? something to reduce the cpu usage? Thanks!
[General Accessories] Seb0une3:
Abouu devices

Hey, i don't know where to ask it but i added a device but with an error with my Address, so where and/or how can i delete it ?

Thanks you
[General Accessories] SonicGold:
Hey [MENTION=5810398]jordi.id96[/MENTION], thanks so much for your work :)

Do you plan to release the source code of your tool at some point ?

Maybe the community can work together on it ? I'd be interested into that ;)

Thanks again !
[General Accessories] dalanik:
Hello,

I have been using this app for some time now and it worked fine. but since a week ago, it started freezing. When I click to turn on or off the bulb, it does so, and then the program stops responding and I have to terminate it and run again, and then it does the same. Has anyone else experienced such behaviour?
[General Accessories] galaxys:
I've noticed some freezing as well, but still watching to narrow it down...
[General Accessories] ZZAAL:
Hi!

Can you tell me how to make the media mode turn on only on one of several devices when the application is autoloaded?
[General Accessories] saturn3000:
How do I delete a bulb device from the device list? Thank you
[General Accessories] kent193:
Hello,

I have 2 bulb and i see them. It's ok now. Thanks !

Is it possible to add the status of the bulb (on/off) somewhere ?

Regards

Quentin
[General Accessories] jordi.id96:
In the next update I plan to replace the "toggle on/off" button with a proper on/off switch that displays the current status.
[General Accessories] MadMarc1991:
Works fine here :) great job, looking forward for future updates.

Only con with the movie mode, it seems to be flickering alot when switching colors... looks like it needs a more smooth transition between brightness and color changes.
[General Accessories] jordi.id96:
Thanks!

I'm working on a pretty big update, but I'm so busy right now that I don't know when it will be ready.

Also, I keep tweaking movie mode, it's pretty hard to eliminate flickering, I'm trying to minimize it as much as I can.
[General Accessories] -Mr.freeze-:
[MENTION=5810398]jordi.id96[/MENTION], please add inability to run the program again if it's running

P.s. I can help add a translation. For example, Russian, Polish

It would be nice to change icon of the program
[General Accessories] jordi.id96:
I'll take a look into both things

The current one is just temporary, don't worry, it will be replaced with a nice one
[General Accessories] Kooneybert:
Hi,

I was looking for some cool software for the yeelight, so I came across your project :good: I wrote a little python script with the same purpose as your movie mode a few months ago but it had some little issues. Your implementation of the movie mode seems to be much better (from a technical point of view), but at the moment, I still prefer my own code over yours. The reason: your movie mode applies the new color almost instantly, which creates some serious flickering of colors all the time, which i find really annoying. So here is my suggestion:

Please implement an option for smoothening the movie mode. For example: take the current average screen color and add it to the current bulb color - but without completely overwriting it. Using RGB-components, this could look like this:

r = (r*smoothness + r_new)/(smoothness+1)
g = (g*smoothness + g_new)/(smoothness+1)
b = (b*smoothness + b_new)/(smoothness+1)

My implementation uses this kind of smoothing and for me, this is much nicer. The light can still change fast enough to have a nice effect but it's not annoying anymore.

Something else: the usage of this gray dragging box is...well...ehm...an option to zoom out would be very helpful.

Also, I want to share an issue I experienced: the program (v1.1.7) couldn't find my bulb (Yeelight Color), either, although firmware was up to date and Lan mode was enabled. The solution was to turn off hamachi (a VPN-client) and after a restart, my bulb was found.

I can offer a german translation :)

Greets,

Kooneybert
[General Accessories] TechManiac89:
Thanks for your work. A Default button can be nice also.
[General Accessories] jordi.id96:
Thanks a lot for your feedback!

I'm aware that the bulb flickers a lot in move mode, I am constantly tweaking it but it has been hard for me to find a balance between flickering and respone time. I''l try your approach and I'll let you know. Thanks!

Yeah... I implemented that because I found it online and seemed cool. It is not very convinient though. I want to include a better screen color picker.

Bulb dicovery problems are related to virtual network adapters. I fixed most of the problems with virtualbox and windows virtual adapters, but as you say, there are still other programs I'll have to take care of. I hope the next version I'm woking on can fix those problems once and for all. I've done a lot of testing and looks promising.

As always, I need your feedback, it is very appreciated.
[General Accessories] jordi.id96:
Can you explain that a bit more? If you mean setting the default state of the bulb, there's a "Save in device" button that does exactly this.
[General Accessories] TechManiac89:
Actually, return to the Default (e.x. 4000K).
[General Accessories] jordi.id96:
I've just tried your approach and I can still notice flickering. I will continue working on it but, for now, I'll sacrifice response time so flickering is reduced significantly.
[General Accessories] Kooneybert:
Can I take a look at your code and try to play around with the movie mode, too?
[General Accessories] peter9991:
This is great. Sadly the app just crashes when i try to start movie mode. Well, if i start movie mode then i can still change brightness (if auto brightness is off) (first change is delayed for about 10 seconds, the ones after that are immediate) , but as soon as i press "stop" or "Toggle on/off" the whole app freezes so that i have to close through task manager. Color Changing manually works.

I installed both SlimDX Versions. I have one Color LED connected and tried running as admin. Firmware Version 57 for the LED.
[General Accessories] Silver Wx:
[MENTION=7085952]Kooneybert[/MENTION] Can you give me your code for a try ?

Thanks !
[General Accessories] gidi:
Same here.

I have tried the app on two different setups (PC, Win10, Ethernet & PC VM, Win7, WiFi) with the same results. App works fine, I can see, turn on/off, change colour on my bulb and lightstrip.

When I enable movie mode though the app freezes and is unresponsive. I have to kill it via task manager. Of course movie mode (which is what I mostly want) does not work.

Can someone please help?

Thank you very much.
[General Accessories] peter9991:
Interesting, for me it actually works on a different W10 PC, which is connected through wifi, but not on my W10 PC which is connected through ethernet. Although my guess is that it is not a network issue but a software compatibility issue.
[General Accessories] gidi:
Can [MENTION=5810398]jordi.id96[/MENTION] help us out with this one? I would really love to be able to use movie mode.

---------- Post added at 07:20 PM ---------- Previous post was at 07:20 PM ----------

Can [MENTION=5810398]jordi.id96[/MENTION] help us out with this one? I would really love to be able to use movie mode.
[General Accessories] jordi.id96:
The app should work through ethernet aswell. For the next release I've improved the networking part and should fix most of the issues. About movie mode, I think I found the cause and fixed it too. Next version will go live soon
[General Accessories] gidi:
Patiently waiting for the new version. Thanks a lot!
[General Accessories] Kooneybert:
Sure, here you are.

import numpy as np
from PIL import ImageGrab
import time
from yeelight import *

#setting up bulb
print("Turning bulb on")

bulb = Bulb("192.168.0.213")
bulb.turn_on()
bulb.start_music()
#/setting up bulb

def getAverageColorOfScreen():
screenShot = ImageGrab.grab()
averageColorPerRow = np.average(screenShot, axis=0)
averageColor = np.uint8(np.average(averageColorPerRow, axis=0))
return averageColor

averageColor = [255,255,50]
duration = 10 #duration of calculating the average over time. 10 = 1 second. Default: 10
refreshRate = 5 #10 = 1 second. Default: 5
tick = 0

while 1 == 1:
try:
currentColor = getAverageColorOfScreen()
except:
print("Screen grabbing failed!")
averageColor[0] = (averageColor[0]*duration + currentColor[0])/(duration+1)
averageColor[1] = (averageColor[1]*duration + currentColor[1])/(duration+1)
averageColor[2] = (averageColor[2]*duration + currentColor[2])/(duration+1)

tick += 1

if tick == refreshRate:
bright = int(100*((averageColor[0] + averageColor[1] + averageColor[2])/(255.0*3)) + 1)
print("Set bulb to: ", averageColor)
print("Brightness:", bright)
tick = 0

#set bulb color
if averageColor[0] + averageColor[1] + averageColor[2] == 0:
averageColor[2] = 1

transitions = [
RGBTransition(averageColor[0], averageColor[1], averageColor[2], duration=refreshRate*300, brightness=bright)
]

flow = Flow(
count=0,
transitions=transitions,
action=Flow.actions.stay
)

try:
bulb.start_flow(flow)
except BulbException:
print("BulbException! Too many commands sent, most likely")

time.sleep(0.1)

Note: the IP of my bulb is hardcoded since I was too lazy to add an automatic detection. Just change it to your bulb's IP. Also you have to import some stuff. I am not sure if I was allowed to upload my whole python portable folder with all the libs included. Can somebody tell?

Btw: [MENTION=5810398]jordi.id96[/MENTION] since you are active on github, why isn't the Yeelight Toolbox on github?
[General Accessories] jordi.id96:
Version 1.2.0 published. Includes fixes, some features requested by users and a lot of under the hood improvements.

As always, feedback is much appreciated!

Check the changelog here