Active Topics

 


Reply
Thread Tools
tso's Avatar
Posts: 4,783 | Thanked: 1,253 times | Joined on Aug 2007 @ norway
#671
Forgot to check, was trying to sleep at the time. How do i check if there are pending alarms?

Interesting. I plugged the N800 into the charger while powered down and left it there. Now i see the screen has dimmed, showing ASUI in charging mode. But there is a strange pulse to it. As if ASUI tries to blank the screen but then come right back. The pulse seems to be at maybe 5-10 second intervals.

Last edited by tso; 2011-05-26 at 12:14.
 
tso's Avatar
Posts: 4,783 | Thanked: 1,253 times | Joined on Aug 2007 @ norway
#672
ok, located /var/lib/alarmd/alarm_queue.xml.

seems to hold two events, one from the sequetary calendar, and one for the hildon update notifier.
__________________
Be warned, posts are often line of thoughts at highway speeds...
 
Posts: 1,101 | Thanked: 1,184 times | Joined on Aug 2008 @ Spain
#673
Originally Posted by auouymous View Post
Its the same one ASUI uses and I've seen it a lot. The transition to orange at 2.0 is a bit low because I rarely see yellow. Although the orange and yellow are hard to distinguish from each other, I'll either change the 2.0 to halfway between 0.8 and 14.0 or remove orange.
Ok. May be red should be a bit further and orange middle point (see below why)
ASUI only tracks last hour and last X hours and it passes the last hour rate to the applet. Last minute tracking is not possible unless you are bleeding 0.1% or more per minute. The applet rate only updates when battery capacity changes.

I can probably add a 60 second timer in the applet that resets when it receives a drain update otherwise it will request a 'decaying' update from ASUI. That way the applet's rate will decrease with time when no BME updates are being sent, just like ASUI does when the battery widget is visible.
If you take [%battery remaining]/[Active hours left] instead, you'll have an instantaneous discharge rate more useful for the applet. Notice that when the device is in use the discharge rate is never lower than 10%/h and the maximum discharge rate I've observed is 50%/h. The transition points could be gray<15.4%, yellow 15.4%-<22%, orange 22%-28.5%, red >=28.5% (points relate to 6.5, 4.5, 3.5 active hours). That's simpler than any decaying timer.
 
Posts: 875 | Thanked: 918 times | Joined on Sep 2010
#674
Originally Posted by tso View Post
As if ASUI tries to blank the screen but then come right back. The pulse seems to be at maybe 5-10 second intervals.
ASUI's only dim/blank commands are attached to button events.

Originally Posted by tso View Post
/var/lib/alarmd/alarm_queue.xml.
seems to hold two events, one from the sequetary calendar, and one for the hildon update notifier.
Only hildon update notifier here. I'll try installing that calendar app and see what happens.

Originally Posted by maacruz View Post
Ok. May be red should be a bit further and orange middle point (see below why)

If you take [%battery remaining]/[Active hours left] instead, you'll have an instantaneous discharge rate more useful for the applet. Notice that when the device is in use the discharge rate is never lower than 10%/h and the maximum discharge rate I've observed is 50%/h. The transition points could be gray<15.4%, yellow 15.4%-<22%, orange 22%-28.5%, red >=28.5% (points relate to 6.5, 4.5, 3.5 active hours). That's simpler than any decaying timer.
That won't work, the active time only has hour precision (even though the one signal sends it as minutes and the other as seconds) and it doesn't update instantaneously.

Decay timer is simple and of course the code already exists in ASUI. When a BME capacity signal arrives it takes the difference between the capacity an ~hour ago and the new capacity, using the timestamps of both events. When the battery widget is visible it refreshes the drain rate every 60 seconds by taking the difference between the capacity/timestamp an ~hour ago and the last capacity event with current time instead of its timestamp. This causes the drain the rate to slightly decrease every minute and is accurate.

When adding the drain rate I experimented with rate for last minute and found it to be a useless value because their isn't enough data (and it was only good for eye candy and not for determining usage patterns). Maximum normal rate should be 14-25%/hr (4-7 hours active time) which means it can only decrease 0.1% every 14-25 seconds. Problem is that BME doesn't send out a signal for each 0.1% change but groups them into larger changes. It would be nice to have the icon represent instantaneous drain rate and quickly change colors as the load changed but it won't work.
 
