yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] JNavas2:
Sleep bugs

The widget does display status, but the widget is not visible when the screen is locked. When the screen is locked and black, there's no way to tell whether (a) there are no indications or (b) NoLED is turned OFF even though not in the Sleep period.

I first noticed this issue because I knew Sleep time was over but the display was still black even though NoLED should have been showing at least battery charging percentage. I thought at first the charger might not be working, which concerned me, so I investigated the problem, and discovered that NoLED would not always conform to Sleep settings.

Sleep does "work" in

some cases

. The problem, as I've explained, is that it

does not work properly

in

all cases

-- there are failure modes in both OFF and ON states. Your example is a best case that does not exhibit such a failure, but other cases

do

exhibit failures, ON when it should be OFF, and (worse) OFF when it should be ON. Does that make the issue more clear?
[Android Apps and Games] madmack:
John, if we agree on a bug, then we can fix it. but mandating fixes for unclear bugs is not the way to go. threatening me with low market ratings (when you've already done exactly that, twice) and to boycott the app is also not the way to go. remember that this is a free app, you're really lucky to get any kind of support at all.

now, do you know how things work in Android? You need to tackle all entry-points and exit points of the app startings to determine whether sleep mode holds or not (example of entry points: boot up, when you exit the app preference.. etc). You cannot and should not be polling NoLED every certain interval to determine whether the background service is violating the sleep mode rules. This adds redundant calculations and assigns your CPU work that it can totally avoid.

The way I programmed the sleep mode is as following: it triggers at the times specified by the user. there is no bug with this feature as it always does trigger at these times. NoLED will also not magically turn on or off during these periods. The sleep periods are also checked when you reboot your device, and when you exit the settings menu.

If you clicked on Activate NoLED or disable NoLED during the on/off periods, you're free to do so and this will override the sleep periods: if you've turned NoLED off manually, it won't turn on again. That's pretty much it.

If you have a clear example of what you think is a bug and doesn't follow what I just described, then please do give it in steps so I can replicate it and I'll be more than happy to look at it.

From the way you describe the bug, it seems that you've switched NoLED on and off during the sleep period, that will disable NoLED from waking up when the sleep period is over because you've overridden it with a manual switch.
[Android Apps and Games] JNavas2:
Sleep bug

Here's another example of the Sleep issue:

Configure NoLED for Gmail notifications with no timeout.

Enable Sleep, setting OFF time and ON time.

Send message to your Gmail during OFF time to trigger notification.

Wait until after ON time.

What should happen: Gmail notification displayed at ON time.

What actually happens: No Gmail notification from NoLED after ON time.

Worse: Even if new Gmail arrives during ON time, there will still be no notification from NoLED without manual intervention.

Comments: The only actual difference in NoLED during Sleep should be suppression of signals (display, audio, and vibration) -- app state should otherwise be the same as without Sleep set. When ON time occurs, NoLED should then signal notifications which have occurred during OFF time, and of course any new notifications during ON time. There's no issue of system resources during OFF time, since the display is blanked and the only processing should just be when events occur.

UPDATE: Thank you for the long response. I'm out of time now, so will have to answer later today or tomorrow. In the meantime, please consider this further example, which does not involve any manual intervention. And I am also an Android developer.
[Android Apps and Games] Holmes108:
This may be how you would like it to work, but it's certainly not (necessarily) a bug.

To just receive nothing during sleep, and for it to NOT play "catchup" with missed notifications isn't automatically a bug, if that's what you're suggesting. It's just another way to function.

Not to speak for Madmack, but I personally would never have expected an app like this to necessarily notify you of everything missed during the quiet period. It might be a nice feature, but not a bug.
[Android Apps and Games] DarienA:
You want NoLED to play catchup of previous notifications once it turns on? That seems to go against why you'd turned NoLED off in the first place.

I wouldn't want it to work that way. When its off I don't want notifications. When its on I want notifications of new items. I don't want notifications of stuff that came in while it was off because for me the sleep period is at night. When I wake up I check my phone to see what's come in while I was asleep so I don't need NoLED to give me those notifications once it "wakes up".
[Android Apps and Games] neo_user:
Hi madmack :)

