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

    Brigthness sensor override possible?

    Scheduled Pinned Locked Moved Fairphone 3
    8 Posts 3 Posters 1.3k Views 1 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.
    • H Offline
      Homer3
      last edited by

      Hello,
      I have an issue with screen flickering after ending calls on the fairphone 3. Is it possible to override sensor values under certain conditions e.g. Via script?
      It might help with this issue.
      Thanks.

      LuksusL 1 Reply Last reply Reply Quote 0
      • LuksusL Offline
        Luksus @Homer3
        last edited by

        @Homer3
        The issue is only present when auto brightness is active.

        So, maybe it is possible to create a script (as service) which turns auto brightness off during a call and turn it on when the call is finished...

        Never thought about this possibility.
        But maybe I or someone else can create one and I could integrate it in the port.

        Devices: BQ e4.5, Fairphone 2, Fairphone 3, Lenovo X605F, Pinephone, Moto Z2 Force, OnePlus5T

        H Br1B 4 Replies Last reply Reply Quote 1
        • H Offline
          Homer3 @Luksus
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • H Offline
            Homer3 @Luksus
            last edited by

            This post is deleted!
            LuksusL 1 Reply Last reply Reply Quote 0
            • LuksusL Offline
              Luksus @Homer3
              last edited by Luksus

              @Homer3 we already have a systemd service, which reactivates the microphone for other apps, after a call. Its located in /usr/lib/systemd which calls the check-microphone script in /usr/libexec.

              I could imagine something similar for the autobrightness issue.

              Devices: BQ e4.5, Fairphone 2, Fairphone 3, Lenovo X605F, Pinephone, Moto Z2 Force, OnePlus5T

              1 Reply Last reply Reply Quote 0
              • H Offline
                Homer3 @Luksus
                last edited by Homer3

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • Br1B Offline
                  Br1 @Luksus
                  last edited by

                  @Luksus said in Brigthness sensor override possible?:

                  So, maybe it is possible to create a script (as service) which turns auto brightness off during a call and turn it on when the call is finished

                  Don't know if that's useful ... I ran some tests with dbus-monitor,
                  disable auto brightness :

                  dbus-send --system --print-reply --type=method_call --dest=com.canonical.Unity.Screen /com/canonical/Unity/Screen com.canonical.Unity.Screen.userAutobrightnessEnable boolean:false
                  

                  enable auto brightness :

                  dbus-send --system --print-reply --type=method_call --dest=com.canonical.Unity.Screen /com/canonical/Unity/Screen com.canonical.Unity.Screen.userAutobrightnessEnable boolean:true
                  

                  wait for timeout end, works.

                  ^

                  • Google Pixel 3a XL
                  • Xiaomi MI A2
                  LuksusL 1 Reply Last reply Reply Quote 0
                  • LuksusL Offline
                    Luksus @Br1
                    last edited by

                    @Br1 oh nice, I will try to make something out of it.

                    Devices: BQ e4.5, Fairphone 2, Fairphone 3, Lenovo X605F, Pinephone, Moto Z2 Force, OnePlus5T

                    1 Reply Last reply Reply Quote 0

                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                    With your input, this post could be even better 💗

                    Register Login
                    • First post
                      Last post