Posts: 1,101 | Thanked: 1,184 times | Joined on Aug 2008 @ Spain
#675
Let's argue a bit more
Originally Posted by auouymous View Post
That won't work, the active time only has hour precision (even though the one signal sends it as minutes and the other as seconds) and it doesn't update instantaneously.
Yes, I know it has hour precision, and it is not really instantaneous. But it doesn't need to be decimal point accurate, because we are representing big intervals with 4 color values.
By choosing carefully the transition points, the applet will be accurate enough for it's purpose: helping the user to know when it is using too much battery (for example, some IAP's can drain the battery very quickly) and allowing the user to regulate its battery consumption.
About the time precision, for this matter a 1 minute accuracy can be considered enough, and it is much better than an 1 hour average (although bme time precision is in the order of seconds)
Decay timer is simple and of course the code already exists in ASUI. When a BME capacity signal arrives it takes the difference between the capacity an ~hour ago and the new capacity, using the timestamps of both events. When the battery widget is visible it refreshes the drain rate every 60 seconds by taking the difference between the capacity/timestamp an ~hour ago and the last capacity event with current time instead of its timestamp. This causes the drain the rate to slightly decrease every minute and is accurate.
But it doesn't represent the current drain rate accurately, but a very smoothed time average instead.
When adding the drain rate I experimented with rate for last minute and found it to be a useless value because their isn't enough data (and it was only good for eye candy and not for determining usage patterns). Maximum normal rate should be 14-25%/hr (4-7 hours active time) which means it can only decrease 0.1% every 14-25 seconds. Problem is that BME doesn't send out a signal for each 0.1% change but groups them into larger changes.
I agree that trying to obtain the rate that way doesn't work. When using %battery capacity, the minimum time I've found to work (more or less) is 15 minutes.
 
Posts: 875 | Thanked: 918 times | Joined on Sep 2010
#676
Originally Posted by maacruz View Post
Let's argue a bit more
Okay!

Originally Posted by maacruz View Post
Yes, I know it has hour precision, and it is not really instantaneous. But it doesn't need to be decimal point accurate, because we are representing big intervals with 4 color values.
By choosing carefully the transition points, the applet will be accurate enough for it's purpose: helping the user to know when it is using too much battery (for example, some IAP's can drain the battery very quickly) and allowing the user to regulate its battery consumption.
About the time precision, for this matter a 1 minute accuracy can be considered enough, and it is much better than an 1 hour average (although bme time precision is in the order of seconds)
I'm pretty sure the battery icon will sit on gray most of the time and jump instantly to red after several minutes of constant use and return to gray after several minutes of idle, never showing yellow or orange. And I think the current method would provide faster changes of the icon from gray to red while still using yellow and orange unless the load is heavy in which case it would probably make the transition even faster. But I will add some code to show it working.

It will be a while though because the stupid theme file loading code is some how causing the opendir("/proc") function used to find running services to segfault when changing the theme a second time.
 
Posts: 875 | Thanked: 918 times | Joined on Sep 2010
#677
New test release.
  • fix: widget page should no longer change in portrait mode when barely sliding finger on button bar
  • secondary background color support, highlight refactoring, renamed line_color and innerline_color, added button_color and stepper_color, tweaked some colors
  • swiping from button bar to widgets slides the window
  • unmapping the window slides it off the screen
  • mapping the window slides it on to the screen
  • color theme file support
  • draw flight mode button with code instead of XPM file

To install you will need to run asui uu; asui dc; asui dt; asui ds; asui it; asui is to upgrade the convenience script, install theme files, test binary and settings test binary.

Swiping the window to close will slide it with your finger. Opening or closing the ASUI window will slide it on to or off of the screen. Go to the user interface settings to disable this.

I made a bunch of crappy color themes for you to play with, in the user interface settings. You can install two separate and switch between them using the button on the brightness widget or ALS auto-switching for n810 users. Go look at /etc/asui-themes/default.bw if you want to make your own theme. The current color variables are limited but I plan on making it CSS-like so specific elements will inherit from base colors or assigned their own color. You can run asui reload to make ASUI read in changes while modifying your own theme.
 

The Following User Says Thank You to auouymous For This Useful Post:
Posts: 875 | Thanked: 918 times | Joined on Sep 2010
#678
Originally Posted by tso View Post
i lost the touch screen sound when the low battery warning played.
The charging and low battery sounds are handled with the same code and I still have touchscreen sound after repeatedly plugging in and unplugging the charger. Can you reproduce this?
 
tso's Avatar
Posts: 4,783 | Thanked: 1,253 times | Joined on Aug 2007 @ norway
#679
sorry, no idea. Seems i have lost all sound even tho ASUI shows no mute and output is speakers. Wonder if there is some kind of sub channel that goes wonky.
 
Posts: 875 | Thanked: 918 times | Joined on Sep 2010
#680
Originally Posted by tso View Post
sorry, no idea. Seems i have lost all sound even tho ASUI shows no mute and output is speakers. Wonder if there is some kind of sub channel that goes wonky.
Are the audio services all started?

What does gconftool-2 -R /apps/osso/sound show?
 
Reply

Tags
bada blows, bada rox


 
Forum Jump


All times are GMT. The time now is 13:53.