First of all, thank you for being such a great person (and app developer, of course).

I love your app, but I'm facing some problems:

1) How is the "charge indicator" supposed to work? It only pops up when I plug my phone into a mains.

Isn't it possible to make it appear even if the phone is not plugged in (as an option)?

Isn't it possible to separate it from the "time and date" notification (as an option)?

2) I downloaded v5.0 + weather module and followed your instructions. It works fine, but sometimes the "weather notification" is partially overwritten by the "time and date" notification.

Thank you again and keep up the good work! ;)
[Android Apps and Games] madmack:
The "what should happen" sounds more like a feature request than a bug. When we're actually in the sleep period, we're really completely sleeping. I'm not in a semi-sleep period, collecting pending data or doing any background task.

If you want all missed events at this time to be collected, well, it can be worked out obviously but it also means that the noled background service will still be running and "listening" to events. I like to think of the sleep periods as completely terminating NoLED but I'll consider adding this as a feature as it makes sense to wake up and see what you've missed overnight eventhough I'm not very big on that idea of keeping the service running and logging information for later display.

as for the "worse". I'm actually not able to replicate that issue. if it does happen, it certainly is a bug or a misconfiguration / app conflict.

on my setup, if I put NoLED to turn off 1 minute from now, wake up 4 minutes later. and then i send an email immediately to myself. this email will get dismissed after a minute (sleep period starts) and when the sleep period is over, nothing happens (expected) and if I shoot another email, I do get a notification.

From the code standpoint, the sleep on/off are only switching NoLED on and off as if you've done it manually (with few minor flags being set).

it really should behave as if you've clicked on the widget a minute later to deactivate NoLED and again after 4 minutes to reactivate the app.

1) Charging indicator only appears when you charge your device.

You can only get the battery percentage when you're not charging via the Time toggle. You can make that permanent by going to the Miscellaneous submenu and checking "permanent time display". I should warn you though, your battery might hate you.

2) Sounds like a beta bug report. i'm desperate for these, so thanks :) I'll double check the dimensions of these little toggles.

what device do you have? (i want to know the screen density/size).
[Android Apps and Games] RaymondPJR:
What is clear that this is an issue only you are having. Have you seen anyone else complaining that it doesn't sleep properly? Usually that points to user error. You can not claim that others are having it when obviously from lack of posts, they are not. Furthermore, you will not find a more involved app developer than Madmack. That is despite the fact that this app is totally "FREE"!!!!!

So every once in a while the weather icon and the Time Display occupy the same spot on the screen. That seems so minor. I do have to mention, though, I have yet to see the charging percentage and the weather icon occupy the same spot ever.
[Android Apps and Games] madmack:
this is helpful, thanks :) I might have some measurement problems with the Time toggle. I'll look into that when I get a chance.

Otherwise do the weather temperature/icon/update interval work properly? was anyone not able to find his city via the add-on?
[Android Apps and Games] neo_user:
Thank you for replying so quickly.

Ok, thanks ;)

And what about allowing users to display the battery percentage after receiving a notification (missed call, sms, etc.)? I mean, separating it from the time/date notification?

I don't want to annoy you, but I really don't like the battery percentage merged with time/date :p

I have an LG Optimus One P500 ;)

I did some more testing and noticed that the weather notification is overwritten by missed call and unread sms notifications, too.

I'm now testing the auto-update feature. I set the auto-update interval at 5 hours, then went to bed.

This morning, after about 11 hours, I connected to wifi to see if the weather info would be updated, but it did'nt work properly. I had to update it manually. More testing coming soon.

I'm very happy to beta-test your fantastic app. If you want me to do some more testing, just tell me what you need to verify. I could also help with Italian translation, if you want.

Bye!
[Android Apps and Games] neo_user:
I'm sorry to report that the weather auto-update is not working properly.

Maybe I'm doing something wrong, but I have to force it manually.
[Android Apps and Games] RaymondPJR:
NoLED

