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

support for led notifications

Scheduled Pinned Locked Moved OS
36 Posts 9 Posters 6.8k Views 3 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.
    • W Offline
      wdehoog @matteo
      last edited by 12 Jan 2020, 20:49

      @matteo if the led support is build as a module then this module can be copied to the rootfs. If not I guess you can test a new kernel with fastboot boot which boots the kernel without installing it first.

      1 Reply Last reply Reply Quote 1
      • F Offline
        flohack
        last edited by 13 Jan 2020, 12:49

        You do miss a point here: Channel 0 in this definition would then be used by red and white. So to me that sounds as if there is no RGB led installed, but just a white one. You will probably gain nothing from this experiment, maybe even damage your hardware. I would be very careful, this code was commented for a reason (and reminds me of deleting unused code, never leave commented code like this in a production driver.)

        My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

        A 1 Reply Last reply 13 Jan 2020, 13:02 Reply Quote 0
        • A Offline
          AlainW94 @flohack
          last edited by AlainW94 13 Jan 2020, 13:02

          @Flohack they are in fact 4 leds on the meizu pro 5 hardware, RGB and White. We can see the colors when the phone is running Flyme. I dont know the reason Why they only activate the white one but in hardware point of view, from the lp5562 datasheet we can see that it is able to drive 4 Leds, so I'm not sure that we can damage anythings on the phone by trying to activate other channels registers.

          If you don't feel it, I can try it as I have 5 Pro5 and one of the isn't usable as phone because the IMEI are missing.

          but you will have to wait as I don't have so many time to do that for now.

          Meizu Pro 5, Meizu Pro 5, Meizu Pro 5, Meizu Pro 5 (Yes I have 4 of them)
          Never forget that they are much more ideas inside two heads than in one...

          A 1 Reply Last reply 13 Jan 2020, 22:29 Reply Quote 1
          • F Offline
            flohack
            last edited by 13 Jan 2020, 13:05

            Ok in this case I still dont get the same channel number 0 for red and white?

            My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

            A 1 Reply Last reply 13 Jan 2020, 13:09 Reply Quote 0
            • A Offline
              AlainW94 @flohack
              last edited by 13 Jan 2020, 13:09

              @Flohack in my opionion, normally not, it must be a channel per color. a Year ago I modifyed the file already in order to use the 3 other channels but I don't remember where I put this file ...

              Meizu Pro 5, Meizu Pro 5, Meizu Pro 5, Meizu Pro 5 (Yes I have 4 of them)
              Never forget that they are much more ideas inside two heads than in one...

              1 Reply Last reply Reply Quote 0
              • A Offline
                AlainW94 @AlainW94
                last edited by 13 Jan 2020, 22:29

                @Flohack @matteo Ok I have to correct what I say, you can forget the RGB on Meizu Pro 5, I unmounted one, and there is only a single white LED, no RGB LED on the PCB. I then powered up my Pro5 running Flyme and try to send it different notification (low batt, charging, sms messaging, missed call), all the time the notification was white, the only difference between sms and call is the led pattern. When a sms arrive, the LED is breathing like actually on ubport, when a call is missed, the led blink once quickly, then once quickly with a breath effect.
                They are no LED indications on low battery or charging on Flyme.

                There is no way of getting RGB colors on Meizu Pro 5.

                We can only play with pattern.
                That's why the driver was commented and the white LED was connected on the Red channel from the LD5562 chip.

                ☹

                Meizu Pro 5, Meizu Pro 5, Meizu Pro 5, Meizu Pro 5 (Yes I have 4 of them)
                Never forget that they are much more ideas inside two heads than in one...

                F M 2 Replies Last reply 13 Jan 2020, 22:30 Reply Quote 1
                • F Offline
                  flohack @AlainW94
                  last edited by 13 Jan 2020, 22:30

                  @AlainW94 I assumed this sorry to say πŸ˜‰

                  My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

                  A 1 Reply Last reply 13 Jan 2020, 22:44 Reply Quote 0
                  • A Offline
                    AlainW94 @flohack
                    last edited by 13 Jan 2020, 22:44

                    @Flohack Yes no problem... I'm too much utopian...
                    BUT I noticed a hudge difference between Pro 5 on flyme and Pro5 on Ubports regarding the flash LED back to the phone for the camera, on the Ubport, when you would like to use it as a torch, both LED are on (the white and amber) which give a kind of warm white not really nice for pictures at low light. On Flyme, only the white LED of the flash is on, which give a nice cold white.

                    How can we handle this on ubports ?

                    Meizu Pro 5, Meizu Pro 5, Meizu Pro 5, Meizu Pro 5 (Yes I have 4 of them)
                    Never forget that they are much more ideas inside two heads than in one...

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      matteo @AlainW94
                      last edited by matteo 14 Jan 2020, 12:43

                      @AlainW94 thank you Alain for your attempt anyways...now at least we know it isn't worth to bother anymore with such an issue.

                      A 1 Reply Last reply 14 Jan 2020, 16:12 Reply Quote 0
                      • A Offline
                        AlainW94 @matteo
                        last edited by 14 Jan 2020, 16:12

                        @matteo Yes true, even if I was hoping that it was an issue ! πŸ˜‰

                        Meizu Pro 5, Meizu Pro 5, Meizu Pro 5, Meizu Pro 5 (Yes I have 4 of them)
                        Never forget that they are much more ideas inside two heads than in one...

                        1 Reply Last reply Reply Quote 0
                        • A Offline
                          arudy
                          last edited by 21 Feb 2020, 19:26

                          Hi,

                          I have submited a bug report on that topics:

                          https://github.com/ubports/ubuntu-touch/issues/1377

                          the point is: user is mislead with LED messaging notification and LED plugged notification being the same. If can't find a way to make them different, it's clearer to disable the plugged LED notification so user dont think there is a message every time on the phone and switch on screen every times πŸ™‚

                          -t

                          W 1 Reply Last reply 22 Feb 2020, 08:41 Reply Quote 0
                          • W Offline
                            wdehoog @arudy
                            last edited by wdehoog 22 Feb 2020, 08:41

                            The post at 13 Jan 2020, 23:29 suggests it is possibe to show different blink patterns (but ofcourse all white). It would be interesting to find out how to trigger these different modes.

                            As for disabling the charging- or message received indication what would be the best way? A menu in the system settings? A config file in phablets home dir?

                            The led notifications are guarded by a unity8. How can unity8 detect what phone/hardware it is running on?

                            -Edit-

                            I have been working on a way to disable showing charging state.
                            See https://github.com/ubports/unity8/pull/283

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