1. Are you ready for the Galaxy S20? Here is everything we know so far!

LED notification with screen on

Discussion in 'Android Devices' started by tannere, Feb 17, 2011.

  1. tannere

    tannere Member
    Thread Starter

    Wondering if anyone knows a way to have the X's LED notification to work with the screen on. I have read really old threads on different sites about it, but no answers. People just asking why someone would want the LED to be on while the screen is on if the notifications show up in the notification bar.
    I use "One Nightstand" app as my bed side clock and alarm at night, so there is no notification bar while in that app. This is where i would like the LED to work while the screen is on. I won't have to exit out of the clock to randomly look if I have a message or anything.
    Also for the record, I tried the Battmon X app, went into the experimantal section and turned it all on as they suggested, but nothing

    1. Download the Forums for Android™ app!


  2. scary alien

    scary alien not really so scary
    VIP Member


    Just saw this thread... BattMonX (I am the author) will do this but requires that your phone be rooted. It does this by gaining write access to the notification LED's brightness files.

    The only way I could figure-out how to get the LED to light while the screen was on was by manipulating the contents of the brightness files. I am not aware of any other apps or methods for doing this with out having the phone rooted (believe me, I looked :p).

    Is your phone rooted?
  3. tannere

    tannere Member
    Thread Starter

    My phone is rooted. I saw it asked for permissions and it was allowed. I am not sure what I am doing wrong. Do I need to have specific settings in the app set? I disabled the led on when charging and discharging.
  4. scary alien

    scary alien not really so scary
    VIP Member

    Should be pretty straightforward:

    1. Launch BattMonX
    2. Hit menu button
    3. Select Preferences / Settings
    4. Select Experiemental Settings
    5. Make sure Experiement Features it checked
    6. Make sure LED is Always On is checked
    7. Return to main menu and start monitoring

    You can also test this via the "Fun Stuff" LED Color Tester while the above is enabled to see/watch the LED light-up while the screen is on.

    If you have still have problems, I can send or post instructions on how to capture the app's logcat debugging messages to see what it thinks is going on. I'd be happy to help you debug this :) (I don't want any unhappy customers ;)).

    Either reply here or send me an email at scary.alien@gmail.com

  5. tannere

    tannere Member
    Thread Starter

    Well I tried everything you said, and it still seems to not work. I am excited and determined to get this to work. So I will keep trying what you suggest. Let me know what I need to do to send the debug info

    I DO get the LED to come on when doing the Color Testing. Do I need to keep values in those fields or is it strictly to play around with and see the different colors?
  6. scary alien

    scary alien not really so scary
    VIP Member

    Well, if you have "LED is Always On" and your current charging state LED color is set to anything other than "Turn LED OFF" and you have started monitoring from the main / first screen, then you should be able to see the LED light-up.

    So, just to be clear, are you seeing the LED come on when the screen if OFF (or not at all)? If so, just make sure you've got monitoring started from the main screen.

    If you want to view the debugging information that the app produces:

    - download and install aLogcat (free in the Market)
    - start / launch aLogcat
    - press its menu button
    - select "Filter"
    - type in "battmonx" in the text entry field
    - make sure that the "Apply as regular expression?" box is checked
    - press Okay
    - press menu button again
    - select "More"
    - select "Preferences"
    - set the "Level?" to "Verbose"
    - set the "Format?" to "Time"
    - press the back button to return to the main screen (it will be filtering for any logcat messages from BattMonX now)

    Now, go ahead and launch BattMonX and go through some settings, etc. and make sure that you have pressed the "Start Monitoring Battery Status" button the main screen.

    After you've let it run for a few minutes, go ahead and re-launch aLogcat (either from the app drawer or by long-pressing the menu button and selecting from the recently used apps list). Let it finish say "Reading logs, please wait" and then:

    - press the menu button
    - press the Save button/icon (this will save a copy of the currently filtered BattMonX log messages to the /sdcard/alogcat folder)

    If you want to and are so inclined you can email me (scary.alien@gmail.com) the file that was save in the above directory. You can also use the menu's "Send" function to send me an email (just fill-in the email address and press the envelope icon at the top of the screen). This method does not seem to always send all of the contents of the filtered messages, so I usually use the Save function described about and send the saved file. Your choice.

    Note: the above process and my app does not record or save any personally identifiable information about you or your phone. If you are unsure, please examine the contents yourself before sending.

    I hope this helps. Please let me know if I can be of further help.

  7. tannere

    tannere Member
    Thread Starter

    Well I can get the LED to come on for the battery monitoring part. (solid or blinking) If I have the experimental checked and LED always on, then yes, the LED always stays on. What I want though, is for it to blink green when I get a text, just as it does when I have the screen off. Should I still do the debugging for you
  8. scary alien

    scary alien not really so scary
    VIP Member

    Well, that's good, it sounds like the app is working just fine for you then.

    The app will "step aside" when an SMS notification comes in. Now, how it shows this depends on if you are rooted and using the always-on feature or not. If you are using always-on, then the app will stop monitoring for one polling interval/cycle and then will resume. So, an SMS text notification might briefly show-up and flash green, but then BattMonX will then override the green color with whatever color you've selected for the current battery state.

    If you are not rooted, then the app will step aside and the LED notification will blink green and stay that way until you've cleared the notification or read your SMS text.

    I don't currently have the app monitoring for any other system broadcast events other than the SMS text notifications. I've had requests to make it aware of other things like Gmail and Twitter and such and these are on my list of things to do.

    You should also be aware that the LED always-on feature cannot currently do the blinking behavior. I haven't implemented this yet since it would mean making the app more CPU bound than I believe is prudent (or at least until I've had a chance to test and evaluate its impact).

    By the way, I've got a new version (2.0) waiting in the wings that I've been testing for a few weeks. Its got a few new features that you might enjoy too:

    - ability to have the LED indicate a different color for the battery % used instead of the charging state (i.e., green for 90%, yellow for 50%, red for 30%, etc.); selectable in 10% increments

    - preset color buttons in the LED color tester

    - some other goodies

    Hope you enjoy the app. Let me know if you have any other questions.


Motorola Droid X Forum

The Motorola Droid X release date was July 2010. Features and Specs include a 4.3" inch screen, 8MP camera, 512GB RAM, TI OMAP3630 processor, and 1540mAh battery.

July 2010
Release Date

Share This Page