New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add blue light filter to tweaks #1134
Conversation
Converting to draft to add an "auto" feature or a "set time" feature for users with NTP support enabled... soon™ |
Add blue light submenu Add enable "now" menu item Rework strength/enabling etc Add schedule logic in tweaks Add checker to keymon in the 15 second loop Add guards into blue_light.sh Add locking mechanism incase script gets spammed (should never happen)
Can be called even when "off"
Same symptoms as killing /dev/l while game or other app running (graphical lockup) - It can be killed back in mainui if needed.
sorry to be a pain but just noticed that using it the "intended way" is not really working. At home. 23:00. Turned on blue filter, set the schedule that blue light filter will only apply between 22:00 and 08:00. Might be worth mentioning somewhere that the blue filter schedule will only work (apply the schedule) when the console is connected to the internet |
Hey, no need to apologise. Yes this is something that's out of my hands tbh but when I write the documentation I'll make sure to add this in. Thanks! |
no stress. that's what the beta tests are for :) |
I’m not sure if this is possible with how the blue light filter currently works, but by way of a feature request: any chance of a red-light only night mode? Like not just the extra-warm setting that is in the beta currently, but fully red-subpixels-only? I know it’ll make some games look seriously funky but I use this mode on my phone when I’ve got insomnia and I’m using it in pitch-black—it both avoids bothering my partner and also doesn’t trick my brain into waking up any more. would really help me out a lot! |
Hey hey. Yeah it would 100% be possible. Are you thinking of say, converting all 5 presets to varied stages of red, or just having one tuned preset that would help you and others be more comfortable late at night? If you message me on discord we can take a look at some colour values as they'd appear on the screen. |
Yeah, I think the other modes are great for other situations; I was just thinking of an additional red-only mode for playing in the pitch-black. thank you very much! I’ll try to send you a ping on discord |
Should be very easy to add if you just want a single red flavour yup. Sure np, catch up with you later then. |
Overview
Features
Adds
Menu item to Tweaks -> Appearance -> Blue light filter
cmdline control over BLF through tweaks but should be used with the
blue_light.sh
script rather than direct control.blue_light.sh accepts the following:
Usage: $0 {enable|disable|check}
script guards against running too often with:
/tmp/blue_light_script.lock
script will quickly complete depending on the action, will not enable BLF if it's already enabled, etc
Considerations
Options
Colour will gradually change, has 5 preset options: