Active Topics

 


Reply
Thread Tools
qwazix's Avatar
Moderator | Posts: 2,622 | Thanked: 5,447 times | Joined on Jan 2010
#71
Indeed source isn't downloadable for a strange reason. I will upload later. As for the power consumption issue I believe the solution proposed by Estel to use proximityd is the way to go, but I have to finish some other things before I dive into it. Any help is of course welcome.
__________________
Proud coding competition 2012 winner: ρcam
My other apps: speedcrunch N9 N900 Jollacontactlaunchtimenow

Nemo UX blog: Grog
My website: qwazix.com
My job: oob
 
qwazix's Avatar
Moderator | Posts: 2,622 | Thanked: 5,447 times | Joined on Jan 2010
#72
Timenow 0.0.2 should hit devel for real now.

I forgot however to bump the version, but I have changed it to use proximityd. Please test and report battery consumption.

The phone bug is not fixed yet, in fact I may need a little help there. I thought it would be enough to suppress timenow from displaying whenever the screen is both off and locked, but this is not sufficient. What other check should I run?

Checking if phone is running is not ok as it may well be in the background.
Checking if a call is active may be correct, but if the other party has hung up?

Sources are on http:://github.com/qwazix/timenow and hopefully now on the package system
__________________
Proud coding competition 2012 winner: ρcam
My other apps: speedcrunch N9 N900 Jollacontactlaunchtimenow

Nemo UX blog: Grog
My website: qwazix.com
My job: oob
 

The Following 4 Users Say Thank You to qwazix For This Useful Post:
Posts: 204 | Thanked: 423 times | Joined on Jan 2011
#73
Originally Posted by qwazix View Post
Please test and report battery consumption.
It's about 7 mA. Better, but far from perfect.

Last edited by hxka; 2012-08-22 at 15:57.
 

The Following 3 Users Say Thank You to hxka For This Useful Post:
qwazix's Avatar
Moderator | Posts: 2,622 | Thanked: 5,447 times | Joined on Jan 2010
#74
I think I can set the polling interval to 200ms or even 500ms, what do you think?
__________________
Proud coding competition 2012 winner: ρcam
My other apps: speedcrunch N9 N900 Jollacontactlaunchtimenow

Nemo UX blog: Grog
My website: qwazix.com
My job: oob
 

The Following User Says Thank You to qwazix For This Useful Post:
Posts: 204 | Thanked: 423 times | Joined on Jan 2011
#75
200ms seems ok. What it is now?
 

The Following User Says Thank You to hxka For This Useful Post:
qwazix's Avatar
Moderator | Posts: 2,622 | Thanked: 5,447 times | Joined on Jan 2010
#76
100ms ..........
__________________
Proud coding competition 2012 winner: ρcam
My other apps: speedcrunch N9 N900 Jollacontactlaunchtimenow

Nemo UX blog: Grog
My website: qwazix.com
My job: oob
 
Posts: 204 | Thanked: 423 times | Joined on Jan 2011
#77
I'm not a programmer and I don't know how d-bus works, but AFAIK it does not require programs to poll itself and it can notify them if state changed, isn't that true?
 

The Following User Says Thank You to hxka For This Useful Post:
qwazix's Avatar
Moderator | Posts: 2,622 | Thanked: 5,447 times | Joined on Jan 2010
#78
Dbus does that, but the proximity sensor doesn't have this ability, so I am using proximityd a daemon written by the author of shortcutd which polls the proximity sensor by default every 100ms (but can be instructed to do so with a custom interval) and sends a signal to dBus, which then in it's turn notifies timenow to do it's thing.

qtMobility has a function to notify on proximity sensor changes but it doesn't seem to work on the N900 (using code that wirks on the N9). There should be a method to do that without polling using GPIO according to joergrw but I admit it's too low level for my taste.
__________________
Proud coding competition 2012 winner: ρcam
My other apps: speedcrunch N9 N900 Jollacontactlaunchtimenow

Nemo UX blog: Grog
My website: qwazix.com
My job: oob
 

The Following 3 Users Say Thank You to qwazix For This Useful Post:
Posts: 79 | Thanked: 53 times | Joined on Jul 2010 @ Ho Chi Minh, Viet Nam
#79
Originally Posted by hxka View Post
It's about 7 mA. Better, but far from perfect.
@hxka: 7mA is for timenow only? How did you measure this?

But if this is overall standby discharge then I think this is quite good (the same as my rate without previous version of timenowd)
__________________
All about God, love and yoga www.kriyayoga.com
 

The Following 2 Users Say Thank You to cantruchd For This Useful Post:
Posts: 79 | Thanked: 53 times | Joined on Jul 2010 @ Ho Chi Minh, Viet Nam
#80
Have installed now. proximityd installed as well.

But no time shown on proximity change.What can i do?

@hxka: did it run on you device?
 

The Following User Says Thank You to cantruchd For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 16:50.