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.6k 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

      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

        It stays dark for me too. Nothing happened

        1 Reply Last reply Reply Quote 1
        • uzantoU Offline
          uzanto
          last edited by

          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
          • flohackF Offline
            flohack
            last edited by flohack

            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

              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

              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