It is working for me, but honestly I don't remember what time interval I chose. I'll look.

EDIT: I have mine set for Fahrenheit and Refresh interval of 30minutes.:)
[Android Apps and Games] neo_user:
I set Celsius and tried two different refresh intervals: 5 hours and 15 minutes. Location: Italy.

I don't have a 3g or wifi connection always on, but I set background data and auto-sync and my gmail account is synced properly everytime I turn wifi on.
[Android Apps and Games] madmack:
I appreciate all the beta testing I can get. The more beta testers, the more likely I'm not going to end up having a sh*tstorm of negative comments on the market. lol

as for the battery percentage. I don't have any plans to make this a separate toggle. I think we have enough toggles and it kinda blends in nicely with the permanent time display. I'm minimizing permanent toggles because they're highly discouraged.

Make sure you don't have any task managers/killers. The process needs not to be killed for the scheduled wakeups to happen correctly. No worries though, I'm not holding any wakelocks so your CPU should go into deep sleep correctly ;)

NoLED will not retry to fetch the weather if it fails for whatever reason. So I guess set the interval to be something smaller so if one attempt fails, it'll retry on the next interval. I have it set to 30m and weather seems to be updating correctly as far as I can tell.
[Android Apps and Games] RaymondPJR:
NoLED

I think you hit your own problem right on the head. I'm pretty sure NoLed Weather won't react to the auto-sync settings for Facebook, Gmail, etc... So, you'd have to manage to somehow synchronise the NoLed Weather toggle to turn on when you wifi is on/off if you have that on an automatic schedule.
[Android Apps and Games] gollyzila:
Phone: Motorola Photon 4G

Android Version: 2.3.4

NoLED Version: 4.8

Bug: NoLED starts on boot but doesn't stop right away when the phone is rebooted during the sleep period.

Steps to repoduce:

Set stop time to 10 PM and start time to 6:40 AM.

Reboot at 1:15 AM.

Bug is produced a stated above.
[Android Apps and Games] neo_user:
You guys are right.

NoLED weather does NOT sync automatically. It tries to update and, if it fails, it won't retry until another interval has passed by.

Maybe it's a good idea to implement a new 5-minute interval? What do you think about that, madmack? :)
[Android Apps and Games] urmel1960:
Phone: Samsung Galaxy SII

Android Version: 2.3.4

NoLED Version: 4.8 & 5.0b

Bug: NoLED stops notification of missed call when phone receives SMS while missing call notification is still active.

Steps to repoduce:

call NoLED-activated phone - notification of the missed call starts - send SMS to the same phone - notification stops instead of notifying a missed call and the missed SMS
[Android Apps and Games] j-hut:
Feature suggestion

Thank you for your very useful application!

Would it be possible to make a theme available where the notifications (as well as fonts) are displayed as dot matrix instead of solid areas. An example is the Nokia Sleeping Screen application for Symbian Anna phones using AMOLED screens. The Nokia Sleeping Screen consumes virtually no battery even though "screen saver" is always on (this obviously applies only to AMOLED screens).

Since new users apparently can't post links, I can't attach a screenshot but a simple Google search will easily show screenshots of Nokia Sleeping Screen.
[Android Apps and Games] RaymondPJR:
NoLED

Interesting! Maybe they are getting the claimed low battery usage by making the images 'dot matrix', thus saving just a little more power by having more pixels render black?
[Android Apps and Games] j-hut:
The Sleeping Screen just one optional screen saver you can select on Nokia Symbian Anna phones. We have two such phones in our family and while I much prefer my Galaxy S II, I still envy the nice screen saver app the Nokia phones have. The NoLED is basically the same but with the dot matrix tweak I could have it on all the time displaying time etc.
[Android Apps and Games] beerbaronstatic:
Not sure if it's feasible, but on cyanogenmod when the screen turns off when you're on a call. Normally hitting the menu button turns the screen back on, but with noled on it doesn't work, is there any setting to get that working again? If not I can just turn on the screen with the power button.
[Android Apps and Games] glos7777:
I have galaxy note and installed noled and all calls notification work well but sms notification isnt working :S what is the problem ?
[Android Apps and Games] wuith:
Hi! First of all say thanks to the creators of this app because it helps me with the notifications in my no-LED i9001!!!

