{Guide} Fix yellowish display aka night-light [rootless and magisk] \(◎o◎)/

jigs4wkiller

Senior Member
Mar 6, 2016
1,350
987
123
23
Stuttgart
steamcommunity.com
~Fix nightlight in MIUI~


For what is it?

Sometimes it happens that the Google setup activates the "classic" Nightlight mode from AOSP.
This one doesn't work like MIUI handles this feature.
This means that deactivation via the settings is not possible and your display will get every day to same time yellowish.


Will I have to do this after every new installation?

No, when you use the backup function from Google it will sync this settings and bug is fixed until you restore a old google backup or one from a other phone.



Post 2:

Rootless guide via PC (Mac/Windows/Linux/Other Phone with adb binary)


Post 3:

Root guide via termux (or any other terminal emulator)
 
Last edited:
  • Like
Reactions: Pisanoid

jigs4wkiller

Senior Member
Mar 6, 2016
1,350
987
123
23
Stuttgart
steamcommunity.com
•rootless•

For PC: *

Open either powershell or cmd or terminal, this depends on your installed system and run one after the other the following commands:


adb shell settings put secure night_display_activated 0

adb shell settings put secure night_display_auto_mode 0


\_That's all!_/



This star is talking to you


*
You have to install adb binarys for your system before you can run this command.

Installation guide: https://wiki.lineageos.org/adb_fastboot_guide.html#installing-adb-and-fastboot
 
Last edited:
  • Like
Reactions: Pisanoid

jigs4wkiller

Senior Member
Mar 6, 2016
1,350
987
123
23
Stuttgart
steamcommunity.com
•rooted•

For termux**:

Open termux and run one after the other the following commands:

su

env -i USER=shell "$(PATH=/system/xbin:/system/bin:/su/bin:/sbin:/magisk/.core/bin which su)" shell --context u:r:shell:s0 --shell /system/bin/sh --command settings put secure night_display_activated 0

env -i USER=shell "$(PATH=/system/xbin:/system/bin:/su/bin:/sbin:/magisk/.core/bin which su)" shell --context u:r:shell:s0 --shell /system/bin/sh --command settings put secure night_display_auto_mode 0


\_That's all!_/



This stars are talking to you


**
You need a magisk rooted device and termux

Download: https://play.google.com/store/apps/details?id=com.termux