Navigation

    UBports Robot Logo

    UBports Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

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

    Support
    blue light red light
    9
    27
    3249
    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.
    • Opolork
      Opolork last edited by Opolork

      Hi.

      What method(s) are there to filter blue light in UT?

      Thanks.

      πŸ€”

      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

      advocatux 1 Reply Last reply Reply Quote 1
      • advocatux
        advocatux @Opolork last edited by

        @Opolork not much since this approach https://github.com/ubports/ubuntu-touch/issues/191

        Opolork 1 Reply Last reply Reply Quote 1
        • Opolork
          Opolork @advocatux last edited by Opolork

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

          @Opolork not much since this approach https://github.com/ubports/ubuntu-touch/issues/191

          So Night Mode is a proper replacement for a blue light filter?

          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

          advocatux 1 Reply Last reply Reply Quote 1
          • advocatux
            advocatux @Opolork last edited by

            @Opolork I don't know but probably @UniSuperBox can give you more details about that, and about the current technical challenges in UT to implement it

            Opolork 1 Reply Last reply Reply Quote 1
            • Opolork
              Opolork @advocatux last edited by

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

              @Opolork I don't know but probably @UniSuperBox can give you more details about that, and about the current technical challenges in UT to implement it

              Ok, thanks again. Maybe Dalton Durst will pop in to this thread sometime. πŸ€”

              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

              advocatux 1 Reply Last reply Reply Quote 0
              • advocatux
                advocatux @Opolork last edited by

                @Opolork yep, sure. He's pretty busy with other UT stuff but he usually makes some time to come to the Forum

                1 Reply Last reply Reply Quote 1
                • U
                  UniSuperBox last edited by

                  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?

                  alan_g 1 Reply Last reply Reply Quote 3
                  • G
                    Giiba last edited by

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

                    1 Reply Last reply Reply Quote 2
                    • arubislander
                      arubislander last edited by

                      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
                      BQ Aquaris M10 FHD (16.04 RC)
                      Google Pixel 3a (20.04 DEV)
                      JingPad (16.04 DEV)
                      Meizu Pro 5 (16.04 DEV)
                      PinePhone / PineTab UT CE (16.04 DEV)

                      1 Reply Last reply Reply Quote 3
                      • alan_g
                        alan_g @UniSuperBox last edited by

                        @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 Reply Quote 4
                        • ?
                          A Former User @alan_g last edited by

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

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

                          dobey 1 Reply Last reply Reply Quote 1
                          • dobey
                            dobey @Guest last edited by

                            @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
                            • Opolork
                              Opolork last edited by

                              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

                              alan_g 1 Reply Last reply Reply Quote 2
                              • alan_g
                                alan_g @Opolork last edited by

                                @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 alan_g 2 Replies Last reply Reply Quote 2
                                • Opolork
                                  Opolork last edited by Opolork

                                  Hi Alan. But blue light affects everyone's sleep. Sorry, but I don't think I want to go through all of that. πŸ™ˆ

                                  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

                                  alan_g ? 2 Replies Last reply Reply Quote 0
                                  • alan_g
                                    alan_g @Opolork last edited by

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

                                    1 Reply Last reply Reply Quote 0
                                    • J
                                      joe @alan_g last edited by

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

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

                                      alan_g 1 Reply Last reply Reply Quote 1
                                      • ?
                                        A Former User @Opolork last edited by

                                        @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.

                                        alan_g 1 Reply Last reply Reply Quote 1
                                        • alan_g
                                          alan_g @joe last edited by

                                          @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
                                          • alan_g
                                            alan_g @Guest last edited by

                                            @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 Reply Quote 0
                                            • First post
                                              Last post