After this I would like to ask for a feature or what configuration I should choose to get it, I have tried many different options but I can't get it.

I would like that the screen doesn't light (keeps OFF) and ONLY the background light of the buttons do a flash every X seconds. All I have tried make the screen to also do a flash... Can anybody help me?

Thanks for your time!
[Android Apps and Games] RaymondPJR:
Look in the OP for the FAQ. Question number six has a link that will explain why NoLed doesn't do this and what you need to do to get this feature.:)
[Android Apps and Games] Zimbilik:
This is just brilliant.
[Android Apps and Games] madmack:
I'll look into that and will report back if I can replicate it and therefore fix it. Thanks.

5 minutes is a little too aggressive I think. That basically means that your device will wake up every 5 minutes to query for the weather.. bad design IMO as you'll end up having virtually very little deep-sleep CPU time. I'm even considering removing the 15min interval and setting it for 30min minimum..

I think a solution to your problem though is to query the network as soon as you're online if one of the attempts fail. I'll consider implementing that sometime in the future :)

bug indeed. I'll look into it.

I actually was inspired by Nokia's work on the previous older models (N95 anyone?) but I see that their newer screen savers are even cooler. I'm not sure whether these dot matrix are actually responsible for the good battery life. You see the major problem with NoLED is in the Android framework. a) Android doesn't allow the CPU to deep-sleep if the screen is on regardless of its content. b) The black pixels are actually switched on. Even though I believe that our screen is capable of switching partial pixels on, the Android API simply doesn't give access to this feature. I think the only way around it is to investigate the display drivers and possibly load a custom kernel (if I have the source code for the display driver, that is) to take care of that. long story short, it's impossible to program with a non-root app.

otherwise, we can make that dot matrix effect for sure. I'm just not motivated enough to dig into it given the minimal to no battery gain. Unless someone can prove me wrong, I'll be more than happy to put a trial version out with the matrix dots.

Go to NoLED settings > Miscellaneous > dismiss keys > and enable the Menu key.

FAQ will be helpful. I don't have anything to add to that.

Otherwise guys, I'm releasing a new weather applet version. This version gets rid of the ugly app icon in the drawer. Instead, you execute that weather app directly from NoLED settings. You'll need v5.0.1b. Basically NoLED will see whether you have the weather app installed, if it is, it'll allow you to execute the configuration screen of that weather app.

I also added geolocation to the weather applet :cool: I travel a lot between Amherst and Boston and will need the weather widget to tell me the weather at my location :) I'm also very picky when it comes to wakelocks, so I'm making sure that nothing silly is holding up your CPU from deep-sleeping if the geolocation thingy fails for whatever reason.

