Blue light filter (f.lux, redshift, night mode)


#1

I’d like to request a feature in OSMC that reduces the amount of blue light used in the picture to reduce the sleep quality disturbance of screen time at night. This would function similar to f.lux, redshift, or night mode on other apps.


#2

Unfortunately it’s hard to provide any detail about this because you haven’t told us which device you’re using.

This is a platform specific request however, so it’s unlikely to be part of OSMC any time soon. The best bet would be to request this in Kodi.

Sam


#3

I’m using a Raspberry Pi 3.

Funny you suggest requesting it in Kodi. Someone posted a request to the Kodi forums and was told that this is better suited as an OS feature. This is why I am here requesting it for OSMC. I would have used the f.lux or redshift packages, but these require features that OSMC doesn’t have (X11 I think?).


#4

OSMC uses GLES for Pi.
dispmanx is the windowing server on Pi and you have OMX / MMAL for decode.

It can definitely be done but it would be platform specific.

See Redlight or f.lux?


#5

I saw that thread. It was also part of my motivation for posting under Feature Requests. If it is platform specific, then are you saying it is not possible or worthwhile as a feature?

At risk of derailing, do you have any platform-specific advice? I have been unable to find any way to filter blue light on OSMC. If I had been running Raspbian it seems I’d be able to use f.lux or redshift. I’m not linux savvy enough to figure out a GLES workaround.


#6

Raspbian’s Kodi still uses GLES, so it wouldn’t be possible.
X11 is running but Kodi does not utilise it. If it did, performance would be lacklustre.

I must admit I’m not sure how I would implement this myself at this time. Would you need the video to also use this filter, or would the GUI suffice?

Sam


#7

Ah, forgive my ignorance. Video would be more useful than GUI as video represents the majority of screen time. Let me know if you can figure anything out. I think many people would be happy to have this feature / capability.


#8

With video it’s probably achievable with post processing; but this would be platform specific so possibly hard to achieve.


#9

Just wondering: Would most people really want to alter the video signal to loose most of the blue? This would seriously alter video image quality which most here are probably worried about. :thinking:
Just imagine a movie which is graded mostly with blue color tones… It would look kind of s**t with such a filter. At least that’s my opinion :man_shrugging:t2:


#10

I can’t say “most people” would want this. Only people who want to get a good night’s sleep if they regularly watch TV around bed time. I’m not suggesting this as a default, only an option.

In its defense and in response to your point about color quality, most people aren’t purists about video color tones, and I think you’d be surprised at how easy it is to forget there is a video filter on at all. It is even less noticeable when using apps like f.lux that ease the color filter in and out.

The purpose of the blue light filter is to reduce the disruptive effects that blue light has on sleep quality, particularly blue light exposure at night time or bed time. “Night mode” is increasingly becoming a standard feature in many screen-based devices and operating systems (Android, iOS, Kindle), and I think that speaks to its popularity and user interest (not to mention user expectation).

An ideal implementation of this feature, and something that has been part of most “night modes” that I’ve seen, would include a scheduling option to turn the color filter on and off at specific times of the day (i.e., night time), with the on and off “easing in” and “easing out” to make the shift less abrupt.