• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
UBports Robot Logo UBports Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

What's the situation with blue light filtering on Ubuntu Touch?

Scheduled Pinned Locked Moved Support
blue lightred light
27 Posts 9 Posters 7.7k Views 5 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • U Offline
      UniSuperBox
      last edited by 24 Jun 2019, 23:27

      Gonna disappoint you here, I really don't know what's needed to do that. It's possible that color calibration is already built in to Mir (I'm sure it is), so that'd be the first lead to follow. @alan_g?

      A 1 Reply Last reply 25 Jun 2019, 08:40 Reply Quote 3
      • G Offline
        Giiba
        last edited by 25 Jun 2019, 03:08

        I know 18.04 offers it as a basic system setting so it can't be impossible.

        1 Reply Last reply Reply Quote 2
        • A Online
          arubislander
          last edited by 25 Jun 2019, 04:46

          No, adding a system setting is not impossible. The challenge is implementing this feature on the relevant software stack of the mobile devices, which is nothing like the software stack on the desktop. Which in turn is the reason that, unfortunately, the existence of an implementation on the desktop is irrelevant to the current issue.

          πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
          Happily running Ubuntu Touch
          Google Pixel 3a (20.04 DEV)
          JingPad (24.04 preview)
          Meizu Pro 5 (16.04 DEV)

          1 Reply Last reply Reply Quote 3
          • A Offline
            alan_g @UniSuperBox
            last edited by 25 Jun 2019, 08:40

            @UniSuperBox said in What's the situation with blue light filtering on Ubuntu Touch?:

            Gonna disappoint you here, I really don't know what's needed to do that. It's possible that color calibration is already built in to Mir (I'm sure it is), so that'd be the first lead to follow. @alan_g?

            Not a full answer, but essentially "blue light filtering" amounts to customising the gamma curves. Mir supports setting the gamma curves as part of the display configuration: this allows more general "display calibration" than "blue light" but is the way to do it.

            So far as I can recall this has not been used outside if the tests, and I can't say whether any of it works with your libhybris/android "platform".

            It would be an interesting "exercise for the reader" to try implementing "blue light filtering" in one of the Mir examples.

            ? 1 Reply Last reply 14 Jul 2019, 19:41 Reply Quote 4
            • ? Offline
              A Former User @alan_g
              last edited by 14 Jul 2019, 19:41

              I just saw this: http://jonls.dk/redshift/

              I don't know if it would be of any use...

              D 1 Reply Last reply 15 Jul 2019, 03:09 Reply Quote 1
              • D Offline
                dobey @Guest
                last edited by 15 Jul 2019, 03:09

                @3arn0wl said in What's the situation with blue light filtering on Ubuntu Touch?:

                I just saw this: http://jonls.dk/redshift/

                I don't know if it would be of any use...

                It doesn't support Mir/Wayland, and Mir/Wayland don't allow arbitrary apps access to the screen like that, so no, it's not really.

                This is something that really needs to get baked into the system.

                1 Reply Last reply Reply Quote 3
                • O Offline
                  Opolork
                  last edited by 15 Jul 2019, 14:05

                  I'd see a blue light filter function as a very high priority given how it's known to affect peoples sleep so badly.

                  How can you trust that an app really won't send some company your location data, when you tell it not to? The only way you can trust a program not to do something it isn't supposed to do is if it is free software. ~ RMS

                  A 1 Reply Last reply 15 Jul 2019, 16:08 Reply Quote 2
                  • A Offline
                    alan_g @Opolork
                    last edited by 15 Jul 2019, 16:08

                    @Opolork said in What's the situation with blue light filtering on Ubuntu Touch?:

                    I'd see a blue light filter function as a very high priority given how it's known to affect peoples sleep so badly.

                    Everyone is entitled to decide their own priorities. If this is "a very high priority" for you, the joy of open source is that you can do something about it. Here's a plan:

                    1. Check out the Mir code and get it building.
                    2. Find the mir_demo_server example and add a "blue light filtering" option by setting gamma ramp on the display configuration.
                    3. Try it out and confirm if it has the desired results.
                    4. Adapt this code to provide this "filtering" option via the MirAL interface.
                    5. Propose (and get accepted) this addition to the Mir project.
                    6. Check out the QtMir code and get it building.
                    7. Make use of the new MirAL option for "blue light filtering".
                    8. Propose (and get accepted) this addition to the QtMir project.

                    There are people willing to help with every step along the way.

                    Good luck!

                    J A 2 Replies Last reply 15 Jul 2019, 16:17 Reply Quote 2
                    • O Offline
                      Opolork
                      last edited by Opolork 15 Jul 2019, 16:10

                      Hi Alan. But blue light affects everyone's sleep. Sorry, but I don't think I want to go through all of that. :see-no-evil_monkey:

                      How can you trust that an app really won't send some company your location data, when you tell it not to? The only way you can trust a program not to do something it isn't supposed to do is if it is free software. ~ RMS

                      A ? 2 Replies Last reply 15 Jul 2019, 16:11 Reply Quote 0
                      • A Offline
                        alan_g @Opolork
                        last edited by 15 Jul 2019, 16:11

                        @Opolork if it isn't a priority for you, that's fine too. πŸ˜‰

                        1 Reply Last reply Reply Quote 0
                        • J Offline
                          joe @alan_g
                          last edited by 15 Jul 2019, 16:17

                          @alan_g Are there some suggested links to the Mir code etc?

                          Anyone know where to find these parts in the code?
                          Thanks

                          A 1 Reply Last reply 15 Jul 2019, 16:24 Reply Quote 1
                          • ? Offline
                            A Former User @Opolork
                            last edited by 15 Jul 2019, 16:20

                            @Opolork @alan_g

                            There was an email address at the bottom of the Redshift website, so I just pinged the developer and asked if he might consider contributing some expertise to Mir.

                            A 1 Reply Last reply 15 Jul 2019, 16:31 Reply Quote 1
                            • A Offline
                              alan_g @joe
                              last edited by 15 Jul 2019, 16:24

                              @joe said in What's the situation with blue light filtering on Ubuntu Touch?:

                              @alan_g Are there some suggested links to the Mir code etc?

                              For starters, there's a handy guide to step 1 here: https://mir-server.io/doc/getting_involved_in_mir.html

                              1 Reply Last reply Reply Quote 1
                              • A Offline
                                alan_g @Guest
                                last edited by 15 Jul 2019, 16:31

                                @3arn0wl said in What's the situation with blue light filtering on Ubuntu Touch?:

                                @Opolork @alan_g

                                There was an email address at the bottom of the Redshift website, so I just pinged the developer and asked if he might consider contributing some expertise to Mir.

                                As dobey said above, there's very little overlap. About the only thing in common is the choice of values for the gamma curves.

                                ? 1 Reply Last reply 15 Jul 2019, 16:47 Reply Quote 0
                                • ? Offline
                                  A Former User @alan_g
                                  last edited by 15 Jul 2019, 16:47

                                  Fair enough, @alan_g

                                  1 Reply Last reply Reply Quote 0
                                  • O Offline
                                    Opolork
                                    last edited by 16 Jul 2019, 08:45

                                    A workaround for now. I will not use the smartphone after 8:30pm to combat that pesky nighttime blue light. πŸ’‘ πŸ™‚

                                    How can you trust that an app really won't send some company your location data, when you tell it not to? The only way you can trust a program not to do something it isn't supposed to do is if it is free software. ~ RMS

                                    advocatuxA 1 Reply Last reply 16 Jul 2019, 09:36 Reply Quote 0
                                    • advocatuxA Offline
                                      advocatux @Opolork
                                      last edited by 16 Jul 2019, 09:36

                                      @Opolork in the meantime there's a proper solution, you could use a blue light filter screen protector on your device, or even use glasses with that kind of filter πŸ˜‰

                                      O 1 Reply Last reply 16 Jul 2019, 10:15 Reply Quote 2
                                      • O Offline
                                        Opolork @advocatux
                                        last edited by 16 Jul 2019, 10:15

                                        @advocatux said in What's the situation with blue light filtering on Ubuntu Touch?:

                                        @Opolork in the meantime there's a proper solution, you could use a blue light filter screen protector on your device, or even use glasses with that kind of filter πŸ˜‰

                                        Those are also valid workarounds. Although I think it's good to ditch the smartphone around 8:30pm anyway - to wind down for the night. I go to bed at 10:45pm. πŸ™‚

                                        How can you trust that an app really won't send some company your location data, when you tell it not to? The only way you can trust a program not to do something it isn't supposed to do is if it is free software. ~ RMS

                                        advocatuxA 1 Reply Last reply 16 Jul 2019, 10:28 Reply Quote 1
                                        • advocatuxA Offline
                                          advocatux @Opolork
                                          last edited by 16 Jul 2019, 10:28

                                          @Opolork wrong answer! You need to keep testing and improving UT until 4 a.m. at least πŸ˜†

                                          O 1 Reply Last reply 16 Jul 2019, 13:40 Reply Quote 0
                                          • A Offline
                                            alan_g @alan_g
                                            last edited by alan_g 16 Jul 2019, 10:54

                                            @alan_g said in What's the situation with blue light filtering on Ubuntu Touch?:

                                            Propose (and get accepted) this addition to the Mir project.

                                            I've added an issue to the Mir project. (But it won't be scheduled in the foreseeable future.)

                                            1 Reply Last reply Reply Quote 4
                                            • First post
                                              Last post