Geolocation uses Wifi or cellular triangulation and never your physical GPS unit.. (rant: I never understood why most weather apps wanna use my GPS to locate me every 15 min :confused::confused: when I'm sitting in a dungeon :p).

I'm uploading v5.0.1b of NoLED and v0.2b of the weather applet to the OP right now.
[Android Apps and Games] fartlec:
great app.

just one question. i really like the n9 meego's clock that stays active on the screen in standby. it's practically the same as "time" checked in noled options, but i would like to have it always active. is it possible ?:confused: with power management options active, it wouldn't be a massive energy-eater.

thanks
[Android Apps and Games] madmack:
sure thing. enable that option from the miscellaneous submenu.
[Android Apps and Games] gollyzila:
Madmack, can you add an option to turn on the screen with the power button when NoLED has automatically turned it off due to being in my pocket?

As I've mentioned before, my Motorola Photon has a wonky proximity sensor interval that leaves the screen off indefinitely.
[Android Apps and Games] valtersboze:
quick question - is Samsung Note true AMOLED without backlight? or SAMOLED is different story?

--

long story: my galaxy Note has some kind of backlight. or it turns all pixels on when the screen is on, i dont know. anyway, whatever black display test or in this case NoLed - it is visible when in total darkness - all pixels are backlit in some way. So today battery went down from 100% to 60% in just 5 hours without touching the phone, battery usage: 88% by display (4.5hours) because NoLed icons and clock was on the screen. wtf :(

---

EDIT: it seems AMOLEDs have some current flowing through screen when it is on, so its normal to see it in dark :/
[Android Apps and Games] Holmes108:
SAMOLED does lose the least amount of battery with a mostly black screen though(compared with other technologies).
[Android Apps and Games] madmack:
I don't think I can have control over that behavior :( you see the Power button is controlled by the Android framework and I simply cannot trigger anything when you click on that button. The only thing Android allows me to do is to listen to screen state. That's how I determine that you pressed the power button. So if that doesn't work, then there isn't much that I can do to remedy this issue.
[Android Apps and Games] sandeepsivia:
........................................
[Android Apps and Games] gollyzila:
In that case can you add an option to turn off the screen ONLY when the phone is upside down (e.g. In my pocket)?
[Android Apps and Games] madmack:
that's what the proximity sensor is there to do and is what I'm getting on both test devices that I have: SGS and the SGS2. It's a problem with your framework I believe. I don't think I can do much about it.
[Android Apps and Games] RaymondPJR:
NoLED

That is how the Samled screens work, this is well known. All you need to do is decide what time-out intervals you want. It's all up to you. If you set no time-outs then you will get drain.

EDIT: In my case, I always use the power button to put my phone to sleep once I check and dismiss my notifications. I have the time display to 'always on' along with the new weather icon. I'm never away from my phone for more than 15 minutes if that long. I also use the sound option to notify me of notifications if I am,-away from my phone or if it is next to me or in my pocket,-so I can dismiss. This way (promptly dismissing notifications) I get minimal battery drain from using the app. In short, correctly using the various methods to be notified of and dismiss notifications will insure that battery drain is negligible. Of course, if you just want to leave it on, then don't complain.
[Android Apps and Games] valtersboze:
I can dismiss the notifications, except when im sleeping. But i rarely have regular sleep at exact time so sleep timer doesnt fit my situation, also the proximity function doesnt work as it should sometimes, i tested that it turns off screen when i close the flip case, but turns back on after 2 seconds :/
[Android Apps and Games] RaymondPJR:
NoLED

Then, the only way to improve your situation would be to have really short time-outs on all your notifications and turn the 'always on' feature for the Time Display off. Of course, if you get one email after the other like I do on my yahoo account, even that won't help.:)
[Android Apps and Games] RaymondPJR:
NoLED

I have a question about the new Geolocation toggle. Does that require the use of GPS data/working GPS?:confused:

And I don't understand this part: Otherwise guys, I'm releasing a new weather applet version. This version gets rid of the ugly app icon in the drawer. Instead, you execute that weather app directly from NoLED settings. You'll need v5.0.1b. Basically NoLED will see whether you have the weather app installed, if it is, it'll allow you to execute the configuration screen of that weather app.

I still have both NoLed and NoLed Weather in my app drawer and neither is ugly.
[Android Apps and Games] madmack:
No GPS at all is used. If you'd enable GPS from the settings menu, you'd see that NoLED Weather doesn't actually trigger it on. It uses Data only to get your approximate location. So WiFi or any kind of cellular data will be sufficient. Think of Google Maps when you don't have GPS switched on, how does it find you on a map within a certain radius (big blue circle)? it uses the same tech.

If you use 0.2b of the weather app and the latest noled app. the weather icon should be gone from your launcher. if it's not, then it's probably a bug in your launcher. simply uninstall and reinstall the weather app and you'll see that it will no longer be there.

you execute that app by going to noled settings > toggle notifications > weather > configure weather instead.

I'm waiting til noled reaches +1,000,000 downloads to release the new update :o shouldn't be too long now.
[Android Apps and Games] :
Noooooooooooooooooooooooooo....................

:(

This is the only real thread I read to see if updates come. :cool: