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

Nexus 5 LED control via /sys?

Scheduled Pinned Locked Moved Support
5 Posts 4 Posters 1.3k 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.
    • V Offline
      vandys
      last edited by 16 Jun 2017, 20:35

      I'm not sure if this is a hardware problem with my own Nexus 5 or not. Can somebody with a shell (and root) on a Nexus 5 go to /sys/class/leds/blue and "echo 255 > brightness" and tell me if it makes your LED light up? The LED stays dark for me, although the white camera LED with similar manipulations lights right up.

      TIA!

      1 Reply Last reply Reply Quote 0
      • A Offline
        Asiek777
        last edited by 16 Jun 2017, 22:12

        It stays dark for me too. Nothing happened

        1 Reply Last reply Reply Quote 1
        • U Offline
          uzanto
          last edited by 18 Jun 2017, 08:49

          It works for me on BQ E4.5

          Do you have write permission on the disk?

          sudo mount /dev/loop0 / -o remount,rw

          1 Reply Last reply Reply Quote 0
          • F Offline
            flohack
            last edited by flohack 18 Jun 2017, 09:21

            Hi,

            no this is a bug, we track it here: https://github.com/ubports/ubports-touch/issues/48

            Commit will come with one of the next updates hopefully.

            BR

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

            1 Reply Last reply Reply Quote 0
            • V Offline
              vandys
              last edited by 18 Jun 2017, 17:23

              Thanks, but since I was root, the permission issue wasn't it.

              Turns out there's some notion of RGB lock in the LED driver for the Nexus 5. To make the LED's do things you have to bracket your changes with writing 0 to rgb_start, then make changes, then when you write 1 to rgb_start you'll see them. I now have a nice blinking red LED, which will be quite handy for visual indication of new notification!

              (Asiek777, thanks for verifying that it wasn't a hardware problem on my end.)

              1 Reply Last reply Reply Quote 0
              3 out of 5
              • First post
                3/5
                Last post